gcloud alpha artifacts vpcsc-config deny

NAME
gcloud alpha artifacts vpcsc-config deny - deny access to upstream sources outside the service perimeter for Artifact Registry remote repositories inside the perimeter
SYNOPSIS
gcloud alpha artifacts vpcsc-config deny[--location=LOCATION][GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Deny access to upstream sources outside the serviceperimeter for Artifact Registry remote repositories inside the perimeter.

This command can fail for the following reasons:

  • Lack of permission - "accesscontextmanager.policies.update".
  • The resource could be outside of the VPC SC perimeter.
  • Lack of permission - "artifactregistry.vpcscconfigs.update"
EXAMPLES
The following command denies access to upstream sources outside the serviceperimeter for remote repositories in the project my-project and in the regionus--west1:
gcloudalphaartifactsvpcsc-configdeny--project=my-project--location=us-west1
FLAGS
Location resource - The Artifact Registry VPC SC config to update. Thisrepresents a Cloud resource. (NOTE) Some attributes are not given arguments inthis group but can be set in other ways.

To set theproject attribute:

  • provide the argument--location on the command line with a fullyspecified name;
  • set the propertyartifacts/location with a fully specified name;
  • provide the argument--project on the command line;
  • set the propertycore/project.
--location=LOCATION
ID of the location or fully qualified identifier for the location.

To set thelocation attribute:

  • provide the argument--location on the command line;
  • set the propertyartifacts/location.
GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.

Run$gcloud help for details.

API REFERENCE
This command uses theartifactregistry/v1 API. The fulldocumentation for this API can be found at:https://cloud.google.com/artifacts/docs/
NOTES
This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudartifactsvpcsc-configdeny
gcloudbetaartifactsvpcsc-configdeny

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-21 UTC.