Endpoint
Endpoint object
- namestring
Output only. The full resource path of the endpoint. Format: projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}
- uidstring
System-generated unique ID for the endpoint.
- parentstring
The branch containing this endpoint (API resource hierarchy). Format: projects/{project_id}/branches/{branch_id}
- create_timestring
A timestamp indicating when the compute endpoint was created.
- update_timestring
A timestamp indicating when the compute endpoint was last updated.
- specobject
The spec contains the compute endpoint configuration, including autoscaling limits, suspend timeout, and disabled state.
Show child attributesHide child attributes
- endpoint_typestring
The endpoint type. A branch can only have one READ_WRITE endpoint.
- autoscaling_limit_min_cudouble
The minimum number of Compute Units. Minimum value is 0.5.
- autoscaling_limit_max_cudouble
The maximum number of Compute Units. The maximum value is 64. The difference between the minimum and maximum Compute Units (max - min) must not exceed 16.
- disabledboolean
Whether to restrict connections to the compute endpoint. Enabling this option schedules a suspend compute operation. A disabled compute endpoint cannot be enabled by a connection or console action.
- suspend_timeout_durationstring
Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week). Mutually exclusive with
no_suspension. When updating, usespec.suspensionin the update_mask.
- no_suspensionboolean
When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided. Mutually exclusive with
suspend_timeout_duration. When updating, usespec.suspensionin the update_mask.
- settingsobject
Show child attributesHide child attributes
- pg_settingsobject
A raw representation of Postgres settings.
- groupobject
Settings for optional HA configuration of the endpoint. If unspecified, the endpoint defaults to non HA settings, with a single compute backing the endpoint (and no readable secondaries for Read/Write endpoints).
Show child attributesHide child attributes
- minint32
The minimum number of computes in the endpoint group. Currently, this must be equal to max. This must be greater than or equal to 1.
- maxint32
The maximum number of computes in the endpoint group. Currently, this must be equal to min. Set to 1 for single compute endpoints, to disable HA. To manually suspend all computes in an endpoint group, set disabled to true on the EndpointSpec.
- enable_readable_secondariesboolean
Whether to allow read-only connections to read-write endpoints. Only relevant for read-write endpoints where size.max > 1.
- statusobject
Current operational status of the compute endpoint.
Show child attributesHide child attributes
- endpoint_typestring
The endpoint type. A branch can only have one READ_WRITE endpoint.
- hostsobject
Contains host information for connecting to the endpoint.
Show child attributesHide child attributes
- hoststring
The hostname to connect to this endpoint. For read-write endpoints, this is a read-write hostname which connects to the primary compute. For read-only endpoints, this is a read-only hostname which allows read-only operations.
- read_only_hoststring
An optionally defined read-only host for the endpoint, without pooling. For read-only endpoints, this attribute is always defined and is equivalent to host. For read-write endpoints, this attribute is defined if the enclosing endpoint is a group with greater than 1 computes configured, and has readable secondaries enabled.
- read_write_pooled_hoststring
The read-write hostname of the compute endpoint, with pooling. This attribute is only defined for read-write endpoints.
- read_only_pooled_hoststring
The read-only hostname of the compute endpoint, with pooling. This attribute is always defined for read-only endpoints, and may be defined for read-write endpoints if configured with read replicas and allow read-only connections.
- last_active_timestring
A timestamp indicating when the compute endpoint was last active.
- autoscaling_limit_min_cudouble
The minimum number of Compute Units.
- autoscaling_limit_max_cudouble
The maximum number of Compute Units. The maximum value is 64. The difference between the minimum and maximum Compute Units (max - min) must not exceed 16.
- current_statestring
- pending_statestring
- disabledboolean
Whether to restrict connections to the compute endpoint. Enabling this option schedules a suspend compute operation. A disabled compute endpoint cannot be enabled by a connection or console action.
- suspend_timeout_durationstring
Duration of inactivity after which the compute endpoint is automatically suspended.
- settingsobject
Show child attributesHide child attributes
- pg_settingsobject
A raw representation of Postgres settings.
- groupobject
Details on the HA configuration of the endpoint.
Show child attributesHide child attributes
- minint32
The minimum number of computes in the endpoint group. Currently, this must be equal to max. This must be greater than or equal to 1.
- maxint32
The maximum number of computes in the endpoint group. Currently, this must be equal to min. Set to 1 for single compute endpoints, to disable HA. To manually suspend all computes in an endpoint group, set disabled to true on the EndpointSpec.
- enable_readable_secondariesboolean
Whether read-only connections to read-write endpoints are allowed. Only relevant if read replicas are configured by specifying size.max > 1.
- endpoint_idstring
Part of the resource name.
- endpoint_idstring
The part of the name, chosen by the user when the resource was created.
Get GA
GET
Retrieves information about the specified compute endpoint, including its connection details and operational state.
API scopes: postgres
Parameters
- namestringpath
The full resource path of the endpoint to retrieve. Format: projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}
Response
Returns the Endpoint object.
List GA
GET
Returns a paginated list of compute endpoints in the branch.
API scopes: postgres
Parameters
- parentstringpath
The Branch that owns this collection of endpoints. Format: projects/{project_id}/branches/{branch_id}
- page_tokenstringquery
Page token from a previous response. If not provided, returns the first page.
- page_sizeint32query
Upper bound for items returned. Cannot be negative.
Response
Returns a list of Endpoint objects.
Create GA
POST
Creates a new compute endpoint in the branch.
API scopes: postgres
Parameters
- parentstringpath
The Branch where this Endpoint will be created. Format: projects/{project_id}/branches/{branch_id}
- endpoint_idstringquery
The ID to use for the Endpoint. This becomes the final component of the endpoint's resource name. The ID is required and must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens. For example,
primarybecomesprojects/my-app/branches/development/endpoints/primary.
- replace_existingbooleanquery
If true, update the endpoint if it already exists instead of returning an error.
Request body
- endpointobject
The Endpoint to create.
Show child attributesHide child attributes
- namestring
Output only. The full resource path of the endpoint. Format: projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}
- uidstring
System-generated unique ID for the endpoint.
- parentstring
The branch containing this endpoint (API resource hierarchy). Format: projects/{project_id}/branches/{branch_id}
- create_timestring
A timestamp indicating when the compute endpoint was created.
- update_timestring
A timestamp indicating when the compute endpoint was last updated.
- specobject
The spec contains the compute endpoint configuration, including autoscaling limits, suspend timeout, and disabled state.
Show child attributesHide child attributes
- endpoint_typestring
The endpoint type. A branch can only have one READ_WRITE endpoint.
- autoscaling_limit_min_cudouble
The minimum number of Compute Units. Minimum value is 0.5.
- autoscaling_limit_max_cudouble
The maximum number of Compute Units. The maximum value is 64. The difference between the minimum and maximum Compute Units (max - min) must not exceed 16.
- disabledboolean
Whether to restrict connections to the compute endpoint. Enabling this option schedules a suspend compute operation. A disabled compute endpoint cannot be enabled by a connection or console action.
- suspend_timeout_durationstringRequired
Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week). Mutually exclusive with
no_suspension. When updating, usespec.suspensionin the update_mask.
- no_suspensionbooleanRequired
When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided. Mutually exclusive with
suspend_timeout_duration. When updating, usespec.suspensionin the update_mask.
- settingsobject
Show child attributesHide child attributes
- pg_settingsobject
A raw representation of Postgres settings.
- groupobject
Settings for optional HA configuration of the endpoint. If unspecified, the endpoint defaults to non HA settings, with a single compute backing the endpoint (and no readable secondaries for Read/Write endpoints).
Show child attributesHide child attributes
- minint32
The minimum number of computes in the endpoint group. Currently, this must be equal to max. This must be greater than or equal to 1.
- maxint32
The maximum number of computes in the endpoint group. Currently, this must be equal to min. Set to 1 for single compute endpoints, to disable HA. To manually suspend all computes in an endpoint group, set disabled to true on the EndpointSpec.
- enable_readable_secondariesboolean
Whether to allow read-only connections to read-write endpoints. Only relevant for read-write endpoints where size.max > 1.
- statusobject
Current operational status of the compute endpoint.
Show child attributesHide child attributes
- endpoint_typestring
The endpoint type. A branch can only have one READ_WRITE endpoint.
- hostsobject
Contains host information for connecting to the endpoint.
Show child attributesHide child attributes
- hoststring
The hostname to connect to this endpoint. For read-write endpoints, this is a read-write hostname which connects to the primary compute. For read-only endpoints, this is a read-only hostname which allows read-only operations.
- read_only_hoststring
An optionally defined read-only host for the endpoint, without pooling. For read-only endpoints, this attribute is always defined and is equivalent to host. For read-write endpoints, this attribute is defined if the enclosing endpoint is a group with greater than 1 computes configured, and has readable secondaries enabled.
- read_write_pooled_hoststring
The read-write hostname of the compute endpoint, with pooling. This attribute is only defined for read-write endpoints.
- read_only_pooled_hoststring
The read-only hostname of the compute endpoint, with pooling. This attribute is always defined for read-only endpoints, and may be defined for read-write endpoints if configured with read replicas and allow read-only connections.
- last_active_timestring
A timestamp indicating when the compute endpoint was last active.
- autoscaling_limit_min_cudouble
The minimum number of Compute Units.
- autoscaling_limit_max_cudouble
The maximum number of Compute Units. The maximum value is 64. The difference between the minimum and maximum Compute Units (max - min) must not exceed 16.
- current_statestring
- pending_statestring
- disabledboolean
Whether to restrict connections to the compute endpoint. Enabling this option schedules a suspend compute operation. A disabled compute endpoint cannot be enabled by a connection or console action.
- suspend_timeout_durationstring
Duration of inactivity after which the compute endpoint is automatically suspended.
- settingsobject
Show child attributesHide child attributes
- pg_settingsobject
A raw representation of Postgres settings.
- groupobject
Details on the HA configuration of the endpoint.
Show child attributesHide child attributes
- minint32
The minimum number of computes in the endpoint group. Currently, this must be equal to max. This must be greater than or equal to 1.
- maxint32
The maximum number of computes in the endpoint group. Currently, this must be equal to min. Set to 1 for single compute endpoints, to disable HA. To manually suspend all computes in an endpoint group, set disabled to true on the EndpointSpec.
- enable_readable_secondariesboolean
Whether read-only connections to read-write endpoints are allowed. Only relevant if read replicas are configured by specifying size.max > 1.
- endpoint_idstring
Part of the resource name.
- endpoint_idstring
The part of the name, chosen by the user when the resource was created.
Response
- namestring
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the
nameshould be a resource name ending withoperations/{unique_id}.
- metadataobject
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata.
- doneboolean
If the value is
false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- errorobjectRequired
The error result of the operation in case of failure or cancellation.
Show child attributesHide child attributes
- error_codestring
- messagestring
- stack_tracestring
- detailsarray of object
- responseobjectRequired
The normal, successful response of the operation.
Update GA
PATCH
Updates the specified compute endpoint. You can update autoscaling limits, suspend timeout, or enable/disable the compute endpoint.
API scopes: postgres
Parameters
- endpointobjectpath
The Endpoint to update.
The endpoint's
namefield is used to identify the endpoint to update. Format: projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}Show child attributesHide child attributes
- namestring
Output only. The full resource path of the endpoint. Format: projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}
- uidstring
System-generated unique ID for the endpoint.
- parentstring
The branch containing this endpoint (API resource hierarchy). Format: projects/{project_id}/branches/{branch_id}
- create_timestring
A timestamp indicating when the compute endpoint was created.
- update_timestring
A timestamp indicating when the compute endpoint was last updated.
- specobject
The spec contains the compute endpoint configuration, including autoscaling limits, suspend timeout, and disabled state.
Show child attributesHide child attributes
- endpoint_typestring
The endpoint type. A branch can only have one READ_WRITE endpoint.
- autoscaling_limit_min_cudouble
The minimum number of Compute Units. Minimum value is 0.5.
- autoscaling_limit_max_cudouble
The maximum number of Compute Units. The maximum value is 64. The difference between the minimum and maximum Compute Units (max - min) must not exceed 16.
- disabledboolean
Whether to restrict connections to the compute endpoint. Enabling this option schedules a suspend compute operation. A disabled compute endpoint cannot be enabled by a connection or console action.
- suspend_timeout_durationstringRequired
Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week). Mutually exclusive with
no_suspension. When updating, usespec.suspensionin the update_mask.
- no_suspensionbooleanRequired
When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided. Mutually exclusive with
suspend_timeout_duration. When updating, usespec.suspensionin the update_mask.
- settingsobject
Show child attributesHide child attributes
- pg_settingsobject
A raw representation of Postgres settings.
- groupobject
Settings for optional HA configuration of the endpoint. If unspecified, the endpoint defaults to non HA settings, with a single compute backing the endpoint (and no readable secondaries for Read/Write endpoints).
Show child attributesHide child attributes
- minint32
The minimum number of computes in the endpoint group. Currently, this must be equal to max. This must be greater than or equal to 1.
- maxint32
The maximum number of computes in the endpoint group. Currently, this must be equal to min. Set to 1 for single compute endpoints, to disable HA. To manually suspend all computes in an endpoint group, set disabled to true on the EndpointSpec.
- enable_readable_secondariesboolean
Whether to allow read-only connections to read-write endpoints. Only relevant for read-write endpoints where size.max > 1.
- statusobject
Current operational status of the compute endpoint.
Show child attributesHide child attributes
- endpoint_typestring
The endpoint type. A branch can only have one READ_WRITE endpoint.
- hostsobject
Contains host information for connecting to the endpoint.
Show child attributesHide child attributes
- hoststring
The hostname to connect to this endpoint. For read-write endpoints, this is a read-write hostname which connects to the primary compute. For read-only endpoints, this is a read-only hostname which allows read-only operations.
- read_only_hoststring
An optionally defined read-only host for the endpoint, without pooling. For read-only endpoints, this attribute is always defined and is equivalent to host. For read-write endpoints, this attribute is defined if the enclosing endpoint is a group with greater than 1 computes configured, and has readable secondaries enabled.
- read_write_pooled_hoststring
The read-write hostname of the compute endpoint, with pooling. This attribute is only defined for read-write endpoints.
- read_only_pooled_hoststring
The read-only hostname of the compute endpoint, with pooling. This attribute is always defined for read-only endpoints, and may be defined for read-write endpoints if configured with read replicas and allow read-only connections.
- last_active_timestring
A timestamp indicating when the compute endpoint was last active.
- autoscaling_limit_min_cudouble
The minimum number of Compute Units.
- autoscaling_limit_max_cudouble
The maximum number of Compute Units. The maximum value is 64. The difference between the minimum and maximum Compute Units (max - min) must not exceed 16.
- current_statestring
- pending_statestring
- disabledboolean
Whether to restrict connections to the compute endpoint. Enabling this option schedules a suspend compute operation. A disabled compute endpoint cannot be enabled by a connection or console action.
- suspend_timeout_durationstring
Duration of inactivity after which the compute endpoint is automatically suspended.
- settingsobject
Show child attributesHide child attributes
- pg_settingsobject
A raw representation of Postgres settings.
- groupobject
Details on the HA configuration of the endpoint.
Show child attributesHide child attributes
- minint32
The minimum number of computes in the endpoint group. Currently, this must be equal to max. This must be greater than or equal to 1.
- maxint32
The maximum number of computes in the endpoint group. Currently, this must be equal to min. Set to 1 for single compute endpoints, to disable HA. To manually suspend all computes in an endpoint group, set disabled to true on the EndpointSpec.
- enable_readable_secondariesboolean
Whether read-only connections to read-write endpoints are allowed. Only relevant if read replicas are configured by specifying size.max > 1.
- endpoint_idstring
Part of the resource name.
- endpoint_idstring
The part of the name, chosen by the user when the resource was created.
- update_maskstringquery
The list of fields to update.
Response
- namestring
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the
nameshould be a resource name ending withoperations/{unique_id}.
- metadataobject
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata.
- doneboolean
If the value is
false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- errorobjectRequired
The error result of the operation in case of failure or cancellation.
Show child attributesHide child attributes
- error_codestring
- messagestring
- stack_tracestring
- detailsarray of object
- responseobjectRequired
The normal, successful response of the operation.
Delete GA
DELETE
Deletes the specified compute endpoint.
API scopes: postgres
Parameters
- namestringpath
The full resource path of the endpoint to delete. Format: projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}
Response
- namestring
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the
nameshould be a resource name ending withoperations/{unique_id}.
- metadataobject
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata.
- doneboolean
If the value is
false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- errorobjectRequired
The error result of the operation in case of failure or cancellation.
Show child attributesHide child attributes
- error_codestring
- messagestring
- stack_tracestring
- detailsarray of object
- responseobjectRequired
The normal, successful response of the operation.