vpcsc_config
Creates, updates, deletes, gets or lists a vpcsc_config
resource.
Overview
Name | vpcsc_config |
Type | Resource |
Id | google.artifactregistry.vpcsc_config |
Fields
The following fields are returned by SELECT
queries:
- get_vpcsc_config
Successful response
Name | Datatype | Description |
---|---|---|
name | string | The 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 |
vpcscPolicy | string | The 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:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_vpcsc_config | select | projectsId , locationsId | Retrieves the VPCSC Config for the Project. | |
update_vpcsc_config | update | projectsId , locationsId | updateMask | Updates 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.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
projectsId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get_vpcsc_config
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
- update_vpcsc_config
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;