Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Use this data source to get the list of users of a container registry associated with a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const myRegistry = ovh.CloudProject.getContainerRegistry({
serviceName: "XXXXXX",
registryId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
});
const users = ovh.CloudProject.getContainerRegistryUsers({
serviceName: myRegistryOvhCloudProjectContainerregistry.serviceName,
registryId: myRegistryOvhCloudProjectContainerregistry.id,
});
import pulumi
import pulumi_ovh as ovh
my_registry = ovh.CloudProject.get_container_registry(service_name="XXXXXX",
registry_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx")
users = ovh.CloudProject.get_container_registry_users(service_name=my_registry_ovh_cloud_project_containerregistry["serviceName"],
registry_id=my_registry_ovh_cloud_project_containerregistry["id"])
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudproject.GetContainerRegistry(ctx, &cloudproject.GetContainerRegistryArgs{
ServiceName: "XXXXXX",
RegistryId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
}, nil)
if err != nil {
return err
}
_, err = cloudproject.GetContainerRegistryUsers(ctx, &cloudproject.GetContainerRegistryUsersArgs{
ServiceName: myRegistryOvhCloudProjectContainerregistry.ServiceName,
RegistryId: myRegistryOvhCloudProjectContainerregistry.Id,
}, 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 myRegistry = Ovh.CloudProject.GetContainerRegistry.Invoke(new()
{
ServiceName = "XXXXXX",
RegistryId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
});
var users = Ovh.CloudProject.GetContainerRegistryUsers.Invoke(new()
{
ServiceName = myRegistryOvhCloudProjectContainerregistry.ServiceName,
RegistryId = myRegistryOvhCloudProjectContainerregistry.Id,
});
});
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.GetContainerRegistryArgs;
import com.pulumi.ovh.CloudProject.inputs.GetContainerRegistryUsersArgs;
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 myRegistry = CloudProjectFunctions.getContainerRegistry(GetContainerRegistryArgs.builder()
.serviceName("XXXXXX")
.registryId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx")
.build());
final var users = CloudProjectFunctions.getContainerRegistryUsers(GetContainerRegistryUsersArgs.builder()
.serviceName(myRegistryOvhCloudProjectContainerregistry.serviceName())
.registryId(myRegistryOvhCloudProjectContainerregistry.id())
.build());
}
}
variables:
myRegistry:
fn::invoke:
function: ovh:CloudProject:getContainerRegistry
arguments:
serviceName: XXXXXX
registryId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
users:
fn::invoke:
function: ovh:CloudProject:getContainerRegistryUsers
arguments:
serviceName: ${myRegistryOvhCloudProjectContainerregistry.serviceName}
registryId: ${myRegistryOvhCloudProjectContainerregistry.id}
Using getContainerRegistryUsers
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 getContainerRegistryUsers(args: GetContainerRegistryUsersArgs, opts?: InvokeOptions): Promise<GetContainerRegistryUsersResult>
function getContainerRegistryUsersOutput(args: GetContainerRegistryUsersOutputArgs, opts?: InvokeOptions): Output<GetContainerRegistryUsersResult>def get_container_registry_users(registry_id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContainerRegistryUsersResult
def get_container_registry_users_output(registry_id: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContainerRegistryUsersResult]func LookupContainerRegistryUsers(ctx *Context, args *LookupContainerRegistryUsersArgs, opts ...InvokeOption) (*LookupContainerRegistryUsersResult, error)
func LookupContainerRegistryUsersOutput(ctx *Context, args *LookupContainerRegistryUsersOutputArgs, opts ...InvokeOption) LookupContainerRegistryUsersResultOutput> Note: This function is named LookupContainerRegistryUsers in the Go SDK.
public static class GetContainerRegistryUsers
{
public static Task<GetContainerRegistryUsersResult> InvokeAsync(GetContainerRegistryUsersArgs args, InvokeOptions? opts = null)
public static Output<GetContainerRegistryUsersResult> Invoke(GetContainerRegistryUsersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetContainerRegistryUsersResult> getContainerRegistryUsers(GetContainerRegistryUsersArgs args, InvokeOptions options)
public static Output<GetContainerRegistryUsersResult> getContainerRegistryUsers(GetContainerRegistryUsersArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProject/getContainerRegistryUsers:getContainerRegistryUsers
arguments:
# arguments dictionaryThe following arguments are supported:
- Registry
Id string - Registry ID
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Registry
Id string - Registry ID
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- registry
Id String - Registry ID
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- registry
Id string - Registry ID
- service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- registry_
id str - Registry ID
- service_
name str - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- registry
Id String - Registry ID
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
getContainerRegistryUsers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Registry
Id string - Results
List<Get
Container Registry Users Result> - The list of users of the container registry associated with the project.
- Service
Name string
- Id string
- The provider-assigned unique ID for this managed resource.
- Registry
Id string - Results
[]Get
Container Registry Users Result - The list of users of the container registry associated with the project.
- Service
Name string
- id String
- The provider-assigned unique ID for this managed resource.
- registry
Id String - results
List<Get
Container Registry Users Result> - The list of users of the container registry associated with the project.
- service
Name String
- id string
- The provider-assigned unique ID for this managed resource.
- registry
Id string - results
Get
Container Registry Users Result[] - The list of users of the container registry associated with the project.
- service
Name string
- id str
- The provider-assigned unique ID for this managed resource.
- registry_
id str - results
Sequence[Get
Container Registry Users Result] - The list of users of the container registry associated with the project.
- service_
name str
- id String
- The provider-assigned unique ID for this managed resource.
- registry
Id String - results List<Property Map>
- The list of users of the container registry associated with the project.
- service
Name String
Supporting Types
GetContainerRegistryUsersResult
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
