OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud
ovh.CloudProject.getContainerRegistries
Explore with Pulumi AI
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:
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- service
Name String - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- service
Name 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.
- service
Name 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<Get
Container Registries Result> - The list of container registries associated with the project.
- Service
Name string
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Container Registries Result - The list of container registries associated with the project.
- Service
Name string
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Container Registries Result> - The list of container registries associated with the project.
- service
Name String
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Container Registries Result[] - The list of container registries associated with the project.
- service
Name string
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[cloudproject.
Get Container Registries Result] - 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.
- service
Name String
Supporting Types
GetContainerRegistriesResult
- Created
At string - Registry creation date
- Id string
- Registry ID
- Name string
- Registry name
- Project
Id string - Project ID of your registry
- Region string
- Region of the registry
- Size int
- Current size of the registry (bytes)
- Status string
- Registry status
- Updated
At string - Registry last update date
- Url string
- Access url of the registry
- Version string
- Version of your registry
- Created
At string - Registry creation date
- Id string
- Registry ID
- Name string
- Registry name
- Project
Id string - Project ID of your registry
- Region string
- Region of the registry
- Size int
- Current size of the registry (bytes)
- Status string
- Registry status
- Updated
At string - Registry last update date
- Url string
- Access url of the registry
- Version string
- Version of your registry
- created
At String - Registry creation date
- id String
- Registry ID
- name String
- Registry name
- project
Id String - Project ID of your registry
- region String
- Region of the registry
- size Integer
- Current size of the registry (bytes)
- status String
- Registry status
- updated
At String - Registry last update date
- url String
- Access url of the registry
- version String
- Version of your registry
- created
At string - Registry creation date
- id string
- Registry ID
- name string
- Registry name
- project
Id string - Project ID of your registry
- region string
- Region of the registry
- size number
- Current size of the registry (bytes)
- status string
- Registry status
- updated
At 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
- created
At String - Registry creation date
- id String
- Registry ID
- name String
- Registry name
- project
Id String - Project ID of your registry
- region String
- Region of the registry
- size Number
- Current size of the registry (bytes)
- status String
- Registry status
- updated
At 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.