1. Packages
  2. Octopusdeploy Provider
  3. API Docs
  4. GoogleContainerRegistry
octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs

octopusdeploy.GoogleContainerRegistry

Explore with Pulumi AI

octopusdeploy logo
octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs

    This resource manages a Google Container Registry feed in Octopus Deploy (alias of Docker Container Registry feed)

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.octopusdeploy.GoogleContainerRegistry;
    import com.pulumi.octopusdeploy.GoogleContainerRegistryArgs;
    import com.pulumi.octopusdeploy.inputs.GoogleContainerRegistryOidcAuthenticationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new GoogleContainerRegistry("example", GoogleContainerRegistryArgs.builder()
                .feedUri("https://google.docker.test")
                .password("google authentication key file contents (json)")
                .registryPath("testing/test-image")
                .build());
    
            var exampleWithOidc = new GoogleContainerRegistry("exampleWithOidc", GoogleContainerRegistryArgs.builder()
                .feedUri("https://google.docker.test")
                .oidcAuthentication(GoogleContainerRegistryOidcAuthenticationArgs.builder()
                    .audience("audience")
                    .subject_keys(                
                        "feed",
                        "space")
                    .build())
                .registryPath("testing/test-image")
                .build());
    
        }
    }
    
    resources:
      example:
        type: octopusdeploy:GoogleContainerRegistry
        properties:
          feedUri: https://google.docker.test
          password: google authentication key file contents (json)
          registryPath: testing/test-image
      exampleWithOidc:
        type: octopusdeploy:GoogleContainerRegistry
        properties:
          feedUri: https://google.docker.test
          oidcAuthentication:
            audience: audience
            subject_keys:
              - feed
              - space
          registryPath: testing/test-image
    

    Create GoogleContainerRegistry Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GoogleContainerRegistry(name: string, args: GoogleContainerRegistryArgs, opts?: CustomResourceOptions);
    @overload
    def GoogleContainerRegistry(resource_name: str,
                                args: GoogleContainerRegistryArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def GoogleContainerRegistry(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                feed_uri: Optional[str] = None,
                                api_version: Optional[str] = None,
                                name: Optional[str] = None,
                                oidc_authentication: Optional[GoogleContainerRegistryOidcAuthenticationArgs] = None,
                                password: Optional[str] = None,
                                registry_path: Optional[str] = None,
                                space_id: Optional[str] = None,
                                username: Optional[str] = None)
    func NewGoogleContainerRegistry(ctx *Context, name string, args GoogleContainerRegistryArgs, opts ...ResourceOption) (*GoogleContainerRegistry, error)
    public GoogleContainerRegistry(string name, GoogleContainerRegistryArgs args, CustomResourceOptions? opts = null)
    public GoogleContainerRegistry(String name, GoogleContainerRegistryArgs args)
    public GoogleContainerRegistry(String name, GoogleContainerRegistryArgs args, CustomResourceOptions options)
    
    type: octopusdeploy:GoogleContainerRegistry
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args GoogleContainerRegistryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args GoogleContainerRegistryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args GoogleContainerRegistryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GoogleContainerRegistryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GoogleContainerRegistryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var googleContainerRegistryResource = new Octopusdeploy.GoogleContainerRegistry("googleContainerRegistryResource", new()
    {
        FeedUri = "string",
        ApiVersion = "string",
        Name = "string",
        OidcAuthentication = new Octopusdeploy.Inputs.GoogleContainerRegistryOidcAuthenticationArgs
        {
            Audience = "string",
            SubjectKeys = new[]
            {
                "string",
            },
        },
        Password = "string",
        RegistryPath = "string",
        SpaceId = "string",
        Username = "string",
    });
    
    example, err := octopusdeploy.NewGoogleContainerRegistry(ctx, "googleContainerRegistryResource", &octopusdeploy.GoogleContainerRegistryArgs{
    	FeedUri:    pulumi.String("string"),
    	ApiVersion: pulumi.String("string"),
    	Name:       pulumi.String("string"),
    	OidcAuthentication: &octopusdeploy.GoogleContainerRegistryOidcAuthenticationArgs{
    		Audience: pulumi.String("string"),
    		SubjectKeys: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Password:     pulumi.String("string"),
    	RegistryPath: pulumi.String("string"),
    	SpaceId:      pulumi.String("string"),
    	Username:     pulumi.String("string"),
    })
    
    var googleContainerRegistryResource = new GoogleContainerRegistry("googleContainerRegistryResource", GoogleContainerRegistryArgs.builder()
        .feedUri("string")
        .apiVersion("string")
        .name("string")
        .oidcAuthentication(GoogleContainerRegistryOidcAuthenticationArgs.builder()
            .audience("string")
            .subjectKeys("string")
            .build())
        .password("string")
        .registryPath("string")
        .spaceId("string")
        .username("string")
        .build());
    
    google_container_registry_resource = octopusdeploy.GoogleContainerRegistry("googleContainerRegistryResource",
        feed_uri="string",
        api_version="string",
        name="string",
        oidc_authentication={
            "audience": "string",
            "subject_keys": ["string"],
        },
        password="string",
        registry_path="string",
        space_id="string",
        username="string")
    
    const googleContainerRegistryResource = new octopusdeploy.GoogleContainerRegistry("googleContainerRegistryResource", {
        feedUri: "string",
        apiVersion: "string",
        name: "string",
        oidcAuthentication: {
            audience: "string",
            subjectKeys: ["string"],
        },
        password: "string",
        registryPath: "string",
        spaceId: "string",
        username: "string",
    });
    
    type: octopusdeploy:GoogleContainerRegistry
    properties:
        apiVersion: string
        feedUri: string
        name: string
        oidcAuthentication:
            audience: string
            subjectKeys:
                - string
        password: string
        registryPath: string
        spaceId: string
        username: string
    

    GoogleContainerRegistry Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The GoogleContainerRegistry resource accepts the following input properties:

    FeedUri string
    ApiVersion string
    Name string
    The name of this resource.
    OidcAuthentication GoogleContainerRegistryOidcAuthentication
    Password string
    The password associated with this resource.
    RegistryPath string
    SpaceId string
    The space ID associated with this Google container registry feed.
    Username string
    The username associated with this resource.
    FeedUri string
    ApiVersion string
    Name string
    The name of this resource.
    OidcAuthentication GoogleContainerRegistryOidcAuthenticationArgs
    Password string
    The password associated with this resource.
    RegistryPath string
    SpaceId string
    The space ID associated with this Google container registry feed.
    Username string
    The username associated with this resource.
    feedUri String
    apiVersion String
    name String
    The name of this resource.
    oidcAuthentication GoogleContainerRegistryOidcAuthentication
    password String
    The password associated with this resource.
    registryPath String
    spaceId String
    The space ID associated with this Google container registry feed.
    username String
    The username associated with this resource.
    feedUri string
    apiVersion string
    name string
    The name of this resource.
    oidcAuthentication GoogleContainerRegistryOidcAuthentication
    password string
    The password associated with this resource.
    registryPath string
    spaceId string
    The space ID associated with this Google container registry feed.
    username string
    The username associated with this resource.
    feed_uri str
    api_version str
    name str
    The name of this resource.
    oidc_authentication GoogleContainerRegistryOidcAuthenticationArgs
    password str
    The password associated with this resource.
    registry_path str
    space_id str
    The space ID associated with this Google container registry feed.
    username str
    The username associated with this resource.
    feedUri String
    apiVersion String
    name String
    The name of this resource.
    oidcAuthentication Property Map
    password String
    The password associated with this resource.
    registryPath String
    spaceId String
    The space ID associated with this Google container registry feed.
    username String
    The username associated with this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GoogleContainerRegistry resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GoogleContainerRegistry Resource

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

    public static get(name: string, id: Input<ID>, state?: GoogleContainerRegistryState, opts?: CustomResourceOptions): GoogleContainerRegistry
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_version: Optional[str] = None,
            feed_uri: Optional[str] = None,
            name: Optional[str] = None,
            oidc_authentication: Optional[GoogleContainerRegistryOidcAuthenticationArgs] = None,
            password: Optional[str] = None,
            registry_path: Optional[str] = None,
            space_id: Optional[str] = None,
            username: Optional[str] = None) -> GoogleContainerRegistry
    func GetGoogleContainerRegistry(ctx *Context, name string, id IDInput, state *GoogleContainerRegistryState, opts ...ResourceOption) (*GoogleContainerRegistry, error)
    public static GoogleContainerRegistry Get(string name, Input<string> id, GoogleContainerRegistryState? state, CustomResourceOptions? opts = null)
    public static GoogleContainerRegistry get(String name, Output<String> id, GoogleContainerRegistryState state, CustomResourceOptions options)
    resources:  _:    type: octopusdeploy:GoogleContainerRegistry    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ApiVersion string
    FeedUri string
    Name string
    The name of this resource.
    OidcAuthentication GoogleContainerRegistryOidcAuthentication
    Password string
    The password associated with this resource.
    RegistryPath string
    SpaceId string
    The space ID associated with this Google container registry feed.
    Username string
    The username associated with this resource.
    ApiVersion string
    FeedUri string
    Name string
    The name of this resource.
    OidcAuthentication GoogleContainerRegistryOidcAuthenticationArgs
    Password string
    The password associated with this resource.
    RegistryPath string
    SpaceId string
    The space ID associated with this Google container registry feed.
    Username string
    The username associated with this resource.
    apiVersion String
    feedUri String
    name String
    The name of this resource.
    oidcAuthentication GoogleContainerRegistryOidcAuthentication
    password String
    The password associated with this resource.
    registryPath String
    spaceId String
    The space ID associated with this Google container registry feed.
    username String
    The username associated with this resource.
    apiVersion string
    feedUri string
    name string
    The name of this resource.
    oidcAuthentication GoogleContainerRegistryOidcAuthentication
    password string
    The password associated with this resource.
    registryPath string
    spaceId string
    The space ID associated with this Google container registry feed.
    username string
    The username associated with this resource.
    api_version str
    feed_uri str
    name str
    The name of this resource.
    oidc_authentication GoogleContainerRegistryOidcAuthenticationArgs
    password str
    The password associated with this resource.
    registry_path str
    space_id str
    The space ID associated with this Google container registry feed.
    username str
    The username associated with this resource.
    apiVersion String
    feedUri String
    name String
    The name of this resource.
    oidcAuthentication Property Map
    password String
    The password associated with this resource.
    registryPath String
    spaceId String
    The space ID associated with this Google container registry feed.
    username String
    The username associated with this resource.

    Supporting Types

    GoogleContainerRegistryOidcAuthentication, GoogleContainerRegistryOidcAuthenticationArgs

    Audience string
    Audience representing the intended recipient of the OIDC token
    SubjectKeys List<string>
    Keys to include in a deployment or runbook. Valid options are space, feed.
    Audience string
    Audience representing the intended recipient of the OIDC token
    SubjectKeys []string
    Keys to include in a deployment or runbook. Valid options are space, feed.
    audience String
    Audience representing the intended recipient of the OIDC token
    subjectKeys List<String>
    Keys to include in a deployment or runbook. Valid options are space, feed.
    audience string
    Audience representing the intended recipient of the OIDC token
    subjectKeys string[]
    Keys to include in a deployment or runbook. Valid options are space, feed.
    audience str
    Audience representing the intended recipient of the OIDC token
    subject_keys Sequence[str]
    Keys to include in a deployment or runbook. Valid options are space, feed.
    audience String
    Audience representing the intended recipient of the OIDC token
    subjectKeys List<String>
    Keys to include in a deployment or runbook. Valid options are space, feed.

    Import

    $ pulumi import octopusdeploy:index/googleContainerRegistry:GoogleContainerRegistry [options] octopusdeploy_google_container_registry.<name> <feed-id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
    License
    Notes
    This Pulumi package is based on the octopusdeploy Terraform Provider.
    octopusdeploy logo
    octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs