This is a cache of https://docs.okd.io/latest/rest_api/operator_apis/dnsrecord-ingress-operator-openshift-io-v1.html. It is a snapshot of the page at 2024-11-19T19:47:39.119+0000.
<strong>dns</strong>Record [ingress.operator.openshift.io/v1] - Operator APIs | API reference | OKD 4
×
Description

dnsRecord is a dns record managed in the zones defined by dns.config.openshift.io/cluster .spec.publicZone and .spec.privateZone. Cluster admin manipulation of this resource is not supported. This resource is only for internal communication of OpenShift operators. If dnsManagementPolicy is "Unmanaged", the operator will not be responsible for managing the dns records on the cloud provider. Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).

Type

object

Specification

Property Type Description

apiVersion

string

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

kind

string

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

metadata

ObjectMeta

Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

spec

object

spec is the specification of the desired behavior of the dnsRecord.

status

object

status is the most recently observed status of the dnsRecord.

.spec

Description

spec is the specification of the desired behavior of the dnsRecord.

Type

object

Required
  • dnsManagementPolicy

  • dnsName

  • recordTTL

  • recordType

  • targets

Property Type Description

dnsManagementPolicy

string

dnsManagementPolicy denotes the current policy applied on the dns record. Records that have policy set as "Unmanaged" are ignored by the ingress operator. This means that the dns record on the cloud provider is not managed by the operator, and the "Published" status condition will be updated to "Unknown" status, since it is externally managed. Any existing record on the cloud provider can be deleted at the discretion of the cluster admin. This field defaults to Managed. Valid values are "Managed" and "Unmanaged".

dnsName

string

dnsName is the hostname of the dns record

recordTTL

integer

recordTTL is the record TTL in seconds. If zero, the default is 30. RecordTTL will not be used in AWS regions Alias targets, but will be used in CNAME targets, per AWS API contract.

recordType

string

recordType is the dns record type. For example, "A" or "CNAME".

targets

array (string)

targets are record targets.

.status

Description

status is the most recently observed status of the dnsRecord.

Type

object

Property Type Description

observedGeneration

integer

observedGeneration is the most recently observed generation of the dnsRecord. When the dnsRecord is updated, the controller updates the corresponding record in each managed zone. If an update for a particular zone fails, that failure is recorded in the status condition for the zone so that the controller can determine that it needs to retry the update for that specific zone.

zones

array

zones are the status of the record in each zone.

zones[]

object

dnsZoneStatus is the status of a record within a specific zone.

.status.zones

Description

zones are the status of the record in each zone.

Type

array

.status.zones[]

Description

dnsZoneStatus is the status of a record within a specific zone.

Type

object

Property Type Description

conditions

array

conditions are any conditions associated with the record in the zone. If publishing the record succeeds, the "Published" condition will be set with status "True" and upon failure it will be set to "False" along with the reason and message describing the cause of the failure.

conditions[]

object

dnsZoneCondition is just the standard condition fields.

dnsZone

object

dnsZone is the zone where the record is published.

.status.zones[].conditions

Description

conditions are any conditions associated with the record in the zone. If publishing the record succeeds, the "Published" condition will be set with status "True" and upon failure it will be set to "False" along with the reason and message describing the cause of the failure.

Type

array

.status.zones[].conditions[]

Description

dnsZoneCondition is just the standard condition fields.

Type

object

Required
  • status

  • type

Property Type Description

lastTransitionTime

string

message

string

reason

string

status

string

type

string

.status.zones[].dnsZone

Description

dnsZone is the zone where the record is published.

Type

object

Property Type Description

id

string

id is the identifier that can be used to find the dns hosted zone. on AWS zone can be fetched using ID as id in [1] on Azure zone can be fetched using ID as a pre-determined name in [2], on GCP zone can be fetched using ID as a pre-determined name in [3]. [1]: https://docs.aws.amazon.com/cli/latest/reference/route53/get-hosted-zone.html#options [2]: https://docs.microsoft.com/en-us/cli/azure/network/dns/zone?view=azure-cli-latest#az-network-dns-zone-show [3]: https://cloud.google.com/dns/docs/reference/v1/managedZones/get

tags

object (string)

tags can be used to query the dns hosted zone. on AWS, resourcegroupstaggingapi [1] can be used to fetch a zone using Tags as tag-filters, [1]: https://docs.aws.amazon.com/cli/latest/reference/resourcegroupstaggingapi/get-resources.html#options

API endpoints

The following API endpoints are available:

  • /apis/ingress.operator.openshift.io/v1/dnsrecords

    • GET: list objects of kind dnsRecord

  • /apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords

    • DELETE: delete collection of dnsRecord

    • GET: list objects of kind dnsRecord

    • POST: create a dnsRecord

  • /apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords/{name}

    • DELETE: delete a dnsRecord

    • GET: read the specified dnsRecord

    • PATCH: partially update the specified dnsRecord

    • PUT: replace the specified dnsRecord

  • /apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords/{name}/status

    • GET: read status of the specified dnsRecord

    • PATCH: partially update status of the specified dnsRecord

    • PUT: replace status of the specified dnsRecord

/apis/ingress.operator.openshift.io/v1/dnsrecords

HTTP method

GET

Description

list objects of kind dnsRecord

Table 1. HTTP responses
HTTP code Reponse body

200 - OK

dnsRecordList schema

401 - Unauthorized

Empty

/apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords

HTTP method

DELETE

Description

delete collection of dnsRecord

Table 2. HTTP responses
HTTP code Reponse body

200 - OK

Status schema

401 - Unauthorized

Empty

HTTP method

GET

Description

list objects of kind dnsRecord

Table 3. HTTP responses
HTTP code Reponse body

200 - OK

dnsRecordList schema

401 - Unauthorized

Empty

HTTP method

POST

Description

create a dnsRecord

Table 4. Query parameters
Parameter Type Description

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 5. Body parameters
Parameter Type Description

body

dnsRecord schema

Table 6. HTTP responses
HTTP code Reponse body

200 - OK

dnsRecord schema

201 - Created

dnsRecord schema

202 - Accepted

dnsRecord schema

401 - Unauthorized

Empty

/apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords/{name}

Table 7. Global path parameters
Parameter Type Description

name

string

name of the dnsRecord

HTTP method

DELETE

Description

delete a dnsRecord

Table 8. Query parameters
Parameter Type Description

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

Table 9. HTTP responses
HTTP code Reponse body

200 - OK

Status schema

202 - Accepted

Status schema

401 - Unauthorized

Empty

HTTP method

GET

Description

read the specified dnsRecord

Table 10. HTTP responses
HTTP code Reponse body

200 - OK

dnsRecord schema

401 - Unauthorized

Empty

HTTP method

PATCH

Description

partially update the specified dnsRecord

Table 11. Query parameters
Parameter Type Description

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 12. HTTP responses
HTTP code Reponse body

200 - OK

dnsRecord schema

401 - Unauthorized

Empty

HTTP method

PUT

Description

replace the specified dnsRecord

Table 13. Query parameters
Parameter Type Description

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 14. Body parameters
Parameter Type Description

body

dnsRecord schema

Table 15. HTTP responses
HTTP code Reponse body

200 - OK

dnsRecord schema

201 - Created

dnsRecord schema

401 - Unauthorized

Empty

/apis/ingress.operator.openshift.io/v1/namespaces/{namespace}/dnsrecords/{name}/status

Table 16. Global path parameters
Parameter Type Description

name

string

name of the dnsRecord

HTTP method

GET

Description

read status of the specified dnsRecord

Table 17. HTTP responses
HTTP code Reponse body

200 - OK

dnsRecord schema

401 - Unauthorized

Empty

HTTP method

PATCH

Description

partially update status of the specified dnsRecord

Table 18. Query parameters
Parameter Type Description

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 19. HTTP responses
HTTP code Reponse body

200 - OK

dnsRecord schema

401 - Unauthorized

Empty

HTTP method

PUT

Description

replace status of the specified dnsRecord

Table 20. Query parameters
Parameter Type Description

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 21. Body parameters
Parameter Type Description

body

dnsRecord schema

Table 22. HTTP responses
HTTP code Reponse body

200 - OK

dnsRecord schema

201 - Created

dnsRecord schema

401 - Unauthorized

Empty