[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Create Interface
DescriptionCreates a defined interface. The version must follow semantic versioning rules.
Request
URLURL
https://{api_host}/cloudapi/1.0.0/interfaces
Request Body
Request Body
DefinedInterface
of type(s) application/json
Required
{
"id": "urn:vcloud:interface:vmware.sddc:1.0.0",
"name": "SDDC Interface",
"nss": "myCustomEntity",
"readonly": false,
"vendor": "vmware",
"version": "1.0.0"
}
string
id
Optional
string
name
Optional
string
nss
Optional
A unique namespace associated with the interface.
boolean
readonly
Optional
True if the entity type cannot be modified.
string
vendor
Optional
The vendor name.
string
version
Changed
Optional
The interface’s version. The version should follow semantic versioning rules. Versions with pre-release extension are not allowed.
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
201 Created
Returns
DefinedInterface
of type(s) application/json;version=37.1
{
"id": "urn:vcloud:interface:vmware.sddc:1.0.0",
"name": "SDDC Interface",
"nss": "myCustomEntity",
"readonly": false,
"vendor": "vmware",
"version": "1.0.0"
}
string
id
Optional
string
name
Optional
string
nss
Optional
A unique namespace associated with the interface.
boolean
readonly
Optional
True if the entity type cannot be modified.
string
vendor
Optional
The vendor name.
string
version
Changed
Optional
The interface’s version. The version should follow semantic versioning rules. Versions with pre-release extension are not allowed.
No error details were provided in the OpenAPI specification.
Code SamplesCode Samples
cURL Command
curl -X POST -H "Content-Type: application/json" -d '{"id":"urn:vcloud:interface:vmware.sddc:1.0.0","name":"SDDC Interface","nss":"myCustomEntity","readonly":false,"vendor":"vmware","version":"1.0.0"}' https://{api_host}/cloudapi/1.0.0/interfaces
[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Availability
Added in 35.0
Defined Interface Operations
post
delete
get
get
put