Credentials Manager

This resource collection represents credential sets used to access connected objects.

Get Credential Sets

Returns a collection resource representations of all credential sets.

SecurityBearer
Request
query Parameters
Offset
integer <int32>
Default: 0
Limit
integer <int32>
Default: 100
Filter
string
Sort
string
Select
string
Responses
200

Success

403

Forbidden

get/api/v2.3/credentials
Request samples
Response samples
application/json
{
  • "items": [
    ],
  • "totalCount": 2
}

Create Credential Set

Creates a new credential set.

SecurityBearer
Request
Request Body schema: application/json
type
required
string non-empty
Default: "Password"

Type of credentials.

userName
string or null [ 0 .. 100 ] characters

User name.

password
string or null [ 0 .. 255 ] characters

Password.

description
string or null [ 0 .. 1000 ] characters

Description.

sshKey
string or null

SSH key.

sshKeyPassword
string or null

SSH key password.

Responses
200

Success

403

Forbidden

post/api/v2.3/credentials
Request samples
application/json
{
  • "type": "Password",
  • "userName": "TECH\\administrator",
  • "password": "P@ssw0rd!",
  • "description": "vCenter Server service account",
  • "sshKey": null,
  • "sshKeyPassword": null
}
Response samples
application/json
{
  • "credentialsId": 12,
  • "type": "Password",
  • "userName": "TECH\\administrator",
  • "description": "vCenter Server service account",
  • "lastModified": "2026-01-15T10:24:33Z",
  • "currentlyAssigned": true,
  • "isPropagated": false
}

Get Hosts Accessed with Credential Set

Returns a collection resource representation of hosts that are accessed with the credential set with the specified ID.

SecurityBearer
Request
path Parameters
credentialId
required
integer <int64>
query Parameters
Offset
integer <int32>
Default: 0
Limit
integer <int32>
Default: 100
Filter
string
Sort
string
Select
string
Responses
200

Success

403

Forbidden

get/api/v2.3/credentials/{credentialId}/assign/host
Request samples
Response samples
application/json
{
  • "credentialId": 12,
  • "userName": "TECH\\administrator",
  • "assignedObjects": [
    ]
}

Assign Credentials to Host

Assigns a credential set to a host with the specified ID.

SecurityBearer
Request
path Parameters
credentialId
required
integer <int64>
query Parameters
Offset
integer <int32>
Default: 0
Limit
integer <int32>
Default: 100
Filter
string
Sort
string
Select
string
Request Body schema: application/json
objectId
integer <int64>

ID assigned to a host

propagate
boolean

Defines whether credentials must be propagated to host child objects.

port
integer or null <int32>

Host connection port.

Responses
200

Success

403

Forbidden

post/api/v2.3/credentials/{credentialId}/assign/host
Request samples
application/json
{
  • "objectId": 1024,
  • "propagate": true,
  • "port": 443
}
Response samples
application/json
{
  • "credentialId": 12,
  • "userName": "TECH\\administrator",
  • "assignedObjects": [
    ]
}

Get VMs Accessed with Credential Set

Returns a collection resource representation of VMs that are accessed with the guest OS credential set with the specified ID.

SecurityBearer
Request
path Parameters
credentialId
required
integer <int64>
query Parameters
Offset
integer <int32>
Default: 0
Limit
integer <int32>
Default: 100
Filter
string
Sort
string
Select
string
Responses
200

Success

403

Forbidden

get/api/v2.3/credentials/{credentialId}/assign/guest
Request samples
Response samples
application/json
{
  • "credentialId": 15,
  • "userName": "root",
  • "assignedObjects": [
    ]
}

Assign Credentials to VM

Assigns a credential set to a guest OS of a VM with the specified ID.

SecurityBearer
Request
path Parameters
credentialId
required
integer <int64>
query Parameters
Offset
integer <int32>
Default: 0
Limit
integer <int32>
Default: 100
Filter
string
Sort
string
Select
string
Request Body schema: application/json
objectId
integer <int64>

ID assigned to an object accessed using the credential set.

propagate
boolean

Indicates whether child objects are accessed using the same credential set.

guest
string

Guest OS type.

Enum: "GuestWindows" "GuestLinux"
object or null

Guest OS settings.

Responses
200

Success

403

Forbidden

post/api/v2.3/credentials/{credentialId}/assign/guest
Request samples
application/json
{
  • "objectId": 2048,
  • "propagate": true,
  • "guest": "GuestLinux",
  • "guestSettings": {
    }
}
Response samples
application/json
{
  • "credentialId": 15,
  • "userName": "root",
  • "assignedObjects": [
    ]
}

Get ServiceNow Credentials

Returns a resource representation of the ServiceNow credentials.

SecurityBearer
Responses
200

Success

403

Forbidden

get/api/v2.3/credentials/assign/servicenow
Request samples
Response samples
application/json
{
  • "credentialId": 18,
  • "userName": "svc-servicenow",
  • "assignedObjects": [
    ]
}

Delete Credentials

Deletes an unassigned credential set with the specified ID.

SecurityBearer
Request
path Parameters
credentialId
required
integer <int64>
Responses
200

Success

403

Forbidden

delete/api/v2.3/credentials/{credentialId}
Request samples
Response samples
application/json
{
  • "type": "string",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "property1": null,
  • "property2": null
}

Patch Credentials

Modifies a credential set with the specified ID.

SecurityBearer
Request
path Parameters
credentialId
required
integer <int64>
Request Body schema: application/json
type
required
string non-empty
Default: "Password"

Type of credentials.

userName
string or null [ 0 .. 100 ] characters

User name.

password
string or null [ 0 .. 255 ] characters

Password.

description
string or null [ 0 .. 1000 ] characters

Description.

sshKey
string or null

SSH key.

sshKeyPassword
string or null

SSH key password.

Responses
200

Success

403

Forbidden

patch/api/v2.3/credentials/{credentialId}
Request samples
application/json
{
  • "type": "Password",
  • "userName": "TECH\\administrator",
  • "password": "P@ssw0rd!",
  • "description": "vCenter Server service account",
  • "sshKey": null,
  • "sshKeyPassword": null
}
Response samples
application/json
{
  • "credentialsId": 12,
  • "type": "Password",
  • "userName": "TECH\\administrator",
  • "description": "vCenter Server service account",
  • "lastModified": "2026-01-15T10:24:33Z",
  • "currentlyAssigned": true,
  • "isPropagated": false
}

Get Credentials Assigned to Object

Returns a resource representation of credential set that is used to access an object with the specified ID.

SecurityBearer
Request
path Parameters
objectId
required
integer <int64>
Responses
200

Success

403

Forbidden

get/api/v2.3/credentials/object/{objectId}
Request samples
Response samples
application/json
[
  • {
    },
  • {
    }
]

Delete Credentials Assigned to Object

Deletes credential set that is used to access an object with the specified ID.

SecurityBearer
Request
path Parameters
objectId
required
integer <int64>
query Parameters
propagate
boolean
Responses
200

Success

403

Forbidden

delete/api/v2.3/credentials/object/{objectId}
Request samples
Response samples
application/json
{
  • "type": "string",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "property1": null,
  • "property2": null
}

Document updated 2026-07-30

Page content applies to build 13.1.0.7034