Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class PscInstanceConfig.
PscInstanceConfig contains PSC related configuration at an
instance level.
Generated from protobuf messagegoogle.cloud.alloydb.v1.Instance.PscInstanceConfig
Namespace
Google \ Cloud \ AlloyDb \ V1 \ Instance
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ service_attachment_link
string
Output only. The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format ofprojects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>
↳ allowed_consumer_projects
array
Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
↳ psc_dns_name
string
Output only. The DNS name of the instance for PSC connectivity. Name convention:
Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. Currently we only support 0 or 1 PSC interface.
Optional. Configurations for setting up PSC service automation.
getServiceAttachmentLink
Output only. The service attachment created when Private
Service Connect (PSC) is enabled for the instance.
The name of the resource will be in the format ofprojects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>
Returns
Type
Description
string
setServiceAttachmentLink
Output only. The service attachment created when Private
Service Connect (PSC) is enabled for the instance.
The name of the resource will be in the format ofprojects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getAllowedConsumerProjects
Optional. List of consumer projects that are allowed to create
PSC endpoints to service-attachments to this instance.
Optional. List of consumer projects that are allowed to create
PSC endpoints to service-attachments to this instance.
Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
getPscDnsName
Output only. The DNS name of the instance for PSC connectivity.
Name convention:
Returns
Type
Description
string
setPscDnsName
Output only. The DNS name of the instance for PSC connectivity.
Name convention:
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPscInterfaceConfigs
Optional. Configurations for setting up PSC interfaces attached to the
instance which are used for outbound connectivity. Only primary instances
can have PSC interface attached. Currently we only support 0 or 1 PSC
interface.
Optional. Configurations for setting up PSC interfaces attached to the
instance which are used for outbound connectivity. Only primary instances
can have PSC interface attached. Currently we only support 0 or 1 PSC
interface.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud AlloyDB for PostgreSQL V1 Client - Class PscInstanceConfig (1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/php/docs/reference/cloud-alloydb/latest/V1.Instance.PscInstanceConfig)\n- [1.4.0](/php/docs/reference/cloud-alloydb/1.4.0/V1.Instance.PscInstanceConfig)\n- [1.3.0](/php/docs/reference/cloud-alloydb/1.3.0/V1.Instance.PscInstanceConfig)\n- [1.2.0](/php/docs/reference/cloud-alloydb/1.2.0/V1.Instance.PscInstanceConfig)\n- [1.1.3](/php/docs/reference/cloud-alloydb/1.1.3/V1.Instance.PscInstanceConfig)\n- [1.0.0](/php/docs/reference/cloud-alloydb/1.0.0/V1.Instance.PscInstanceConfig)\n- [0.10.3](/php/docs/reference/cloud-alloydb/0.10.3/V1.Instance.PscInstanceConfig)\n- [0.9.0](/php/docs/reference/cloud-alloydb/0.9.0/V1.Instance.PscInstanceConfig)\n- [0.8.0](/php/docs/reference/cloud-alloydb/0.8.0/V1.Instance.PscInstanceConfig)\n- [0.7.1](/php/docs/reference/cloud-alloydb/0.7.1/V1.Instance.PscInstanceConfig)\n- [0.6.0](/php/docs/reference/cloud-alloydb/0.6.0/V1.Instance.PscInstanceConfig)\n- [0.5.0](/php/docs/reference/cloud-alloydb/0.5.0/V1.Instance.PscInstanceConfig)\n- [0.4.0](/php/docs/reference/cloud-alloydb/0.4.0/V1.Instance.PscInstanceConfig)\n- [0.3.0](/php/docs/reference/cloud-alloydb/0.3.0/V1.Instance.PscInstanceConfig)\n- [0.2.1](/php/docs/reference/cloud-alloydb/0.2.1/V1.Instance.PscInstanceConfig)\n- [0.1.3](/php/docs/reference/cloud-alloydb/0.1.3/V1.Instance.PscInstanceConfig) \nReference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class PscInstanceConfig.\n\nPscInstanceConfig contains PSC related configuration at an\ninstance level.\n\nGenerated from protobuf message `google.cloud.alloydb.v1.Instance.PscInstanceConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AlloyDb \\\\ V1 \\\\ Instance\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getServiceAttachmentLink\n\nOutput only. The service attachment created when Private\nService Connect (PSC) is enabled for the instance.\n\nThe name of the resource will be in the format of\n`projects/\u003calloydb-tenant-project-number\u003e/regions/\u003cregion-name\u003e/serviceAttachments/\u003cservice-attachment-name\u003e`\n\n### setServiceAttachmentLink\n\nOutput only. The service attachment created when Private\nService Connect (PSC) is enabled for the instance.\n\nThe name of the resource will be in the format of\n`projects/\u003calloydb-tenant-project-number\u003e/regions/\u003cregion-name\u003e/serviceAttachments/\u003cservice-attachment-name\u003e`\n\n### getAllowedConsumerProjects\n\nOptional. List of consumer projects that are allowed to create\nPSC endpoints to service-attachments to this instance.\n\n### setAllowedConsumerProjects\n\nOptional. List of consumer projects that are allowed to create\nPSC endpoints to service-attachments to this instance.\n\n### getPscDnsName\n\nOutput only. The DNS name of the instance for PSC connectivity.\n\nName convention:\n\n\n### setPscDnsName\n\nOutput only. The DNS name of the instance for PSC connectivity.\n\nName convention:\n\n\n### getPscInterfaceConfigs\n\nOptional. Configurations for setting up PSC interfaces attached to the\ninstance which are used for outbound connectivity. Only primary instances\ncan have PSC interface attached. Currently we only support 0 or 1 PSC\ninterface.\n\n### setPscInterfaceConfigs\n\nOptional. Configurations for setting up PSC interfaces attached to the\ninstance which are used for outbound connectivity. Only primary instances\ncan have PSC interface attached. Currently we only support 0 or 1 PSC\ninterface.\n\n### getPscAutoConnections\n\nOptional. Configurations for setting up PSC service automation.\n\n### setPscAutoConnections\n\nOptional. Configurations for setting up PSC service automation."]]