1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. getContainerRegistries
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

ovh.CloudProject.getContainerRegistries

Explore with Pulumi AI

ovh logo
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

    Use this data source to get the container registries of a public cloud project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const registries = ovh.CloudProject.getContainerRegistries({
        serviceName: "XXXXXX",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    registries = ovh.CloudProject.get_container_registries(service_name="XXXXXX")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/CloudProject"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudProject.GetContainerRegistries(ctx, &cloudproject.GetContainerRegistriesArgs{
    			ServiceName: "XXXXXX",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var registries = Ovh.CloudProject.GetContainerRegistries.Invoke(new()
        {
            ServiceName = "XXXXXX",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
    import com.pulumi.ovh.CloudProject.inputs.GetContainerRegistriesArgs;
    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 registries = CloudProjectFunctions.getContainerRegistries(GetContainerRegistriesArgs.builder()
                .serviceName("XXXXXX")
                .build());
    
        }
    }
    
    variables:
      registries:
        fn::invoke:
          Function: ovh:CloudProject:getContainerRegistries
          Arguments:
            serviceName: XXXXXX
    

    Using getContainerRegistries

    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 getContainerRegistries(args: GetContainerRegistriesArgs, opts?: InvokeOptions): Promise<GetContainerRegistriesResult>
    function getContainerRegistriesOutput(args: GetContainerRegistriesOutputArgs, opts?: InvokeOptions): Output<GetContainerRegistriesResult>
    def get_container_registries(service_name: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetContainerRegistriesResult
    def get_container_registries_output(service_name: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetContainerRegistriesResult]
    func GetContainerRegistries(ctx *Context, args *GetContainerRegistriesArgs, opts ...InvokeOption) (*GetContainerRegistriesResult, error)
    func GetContainerRegistriesOutput(ctx *Context, args *GetContainerRegistriesOutputArgs, opts ...InvokeOption) GetContainerRegistriesResultOutput

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

    public static class GetContainerRegistries 
    {
        public static Task<GetContainerRegistriesResult> InvokeAsync(GetContainerRegistriesArgs args, InvokeOptions? opts = null)
        public static Output<GetContainerRegistriesResult> Invoke(GetContainerRegistriesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetContainerRegistriesResult> getContainerRegistries(GetContainerRegistriesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:CloudProject/getContainerRegistries:getContainerRegistries
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    serviceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    service_name str
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    getContainerRegistries Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetContainerRegistriesResult>
    The list of container registries associated with the project.
    ServiceName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetContainerRegistriesResult
    The list of container registries associated with the project.
    ServiceName string
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetContainerRegistriesResult>
    The list of container registries associated with the project.
    serviceName String
    id string
    The provider-assigned unique ID for this managed resource.
    results GetContainerRegistriesResult[]
    The list of container registries associated with the project.
    serviceName string
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[cloudproject.GetContainerRegistriesResult]
    The list of container registries associated with the project.
    service_name str
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The list of container registries associated with the project.
    serviceName String

    Supporting Types

    GetContainerRegistriesResult

    CreatedAt string
    Registry creation date
    Id string
    Registry ID
    Name string
    Registry name
    ProjectId string
    Project ID of your registry
    Region string
    Region of the registry
    Size int
    Current size of the registry (bytes)
    Status string
    Registry status
    UpdatedAt string
    Registry last update date
    Url string
    Access url of the registry
    Version string
    Version of your registry
    CreatedAt string
    Registry creation date
    Id string
    Registry ID
    Name string
    Registry name
    ProjectId string
    Project ID of your registry
    Region string
    Region of the registry
    Size int
    Current size of the registry (bytes)
    Status string
    Registry status
    UpdatedAt string
    Registry last update date
    Url string
    Access url of the registry
    Version string
    Version of your registry
    createdAt String
    Registry creation date
    id String
    Registry ID
    name String
    Registry name
    projectId String
    Project ID of your registry
    region String
    Region of the registry
    size Integer
    Current size of the registry (bytes)
    status String
    Registry status
    updatedAt String
    Registry last update date
    url String
    Access url of the registry
    version String
    Version of your registry
    createdAt string
    Registry creation date
    id string
    Registry ID
    name string
    Registry name
    projectId string
    Project ID of your registry
    region string
    Region of the registry
    size number
    Current size of the registry (bytes)
    status string
    Registry status
    updatedAt string
    Registry last update date
    url string
    Access url of the registry
    version string
    Version of your registry
    created_at str
    Registry creation date
    id str
    Registry ID
    name str
    Registry name
    project_id str
    Project ID of your registry
    region str
    Region of the registry
    size int
    Current size of the registry (bytes)
    status str
    Registry status
    updated_at str
    Registry last update date
    url str
    Access url of the registry
    version str
    Version of your registry
    createdAt String
    Registry creation date
    id String
    Registry ID
    name String
    Registry name
    projectId String
    Project ID of your registry
    region String
    Region of the registry
    size Number
    Current size of the registry (bytes)
    status String
    Registry status
    updatedAt String
    Registry last update date
    url String
    Access url of the registry
    version String
    Version of your registry

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud