Resource: Endpoint
Endpoint resource.
| JSON representation |
|---|
{ "name": string, "displayName": string, "uid": string, "createTime": string, "updateTime": string, "deleteTime": string, "endpointType": enum ( |
| Fields | |
|---|---|
name |
Output only. Identifier. The name of the endpoint resource with the format: * projects/{project}/locations/{region}/endpoints/{endpointId} where the endpoint ID segment should satisfy the regex expression |
displayName |
User-settable and human-readable display name for the Endpoint. |
uid |
Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted. |
createTime |
Output only. Create time stamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. Update time stamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
deleteTime |
Output only. Delete time stamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endpointType |
The type of the endpoint, either write or read. |
targetInstances[] |
The names of the target instances for the endpoint, should be of format projects/{project}/locations/{region}/clusters/{cluster}/instances/{instance}. For write endpoint, there is only one target instance which has to be a primary instance. For read endpoint, there can be multiple target instances which can be read or secondary instances. After a cross-region failover or switchover operation, the endpoint will be associated with a different target instance. This change will be reflected in the effectiveTargetInstances field. |
effectiveTargetInstances[] |
Output only. The effective target instances that the endpoint is associated with. This is a list of target instance names, e.g. projects/{projectNumber}/locations/{location}/clusters/{clusterId}/instances/{instanceId} For write endpoint, there is only one effective target instance which has to be a primary instance. Effective target instances are only different from target instances after a switchover or cross-region failover operation. Otherwise, effectiveTargetInstances are the same as targetInstances. Note that after a cross-region failover operation, the effectiveTargetInstances can be stale until the operation to update the endpoint is complete. |
dnsConfig |
Output only. The DNS config for the endpoint. Each endpoint is associated with a specific DNS name and the DNS type. The DNS targets are the IP addresses of the target instances. The dns_type is the type of the DNS record, eg. Type "A" or Type "CNAME". This field is not configurable by the user, and it is updated when user specifies the target instances. |
state |
Output only. The state of the endpoint. |
etag |
For Resource freshness validation (https://google.aip.dev/154) |
reconciling |
Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Endpoint does not match the user's intended state, and the service is actively updating the Endpoint to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance. |
annotations |
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 An object containing a list of |
EndpointType
The type of the endpoint
| Enums | |
|---|---|
ENDPOINT_TYPE_UNSPECIFIED |
Unspecified endpoint type |
WRITE_ENDPOINT |
Write endpoint, which is associated with a primary instance. |
READ_ENDPOINT |
Read endpoint, which is associated with read or secondary instances. |
DNSConfig
The DNS config for the endpoint, containing the DNS record name, type and targets.
| JSON representation |
|---|
{ "dnsName": string, "dnsRecordType": string } |
| Fields | |
|---|---|
dnsName |
The fully qualified domain name (FQDN) of the DNS record, e.g., " |
dnsRecordType |
The type of the DNS record, e.g., "A", "AAAA", "CNAME". |
State
Endpoint State
| Enums | |
|---|---|
STATE_UNSPECIFIED |
Unspecified state |
READY |
The endpoint is active and ready to use. |
CREATING |
The endpoint is being created. |
UPDATING |
The endpoint is being updated. |
DELETING |
The endpoint is being deleted. |
Methods |
|
|---|---|
|
Creates a new Endpoint in a given project and location. |
|
Deletes a single Endpoint. |
|
Gets details of a single Endpoint. |
|
Lists Endpoints in a given project and location. |
|
Updates the parameters of a single Endpoint. |