Create a vSphere DNS mapping
POSThttps://api.spectrocloud.com/v1/users/assets/vsphere/dnsMappings
Create a vSphere DNS mapping
Request
- application/json
Body
metadata
object
spec
object
Responses
- 201
Created successfully
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
uidstringrequired
{
"uid": "string"
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L 'https://api.spectrocloud.com/v1/users/assets/vsphere/dnsMappings' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
-d '{
"metadata": {
"annotations": {},
"creationTimestamp": "2024-07-29T15:51:28.071Z",
"deletionTimestamp": "2024-07-29T15:51:28.071Z",
"labels": {},
"lastModifiedTimestamp": "2024-07-29T15:51:28.071Z",
"name": "string",
"uid": "string"
},
"spec": {
"datacenter": "string",
"dnsName": "string",
"network": "string",
"privateGatewayUid": "string"
}
}'