1. Packages
  2. Vultr
  3. API Docs
  4. getContainerRegistry
Vultr v2.27.1 published on Tuesday, Sep 30, 2025 by dirien

vultr.getContainerRegistry

Start a Neo task
Explain and create a vultr.getContainerRegistry resource
vultr logo
Vultr v2.27.1 published on Tuesday, Sep 30, 2025 by dirien

    Get information about a Vultr container registry.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vultr from "@ediri/vultr";
    
    const vcr_ds = vultr.getContainerRegistry({
        filters: [{
            name: "name",
            values: ["examplecontainerregistry"],
        }],
    });
    
    import pulumi
    import pulumi_vultr as vultr
    
    vcr_ds = vultr.get_container_registry(filters=[{
        "name": "name",
        "values": ["examplecontainerregistry"],
    }])
    
    package main
    
    import (
    	"github.com/dirien/pulumi-vultr/sdk/v2/go/vultr"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vultr.LookupContainerRegistry(ctx, &vultr.LookupContainerRegistryArgs{
    			Filters: []vultr.GetContainerRegistryFilter{
    				{
    					Name: "name",
    					Values: []string{
    						"examplecontainerregistry",
    					},
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vultr = Pulumi.Vultr;
    
    return await Deployment.RunAsync(() => 
    {
        var vcr_ds = Vultr.GetContainerRegistry.Invoke(new()
        {
            Filters = new[]
            {
                new Vultr.Inputs.GetContainerRegistryFilterInputArgs
                {
                    Name = "name",
                    Values = new[]
                    {
                        "examplecontainerregistry",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vultr.VultrFunctions;
    import com.pulumi.vultr.inputs.GetContainerRegistryArgs;
    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) {
            final var vcr-ds = VultrFunctions.getContainerRegistry(GetContainerRegistryArgs.builder()
                .filters(GetContainerRegistryFilterArgs.builder()
                    .name("name")
                    .values("examplecontainerregistry")
                    .build())
                .build());
    
        }
    }
    
    variables:
      vcr-ds:
        fn::invoke:
          function: vultr:getContainerRegistry
          arguments:
            filters:
              - name: name
                values:
                  - examplecontainerregistry
    

    Using getContainerRegistry

    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 getContainerRegistry(args: GetContainerRegistryArgs, opts?: InvokeOptions): Promise<GetContainerRegistryResult>
    function getContainerRegistryOutput(args: GetContainerRegistryOutputArgs, opts?: InvokeOptions): Output<GetContainerRegistryResult>
    def get_container_registry(filters: Optional[Sequence[GetContainerRegistryFilter]] = None,
                               opts: Optional[InvokeOptions] = None) -> GetContainerRegistryResult
    def get_container_registry_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetContainerRegistryFilterArgs]]]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetContainerRegistryResult]
    func LookupContainerRegistry(ctx *Context, args *LookupContainerRegistryArgs, opts ...InvokeOption) (*LookupContainerRegistryResult, error)
    func LookupContainerRegistryOutput(ctx *Context, args *LookupContainerRegistryOutputArgs, opts ...InvokeOption) LookupContainerRegistryResultOutput

    > Note: This function is named LookupContainerRegistry in the Go SDK.

    public static class GetContainerRegistry 
    {
        public static Task<GetContainerRegistryResult> InvokeAsync(GetContainerRegistryArgs args, InvokeOptions? opts = null)
        public static Output<GetContainerRegistryResult> Invoke(GetContainerRegistryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetContainerRegistryResult> getContainerRegistry(GetContainerRegistryArgs args, InvokeOptions options)
    public static Output<GetContainerRegistryResult> getContainerRegistry(GetContainerRegistryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vultr:index/getContainerRegistry:getContainerRegistry
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<ediri.Vultr.Inputs.GetContainerRegistryFilter>
    Query parameters for finding the container registry.
    Filters []GetContainerRegistryFilter
    Query parameters for finding the container registry.
    filters List<GetContainerRegistryFilter>
    Query parameters for finding the container registry.
    filters GetContainerRegistryFilter[]
    Query parameters for finding the container registry.
    filters Sequence[GetContainerRegistryFilter]
    Query parameters for finding the container registry.
    filters List<Property Map>
    Query parameters for finding the container registry.

    getContainerRegistry Result

    The following output properties are available:

    DateCreated string
    A date-time of when the root user was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the repository.
    Public bool
    Boolean indicating whether or not the requires login credentials.
    Repositories List<ediri.Vultr.Outputs.GetContainerRegistryRepository>
    Listing of the repositories created within the registry and their metadata.
    RootUser Dictionary<string, string>
    The user associated with the container registry.
    Storage Dictionary<string, string>
    A listing of current storage usage relevant to the container registry.
    Urn string
    The URN of the container registry.
    Filters List<ediri.Vultr.Outputs.GetContainerRegistryFilter>
    DateCreated string
    A date-time of when the root user was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the repository.
    Public bool
    Boolean indicating whether or not the requires login credentials.
    Repositories []GetContainerRegistryRepository
    Listing of the repositories created within the registry and their metadata.
    RootUser map[string]string
    The user associated with the container registry.
    Storage map[string]string
    A listing of current storage usage relevant to the container registry.
    Urn string
    The URN of the container registry.
    Filters []GetContainerRegistryFilter
    dateCreated String
    A date-time of when the root user was created.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the repository.
    public_ Boolean
    Boolean indicating whether or not the requires login credentials.
    repositories List<GetContainerRegistryRepository>
    Listing of the repositories created within the registry and their metadata.
    rootUser Map<String,String>
    The user associated with the container registry.
    storage Map<String,String>
    A listing of current storage usage relevant to the container registry.
    urn String
    The URN of the container registry.
    filters List<GetContainerRegistryFilter>
    dateCreated string
    A date-time of when the root user was created.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the repository.
    public boolean
    Boolean indicating whether or not the requires login credentials.
    repositories GetContainerRegistryRepository[]
    Listing of the repositories created within the registry and their metadata.
    rootUser {[key: string]: string}
    The user associated with the container registry.
    storage {[key: string]: string}
    A listing of current storage usage relevant to the container registry.
    urn string
    The URN of the container registry.
    filters GetContainerRegistryFilter[]
    date_created str
    A date-time of when the root user was created.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the repository.
    public bool
    Boolean indicating whether or not the requires login credentials.
    repositories Sequence[GetContainerRegistryRepository]
    Listing of the repositories created within the registry and their metadata.
    root_user Mapping[str, str]
    The user associated with the container registry.
    storage Mapping[str, str]
    A listing of current storage usage relevant to the container registry.
    urn str
    The URN of the container registry.
    filters Sequence[GetContainerRegistryFilter]
    dateCreated String
    A date-time of when the root user was created.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the repository.
    public Boolean
    Boolean indicating whether or not the requires login credentials.
    repositories List<Property Map>
    Listing of the repositories created within the registry and their metadata.
    rootUser Map<String>
    The user associated with the container registry.
    storage Map<String>
    A listing of current storage usage relevant to the container registry.
    urn String
    The URN of the container registry.
    filters List<Property Map>

    Supporting Types

    GetContainerRegistryFilter

    Name string
    Attribute name to filter with.
    Values List<string>
    One or more values filter with.
    Name string
    Attribute name to filter with.
    Values []string
    One or more values filter with.
    name String
    Attribute name to filter with.
    values List<String>
    One or more values filter with.
    name string
    Attribute name to filter with.
    values string[]
    One or more values filter with.
    name str
    Attribute name to filter with.
    values Sequence[str]
    One or more values filter with.
    name String
    Attribute name to filter with.
    values List<String>
    One or more values filter with.

    GetContainerRegistryRepository

    ArtifactCount int
    A count of the artifacts in the repository.
    DateCreated string
    A date-time of when the root user was created.
    DateModified string
    The date-time that the repository was last updated.
    Description string
    A description of the repo, if set.
    Image string
    The image name in the repository.
    Name string
    The name of the repository.
    PullCount int
    A count of the number of pulls against the repository.
    ArtifactCount int
    A count of the artifacts in the repository.
    DateCreated string
    A date-time of when the root user was created.
    DateModified string
    The date-time that the repository was last updated.
    Description string
    A description of the repo, if set.
    Image string
    The image name in the repository.
    Name string
    The name of the repository.
    PullCount int
    A count of the number of pulls against the repository.
    artifactCount Integer
    A count of the artifacts in the repository.
    dateCreated String
    A date-time of when the root user was created.
    dateModified String
    The date-time that the repository was last updated.
    description String
    A description of the repo, if set.
    image String
    The image name in the repository.
    name String
    The name of the repository.
    pullCount Integer
    A count of the number of pulls against the repository.
    artifactCount number
    A count of the artifacts in the repository.
    dateCreated string
    A date-time of when the root user was created.
    dateModified string
    The date-time that the repository was last updated.
    description string
    A description of the repo, if set.
    image string
    The image name in the repository.
    name string
    The name of the repository.
    pullCount number
    A count of the number of pulls against the repository.
    artifact_count int
    A count of the artifacts in the repository.
    date_created str
    A date-time of when the root user was created.
    date_modified str
    The date-time that the repository was last updated.
    description str
    A description of the repo, if set.
    image str
    The image name in the repository.
    name str
    The name of the repository.
    pull_count int
    A count of the number of pulls against the repository.
    artifactCount Number
    A count of the artifacts in the repository.
    dateCreated String
    A date-time of when the root user was created.
    dateModified String
    The date-time that the repository was last updated.
    description String
    A description of the repo, if set.
    image String
    The image name in the repository.
    name String
    The name of the repository.
    pullCount Number
    A count of the number of pulls against the repository.

    Package Details

    Repository
    vultr dirien/pulumi-vultr
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vultr Terraform Provider.
    vultr logo
    Vultr v2.27.1 published on Tuesday, Sep 30, 2025 by dirien
      Meet Neo: Your AI Platform Teammate