Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse
scaleway.getContainerNamespace
Explore with Pulumi AI
Gets information about a container namespace.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
const byName = scaleway.getContainerNamespace({
    name: "my-namespace-name",
});
const byId = scaleway.getContainerNamespace({
    namespaceId: "11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
by_name = scaleway.get_container_namespace(name="my-namespace-name")
by_id = scaleway.get_container_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.LookupContainerNamespace(ctx, &scaleway.LookupContainerNamespaceArgs{
			Name: pulumi.StringRef("my-namespace-name"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = scaleway.LookupContainerNamespace(ctx, &scaleway.LookupContainerNamespaceArgs{
			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 byName = Scaleway.GetContainerNamespace.Invoke(new()
    {
        Name = "my-namespace-name",
    });
    var byId = Scaleway.GetContainerNamespace.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.GetContainerNamespaceArgs;
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 byName = ScalewayFunctions.getContainerNamespace(GetContainerNamespaceArgs.builder()
            .name("my-namespace-name")
            .build());
        final var byId = ScalewayFunctions.getContainerNamespace(GetContainerNamespaceArgs.builder()
            .namespaceId("11111111-1111-1111-1111-111111111111")
            .build());
    }
}
variables:
  byName:
    fn::invoke:
      Function: scaleway:getContainerNamespace
      Arguments:
        name: my-namespace-name
  byId:
    fn::invoke:
      Function: scaleway:getContainerNamespace
      Arguments:
        namespaceId: 11111111-1111-1111-1111-111111111111
Using getContainerNamespace
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 getContainerNamespace(args: GetContainerNamespaceArgs, opts?: InvokeOptions): Promise<GetContainerNamespaceResult>
function getContainerNamespaceOutput(args: GetContainerNamespaceOutputArgs, opts?: InvokeOptions): Output<GetContainerNamespaceResult>def get_container_namespace(name: Optional[str] = None,
                            namespace_id: Optional[str] = None,
                            project_id: Optional[str] = None,
                            region: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetContainerNamespaceResult
def get_container_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[GetContainerNamespaceResult]func LookupContainerNamespace(ctx *Context, args *LookupContainerNamespaceArgs, opts ...InvokeOption) (*LookupContainerNamespaceResult, error)
func LookupContainerNamespaceOutput(ctx *Context, args *LookupContainerNamespaceOutputArgs, opts ...InvokeOption) LookupContainerNamespaceResultOutput> Note: This function is named LookupContainerNamespace in the Go SDK.
public static class GetContainerNamespace 
{
    public static Task<GetContainerNamespaceResult> InvokeAsync(GetContainerNamespaceArgs args, InvokeOptions? opts = null)
    public static Output<GetContainerNamespaceResult> Invoke(GetContainerNamespaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetContainerNamespaceResult> getContainerNamespace(GetContainerNamespaceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: scaleway:index/getContainerNamespace:getContainerNamespace
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
 - The namespace name.
Only one of 
nameandnamespace_idshould be specified. - Namespace
Id string - The namespace id.
Only one of 
nameandnamespace_idshould be specified. - Project
Id 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 
nameandnamespace_idshould be specified. - Namespace
Id string - The namespace id.
Only one of 
nameandnamespace_idshould be specified. - Project
Id 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 
nameandnamespace_idshould be specified. - namespace
Id String - The namespace id.
Only one of 
nameandnamespace_idshould be specified. - project
Id 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 
nameandnamespace_idshould be specified. - namespace
Id string - The namespace id.
Only one of 
nameandnamespace_idshould be specified. - project
Id 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 
nameandnamespace_idshould be specified. - namespace_
id str - The namespace id.
Only one of 
nameandnamespace_idshould 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 
nameandnamespace_idshould be specified. - namespace
Id String - The namespace id.
Only one of 
nameandnamespace_idshould be specified. - project
Id String project_id) The ID of the project the namespace is associated with.- region String
 region) The region in which the namespace exists.
getContainerNamespace Result
The following output properties are available:
- 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 organization ID the namespace is associated with.
 - Registry
Endpoint string - The registry endpoint of the namespace.
 - Registry
Namespace stringId  - The registry namespace ID of the namespace.
 - Secret
Environment Dictionary<string, string>Variables  - Name string
 - Namespace
Id string - Project
Id string - Region string
 
- 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 organization ID the namespace is associated with.
 - Registry
Endpoint string - The registry endpoint of the namespace.
 - Registry
Namespace stringId  - The registry namespace ID of the namespace.
 - Secret
Environment map[string]stringVariables  - Name string
 - Namespace
Id string - Project
Id string - Region string
 
- 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 organization ID the namespace is associated with.
 - registry
Endpoint String - The registry endpoint of the namespace.
 - registry
Namespace StringId  - The registry namespace ID of the namespace.
 - secret
Environment Map<String,String>Variables  - name String
 - namespace
Id String - project
Id String - region String
 
- 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 organization ID the namespace is associated with.
 - registry
Endpoint string - The registry endpoint of the namespace.
 - registry
Namespace stringId  - The registry namespace ID of the namespace.
 - secret
Environment {[key: string]: string}Variables  - name string
 - namespace
Id string - project
Id string - region string
 
- 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 organization ID the namespace is associated with.
 - registry_
endpoint str - The registry endpoint of the namespace.
 - registry_
namespace_ strid  - The registry namespace ID of the namespace.
 - secret_
environment_ Mapping[str, str]variables  - name str
 - namespace_
id str - project_
id str - region str
 
- 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 organization ID the namespace is associated with.
 - registry
Endpoint String - The registry endpoint of the namespace.
 - registry
Namespace StringId  - The registry namespace ID of the namespace.
 - secret
Environment Map<String>Variables  - 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.