Skip to main content

vpcsc_config

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

Overview

Namevpcsc_config
TypeResource
Idgoogle.artifactregistry.vpcsc_config

Fields

NameDatatypeDescription
namestringThe name of the project's VPC SC Config. Always of the form: projects/{projectID}/locations/{location}/vpcscConfig In update request: never set In response: always set
vpcscPolicystringThe project per location VPC SC policy that defines the VPC SC behavior for the Remote Repository (Allow/Deny).

Methods

NameAccessible byRequired ParamsDescription
get_vpcsc_configSELECTlocationsId, projectsIdRetrieves the VPCSC Config for the Project.
update_vpcsc_configUPDATElocationsId, projectsIdUpdates the VPCSC Config for the Project.

SELECT examples

Retrieves the VPCSC Config for the Project.

SELECT
name,
vpcscPolicy
FROM google.artifactregistry.vpcsc_config
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

UPDATE example

Updates a vpcsc_config resource.

/*+ update */
UPDATE google.artifactregistry.vpcsc_config
SET
name = '{{ name }}',
vpcscPolicy = '{{ vpcscPolicy }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';