Show / Hide Table of Contents

Class GetRegistryRepository

Inheritance
System.Object
GetRegistryRepository
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Container
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetRegistryRepository

Methods

View Source

InvokeAsync(GetRegistryRepositoryArgs, InvokeOptions)

This data source fetches the project name, and provides the appropriate URLs to use for container registry for this project.

The URLs are computed entirely offline - as long as the project exists, they will be valid, but this data source does not contact Google Container Registry (GCR) at any point.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var foo = Output.Create(Gcp.Container.GetRegistryRepository.InvokeAsync());
    this.GcrLocation = foo.Apply(foo => foo.RepositoryUrl);
}

[Output("gcrLocation")]
public Output<string> GcrLocation { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetRegistryRepositoryResult> InvokeAsync(GetRegistryRepositoryArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetRegistryRepositoryArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetRegistryRepositoryResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.