Show / Hide Table of Contents

Class GetRegistryImage

Inheritance
System.Object
GetRegistryImage
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 GetRegistryImage

Methods

View Source

InvokeAsync(GetRegistryImageArgs, 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 debian = Output.Create(Gcp.Container.GetRegistryImage.InvokeAsync(new Gcp.Container.GetRegistryImageArgs
    {
        Name = "debian",
    }));
    this.GcrLocation = debian.Apply(debian => debian.ImageUrl);
}

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

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

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