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

Create Credentials

Description

Associate a new add on credentials with the SDDC such as HCX

Request

Request

URL

URL


post
https://vmc.vmware.com/vmc/api/orgs/{org}/sddcs/{sddcId}/addons/{addonType}/credentials
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


Request Body

Request Body

NewCredentials of type(s) application/json Required

Credentials creation payload

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

Name of the credentials


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

201 Created returns NewCredentials of type(s) application/json

Credentials created

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

Invalid input


403

Forbidden


409

Credentials with same name exists with in the scope of addOnType

Code Samples

Code Samples

cURL Command

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

Vendor Extensions

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


Feedback

Was this page helpful?