Skip to main content

dns_records

Creates, updates, deletes, gets or lists a dns_records resource.

Overview

Namedns_records
TypeResource
Idconfluent.networking.dns_records

Fields

NameDatatypeDescription
idstringID 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").
_specobject
api_versionstringAPIVersion defines the schema version of this representation of a resource.
kindstringKind defines the object this REST resource represents.
metadata``ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
specobjectThe desired state of the Dns Record
statusobjectThe status of the Dns Record

Methods

NameAccessible byRequired ParamsDescription
get_networking_v1dns_recordSELECTenvironment, idGeneral Availability Make a request to read a DNS record.
list_networking_v1dns_recordsSELECTenvironmentGeneral Availability Retrieve a sorted, filtered, paginated list of all DNS records.
create_networking_v1dns_recordINSERTGeneral Availability Make a request to create a DNS record.
delete_networking_v1dns_recordDELETEenvironment, idGeneral Availability Make a request to delete a DNS record.
update_networking_v1dns_recordUPDATEidGeneral Availability Make a request to update a DNS record.

SELECT examples

General Availability Retrieve a sorted, filtered, paginated list of all DNS records.

SELECT
id,
_spec,
api_version,
kind,
metadata,
spec,
status
FROM confluent.networking.dns_records
WHERE environment = '{{ environment }}';

INSERT example

Use the following StackQL query and manifest file to create a new dns_records resource.

/*+ create */
INSERT INTO confluent.networking.dns_records (
data__spec
)
SELECT
'{{ spec }}'
;

UPDATE example

Updates a dns_records resource.

/*+ update */
UPDATE confluent.networking.dns_records
SET
spec = '{{ spec }}'
WHERE
id = '{{ id }}';

DELETE example

Deletes the specified dns_records resource.

/*+ delete */
DELETE FROM confluent.networking.dns_records
WHERE environment = '{{ environment }}'
AND id = '{{ id }}';