Create Named Credential

Create Named Credential

Create a new namedCredential in VCD.

Request
URI
POST
https://{api_host}/cloudapi/1.0.0/namedCredentials
COPY
Request Body
NamedCredential of type(s) application/json
Optional
{
    "id": "urn:vcloud:namedCredential:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "name": "string",
    "org": {
        "name": "string",
        "id": "string"
    },
    "entity": {
        "name": "string",
        "id": "string"
    },
    "username": "string",
    "password": "string",
    "behavior": {
        "name": "string",
        "id": "string"
    }
}
string
id
Optional

URN of the namedCredential.

string
name
Required

Name of the namedCredential object.

org
Optional

org

entity
Required

entity

string
username
Required

user name

string
password
Required

password

behavior
Optional

behavior

Authentication
This operation uses the following authentication methods.
Responses
201

Created

Returns NamedCredential of type(s) application/json;version=37.3
{
    "id": "urn:vcloud:namedCredential:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "name": "string",
    "org": {
        "name": "string",
        "id": "string"
    },
    "entity": {
        "name": "string",
        "id": "string"
    },
    "username": "string",
    "password": "string",
    "behavior": {
        "name": "string",
        "id": "string"
    }
}
string
id
Optional

URN of the namedCredential.

string
name
Required

Name of the namedCredential object.

org
Optional

org

entity
Required

entity

string
username
Required

user name

string
password
Required

password

behavior
Optional

behavior