dns_records
Creates, updates, deletes, gets or lists a dns_records resource.
Overview
| Name | dns_records |
| Type | Resource |
| Id | confluent.networking.dns_records |
Fields
The following fields are returned by SELECT queries:
- get_networking_v1_dns_record
- list_networking_v1_dns_records
DNS Record.
| Name | Datatype | Description |
|---|---|---|
id | string | ID is the "natural identifier" for an object within its scope/namespace; it is normally unique across time but not space. That is, you can assume that the ID will not be reclaimed and reused after an object is deleted ("time"); however, it may collide with IDs for other object kinds or objects of the same kind within a different scope/namespace ("space"). (example: dlz-f3a90de) |
api_version | string | APIVersion defines the schema version of this representation of a resource. (networking/v1) |
kind | string | Kind defines the object this REST resource represents. (DnsRecord) |
metadata | object | ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. |
spec | object | The desired state of the Dns Record |
status | object | The status of the Dns Record |
DNS Record.
| Name | Datatype | Description |
|---|---|---|
id | string | ID is the "natural identifier" for an object within its scope/namespace; it is normally unique across time but not space. That is, you can assume that the ID will not be reclaimed and reused after an object is deleted ("time"); however, it may collide with IDs for other object kinds or objects of the same kind within a different scope/namespace ("space"). (example: dlz-f3a90de) |
api_version | string | APIVersion defines the schema version of this representation of a resource. (networking/v1) |
kind | string | Kind defines the object this REST resource represents. (DnsRecord) |
metadata | object | ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. |
spec | object | The desired state of the Dns Record |
status | object | The status of the Dns Record |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_networking_v1_dns_record | select | environment, id | Make a request to read a DNS record. | |
list_networking_v1_dns_records | select | environment | spec.display_name, spec.domain, spec.gateway, resource, page_size, page_token | Retrieve a sorted, filtered, paginated list of all DNS records. |
create_networking_v1_dns_record | insert | spec | Make a request to create a DNS record. | |
update_networking_v1_dns_record | update | id, spec | Make a request to update a DNS record. | |
delete_networking_v1_dns_record | delete | environment, id | Make a request to delete a DNS record. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
environment | string | Scope the operation to the given environment. (example: env-00000) |
id | string | The unique identifier for the DNS record. |
page_size | integer | A pagination size for collection requests. |
page_token | string | An opaque pagination token for collection requests. |
resource | array | Filter the results by exact match for resource. Pass multiple times to see results matching any of the values. (example: [ap-11111, ap-22222]) |
spec.display_name | array | Filter the results by exact match for spec.display_name. Pass multiple times to see results matching any of the values. (example: [prod-dnsrec-1, prod-dnsrec-2]) |
spec.domain | array | Filter the results by exact match for spec.domain. Pass multiple times to see results matching any of the values. (example: [example.com, example2.com]) |
spec.gateway | array | Filter the results by exact match for spec.gateway. Pass multiple times to see results matching any of the values. (example: [gw-00000, gw-00001]) |
SELECT examples
- get_networking_v1_dns_record
- list_networking_v1_dns_records
Make a request to read a DNS record.
SELECT
id,
api_version,
kind,
metadata,
spec,
status
FROM confluent.networking.dns_records
WHERE environment = '{{ environment }}' -- required
AND id = '{{ id }}' -- required
;
Retrieve a sorted, filtered, paginated list of all DNS records.
SELECT
id,
api_version,
kind,
metadata,
spec,
status
FROM confluent.networking.dns_records
WHERE environment = '{{ environment }}' -- required
AND spec.display_name = '{{ spec.display_name }}'
AND spec.domain = '{{ spec.domain }}'
AND spec.gateway = '{{ spec.gateway }}'
AND resource = '{{ resource }}'
AND page_size = '{{ page_size }}'
AND page_token = '{{ page_token }}'
;
INSERT examples
- create_networking_v1_dns_record
- Manifest
Make a request to create a DNS record.
INSERT INTO confluent.networking.dns_records (
spec
)
SELECT
'{{ spec }}' /* required */
RETURNING
id,
api_version,
kind,
metadata,
spec,
status
;
# Description fields are for documentation purposes
- name: dns_records
props:
- name: spec
description: |
The desired state of the Dns Record
value:
display_name: "{{ display_name }}"
domain: "{{ domain }}"
config:
kind: "{{ kind }}"
resource_id: "{{ resource_id }}"
environment:
id: "{{ id }}"
environment: "{{ environment }}"
related: "{{ related }}"
resource_name: "{{ resource_name }}"
api_version: "{{ api_version }}"
kind: "{{ kind }}"
gateway:
id: "{{ id }}"
environment: "{{ environment }}"
related: "{{ related }}"
resource_name: "{{ resource_name }}"
api_version: "{{ api_version }}"
kind: "{{ kind }}"
UPDATE examples
- update_networking_v1_dns_record
Make a request to update a DNS record.
UPDATE confluent.networking.dns_records
SET
spec = '{{ spec }}'
WHERE
id = '{{ id }}' --required
AND spec = '{{ spec }}' --required
RETURNING
id,
api_version,
kind,
metadata,
spec,
status;
DELETE examples
- delete_networking_v1_dns_record
Make a request to delete a DNS record.
DELETE FROM confluent.networking.dns_records
WHERE environment = '{{ environment }}' --required
AND id = '{{ id }}' --required
;