1. Packages
  2. Google Cloud Native
  3. API Docs
  4. artifactregistry
  5. artifactregistry/v1
  6. getRepository

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.31.1 published on Thursday, Jul 20, 2023 by Pulumi

google-native.artifactregistry/v1.getRepository

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.31.1 published on Thursday, Jul 20, 2023 by Pulumi

    Gets a repository.

    Using getRepository

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getRepository(args: GetRepositoryArgs, opts?: InvokeOptions): Promise<GetRepositoryResult>
    function getRepositoryOutput(args: GetRepositoryOutputArgs, opts?: InvokeOptions): Output<GetRepositoryResult>
    def get_repository(location: Optional[str] = None,
                       project: Optional[str] = None,
                       repository_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetRepositoryResult
    def get_repository_output(location: Optional[pulumi.Input[str]] = None,
                       project: Optional[pulumi.Input[str]] = None,
                       repository_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryResult]
    func LookupRepository(ctx *Context, args *LookupRepositoryArgs, opts ...InvokeOption) (*LookupRepositoryResult, error)
    func LookupRepositoryOutput(ctx *Context, args *LookupRepositoryOutputArgs, opts ...InvokeOption) LookupRepositoryResultOutput

    > Note: This function is named LookupRepository in the Go SDK.

    public static class GetRepository 
    {
        public static Task<GetRepositoryResult> InvokeAsync(GetRepositoryArgs args, InvokeOptions? opts = null)
        public static Output<GetRepositoryResult> Invoke(GetRepositoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: google-native:artifactregistry/v1:getRepository
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Location string
    RepositoryId string
    Project string
    Location string
    RepositoryId string
    Project string
    location String
    repositoryId String
    project String
    location string
    repositoryId string
    project string
    location String
    repositoryId String
    project String

    getRepository Result

    The following output properties are available:

    CreateTime string

    The time when the repository was created.

    Description string

    The user-provided description of the repository.

    DockerConfig Pulumi.GoogleNative.ArtifactRegistry.V1.Outputs.DockerRepositoryConfigResponse

    Docker repository config contains repository level configuration for the repositories of docker type.

    Format string

    The format of packages that are stored in the repository.

    KmsKeyName string

    The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created.

    Labels Dictionary<string, string>

    Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

    MavenConfig Pulumi.GoogleNative.ArtifactRegistry.V1.Outputs.MavenRepositoryConfigResponse

    Maven repository config contains repository level configuration for the repositories of maven type.

    Mode string

    The mode of the repository.

    Name string

    The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".

    RemoteRepositoryConfig Pulumi.GoogleNative.ArtifactRegistry.V1.Outputs.RemoteRepositoryConfigResponse

    Configuration specific for a Remote Repository.

    SatisfiesPzs bool

    If set, the repository satisfies physical zone separation.

    SizeBytes string

    The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.

    UpdateTime string

    The time when the repository was last updated.

    VirtualRepositoryConfig Pulumi.GoogleNative.ArtifactRegistry.V1.Outputs.VirtualRepositoryConfigResponse

    Configuration specific for a Virtual Repository.

    CreateTime string

    The time when the repository was created.

    Description string

    The user-provided description of the repository.

    DockerConfig DockerRepositoryConfigResponse

    Docker repository config contains repository level configuration for the repositories of docker type.

    Format string

    The format of packages that are stored in the repository.

    KmsKeyName string

    The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created.

    Labels map[string]string

    Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

    MavenConfig MavenRepositoryConfigResponse

    Maven repository config contains repository level configuration for the repositories of maven type.

    Mode string

    The mode of the repository.

    Name string

    The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".

    RemoteRepositoryConfig RemoteRepositoryConfigResponse

    Configuration specific for a Remote Repository.

    SatisfiesPzs bool

    If set, the repository satisfies physical zone separation.

    SizeBytes string

    The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.

    UpdateTime string

    The time when the repository was last updated.

    VirtualRepositoryConfig VirtualRepositoryConfigResponse

    Configuration specific for a Virtual Repository.

    createTime String

    The time when the repository was created.

    description String

    The user-provided description of the repository.

    dockerConfig DockerRepositoryConfigResponse

    Docker repository config contains repository level configuration for the repositories of docker type.

    format String

    The format of packages that are stored in the repository.

    kmsKeyName String

    The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created.

    labels Map<String,String>

    Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

    mavenConfig MavenRepositoryConfigResponse

    Maven repository config contains repository level configuration for the repositories of maven type.

    mode String

    The mode of the repository.

    name String

    The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".

    remoteRepositoryConfig RemoteRepositoryConfigResponse

    Configuration specific for a Remote Repository.

    satisfiesPzs Boolean

    If set, the repository satisfies physical zone separation.

    sizeBytes String

    The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.

    updateTime String

    The time when the repository was last updated.

    virtualRepositoryConfig VirtualRepositoryConfigResponse

    Configuration specific for a Virtual Repository.

    createTime string

    The time when the repository was created.

    description string

    The user-provided description of the repository.

    dockerConfig DockerRepositoryConfigResponse

    Docker repository config contains repository level configuration for the repositories of docker type.

    format string

    The format of packages that are stored in the repository.

    kmsKeyName string

    The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created.

    labels {[key: string]: string}

    Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

    mavenConfig MavenRepositoryConfigResponse

    Maven repository config contains repository level configuration for the repositories of maven type.

    mode string

    The mode of the repository.

    name string

    The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".

    remoteRepositoryConfig RemoteRepositoryConfigResponse

    Configuration specific for a Remote Repository.

    satisfiesPzs boolean

    If set, the repository satisfies physical zone separation.

    sizeBytes string

    The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.

    updateTime string

    The time when the repository was last updated.

    virtualRepositoryConfig VirtualRepositoryConfigResponse

    Configuration specific for a Virtual Repository.

    create_time str

    The time when the repository was created.

    description str

    The user-provided description of the repository.

    docker_config DockerRepositoryConfigResponse

    Docker repository config contains repository level configuration for the repositories of docker type.

    format str

    The format of packages that are stored in the repository.

    kms_key_name str

    The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created.

    labels Mapping[str, str]

    Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

    maven_config MavenRepositoryConfigResponse

    Maven repository config contains repository level configuration for the repositories of maven type.

    mode str

    The mode of the repository.

    name str

    The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".

    remote_repository_config RemoteRepositoryConfigResponse

    Configuration specific for a Remote Repository.

    satisfies_pzs bool

    If set, the repository satisfies physical zone separation.

    size_bytes str

    The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.

    update_time str

    The time when the repository was last updated.

    virtual_repository_config VirtualRepositoryConfigResponse

    Configuration specific for a Virtual Repository.

    createTime String

    The time when the repository was created.

    description String

    The user-provided description of the repository.

    dockerConfig Property Map

    Docker repository config contains repository level configuration for the repositories of docker type.

    format String

    The format of packages that are stored in the repository.

    kmsKeyName String

    The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created.

    labels Map<String>

    Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

    mavenConfig Property Map

    Maven repository config contains repository level configuration for the repositories of maven type.

    mode String

    The mode of the repository.

    name String

    The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".

    remoteRepositoryConfig Property Map

    Configuration specific for a Remote Repository.

    satisfiesPzs Boolean

    If set, the repository satisfies physical zone separation.

    sizeBytes String

    The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.

    updateTime String

    The time when the repository was last updated.

    virtualRepositoryConfig Property Map

    Configuration specific for a Virtual Repository.

    Supporting Types

    DockerRepositoryConfigResponse

    ImmutableTags bool

    The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.

    ImmutableTags bool

    The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.

    immutableTags Boolean

    The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.

    immutableTags boolean

    The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.

    immutable_tags bool

    The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.

    immutableTags Boolean

    The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.

    DockerRepositoryResponse

    PublicRepository string

    One of the publicly available Docker repositories supported by Artifact Registry.

    PublicRepository string

    One of the publicly available Docker repositories supported by Artifact Registry.

    publicRepository String

    One of the publicly available Docker repositories supported by Artifact Registry.

    publicRepository string

    One of the publicly available Docker repositories supported by Artifact Registry.

    public_repository str

    One of the publicly available Docker repositories supported by Artifact Registry.

    publicRepository String

    One of the publicly available Docker repositories supported by Artifact Registry.

    MavenRepositoryConfigResponse

    AllowSnapshotOverwrites bool

    The repository with this flag will allow publishing the same snapshot versions.

    VersionPolicy string

    Version policy defines the versions that the registry will accept.

    AllowSnapshotOverwrites bool

    The repository with this flag will allow publishing the same snapshot versions.

    VersionPolicy string

    Version policy defines the versions that the registry will accept.

    allowSnapshotOverwrites Boolean

    The repository with this flag will allow publishing the same snapshot versions.

    versionPolicy String

    Version policy defines the versions that the registry will accept.

    allowSnapshotOverwrites boolean

    The repository with this flag will allow publishing the same snapshot versions.

    versionPolicy string

    Version policy defines the versions that the registry will accept.

    allow_snapshot_overwrites bool

    The repository with this flag will allow publishing the same snapshot versions.

    version_policy str

    Version policy defines the versions that the registry will accept.

    allowSnapshotOverwrites Boolean

    The repository with this flag will allow publishing the same snapshot versions.

    versionPolicy String

    Version policy defines the versions that the registry will accept.

    MavenRepositoryResponse

    PublicRepository string

    One of the publicly available Maven repositories supported by Artifact Registry.

    PublicRepository string

    One of the publicly available Maven repositories supported by Artifact Registry.

    publicRepository String

    One of the publicly available Maven repositories supported by Artifact Registry.

    publicRepository string

    One of the publicly available Maven repositories supported by Artifact Registry.

    public_repository str

    One of the publicly available Maven repositories supported by Artifact Registry.

    publicRepository String

    One of the publicly available Maven repositories supported by Artifact Registry.

    NpmRepositoryResponse

    PublicRepository string

    One of the publicly available Npm repositories supported by Artifact Registry.

    PublicRepository string

    One of the publicly available Npm repositories supported by Artifact Registry.

    publicRepository String

    One of the publicly available Npm repositories supported by Artifact Registry.

    publicRepository string

    One of the publicly available Npm repositories supported by Artifact Registry.

    public_repository str

    One of the publicly available Npm repositories supported by Artifact Registry.

    publicRepository String

    One of the publicly available Npm repositories supported by Artifact Registry.

    PythonRepositoryResponse

    PublicRepository string

    One of the publicly available Python repositories supported by Artifact Registry.

    PublicRepository string

    One of the publicly available Python repositories supported by Artifact Registry.

    publicRepository String

    One of the publicly available Python repositories supported by Artifact Registry.

    publicRepository string

    One of the publicly available Python repositories supported by Artifact Registry.

    public_repository str

    One of the publicly available Python repositories supported by Artifact Registry.

    publicRepository String

    One of the publicly available Python repositories supported by Artifact Registry.

    RemoteRepositoryConfigResponse

    Description string

    The description of the remote source.

    DockerRepository Pulumi.GoogleNative.ArtifactRegistry.V1.Inputs.DockerRepositoryResponse

    Specific settings for a Docker remote repository.

    MavenRepository Pulumi.GoogleNative.ArtifactRegistry.V1.Inputs.MavenRepositoryResponse

    Specific settings for a Maven remote repository.

    NpmRepository Pulumi.GoogleNative.ArtifactRegistry.V1.Inputs.NpmRepositoryResponse

    Specific settings for an Npm remote repository.

    PythonRepository Pulumi.GoogleNative.ArtifactRegistry.V1.Inputs.PythonRepositoryResponse

    Specific settings for a Python remote repository.

    Description string

    The description of the remote source.

    DockerRepository DockerRepositoryResponse

    Specific settings for a Docker remote repository.

    MavenRepository MavenRepositoryResponse

    Specific settings for a Maven remote repository.

    NpmRepository NpmRepositoryResponse

    Specific settings for an Npm remote repository.

    PythonRepository PythonRepositoryResponse

    Specific settings for a Python remote repository.

    description String

    The description of the remote source.

    dockerRepository DockerRepositoryResponse

    Specific settings for a Docker remote repository.

    mavenRepository MavenRepositoryResponse

    Specific settings for a Maven remote repository.

    npmRepository NpmRepositoryResponse

    Specific settings for an Npm remote repository.

    pythonRepository PythonRepositoryResponse

    Specific settings for a Python remote repository.

    description string

    The description of the remote source.

    dockerRepository DockerRepositoryResponse

    Specific settings for a Docker remote repository.

    mavenRepository MavenRepositoryResponse

    Specific settings for a Maven remote repository.

    npmRepository NpmRepositoryResponse

    Specific settings for an Npm remote repository.

    pythonRepository PythonRepositoryResponse

    Specific settings for a Python remote repository.

    description str

    The description of the remote source.

    docker_repository DockerRepositoryResponse

    Specific settings for a Docker remote repository.

    maven_repository MavenRepositoryResponse

    Specific settings for a Maven remote repository.

    npm_repository NpmRepositoryResponse

    Specific settings for an Npm remote repository.

    python_repository PythonRepositoryResponse

    Specific settings for a Python remote repository.

    description String

    The description of the remote source.

    dockerRepository Property Map

    Specific settings for a Docker remote repository.

    mavenRepository Property Map

    Specific settings for a Maven remote repository.

    npmRepository Property Map

    Specific settings for an Npm remote repository.

    pythonRepository Property Map

    Specific settings for a Python remote repository.

    UpstreamPolicyResponse

    Priority int

    Entries with a greater priority value take precedence in the pull order.

    Repository string

    A reference to the repository resource, for example: "projects/p1/locations/us-central1/repositories/repo1".

    Priority int

    Entries with a greater priority value take precedence in the pull order.

    Repository string

    A reference to the repository resource, for example: "projects/p1/locations/us-central1/repositories/repo1".

    priority Integer

    Entries with a greater priority value take precedence in the pull order.

    repository String

    A reference to the repository resource, for example: "projects/p1/locations/us-central1/repositories/repo1".

    priority number

    Entries with a greater priority value take precedence in the pull order.

    repository string

    A reference to the repository resource, for example: "projects/p1/locations/us-central1/repositories/repo1".

    priority int

    Entries with a greater priority value take precedence in the pull order.

    repository str

    A reference to the repository resource, for example: "projects/p1/locations/us-central1/repositories/repo1".

    priority Number

    Entries with a greater priority value take precedence in the pull order.

    repository String

    A reference to the repository resource, for example: "projects/p1/locations/us-central1/repositories/repo1".

    VirtualRepositoryConfigResponse

    UpstreamPolicies List<Pulumi.GoogleNative.ArtifactRegistry.V1.Inputs.UpstreamPolicyResponse>

    Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

    UpstreamPolicies []UpstreamPolicyResponse

    Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

    upstreamPolicies List<UpstreamPolicyResponse>

    Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

    upstreamPolicies UpstreamPolicyResponse[]

    Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

    upstream_policies Sequence[UpstreamPolicyResponse]

    Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

    upstreamPolicies List<Property Map>

    Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.31.1 published on Thursday, Jul 20, 2023 by Pulumi