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

Entity reference used to describe VCD entities

entity
Required

Entity reference used to describe VCD entities

string
username
Required

user name

string
password
Required

password

behavior
Optional

Entity reference used to describe VCD entities

Authentication
This operation uses the following authentication methods.
Responses
201

Created

Returns NamedCredential of type(s) application/json;version=39.0
{
    "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

Entity reference used to describe VCD entities

entity
Required

Entity reference used to describe VCD entities

string
username
Required

user name

string
password
Required

password

behavior
Optional

Entity reference used to describe VCD entities