ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getCrNamespaces
Explore with Pulumi AI
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<Get
Cr Namespaces Namespace> - (List) List of namespaces that are available in the account.
- Id string
- (String) The unique identifier of the ibm.getCrNamespaces datasource.
- Namespaces
[]Get
Cr Namespaces Namespace - (List) List of namespaces that are available in the account.
- id String
- (String) The unique identifier of the ibm.getCrNamespaces datasource.
- namespaces
List<Get
Cr Namespaces Namespace> - (List) List of namespaces that are available in the account.
- id string
- (String) The unique identifier of the ibm.getCrNamespaces datasource.
- namespaces
Get
Cr Namespaces Namespace[] - (List) List of namespaces that are available in the account.
- id str
- (String) The unique identifier of the ibm.getCrNamespaces datasource.
- namespaces
Sequence[Get
Cr Namespaces Namespace] - (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.
- Created
Date string - (Timestamp) The creation date of the namespace.
- Created
On 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.
- Resource
Created stringDate - (Timestamp) The date that the namespace was assigned to a resource group.
- Resource
Group stringId - (String) The ID of the resource group to which the namespace is assigned.
- Updated
Date string - (Timestamp) The date that the namespace was last updated.
- Updated
On string
- Account string
- (String) The IBM Cloud account that owns the namespace.
- Created
Date string - (Timestamp) The creation date of the namespace.
- Created
On 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.
- Resource
Created stringDate - (Timestamp) The date that the namespace was assigned to a resource group.
- Resource
Group stringId - (String) The ID of the resource group to which the namespace is assigned.
- Updated
Date string - (Timestamp) The date that the namespace was last updated.
- Updated
On string
- account String
- (String) The IBM Cloud account that owns the namespace.
- created
Date String - (Timestamp) The creation date of the namespace.
- created
On 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.
- resource
Created StringDate - (Timestamp) The date that the namespace was assigned to a resource group.
- resource
Group StringId - (String) The ID of the resource group to which the namespace is assigned.
- updated
Date String - (Timestamp) The date that the namespace was last updated.
- updated
On String
- account string
- (String) The IBM Cloud account that owns the namespace.
- created
Date string - (Timestamp) The creation date of the namespace.
- created
On 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.
- resource
Created stringDate - (Timestamp) The date that the namespace was assigned to a resource group.
- resource
Group stringId - (String) The ID of the resource group to which the namespace is assigned.
- updated
Date string - (Timestamp) The date that the namespace was last updated.
- updated
On 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_ strdate - (Timestamp) The date that the namespace was assigned to a resource group.
- resource_
group_ strid - (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.
- created
Date String - (Timestamp) The creation date of the namespace.
- created
On 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.
- resource
Created StringDate - (Timestamp) The date that the namespace was assigned to a resource group.
- resource
Group StringId - (String) The ID of the resource group to which the namespace is assigned.
- updated
Date String - (Timestamp) The date that the namespace was last updated.
- updated
On String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.