Ovh

v0.0.4 published on Saturday, Sep 17, 2022 by lbrlabs

getCloudProjectContainerRegistryUsers

Use this data source to get the list of users of a container registry associated with a public cloud project.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var registry = Ovh.GetCloudProjectContainerRegistry.Invoke(new()
    {
        ServiceName = "XXXXXX",
        RegistryId = "yyyy",
    });

    var users = Ovh.GetCloudProjectContainerRegistryUsers.Invoke(new()
    {
        ServiceName = ovh_cloud_project_containerregistry.Registry.Service_name,
        RegistryId = ovh_cloud_project_containerregistry.Registry.Id,
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ovh.LookupCloudProjectContainerRegistry(ctx, &GetCloudProjectContainerRegistryArgs{
			ServiceName: "XXXXXX",
			RegistryId:  "yyyy",
		}, nil)
		if err != nil {
			return err
		}
		_, err = ovh.LookupCloudProjectContainerRegistryUsers(ctx, &GetCloudProjectContainerRegistryUsersArgs{
			ServiceName: ovh_cloud_project_containerregistry.Registry.Service_name,
			RegistryId:  ovh_cloud_project_containerregistry.Registry.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.OvhFunctions;
import com.pulumi.ovh.inputs.GetCloudProjectContainerRegistryArgs;
import com.pulumi.ovh.inputs.GetCloudProjectContainerRegistryUsersArgs;
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 registry = OvhFunctions.getCloudProjectContainerRegistry(GetCloudProjectContainerRegistryArgs.builder()
            .serviceName("XXXXXX")
            .registryId("yyyy")
            .build());

        final var users = OvhFunctions.getCloudProjectContainerRegistryUsers(GetCloudProjectContainerRegistryUsersArgs.builder()
            .serviceName(ovh_cloud_project_containerregistry.registry().service_name())
            .registryId(ovh_cloud_project_containerregistry.registry().id())
            .build());

    }
}
import pulumi
import pulumi_ovh as ovh

registry = ovh.get_cloud_project_container_registry(service_name="XXXXXX",
    registry_id="yyyy")
users = ovh.get_cloud_project_container_registry_users(service_name=ovh_cloud_project_containerregistry["registry"]["service_name"],
    registry_id=ovh_cloud_project_containerregistry["registry"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const registry = ovh.getCloudProjectContainerRegistry({
    serviceName: "XXXXXX",
    registryId: "yyyy",
});
const users = ovh.getCloudProjectContainerRegistryUsers({
    serviceName: ovh_cloud_project_containerregistry.registry.service_name,
    registryId: ovh_cloud_project_containerregistry.registry.id,
});
variables:
  registry:
    Fn::Invoke:
      Function: ovh:getCloudProjectContainerRegistry
      Arguments:
        serviceName: XXXXXX
        registryId: yyyy
  users:
    Fn::Invoke:
      Function: ovh:getCloudProjectContainerRegistryUsers
      Arguments:
        serviceName: ${ovh_cloud_project_containerregistry.registry.service_name}
        registryId: ${ovh_cloud_project_containerregistry.registry.id}

Using getCloudProjectContainerRegistryUsers

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 getCloudProjectContainerRegistryUsers(args: GetCloudProjectContainerRegistryUsersArgs, opts?: InvokeOptions): Promise<GetCloudProjectContainerRegistryUsersResult>
function getCloudProjectContainerRegistryUsersOutput(args: GetCloudProjectContainerRegistryUsersOutputArgs, opts?: InvokeOptions): Output<GetCloudProjectContainerRegistryUsersResult>
def get_cloud_project_container_registry_users(registry_id: Optional[str] = None,
                                               service_name: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetCloudProjectContainerRegistryUsersResult
def get_cloud_project_container_registry_users_output(registry_id: Optional[pulumi.Input[str]] = None,
                                               service_name: Optional[pulumi.Input[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetCloudProjectContainerRegistryUsersResult]
func LookupCloudProjectContainerRegistryUsers(ctx *Context, args *LookupCloudProjectContainerRegistryUsersArgs, opts ...InvokeOption) (*LookupCloudProjectContainerRegistryUsersResult, error)
func LookupCloudProjectContainerRegistryUsersOutput(ctx *Context, args *LookupCloudProjectContainerRegistryUsersOutputArgs, opts ...InvokeOption) LookupCloudProjectContainerRegistryUsersResultOutput

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

public static class GetCloudProjectContainerRegistryUsers 
{
    public static Task<GetCloudProjectContainerRegistryUsersResult> InvokeAsync(GetCloudProjectContainerRegistryUsersArgs args, InvokeOptions? opts = null)
    public static Output<GetCloudProjectContainerRegistryUsersResult> Invoke(GetCloudProjectContainerRegistryUsersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCloudProjectContainerRegistryUsersResult> getCloudProjectContainerRegistryUsers(GetCloudProjectContainerRegistryUsersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: ovh:index/getCloudProjectContainerRegistryUsers:getCloudProjectContainerRegistryUsers
  Arguments:
    # Arguments dictionary

The following arguments are supported:

RegistryId string

Registry ID

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

RegistryId string

Registry ID

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

registryId String

Registry ID

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

registryId string

Registry ID

serviceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

registry_id str

Registry ID

service_name str

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

registryId String

Registry ID

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

getCloudProjectContainerRegistryUsers Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

RegistryId string
Results List<Lbrlabs.PulumiPackage.Ovh.Outputs.GetCloudProjectContainerRegistryUsersResult>

The list of users of the container registry associated with the project.

ServiceName string
Id string

The provider-assigned unique ID for this managed resource.

RegistryId string
Results []GetCloudProjectContainerRegistryUsersResult

The list of users of the container registry associated with the project.

ServiceName string
id String

The provider-assigned unique ID for this managed resource.

registryId String
results List<GetCloudProjectContainerRegistryUsersResult>

The list of users of the container registry associated with the project.

serviceName String
id string

The provider-assigned unique ID for this managed resource.

registryId string
results GetCloudProjectContainerRegistryUsersResult[]

The list of users of the container registry associated with the project.

serviceName string
id str

The provider-assigned unique ID for this managed resource.

registry_id str
results Sequence[GetCloudProjectContainerRegistryUsersResult]

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.

registryId String
results List<Property Map>

The list of users of the container registry associated with the project.

serviceName String

Supporting Types

GetCloudProjectContainerRegistryUsersResult

Email string

User email

Id string

User ID

User string

User name

Email string

User email

Id string

User ID

User string

User name

email String

User email

id String

User ID

user String

User name

email string

User email

id string

User ID

user string

User name

email str

User email

id str

User ID

user str

User name

email String

User email

id String

User ID

user String

User name

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.