Global InfraGlobal Infra Cloud
Internal D N S

Create a record

Creates a new record.

POST
/api/v1/giservices/internal_dns/records

Authorization

AuthorizationBearer <token>

Okta Bearer token

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/giservices/internal_dns/records" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "attributes": {      "name": "string",      "type": "CNAME"    }  }'
{
  "id": "string",
  "name": "string",
  "description": "string",
  "service": "string",
  "attributes": {
    "comments": [
      {
        "account": "string",
        "content": "string",
        "modified_at": 0
      }
    ],
    "create_ptr": true,
    "fqdn": "string",
    "lease_datacenter": [
      "string"
    ],
    "lease_mac": [
      "string"
    ],
    "leased_ips": [
      {
        "datacenter": "string",
        "ip": "string",
        "network": "string"
      }
    ],
    "name": "string",
    "network_alias": "physical",
    "records": [
      "string"
    ],
    "ttl": 0,
    "type": "CNAME",
    "zone": "string"
  },
  "platform": "string",
  "region": "string",
  "tenant": "string"
}
Empty
Empty
Empty
Empty