Show / Hide Table of Contents

Class Registry

Ensures that the Google Cloud Storage bucket that backs Google Container Registry exists. Creating this resource will create the backing bucket if it does not exist, or do nothing if the bucket already exists. Destroying this resource does NOT destroy the backing bucket. For more information see the official documentation

This resource can be used to ensure that the GCS bucket exists prior to assigning permissions. For more information see the access control page for GCR.

Example Usage

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var registry = new Gcp.Container.Registry("registry", new Gcp.Container.RegistryArgs
    {
        Location = "EU",
        Project = "my-project",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Registry
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
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 class Registry : CustomResource

Constructors

View Source

Registry(String, RegistryArgs, CustomResourceOptions)

Create a Registry resource with the given unique name, arguments, and options.

Declaration
public Registry(string name, RegistryArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

RegistryArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

BucketSelfLink

The URI of the created resource.

Declaration
public Output<string> BucketSelfLink { get; }
Property Value
Type Description
Output<System.String>
View Source

Location

The location of the registry. One of ASIA, EU, US or not specified. See the official documentation for more information on registry locations.

Declaration
public Output<string> Location { get; }
Property Value
Type Description
Output<System.String>
View Source

Project

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Declaration
public Output<string> Project { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, RegistryState, CustomResourceOptions)

Get an existing Registry resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Registry Get(string name, Input<string> id, RegistryState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

RegistryState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Registry
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.