1. Packages
  2. Vultr
  3. API Docs
  4. getContainerRegistry
Vultr v2.23.1 published on Tuesday, Dec 10, 2024 by dirien

vultr.getContainerRegistry

Explore with Pulumi AI

Get information about a Vultr container registry.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vultr from "@pulumi/vultr";

const vcr-ds = vultr.getContainerRegistry({
    filters: [{
        name: "name",
        values: ["examplecontainerregistry"],
    }],
});
Copy
import pulumi
import pulumi_vultr as vultr

vcr_ds = vultr.get_container_registry(filters=[{
    "name": "name",
    "values": ["examplecontainerregistry"],
}])
Copy
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
	})
}
Copy
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",
                },
            },
        },
    });

});
Copy
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());

    }
}
Copy
variables:
  vcr-ds:
    fn::invoke:
      Function: vultr:getContainerRegistry
      Arguments:
        filters:
          - name: name
            values:
              - examplecontainerregistry
Copy

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>
Copy
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]
Copy
func LookupContainerRegistry(ctx *Context, args *LookupContainerRegistryArgs, opts ...InvokeOption) (*LookupContainerRegistryResult, error)
func LookupContainerRegistryOutput(ctx *Context, args *LookupContainerRegistryOutputArgs, opts ...InvokeOption) LookupContainerRegistryResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetContainerRegistryResult> getContainerRegistry(GetContainerRegistryArgs args, InvokeOptions options)
public static Output<GetContainerRegistryResult> getContainerRegistry(GetContainerRegistryArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vultr:index/getContainerRegistry:getContainerRegistry
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters Changes to this property will trigger replacement. List<ediri.Vultr.Inputs.GetContainerRegistryFilter>
Query parameters for finding the container registry.
Filters Changes to this property will trigger replacement. []GetContainerRegistryFilter
Query parameters for finding the container registry.
filters Changes to this property will trigger replacement. List<GetContainerRegistryFilter>
Query parameters for finding the container registry.
filters Changes to this property will trigger replacement. GetContainerRegistryFilter[]
Query parameters for finding the container registry.
filters Changes to this property will trigger replacement. Sequence[GetContainerRegistryFilter]
Query parameters for finding the container registry.
filters Changes to this property will trigger replacement. 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 This property is required. string
Attribute name to filter with.
Values This property is required. List<string>
One or more values filter with.
Name This property is required. string
Attribute name to filter with.
Values This property is required. []string
One or more values filter with.
name This property is required. String
Attribute name to filter with.
values This property is required. List<String>
One or more values filter with.
name This property is required. string
Attribute name to filter with.
values This property is required. string[]
One or more values filter with.
name This property is required. str
Attribute name to filter with.
values This property is required. Sequence[str]
One or more values filter with.
name This property is required. String
Attribute name to filter with.
values This property is required. List<String>
One or more values filter with.

GetContainerRegistryRepository

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