Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of cr namespaces
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.cr.getNamespaces({
names: ["namespace-*"],
registry: "tf-1",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.cr.get_namespaces(names=["namespace-*"],
registry="tf-1")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cr"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cr.GetNamespaces(ctx, &cr.GetNamespacesArgs{
Names: []string{
"namespace-*",
},
Registry: "tf-1",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Cr.GetNamespaces.Invoke(new()
{
Names = new[]
{
"namespace-*",
},
Registry = "tf-1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cr.CrFunctions;
import com.pulumi.volcengine.cr.inputs.GetNamespacesArgs;
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 foo = CrFunctions.getNamespaces(GetNamespacesArgs.builder()
.names("namespace-*")
.registry("tf-1")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:cr:getNamespaces
Arguments:
names:
- namespace-*
registry: tf-1
Using getNamespaces
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 getNamespaces(args: GetNamespacesArgs, opts?: InvokeOptions): Promise<GetNamespacesResult>
function getNamespacesOutput(args: GetNamespacesOutputArgs, opts?: InvokeOptions): Output<GetNamespacesResult>def get_namespaces(names: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
projects: Optional[Sequence[str]] = None,
registry: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNamespacesResult
def get_namespaces_output(names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
projects: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
registry: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNamespacesResult]func GetNamespaces(ctx *Context, args *GetNamespacesArgs, opts ...InvokeOption) (*GetNamespacesResult, error)
func GetNamespacesOutput(ctx *Context, args *GetNamespacesOutputArgs, opts ...InvokeOption) GetNamespacesResultOutput> Note: This function is named GetNamespaces in the Go SDK.
public static class GetNamespaces
{
public static Task<GetNamespacesResult> InvokeAsync(GetNamespacesArgs args, InvokeOptions? opts = null)
public static Output<GetNamespacesResult> Invoke(GetNamespacesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNamespacesResult> getNamespaces(GetNamespacesArgs args, InvokeOptions options)
public static Output<GetNamespacesResult> getNamespaces(GetNamespacesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:cr/getNamespaces:getNamespaces
arguments:
# arguments dictionaryThe following arguments are supported:
- Registry string
- The target cr instance name.
- Names List<string>
- The list of instance IDs.
- Output
File string - File name where to save data source results.
- Projects List<string>
- The list of project names to query.
- Registry string
- The target cr instance name.
- Names []string
- The list of instance IDs.
- Output
File string - File name where to save data source results.
- Projects []string
- The list of project names to query.
- registry String
- The target cr instance name.
- names List<String>
- The list of instance IDs.
- output
File String - File name where to save data source results.
- projects List<String>
- The list of project names to query.
- registry string
- The target cr instance name.
- names string[]
- The list of instance IDs.
- output
File string - File name where to save data source results.
- projects string[]
- The list of project names to query.
- registry str
- The target cr instance name.
- names Sequence[str]
- The list of instance IDs.
- output_
file str - File name where to save data source results.
- projects Sequence[str]
- The list of project names to query.
- registry String
- The target cr instance name.
- names List<String>
- The list of instance IDs.
- output
File String - File name where to save data source results.
- projects List<String>
- The list of project names to query.
getNamespaces Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Namespaces
List<Get
Namespaces Namespace> - The collection of namespaces query.
- Registry string
- Total
Count int - The total count of instance query.
- Names List<string>
- Output
File string - Projects List<string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Namespaces
[]Get
Namespaces Namespace - The collection of namespaces query.
- Registry string
- Total
Count int - The total count of instance query.
- Names []string
- Output
File string - Projects []string
- id String
- The provider-assigned unique ID for this managed resource.
- namespaces
List<Get
Namespaces Namespace> - The collection of namespaces query.
- registry String
- total
Count Integer - The total count of instance query.
- names List<String>
- output
File String - projects List<String>
- id string
- The provider-assigned unique ID for this managed resource.
- namespaces
Get
Namespaces Namespace[] - The collection of namespaces query.
- registry string
- total
Count number - The total count of instance query.
- names string[]
- output
File string - projects string[]
- id str
- The provider-assigned unique ID for this managed resource.
- namespaces
Sequence[Get
Namespaces Namespace] - The collection of namespaces query.
- registry str
- total_
count int - The total count of instance query.
- names Sequence[str]
- output_
file str - projects Sequence[str]
- id String
- The provider-assigned unique ID for this managed resource.
- namespaces List<Property Map>
- The collection of namespaces query.
- registry String
- total
Count Number - The total count of instance query.
- names List<String>
- output
File String - projects List<String>
Supporting Types
GetNamespacesNamespace
- Create
Time string - The time when namespace created.
- Name string
- The name of OCI repository.
- Project string
- The ProjectName of the CrNamespace.
- Repository
Default stringAccess Level - The default access level of repository. Valid values:
Private,Public.
- Create
Time string - The time when namespace created.
- Name string
- The name of OCI repository.
- Project string
- The ProjectName of the CrNamespace.
- Repository
Default stringAccess Level - The default access level of repository. Valid values:
Private,Public.
- create
Time String - The time when namespace created.
- name String
- The name of OCI repository.
- project String
- The ProjectName of the CrNamespace.
- repository
Default StringAccess Level - The default access level of repository. Valid values:
Private,Public.
- create
Time string - The time when namespace created.
- name string
- The name of OCI repository.
- project string
- The ProjectName of the CrNamespace.
- repository
Default stringAccess Level - The default access level of repository. Valid values:
Private,Public.
- create_
time str - The time when namespace created.
- name str
- The name of OCI repository.
- project str
- The ProjectName of the CrNamespace.
- repository_
default_ straccess_ level - The default access level of repository. Valid values:
Private,Public.
- create
Time String - The time when namespace created.
- name String
- The name of OCI repository.
- project String
- The ProjectName of the CrNamespace.
- repository
Default StringAccess Level - The default access level of repository. Valid values:
Private,Public.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
