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

The following fields are returned by SELECT queries:

Successful response

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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_vpcsc_configselectprojectsId, locationsIdRetrieves the VPCSC Config for the Project.
update_vpcsc_configupdateprojectsId, locationsIdupdateMaskUpdates the VPCSC Config for the Project.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Retrieves the VPCSC Config for the Project.

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

UPDATE examples

Updates the VPCSC Config for the Project.

UPDATE google.artifactregistry.vpcsc_config
SET
data__name = '{{ name }}',
data__vpcscPolicy = '{{ vpcscPolicy }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
vpcscPolicy;