1. Packages
  2. Scaleway
  3. API Docs
  4. getRegistryNamespace
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

scaleway.getRegistryNamespace

Explore with Pulumi AI

scaleway logo
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

    Gets information about a registry namespace.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const myNamespace = scaleway.getRegistryNamespace({
        namespaceId: "11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    my_namespace = scaleway.get_registry_namespace(namespace_id="11111111-1111-1111-1111-111111111111")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.LookupRegistryNamespace(ctx, &scaleway.LookupRegistryNamespaceArgs{
    			NamespaceId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var myNamespace = Scaleway.GetRegistryNamespace.Invoke(new()
        {
            NamespaceId = "11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetRegistryNamespaceArgs;
    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 myNamespace = ScalewayFunctions.getRegistryNamespace(GetRegistryNamespaceArgs.builder()
                .namespaceId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    variables:
      myNamespace:
        fn::invoke:
          Function: scaleway:getRegistryNamespace
          Arguments:
            namespaceId: 11111111-1111-1111-1111-111111111111
    

    Using getRegistryNamespace

    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 getRegistryNamespace(args: GetRegistryNamespaceArgs, opts?: InvokeOptions): Promise<GetRegistryNamespaceResult>
    function getRegistryNamespaceOutput(args: GetRegistryNamespaceOutputArgs, opts?: InvokeOptions): Output<GetRegistryNamespaceResult>
    def get_registry_namespace(name: Optional[str] = None,
                               namespace_id: Optional[str] = None,
                               project_id: Optional[str] = None,
                               region: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetRegistryNamespaceResult
    def get_registry_namespace_output(name: Optional[pulumi.Input[str]] = None,
                               namespace_id: Optional[pulumi.Input[str]] = None,
                               project_id: Optional[pulumi.Input[str]] = None,
                               region: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetRegistryNamespaceResult]
    func LookupRegistryNamespace(ctx *Context, args *LookupRegistryNamespaceArgs, opts ...InvokeOption) (*LookupRegistryNamespaceResult, error)
    func LookupRegistryNamespaceOutput(ctx *Context, args *LookupRegistryNamespaceOutputArgs, opts ...InvokeOption) LookupRegistryNamespaceResultOutput

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

    public static class GetRegistryNamespace 
    {
        public static Task<GetRegistryNamespaceResult> InvokeAsync(GetRegistryNamespaceArgs args, InvokeOptions? opts = null)
        public static Output<GetRegistryNamespaceResult> Invoke(GetRegistryNamespaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRegistryNamespaceResult> getRegistryNamespace(GetRegistryNamespaceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getRegistryNamespace:getRegistryNamespace
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The namespace name. Only one of name and namespace_id should be specified.
    NamespaceId string
    The namespace id. Only one of name and namespace_id should be specified.
    ProjectId string
    project_id) The ID of the project the namespace is associated with.
    Region string
    region) The region in which the namespace exists.
    Name string
    The namespace name. Only one of name and namespace_id should be specified.
    NamespaceId string
    The namespace id. Only one of name and namespace_id should be specified.
    ProjectId string
    project_id) The ID of the project the namespace is associated with.
    Region string
    region) The region in which the namespace exists.
    name String
    The namespace name. Only one of name and namespace_id should be specified.
    namespaceId String
    The namespace id. Only one of name and namespace_id should be specified.
    projectId String
    project_id) The ID of the project the namespace is associated with.
    region String
    region) The region in which the namespace exists.
    name string
    The namespace name. Only one of name and namespace_id should be specified.
    namespaceId string
    The namespace id. Only one of name and namespace_id should be specified.
    projectId string
    project_id) The ID of the project the namespace is associated with.
    region string
    region) The region in which the namespace exists.
    name str
    The namespace name. Only one of name and namespace_id should be specified.
    namespace_id str
    The namespace id. Only one of name and namespace_id should be specified.
    project_id str
    project_id) The ID of the project the namespace is associated with.
    region str
    region) The region in which the namespace exists.
    name String
    The namespace name. Only one of name and namespace_id should be specified.
    namespaceId String
    The namespace id. Only one of name and namespace_id should be specified.
    projectId String
    project_id) The ID of the project the namespace is associated with.
    region String
    region) The region in which the namespace exists.

    getRegistryNamespace Result

    The following output properties are available:

    Description string
    Endpoint string
    The endpoint of the Registry Namespace.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsPublic bool
    The Namespace Privacy Policy: whether or not the images are public.
    OrganizationId string
    The organization ID the namespace is associated with.
    Name string
    NamespaceId string
    ProjectId string
    Region string
    Description string
    Endpoint string
    The endpoint of the Registry Namespace.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsPublic bool
    The Namespace Privacy Policy: whether or not the images are public.
    OrganizationId string
    The organization ID the namespace is associated with.
    Name string
    NamespaceId string
    ProjectId string
    Region string
    description String
    endpoint String
    The endpoint of the Registry Namespace.
    id String
    The provider-assigned unique ID for this managed resource.
    isPublic Boolean
    The Namespace Privacy Policy: whether or not the images are public.
    organizationId String
    The organization ID the namespace is associated with.
    name String
    namespaceId String
    projectId String
    region String
    description string
    endpoint string
    The endpoint of the Registry Namespace.
    id string
    The provider-assigned unique ID for this managed resource.
    isPublic boolean
    The Namespace Privacy Policy: whether or not the images are public.
    organizationId string
    The organization ID the namespace is associated with.
    name string
    namespaceId string
    projectId string
    region string
    description str
    endpoint str
    The endpoint of the Registry Namespace.
    id str
    The provider-assigned unique ID for this managed resource.
    is_public bool
    The Namespace Privacy Policy: whether or not the images are public.
    organization_id str
    The organization ID the namespace is associated with.
    name str
    namespace_id str
    project_id str
    region str
    description String
    endpoint String
    The endpoint of the Registry Namespace.
    id String
    The provider-assigned unique ID for this managed resource.
    isPublic Boolean
    The Namespace Privacy Policy: whether or not the images are public.
    organizationId String
    The organization ID the namespace is associated with.
    name String
    namespaceId String
    projectId String
    region String

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse