Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.artifactregistry/v1.getRepository
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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
- Repository
Id string - Project string
- Location string
- Repository
Id string - Project string
- location String
- repository
Id String - project String
- location string
- repository
Id string - project string
- location str
- repository_
id str - project str
- location String
- repository
Id String - project String
getRepository Result
The following output properties are available:
- Create
Time string The time when the repository was created.
- Description string
The user-provided description of the repository.
- Docker
Config Pulumi.Google Native. Artifact Registry. V1. Outputs. Docker Repository Config Response 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.
- Kms
Key stringName 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.
- Maven
Config Pulumi.Google Native. Artifact Registry. V1. Outputs. Maven Repository Config Response 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".
- Remote
Repository Pulumi.Config Google Native. Artifact Registry. V1. Outputs. Remote Repository Config Response Configuration specific for a Remote Repository.
- Satisfies
Pzs bool If set, the repository satisfies physical zone separation.
- Size
Bytes 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.
- Update
Time string The time when the repository was last updated.
- Virtual
Repository Pulumi.Config Google Native. Artifact Registry. V1. Outputs. Virtual Repository Config Response Configuration specific for a Virtual Repository.
- Create
Time string The time when the repository was created.
- Description string
The user-provided description of the repository.
- Docker
Config DockerRepository Config Response 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.
- Kms
Key stringName 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.
- Maven
Config MavenRepository Config Response 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".
- Remote
Repository RemoteConfig Repository Config Response Configuration specific for a Remote Repository.
- Satisfies
Pzs bool If set, the repository satisfies physical zone separation.
- Size
Bytes 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.
- Update
Time string The time when the repository was last updated.
- Virtual
Repository VirtualConfig Repository Config Response Configuration specific for a Virtual Repository.
- create
Time String The time when the repository was created.
- description String
The user-provided description of the repository.
- docker
Config DockerRepository Config Response 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.
- kms
Key StringName 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.
- maven
Config MavenRepository Config Response 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".
- remote
Repository RemoteConfig Repository Config Response Configuration specific for a Remote Repository.
- satisfies
Pzs Boolean If set, the repository satisfies physical zone separation.
- size
Bytes 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.
- update
Time String The time when the repository was last updated.
- virtual
Repository VirtualConfig Repository Config Response Configuration specific for a Virtual Repository.
- create
Time string The time when the repository was created.
- description string
The user-provided description of the repository.
- docker
Config DockerRepository Config Response 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.
- kms
Key stringName 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.
- maven
Config MavenRepository Config Response 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".
- remote
Repository RemoteConfig Repository Config Response Configuration specific for a Remote Repository.
- satisfies
Pzs boolean If set, the repository satisfies physical zone separation.
- size
Bytes 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.
- update
Time string The time when the repository was last updated.
- virtual
Repository VirtualConfig Repository Config Response 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 DockerRepository Config Response 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_ strname 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 MavenRepository Config Response 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_ Remoteconfig Repository Config Response 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_ Virtualconfig Repository Config Response Configuration specific for a Virtual Repository.
- create
Time String The time when the repository was created.
- description String
The user-provided description of the repository.
- docker
Config 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.
- kms
Key StringName 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.
- maven
Config 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".
- remote
Repository Property MapConfig Configuration specific for a Remote Repository.
- satisfies
Pzs Boolean If set, the repository satisfies physical zone separation.
- size
Bytes 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.
- update
Time String The time when the repository was last updated.
- virtual
Repository Property MapConfig Configuration specific for a Virtual Repository.
Supporting Types
DockerRepositoryConfigResponse
- bool
The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.
- bool
The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.
- Boolean
The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.
- boolean
The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.
- bool
The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.
- 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
- Public
Repository string One of the publicly available Docker repositories supported by Artifact Registry.
- Public
Repository string One of the publicly available Docker repositories supported by Artifact Registry.
- public
Repository String One of the publicly available Docker repositories supported by Artifact Registry.
- public
Repository 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.
- public
Repository String One of the publicly available Docker repositories supported by Artifact Registry.
MavenRepositoryConfigResponse
- Allow
Snapshot boolOverwrites The repository with this flag will allow publishing the same snapshot versions.
- Version
Policy string Version policy defines the versions that the registry will accept.
- Allow
Snapshot boolOverwrites The repository with this flag will allow publishing the same snapshot versions.
- Version
Policy string Version policy defines the versions that the registry will accept.
- allow
Snapshot BooleanOverwrites The repository with this flag will allow publishing the same snapshot versions.
- version
Policy String Version policy defines the versions that the registry will accept.
- allow
Snapshot booleanOverwrites The repository with this flag will allow publishing the same snapshot versions.
- version
Policy string Version policy defines the versions that the registry will accept.
- allow_
snapshot_ booloverwrites 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.
- allow
Snapshot BooleanOverwrites The repository with this flag will allow publishing the same snapshot versions.
- version
Policy String Version policy defines the versions that the registry will accept.
MavenRepositoryResponse
- Public
Repository string One of the publicly available Maven repositories supported by Artifact Registry.
- Public
Repository string One of the publicly available Maven repositories supported by Artifact Registry.
- public
Repository String One of the publicly available Maven repositories supported by Artifact Registry.
- public
Repository 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.
- public
Repository String One of the publicly available Maven repositories supported by Artifact Registry.
NpmRepositoryResponse
- Public
Repository string One of the publicly available Npm repositories supported by Artifact Registry.
- Public
Repository string One of the publicly available Npm repositories supported by Artifact Registry.
- public
Repository String One of the publicly available Npm repositories supported by Artifact Registry.
- public
Repository 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.
- public
Repository String One of the publicly available Npm repositories supported by Artifact Registry.
PythonRepositoryResponse
- Public
Repository string One of the publicly available Python repositories supported by Artifact Registry.
- Public
Repository string One of the publicly available Python repositories supported by Artifact Registry.
- public
Repository String One of the publicly available Python repositories supported by Artifact Registry.
- public
Repository 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.
- public
Repository String One of the publicly available Python repositories supported by Artifact Registry.
RemoteRepositoryConfigResponse
- Description string
The description of the remote source.
- Docker
Repository Pulumi.Google Native. Artifact Registry. V1. Inputs. Docker Repository Response Specific settings for a Docker remote repository.
- Maven
Repository Pulumi.Google Native. Artifact Registry. V1. Inputs. Maven Repository Response Specific settings for a Maven remote repository.
- Npm
Repository Pulumi.Google Native. Artifact Registry. V1. Inputs. Npm Repository Response Specific settings for an Npm remote repository.
- Python
Repository Pulumi.Google Native. Artifact Registry. V1. Inputs. Python Repository Response Specific settings for a Python remote repository.
- Description string
The description of the remote source.
- Docker
Repository DockerRepository Response Specific settings for a Docker remote repository.
- Maven
Repository MavenRepository Response Specific settings for a Maven remote repository.
- Npm
Repository NpmRepository Response Specific settings for an Npm remote repository.
- Python
Repository PythonRepository Response Specific settings for a Python remote repository.
- description String
The description of the remote source.
- docker
Repository DockerRepository Response Specific settings for a Docker remote repository.
- maven
Repository MavenRepository Response Specific settings for a Maven remote repository.
- npm
Repository NpmRepository Response Specific settings for an Npm remote repository.
- python
Repository PythonRepository Response Specific settings for a Python remote repository.
- description string
The description of the remote source.
- docker
Repository DockerRepository Response Specific settings for a Docker remote repository.
- maven
Repository MavenRepository Response Specific settings for a Maven remote repository.
- npm
Repository NpmRepository Response Specific settings for an Npm remote repository.
- python
Repository PythonRepository Response Specific settings for a Python remote repository.
- description str
The description of the remote source.
- docker_
repository DockerRepository Response Specific settings for a Docker remote repository.
- maven_
repository MavenRepository Response Specific settings for a Maven remote repository.
- npm_
repository NpmRepository Response Specific settings for an Npm remote repository.
- python_
repository PythonRepository Response Specific settings for a Python remote repository.
- description String
The description of the remote source.
- docker
Repository Property Map Specific settings for a Docker remote repository.
- maven
Repository Property Map Specific settings for a Maven remote repository.
- npm
Repository Property Map Specific settings for an Npm remote repository.
- python
Repository 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
- Upstream
Policies List<Pulumi.Google Native. Artifact Registry. V1. Inputs. Upstream Policy Response> Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.
- Upstream
Policies []UpstreamPolicy Response Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.
- upstream
Policies List<UpstreamPolicy Response> Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.
- upstream
Policies UpstreamPolicy Response[] Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.
- upstream_
policies Sequence[UpstreamPolicy Response] Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.
- upstream
Policies 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 Cloud Native is in preview. Google Cloud Classic is fully supported.