Scaleway v1.37.0 published on Friday, Nov 7, 2025 by pulumiverse
scaleway.containers.getNamespace
Scaleway v1.37.0 published on Friday, Nov 7, 2025 by pulumiverse
The scaleway.containers.Namespace data source is used to retrieve information about a Serverless Containers namespace.
Refer to the Serverless Containers product documentation and API documentation for more information.
Retrieve a Serverless Containers namespace
The following commands allow you to:
- retrieve a namespace by its name
- retrieve a namespace by its ID
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// Get info by namespace name
const byName = scaleway.containers.getNamespace({
name: "my-namespace-name",
});
// Get info by namespace ID
const byId = scaleway.containers.getNamespace({
namespaceId: "11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
# Get info by namespace name
by_name = scaleway.containers.get_namespace(name="my-namespace-name")
# Get info by namespace ID
by_id = scaleway.containers.get_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/containers"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Get info by namespace name
_, err := containers.LookupNamespace(ctx, &containers.LookupNamespaceArgs{
Name: pulumi.StringRef("my-namespace-name"),
}, nil)
if err != nil {
return err
}
// Get info by namespace ID
_, err = containers.LookupNamespace(ctx, &containers.LookupNamespaceArgs{
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(() =>
{
// Get info by namespace name
var byName = Scaleway.Containers.GetNamespace.Invoke(new()
{
Name = "my-namespace-name",
});
// Get info by namespace ID
var byId = Scaleway.Containers.GetNamespace.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.containers.ContainersFunctions;
import com.pulumi.scaleway.containers.inputs.GetNamespaceArgs;
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) {
// Get info by namespace name
final var byName = ContainersFunctions.getNamespace(GetNamespaceArgs.builder()
.name("my-namespace-name")
.build());
// Get info by namespace ID
final var byId = ContainersFunctions.getNamespace(GetNamespaceArgs.builder()
.namespaceId("11111111-1111-1111-1111-111111111111")
.build());
}
}
variables:
# Get info by namespace name
byName:
fn::invoke:
function: scaleway:containers:getNamespace
arguments:
name: my-namespace-name
# Get info by namespace ID
byId:
fn::invoke:
function: scaleway:containers:getNamespace
arguments:
namespaceId: 11111111-1111-1111-1111-111111111111
Using getNamespace
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 getNamespace(args: GetNamespaceArgs, opts?: InvokeOptions): Promise<GetNamespaceResult>
function getNamespaceOutput(args: GetNamespaceOutputArgs, opts?: InvokeOptions): Output<GetNamespaceResult>def get_namespace(name: Optional[str] = None,
namespace_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNamespaceResult
def get_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[GetNamespaceResult]func LookupNamespace(ctx *Context, args *LookupNamespaceArgs, opts ...InvokeOption) (*LookupNamespaceResult, error)
func LookupNamespaceOutput(ctx *Context, args *LookupNamespaceOutputArgs, opts ...InvokeOption) LookupNamespaceResultOutput> Note: This function is named LookupNamespace in the Go SDK.
public static class GetNamespace
{
public static Task<GetNamespaceResult> InvokeAsync(GetNamespaceArgs args, InvokeOptions? opts = null)
public static Output<GetNamespaceResult> Invoke(GetNamespaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNamespaceResult> getNamespace(GetNamespaceArgs args, InvokeOptions options)
public static Output<GetNamespaceResult> getNamespace(GetNamespaceArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:containers/getNamespace:getNamespace
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of the namespace. Only one of
nameandnamespace_idshould be specified. - Namespace
Id string - The unique identifier of the namespace. Only one of
nameandnamespace_idshould be specified. - Project
Id string project_id) The unique identifier of the project with which the namespace is associated.- Region string
region) The region in which the namespace exists.
- Name string
- The name of the namespace. Only one of
nameandnamespace_idshould be specified. - Namespace
Id string - The unique identifier of the namespace. Only one of
nameandnamespace_idshould be specified. - Project
Id string project_id) The unique identifier of the project with which the namespace is associated.- Region string
region) The region in which the namespace exists.
- name String
- The name of the namespace. Only one of
nameandnamespace_idshould be specified. - namespace
Id String - The unique identifier of the namespace. Only one of
nameandnamespace_idshould be specified. - project
Id String project_id) The unique identifier of the project with which the namespace is associated.- region String
region) The region in which the namespace exists.
- name string
- The name of the namespace. Only one of
nameandnamespace_idshould be specified. - namespace
Id string - The unique identifier of the namespace. Only one of
nameandnamespace_idshould be specified. - project
Id string project_id) The unique identifier of the project with which the namespace is associated.- region string
region) The region in which the namespace exists.
- name str
- The name of the namespace. Only one of
nameandnamespace_idshould be specified. - namespace_
id str - The unique identifier of the namespace. Only one of
nameandnamespace_idshould be specified. - project_
id str project_id) The unique identifier of the project with which the namespace is associated.- region str
region) The region in which the namespace exists.
- name String
- The name of the namespace. Only one of
nameandnamespace_idshould be specified. - namespace
Id String - The unique identifier of the namespace. Only one of
nameandnamespace_idshould be specified. - project
Id String project_id) The unique identifier of the project with which the namespace is associated.- region String
region) The region in which the namespace exists.
getNamespace Result
The following output properties are available:
- Activate
Vpc boolIntegration - Description string
- The description of the namespace.
- Destroy
Registry bool - Environment
Variables Dictionary<string, string> - The environment variables of the namespace.
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The unique identifier of the organization with which the namespace is associated.
- Registry
Endpoint string - The registry endpoint of the namespace.
- Registry
Namespace stringId - The unique identifier of the registry namespace of the Serverless Containers namespace.
- Secret
Environment Dictionary<string, string>Variables - List<string>
- Name string
- Namespace
Id string - Project
Id string - Region string
- Activate
Vpc boolIntegration - Description string
- The description of the namespace.
- Destroy
Registry bool - Environment
Variables map[string]string - The environment variables of the namespace.
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The unique identifier of the organization with which the namespace is associated.
- Registry
Endpoint string - The registry endpoint of the namespace.
- Registry
Namespace stringId - The unique identifier of the registry namespace of the Serverless Containers namespace.
- Secret
Environment map[string]stringVariables - []string
- Name string
- Namespace
Id string - Project
Id string - Region string
- activate
Vpc BooleanIntegration - description String
- The description of the namespace.
- destroy
Registry Boolean - environment
Variables Map<String,String> - The environment variables of the namespace.
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The unique identifier of the organization with which the namespace is associated.
- registry
Endpoint String - The registry endpoint of the namespace.
- registry
Namespace StringId - The unique identifier of the registry namespace of the Serverless Containers namespace.
- secret
Environment Map<String,String>Variables - List<String>
- name String
- namespace
Id String - project
Id String - region String
- activate
Vpc booleanIntegration - description string
- The description of the namespace.
- destroy
Registry boolean - environment
Variables {[key: string]: string} - The environment variables of the namespace.
- id string
- The provider-assigned unique ID for this managed resource.
- organization
Id string - The unique identifier of the organization with which the namespace is associated.
- registry
Endpoint string - The registry endpoint of the namespace.
- registry
Namespace stringId - The unique identifier of the registry namespace of the Serverless Containers namespace.
- secret
Environment {[key: string]: string}Variables - string[]
- name string
- namespace
Id string - project
Id string - region string
- activate_
vpc_ boolintegration - description str
- The description of the namespace.
- destroy_
registry bool - environment_
variables Mapping[str, str] - The environment variables of the namespace.
- id str
- The provider-assigned unique ID for this managed resource.
- organization_
id str - The unique identifier of the organization with which the namespace is associated.
- registry_
endpoint str - The registry endpoint of the namespace.
- registry_
namespace_ strid - The unique identifier of the registry namespace of the Serverless Containers namespace.
- secret_
environment_ Mapping[str, str]variables - Sequence[str]
- name str
- namespace_
id str - project_
id str - region str
- activate
Vpc BooleanIntegration - description String
- The description of the namespace.
- destroy
Registry Boolean - environment
Variables Map<String> - The environment variables of the namespace.
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The unique identifier of the organization with which the namespace is associated.
- registry
Endpoint String - The registry endpoint of the namespace.
- registry
Namespace StringId - The unique identifier of the registry namespace of the Serverless Containers namespace.
- secret
Environment Map<String>Variables - List<String>
- name String
- namespace
Id String - project
Id String - region String
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
Scaleway v1.37.0 published on Friday, Nov 7, 2025 by pulumiverse
