Create Private DNS
Changed onCreates a new private DNS attachment for a given network. The attachment type is determined by private_dns_attachment_config.kind. Supported types: aws-private-hosted-zone-attachment, aws-outbound-resolver, gcp-private-hosted-zone-attachment, azure-private-hosted-zone-attachment, and azure-outbound-resolver.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The network ID to operate on. For serverless.v1 kind of cloud gateways, this field should be omitted.
The network to operate on.
Request body
Request schema for creating a Private DNS.
Human-readable name of the Private DNS.
Example request
{
"name": "us-east-2-private-dns",
"private_dns_attachment_config": {
"dns_config": {
"internal.example.com": {
"remote_dns_server_ip_addresses": [
"10.0.1.100"
]
},
"db.corp.internal": {
"remote_dns_server_ip_addresses": [
"10.0.2.100"
]
}
}
}
}Response
Response format for creating a Private DNS.
Example response
{
"id": "1850820b-c69f-4a2a-b9be-bbcdbc5cd618",
"state_metadata": {
"reported_status": "ERROR",
"reason": "Failed to create Private Dns due to invalid Cloud Provider configuration.\n"
},
"entity_version": 1,
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z",
"name": "us-east-2-private-dns"
}Changes
- breaking
added to the
invalid_parameters/itemsresponse propertyoneOflist for the response status - warning
added the new
key_invalidenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status - warning
added the new
uniqueenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status
- breaking