[{"label":"Latest (v1.1)","version":"latest"}]
vmc
Update Credentials
DescriptionUpdate credential details
Request
URLURL
https://vmc.vmware.com/vmc/api/orgs/{org}/sddcs/{sddcId}/addons/{addonType}/credentials/{name}
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
{
"password": "string",
"username": "string"
}
string
password
Required
Password associated with the credentials
string
username
Required
Username of the credentials
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse 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
400
Bad request
403
Forbidden
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
This operation contains the following vendor extensions defined in the spec:
x-vmc-ui-servicename: credentials
x-vmw-vapi-methodname: update
[{"label":"Latest (v1.1)","version":"latest"}]
vmc