1. Packages
  2. Ibm Provider
  3. API Docs
  4. getCrNamespaces
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getCrNamespaces

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Lists all IBM Cloud Container Registry namespaces in your account in the targeted region. For more information about Container Registry, see About IBM Cloud Container Registry.

    Example Usage

    The following example retrieves namespaces for your account in the targeted region.

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const test = ibm.getCrNamespaces({});
    
    import pulumi
    import pulumi_ibm as ibm
    
    test = ibm.get_cr_namespaces()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetCrNamespaces(ctx, &ibm.GetCrNamespacesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Ibm.GetCrNamespaces.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetCrNamespacesArgs;
    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 test = IbmFunctions.getCrNamespaces();
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: ibm:getCrNamespaces
          arguments: {}
    

    Using getCrNamespaces

    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 getCrNamespaces(args: GetCrNamespacesArgs, opts?: InvokeOptions): Promise<GetCrNamespacesResult>
    function getCrNamespacesOutput(args: GetCrNamespacesOutputArgs, opts?: InvokeOptions): Output<GetCrNamespacesResult>
    def get_cr_namespaces(id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetCrNamespacesResult
    def get_cr_namespaces_output(id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetCrNamespacesResult]
    func GetCrNamespaces(ctx *Context, args *GetCrNamespacesArgs, opts ...InvokeOption) (*GetCrNamespacesResult, error)
    func GetCrNamespacesOutput(ctx *Context, args *GetCrNamespacesOutputArgs, opts ...InvokeOption) GetCrNamespacesResultOutput

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

    public static class GetCrNamespaces 
    {
        public static Task<GetCrNamespacesResult> InvokeAsync(GetCrNamespacesArgs args, InvokeOptions? opts = null)
        public static Output<GetCrNamespacesResult> Invoke(GetCrNamespacesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCrNamespacesResult> getCrNamespaces(GetCrNamespacesArgs args, InvokeOptions options)
    public static Output<GetCrNamespacesResult> getCrNamespaces(GetCrNamespacesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCrNamespaces:getCrNamespaces
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    (String) The unique identifier of the ibm.getCrNamespaces datasource.
    Id string
    (String) The unique identifier of the ibm.getCrNamespaces datasource.
    id String
    (String) The unique identifier of the ibm.getCrNamespaces datasource.
    id string
    (String) The unique identifier of the ibm.getCrNamespaces datasource.
    id str
    (String) The unique identifier of the ibm.getCrNamespaces datasource.
    id String
    (String) The unique identifier of the ibm.getCrNamespaces datasource.

    getCrNamespaces Result

    The following output properties are available:

    Id string
    (String) The unique identifier of the ibm.getCrNamespaces datasource.
    Namespaces List<GetCrNamespacesNamespace>
    (List) List of namespaces that are available in the account.
    Id string
    (String) The unique identifier of the ibm.getCrNamespaces datasource.
    Namespaces []GetCrNamespacesNamespace
    (List) List of namespaces that are available in the account.
    id String
    (String) The unique identifier of the ibm.getCrNamespaces datasource.
    namespaces List<GetCrNamespacesNamespace>
    (List) List of namespaces that are available in the account.
    id string
    (String) The unique identifier of the ibm.getCrNamespaces datasource.
    namespaces GetCrNamespacesNamespace[]
    (List) List of namespaces that are available in the account.
    id str
    (String) The unique identifier of the ibm.getCrNamespaces datasource.
    namespaces Sequence[GetCrNamespacesNamespace]
    (List) List of namespaces that are available in the account.
    id String
    (String) The unique identifier of the ibm.getCrNamespaces datasource.
    namespaces List<Property Map>
    (List) List of namespaces that are available in the account.

    Supporting Types

    GetCrNamespacesNamespace

    Account string
    (String) The IBM Cloud account that owns the namespace.
    CreatedDate string
    (Timestamp) The creation date of the namespace.
    CreatedOn string
    Crn string
    (String) If the namespace is assigned to a resource group, the IBM Cloud CRN representing the namespace.
    Name string
    (String) The name of the namespace.
    ResourceCreatedDate string
    (Timestamp) The date that the namespace was assigned to a resource group.
    ResourceGroupId string
    (String) The ID of the resource group to which the namespace is assigned.
    UpdatedDate string
    (Timestamp) The date that the namespace was last updated.
    UpdatedOn string
    Account string
    (String) The IBM Cloud account that owns the namespace.
    CreatedDate string
    (Timestamp) The creation date of the namespace.
    CreatedOn string
    Crn string
    (String) If the namespace is assigned to a resource group, the IBM Cloud CRN representing the namespace.
    Name string
    (String) The name of the namespace.
    ResourceCreatedDate string
    (Timestamp) The date that the namespace was assigned to a resource group.
    ResourceGroupId string
    (String) The ID of the resource group to which the namespace is assigned.
    UpdatedDate string
    (Timestamp) The date that the namespace was last updated.
    UpdatedOn string
    account String
    (String) The IBM Cloud account that owns the namespace.
    createdDate String
    (Timestamp) The creation date of the namespace.
    createdOn String
    crn String
    (String) If the namespace is assigned to a resource group, the IBM Cloud CRN representing the namespace.
    name String
    (String) The name of the namespace.
    resourceCreatedDate String
    (Timestamp) The date that the namespace was assigned to a resource group.
    resourceGroupId String
    (String) The ID of the resource group to which the namespace is assigned.
    updatedDate String
    (Timestamp) The date that the namespace was last updated.
    updatedOn String
    account string
    (String) The IBM Cloud account that owns the namespace.
    createdDate string
    (Timestamp) The creation date of the namespace.
    createdOn string
    crn string
    (String) If the namespace is assigned to a resource group, the IBM Cloud CRN representing the namespace.
    name string
    (String) The name of the namespace.
    resourceCreatedDate string
    (Timestamp) The date that the namespace was assigned to a resource group.
    resourceGroupId string
    (String) The ID of the resource group to which the namespace is assigned.
    updatedDate string
    (Timestamp) The date that the namespace was last updated.
    updatedOn string
    account str
    (String) The IBM Cloud account that owns the namespace.
    created_date str
    (Timestamp) The creation date of the namespace.
    created_on str
    crn str
    (String) If the namespace is assigned to a resource group, the IBM Cloud CRN representing the namespace.
    name str
    (String) The name of the namespace.
    resource_created_date str
    (Timestamp) The date that the namespace was assigned to a resource group.
    resource_group_id str
    (String) The ID of the resource group to which the namespace is assigned.
    updated_date str
    (Timestamp) The date that the namespace was last updated.
    updated_on str
    account String
    (String) The IBM Cloud account that owns the namespace.
    createdDate String
    (Timestamp) The creation date of the namespace.
    createdOn String
    crn String
    (String) If the namespace is assigned to a resource group, the IBM Cloud CRN representing the namespace.
    name String
    (String) The name of the namespace.
    resourceCreatedDate String
    (Timestamp) The date that the namespace was assigned to a resource group.
    resourceGroupId String
    (String) The ID of the resource group to which the namespace is assigned.
    updatedDate String
    (Timestamp) The date that the namespace was last updated.
    updatedOn String

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud