GET | Provision
  • 1 minute to read
  • Dark
    Light
  • PDF

GET | Provision

  • Dark
    Light
  • PDF

Article summary

Allows you to create a new secret for a credential.

# Request

Get https://vault_url/iso/coe/dapp/provision

Request Example

{
    "identity": "secret-postman"
}

Parameters for the request

FieldTypeDescription
pod_nameStringCapsule’s name that will use the credential.
deployStringDeploy name that will use the credential.
namespaceStringContainer's namespace that will use the credential.

Response examples

{
    "code": 200,
    "response": {
        "status": 200,
        "message": "Secret provisions done.",
        "error": false,
        "error_code": 0,
        "detail": "",
        "mensagem": "Secret provisions done.",
        "erro": false,
        "cod_erro": 0
    },
    "tenant": "senhasegura",
    "secret": {
        "secret_id": "213",
        "secret_name": "secret-postman",
        "identity": "secret-postman",
        "version": "7",
        "description": "secret created by postman",
        "expiration_date": "",
        "engine": "Generic",
        "renew_cloud_time": false,
        "renew_credential_time": false,
        "renew_ephemeral_credential_time": false,
        "data": [
            {
                "hostname": "masked_hostname_1",
                "username": "masked_username_1"
            },
            {
                "hostname": "masked_hostname_2",
                "username": "masked_username_2",
                "password": "masked_password",
                "additional_information": null,
                "ip": "masked_ip"
            }
        ]
    }
}

Parameters for the response

FieldTypeDescription
nameStringApplication's name.
descriptionStringApplication’s description.
tagsStringTags that identify the application.
systemStringSystem’s secret.
environmentStringEnvironment’s secret.
secret_idIntegeregerSecret's ID.
secret_nameStringSecret's name.
identifierStringSecret’s identifier.
versionStringSecret's version.
expiration_dateStringSecret’s expiration date.
engineStringSecret’s engine.
valueStringSecret's value.

Was this article helpful?

What's Next