1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. getContainerRegistryOIDC
OVHCloud v0.42.0 published on Tuesday, Apr 9, 2024 by OVHcloud

ovh.CloudProject.getContainerRegistryOIDC

Explore with Pulumi AI

ovh logo
OVHCloud v0.42.0 published on Tuesday, Apr 9, 2024 by OVHcloud

    Use this data source to get a OVHcloud Managed Private Registry OIDC.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    export = async () => {
        const my-oidc = await ovh.CloudProject.getContainerRegistryOIDC({
            serviceName: "XXXXXX",
            registryId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
        });
        return {
            "oidc-client-id": my_oidc.oidcClientId,
        };
    }
    
    import pulumi
    import pulumi_ovh as ovh
    
    my_oidc = ovh.CloudProject.get_container_registry_oidc(service_name="XXXXXX",
        registry_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx")
    pulumi.export("oidc-client-id", my_oidc.oidc_client_id)
    
    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 {
    		my_oidc, err := CloudProject.GetContainerRegistryOIDC(ctx, &cloudproject.GetContainerRegistryOIDCArgs{
    			ServiceName: "XXXXXX",
    			RegistryId:  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("oidc-client-id", my_oidc.OidcClientId)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var my_oidc = Ovh.CloudProject.GetContainerRegistryOIDC.Invoke(new()
        {
            ServiceName = "XXXXXX",
            RegistryId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
        });
    
        return new Dictionary<string, object?>
        {
            ["oidc-client-id"] = my_oidc.Apply(my_oidc => my_oidc.Apply(getContainerRegistryOIDCResult => getContainerRegistryOIDCResult.OidcClientId)),
        };
    });
    
    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.GetContainerRegistryOIDCArgs;
    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 my-oidc = CloudProjectFunctions.getContainerRegistryOIDC(GetContainerRegistryOIDCArgs.builder()
                .serviceName("XXXXXX")
                .registryId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx")
                .build());
    
            ctx.export("oidc-client-id", my_oidc.oidcClientId());
        }
    }
    
    variables:
      my-oidc:
        fn::invoke:
          Function: ovh:CloudProject:getContainerRegistryOIDC
          Arguments:
            serviceName: XXXXXX
            registryId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
    outputs:
      oidc-client-id: ${["my-oidc"].oidcClientId}
    

    Using getContainerRegistryOIDC

    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 getContainerRegistryOIDC(args: GetContainerRegistryOIDCArgs, opts?: InvokeOptions): Promise<GetContainerRegistryOIDCResult>
    function getContainerRegistryOIDCOutput(args: GetContainerRegistryOIDCOutputArgs, opts?: InvokeOptions): Output<GetContainerRegistryOIDCResult>
    def get_container_registry_oidc(oidc_admin_group: Optional[str] = None,
                                    oidc_auto_onboard: Optional[bool] = None,
                                    oidc_client_id: Optional[str] = None,
                                    oidc_endpoint: Optional[str] = None,
                                    oidc_groups_claim: Optional[str] = None,
                                    oidc_name: Optional[str] = None,
                                    oidc_scope: Optional[str] = None,
                                    oidc_user_claim: Optional[str] = None,
                                    oidc_verify_cert: Optional[bool] = None,
                                    registry_id: Optional[str] = None,
                                    service_name: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetContainerRegistryOIDCResult
    def get_container_registry_oidc_output(oidc_admin_group: Optional[pulumi.Input[str]] = None,
                                    oidc_auto_onboard: Optional[pulumi.Input[bool]] = None,
                                    oidc_client_id: Optional[pulumi.Input[str]] = None,
                                    oidc_endpoint: Optional[pulumi.Input[str]] = None,
                                    oidc_groups_claim: Optional[pulumi.Input[str]] = None,
                                    oidc_name: Optional[pulumi.Input[str]] = None,
                                    oidc_scope: Optional[pulumi.Input[str]] = None,
                                    oidc_user_claim: Optional[pulumi.Input[str]] = None,
                                    oidc_verify_cert: Optional[pulumi.Input[bool]] = None,
                                    registry_id: Optional[pulumi.Input[str]] = None,
                                    service_name: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetContainerRegistryOIDCResult]
    func GetContainerRegistryOIDC(ctx *Context, args *GetContainerRegistryOIDCArgs, opts ...InvokeOption) (*GetContainerRegistryOIDCResult, error)
    func GetContainerRegistryOIDCOutput(ctx *Context, args *GetContainerRegistryOIDCOutputArgs, opts ...InvokeOption) GetContainerRegistryOIDCResultOutput

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

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

    The following arguments are supported:

    RegistryId string
    The id of the Managed Private Registry.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    OidcAdminGroup string
    Specify an OIDC admin group name. All OIDC users in this group will have harbor admin privilege. Keep it blank if you do not want to.
    OidcAutoOnboard bool
    Skip the onboarding screen, so user cannot change its username. Username is provided from ID Token.
    OidcClientId string
    The client ID with which Harbor is registered as client application with the OIDC provider.
    OidcEndpoint string
    The URL of an OIDC-compliant server.
    OidcGroupsClaim string
    The name of Claim in the ID token whose value is the list of group names.
    OidcName string
    The name of the OIDC provider.
    OidcScope string
    The scope sent to OIDC server during authentication. It's a comma-separated string that must contain 'openid' and usually also contains 'profile' and 'email'. To obtain refresh tokens it should also contain 'offline_access'.
    OidcUserClaim string
    The name of the claim in the ID Token where the username is retrieved from. If not specified, it will default to 'name' (only useful when automatic Onboarding is enabled).
    OidcVerifyCert bool
    Set it to false if your OIDC server is hosted via self-signed certificate.
    RegistryId string
    The id of the Managed Private Registry.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    OidcAdminGroup string
    Specify an OIDC admin group name. All OIDC users in this group will have harbor admin privilege. Keep it blank if you do not want to.
    OidcAutoOnboard bool
    Skip the onboarding screen, so user cannot change its username. Username is provided from ID Token.
    OidcClientId string
    The client ID with which Harbor is registered as client application with the OIDC provider.
    OidcEndpoint string
    The URL of an OIDC-compliant server.
    OidcGroupsClaim string
    The name of Claim in the ID token whose value is the list of group names.
    OidcName string
    The name of the OIDC provider.
    OidcScope string
    The scope sent to OIDC server during authentication. It's a comma-separated string that must contain 'openid' and usually also contains 'profile' and 'email'. To obtain refresh tokens it should also contain 'offline_access'.
    OidcUserClaim string
    The name of the claim in the ID Token where the username is retrieved from. If not specified, it will default to 'name' (only useful when automatic Onboarding is enabled).
    OidcVerifyCert bool
    Set it to false if your OIDC server is hosted via self-signed certificate.
    registryId String
    The id of the Managed Private Registry.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    oidcAdminGroup String
    Specify an OIDC admin group name. All OIDC users in this group will have harbor admin privilege. Keep it blank if you do not want to.
    oidcAutoOnboard Boolean
    Skip the onboarding screen, so user cannot change its username. Username is provided from ID Token.
    oidcClientId String
    The client ID with which Harbor is registered as client application with the OIDC provider.
    oidcEndpoint String
    The URL of an OIDC-compliant server.
    oidcGroupsClaim String
    The name of Claim in the ID token whose value is the list of group names.
    oidcName String
    The name of the OIDC provider.
    oidcScope String
    The scope sent to OIDC server during authentication. It's a comma-separated string that must contain 'openid' and usually also contains 'profile' and 'email'. To obtain refresh tokens it should also contain 'offline_access'.
    oidcUserClaim String
    The name of the claim in the ID Token where the username is retrieved from. If not specified, it will default to 'name' (only useful when automatic Onboarding is enabled).
    oidcVerifyCert Boolean
    Set it to false if your OIDC server is hosted via self-signed certificate.
    registryId string
    The id of the Managed Private Registry.
    serviceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    oidcAdminGroup string
    Specify an OIDC admin group name. All OIDC users in this group will have harbor admin privilege. Keep it blank if you do not want to.
    oidcAutoOnboard boolean
    Skip the onboarding screen, so user cannot change its username. Username is provided from ID Token.
    oidcClientId string
    The client ID with which Harbor is registered as client application with the OIDC provider.
    oidcEndpoint string
    The URL of an OIDC-compliant server.
    oidcGroupsClaim string
    The name of Claim in the ID token whose value is the list of group names.
    oidcName string
    The name of the OIDC provider.
    oidcScope string
    The scope sent to OIDC server during authentication. It's a comma-separated string that must contain 'openid' and usually also contains 'profile' and 'email'. To obtain refresh tokens it should also contain 'offline_access'.
    oidcUserClaim string
    The name of the claim in the ID Token where the username is retrieved from. If not specified, it will default to 'name' (only useful when automatic Onboarding is enabled).
    oidcVerifyCert boolean
    Set it to false if your OIDC server is hosted via self-signed certificate.
    registry_id str
    The id of the Managed Private Registry.
    service_name str
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    oidc_admin_group str
    Specify an OIDC admin group name. All OIDC users in this group will have harbor admin privilege. Keep it blank if you do not want to.
    oidc_auto_onboard bool
    Skip the onboarding screen, so user cannot change its username. Username is provided from ID Token.
    oidc_client_id str
    The client ID with which Harbor is registered as client application with the OIDC provider.
    oidc_endpoint str
    The URL of an OIDC-compliant server.
    oidc_groups_claim str
    The name of Claim in the ID token whose value is the list of group names.
    oidc_name str
    The name of the OIDC provider.
    oidc_scope str
    The scope sent to OIDC server during authentication. It's a comma-separated string that must contain 'openid' and usually also contains 'profile' and 'email'. To obtain refresh tokens it should also contain 'offline_access'.
    oidc_user_claim str
    The name of the claim in the ID Token where the username is retrieved from. If not specified, it will default to 'name' (only useful when automatic Onboarding is enabled).
    oidc_verify_cert bool
    Set it to false if your OIDC server is hosted via self-signed certificate.
    registryId String
    The id of the Managed Private Registry.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    oidcAdminGroup String
    Specify an OIDC admin group name. All OIDC users in this group will have harbor admin privilege. Keep it blank if you do not want to.
    oidcAutoOnboard Boolean
    Skip the onboarding screen, so user cannot change its username. Username is provided from ID Token.
    oidcClientId String
    The client ID with which Harbor is registered as client application with the OIDC provider.
    oidcEndpoint String
    The URL of an OIDC-compliant server.
    oidcGroupsClaim String
    The name of Claim in the ID token whose value is the list of group names.
    oidcName String
    The name of the OIDC provider.
    oidcScope String
    The scope sent to OIDC server during authentication. It's a comma-separated string that must contain 'openid' and usually also contains 'profile' and 'email'. To obtain refresh tokens it should also contain 'offline_access'.
    oidcUserClaim String
    The name of the claim in the ID Token where the username is retrieved from. If not specified, it will default to 'name' (only useful when automatic Onboarding is enabled).
    oidcVerifyCert Boolean
    Set it to false if your OIDC server is hosted via self-signed certificate.

    getContainerRegistryOIDC Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    RegistryId string
    The ID of the Managed Private Registry.
    ServiceName string
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    OidcAdminGroup string
    Specify an OIDC admin group name. All OIDC users in this group will have harbor admin privilege. Keep it blank if you do not want to.
    OidcAutoOnboard bool
    Skip the onboarding screen, so user cannot change its username. Username is provided from ID Token.
    OidcClientId string
    The client ID with which Harbor is registered as client application with the OIDC provider.
    OidcEndpoint string
    The URL of an OIDC-compliant server.
    OidcGroupsClaim string
    The name of Claim in the ID token whose value is the list of group names.
    OidcName string
    The name of the OIDC provider.
    OidcScope string
    The scope sent to OIDC server during authentication. It's a comma-separated string that must contain 'openid' and usually also contains 'profile' and 'email'. To obtain refresh tokens it should also contain 'offline_access'.
    OidcUserClaim string
    The name of the claim in the ID Token where the username is retrieved from. If not specified, it will default to 'name' (only useful when automatic Onboarding is enabled).
    OidcVerifyCert bool
    Set it to false if your OIDC server is hosted via self-signed certificate.
    Id string
    The provider-assigned unique ID for this managed resource.
    RegistryId string
    The ID of the Managed Private Registry.
    ServiceName string
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    OidcAdminGroup string
    Specify an OIDC admin group name. All OIDC users in this group will have harbor admin privilege. Keep it blank if you do not want to.
    OidcAutoOnboard bool
    Skip the onboarding screen, so user cannot change its username. Username is provided from ID Token.
    OidcClientId string
    The client ID with which Harbor is registered as client application with the OIDC provider.
    OidcEndpoint string
    The URL of an OIDC-compliant server.
    OidcGroupsClaim string
    The name of Claim in the ID token whose value is the list of group names.
    OidcName string
    The name of the OIDC provider.
    OidcScope string
    The scope sent to OIDC server during authentication. It's a comma-separated string that must contain 'openid' and usually also contains 'profile' and 'email'. To obtain refresh tokens it should also contain 'offline_access'.
    OidcUserClaim string
    The name of the claim in the ID Token where the username is retrieved from. If not specified, it will default to 'name' (only useful when automatic Onboarding is enabled).
    OidcVerifyCert bool
    Set it to false if your OIDC server is hosted via self-signed certificate.
    id String
    The provider-assigned unique ID for this managed resource.
    registryId String
    The ID of the Managed Private Registry.
    serviceName String
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    oidcAdminGroup String
    Specify an OIDC admin group name. All OIDC users in this group will have harbor admin privilege. Keep it blank if you do not want to.
    oidcAutoOnboard Boolean
    Skip the onboarding screen, so user cannot change its username. Username is provided from ID Token.
    oidcClientId String
    The client ID with which Harbor is registered as client application with the OIDC provider.
    oidcEndpoint String
    The URL of an OIDC-compliant server.
    oidcGroupsClaim String
    The name of Claim in the ID token whose value is the list of group names.
    oidcName String
    The name of the OIDC provider.
    oidcScope String
    The scope sent to OIDC server during authentication. It's a comma-separated string that must contain 'openid' and usually also contains 'profile' and 'email'. To obtain refresh tokens it should also contain 'offline_access'.
    oidcUserClaim String
    The name of the claim in the ID Token where the username is retrieved from. If not specified, it will default to 'name' (only useful when automatic Onboarding is enabled).
    oidcVerifyCert Boolean
    Set it to false if your OIDC server is hosted via self-signed certificate.
    id string
    The provider-assigned unique ID for this managed resource.
    registryId string
    The ID of the Managed Private Registry.
    serviceName string
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    oidcAdminGroup string
    Specify an OIDC admin group name. All OIDC users in this group will have harbor admin privilege. Keep it blank if you do not want to.
    oidcAutoOnboard boolean
    Skip the onboarding screen, so user cannot change its username. Username is provided from ID Token.
    oidcClientId string
    The client ID with which Harbor is registered as client application with the OIDC provider.
    oidcEndpoint string
    The URL of an OIDC-compliant server.
    oidcGroupsClaim string
    The name of Claim in the ID token whose value is the list of group names.
    oidcName string
    The name of the OIDC provider.
    oidcScope string
    The scope sent to OIDC server during authentication. It's a comma-separated string that must contain 'openid' and usually also contains 'profile' and 'email'. To obtain refresh tokens it should also contain 'offline_access'.
    oidcUserClaim string
    The name of the claim in the ID Token where the username is retrieved from. If not specified, it will default to 'name' (only useful when automatic Onboarding is enabled).
    oidcVerifyCert boolean
    Set it to false if your OIDC server is hosted via self-signed certificate.
    id str
    The provider-assigned unique ID for this managed resource.
    registry_id str
    The ID of the Managed Private Registry.
    service_name str
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    oidc_admin_group str
    Specify an OIDC admin group name. All OIDC users in this group will have harbor admin privilege. Keep it blank if you do not want to.
    oidc_auto_onboard bool
    Skip the onboarding screen, so user cannot change its username. Username is provided from ID Token.
    oidc_client_id str
    The client ID with which Harbor is registered as client application with the OIDC provider.
    oidc_endpoint str
    The URL of an OIDC-compliant server.
    oidc_groups_claim str
    The name of Claim in the ID token whose value is the list of group names.
    oidc_name str
    The name of the OIDC provider.
    oidc_scope str
    The scope sent to OIDC server during authentication. It's a comma-separated string that must contain 'openid' and usually also contains 'profile' and 'email'. To obtain refresh tokens it should also contain 'offline_access'.
    oidc_user_claim str
    The name of the claim in the ID Token where the username is retrieved from. If not specified, it will default to 'name' (only useful when automatic Onboarding is enabled).
    oidc_verify_cert bool
    Set it to false if your OIDC server is hosted via self-signed certificate.
    id String
    The provider-assigned unique ID for this managed resource.
    registryId String
    The ID of the Managed Private Registry.
    serviceName String
    The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    oidcAdminGroup String
    Specify an OIDC admin group name. All OIDC users in this group will have harbor admin privilege. Keep it blank if you do not want to.
    oidcAutoOnboard Boolean
    Skip the onboarding screen, so user cannot change its username. Username is provided from ID Token.
    oidcClientId String
    The client ID with which Harbor is registered as client application with the OIDC provider.
    oidcEndpoint String
    The URL of an OIDC-compliant server.
    oidcGroupsClaim String
    The name of Claim in the ID token whose value is the list of group names.
    oidcName String
    The name of the OIDC provider.
    oidcScope String
    The scope sent to OIDC server during authentication. It's a comma-separated string that must contain 'openid' and usually also contains 'profile' and 'email'. To obtain refresh tokens it should also contain 'offline_access'.
    oidcUserClaim String
    The name of the claim in the ID Token where the username is retrieved from. If not specified, it will default to 'name' (only useful when automatic Onboarding is enabled).
    oidcVerifyCert Boolean
    Set it to false if your OIDC server is hosted via self-signed certificate.

    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 v0.42.0 published on Tuesday, Apr 9, 2024 by OVHcloud