[{"label":"Latest (v1.1)","version":"latest"}]
vmc

Update Credentials

Description

Update credential details

Request

Request

URL

URL


put
https://vmc.vmware.com/vmc/api/orgs/{org}/sddcs/{sddcId}/addons/{addonType}/credentials/{name}
Copy

Path Parameters

Path Parameters

string
org Required

Org id of the associated SDDC


string
sddcId Required

Id of the SDDC


string
addonType Required

Add on type


string
name Required

name of the credentials


Request Body

Request Body

UpdateCredentials of type(s) application/json Required

Credentials update payload

{
	"password": "string",
	"username": "string"
}
string
password Required

Password associated with the credentials


string
username Required

Username of the credentials

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns NewCredentials of type(s) application/json

Updated credentials

string
name Required

Name of the credentials


string
password Required

Password associated with the credentials


string
username Required

Username of the credentials

Errors

Errors

400

Bad request


403

Forbidden

Code Samples

Code Samples

PowerCLI Client SDK Example

$UpdateCredentials = Initialize-UpdateCredentials -Username "MyUsername" -Password "MyPassword"
Invoke-OrgsOrgSddcsSddcIdAddonsAddonTypeCredentialsNamePut -Org 38400000-8cf0-11bd-b23e-10b96e4ef00d -SddcId 38400000-8cf0-11bd-b23e-10b96e4ef00d -AddonType "HCX" -Name "MyName" -Credentials $Credentials

PowerCLI Client SDK Example

$UpdateCredentials = Initialize-UpdateCredentials -Username "MyUsername" -Password "MyPassword"
Invoke-OrgsOrgSddcsSddcIdAddonsAddonTypeCredentialsNamePut -Org 38400000-8cf0-11bd-b23e-10b96e4ef00d -SddcId 38400000-8cf0-11bd-b23e-10b96e4ef00d -AddonType "HCX" -Name "MyName" -Credentials $Credentials

PowerCLI Client SDK Example

$UpdateCredentials = Initialize-UpdateCredentials -Username "MyUsername" -Password "MyPassword"
Invoke-OrgsOrgSddcsSddcIdAddonsAddonTypeCredentialsNamePut -Org 38400000-8cf0-11bd-b23e-10b96e4ef00d -SddcId 38400000-8cf0-11bd-b23e-10b96e4ef00d -AddonType "HCX" -Name "MyName" -Credentials $Credentials

PowerCLI Client SDK Example

$UpdateCredentials = Initialize-UpdateCredentials -Username "MyUsername" -Password "MyPassword"
Invoke-OrgsOrgSddcsSddcIdAddonsAddonTypeCredentialsNamePut -Org 38400000-8cf0-11bd-b23e-10b96e4ef00d -SddcId 38400000-8cf0-11bd-b23e-10b96e4ef00d -AddonType "HCX" -Name "MyName" -Credentials $Credentials

cURL Command

curl -X PUT -H "Content-Type: application/json" -d '{"password":"string","username":"string"}' https://vmc.vmware.com/vmc/api/orgs/{org}/sddcs/{sddcId}/addons/{addonType}/credentials/{name}
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-vmc-ui-servicename: credentials
x-vmw-vapi-methodname: update


Feedback

Was this page helpful?