scaleway.registry.Namespace
Explore with Pulumi AI
Creates and manages Scaleway Container Registry. For more information refer to the API documentation.
Example Usage
Basic
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.registry.Namespace("main", {
name: "main-cr",
description: "Main container registry",
isPublic: false,
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.registry.Namespace("main",
name="main-cr",
description="Main container registry",
is_public=False)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/registry"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := registry.NewNamespace(ctx, "main", ®istry.NamespaceArgs{
Name: pulumi.String("main-cr"),
Description: pulumi.String("Main container registry"),
IsPublic: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var main = new Scaleway.Registry.Namespace("main", new()
{
Name = "main-cr",
Description = "Main container registry",
IsPublic = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.registry.Namespace;
import com.pulumi.scaleway.registry.NamespaceArgs;
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) {
var main = new Namespace("main", NamespaceArgs.builder()
.name("main-cr")
.description("Main container registry")
.isPublic(false)
.build());
}
}
resources:
main:
type: scaleway:registry:Namespace
properties:
name: main-cr
description: Main container registry
isPublic: false
Create Namespace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Namespace(name: string, args?: NamespaceArgs, opts?: CustomResourceOptions);
@overload
def Namespace(resource_name: str,
args: Optional[NamespaceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Namespace(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
is_public: Optional[bool] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None)
func NewNamespace(ctx *Context, name string, args *NamespaceArgs, opts ...ResourceOption) (*Namespace, error)
public Namespace(string name, NamespaceArgs? args = null, CustomResourceOptions? opts = null)
public Namespace(String name, NamespaceArgs args)
public Namespace(String name, NamespaceArgs args, CustomResourceOptions options)
type: scaleway:registry:Namespace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var examplenamespaceResourceResourceFromRegistrynamespace = new Scaleway.Registry.Namespace("examplenamespaceResourceResourceFromRegistrynamespace", new()
{
Description = "string",
IsPublic = false,
Name = "string",
ProjectId = "string",
Region = "string",
});
example, err := registry.NewNamespace(ctx, "examplenamespaceResourceResourceFromRegistrynamespace", ®istry.NamespaceArgs{
Description: pulumi.String("string"),
IsPublic: pulumi.Bool(false),
Name: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
})
var examplenamespaceResourceResourceFromRegistrynamespace = new com.pulumi.scaleway.registry.Namespace("examplenamespaceResourceResourceFromRegistrynamespace", com.pulumi.scaleway.registry.NamespaceArgs.builder()
.description("string")
.isPublic(false)
.name("string")
.projectId("string")
.region("string")
.build());
examplenamespace_resource_resource_from_registrynamespace = scaleway.registry.Namespace("examplenamespaceResourceResourceFromRegistrynamespace",
description="string",
is_public=False,
name="string",
project_id="string",
region="string")
const examplenamespaceResourceResourceFromRegistrynamespace = new scaleway.registry.Namespace("examplenamespaceResourceResourceFromRegistrynamespace", {
description: "string",
isPublic: false,
name: "string",
projectId: "string",
region: "string",
});
type: scaleway:registry:Namespace
properties:
description: string
isPublic: false
name: string
projectId: string
region: string
Namespace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Namespace resource accepts the following input properties:
- Description string
- The description of the namespace.
- Is
Public bool - Whether the images stored in the namespace should be downloadable publicly (docker pull).
- Name string
The unique name of the namespace.
Important Updates to
name
will recreate the namespace.- Project
Id string project_id
) The ID of the project the namespace is associated with.- Region string
region
). The region in which the namespace should be created.
- Description string
- The description of the namespace.
- Is
Public bool - Whether the images stored in the namespace should be downloadable publicly (docker pull).
- Name string
The unique name of the namespace.
Important Updates to
name
will recreate the namespace.- Project
Id string project_id
) The ID of the project the namespace is associated with.- Region string
region
). The region in which the namespace should be created.
- description String
- The description of the namespace.
- is
Public Boolean - Whether the images stored in the namespace should be downloadable publicly (docker pull).
- name String
The unique name of the namespace.
Important Updates to
name
will recreate the namespace.- project
Id String project_id
) The ID of the project the namespace is associated with.- region String
region
). The region in which the namespace should be created.
- description string
- The description of the namespace.
- is
Public boolean - Whether the images stored in the namespace should be downloadable publicly (docker pull).
- name string
The unique name of the namespace.
Important Updates to
name
will recreate the namespace.- project
Id string project_id
) The ID of the project the namespace is associated with.- region string
region
). The region in which the namespace should be created.
- description str
- The description of the namespace.
- is_
public bool - Whether the images stored in the namespace should be downloadable publicly (docker pull).
- name str
The unique name of the namespace.
Important Updates to
name
will recreate the namespace.- project_
id str project_id
) The ID of the project the namespace is associated with.- region str
region
). The region in which the namespace should be created.
- description String
- The description of the namespace.
- is
Public Boolean - Whether the images stored in the namespace should be downloadable publicly (docker pull).
- name String
The unique name of the namespace.
Important Updates to
name
will recreate the namespace.- project
Id String project_id
) The ID of the project the namespace is associated with.- region String
region
). The region in which the namespace should be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:
- Endpoint string
- Endpoint reachable by Docker.
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The Organization ID the namespace is associated with.
- Endpoint string
- Endpoint reachable by Docker.
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The Organization ID the namespace is associated with.
- endpoint String
- Endpoint reachable by Docker.
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The Organization ID the namespace is associated with.
- endpoint string
- Endpoint reachable by Docker.
- id string
- The provider-assigned unique ID for this managed resource.
- organization
Id string - The Organization ID the namespace is associated with.
- endpoint str
- Endpoint reachable by Docker.
- id str
- The provider-assigned unique ID for this managed resource.
- organization_
id str - The Organization ID the namespace is associated with.
- endpoint String
- Endpoint reachable by Docker.
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The Organization ID the namespace is associated with.
Look up Existing Namespace Resource
Get an existing Namespace resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NamespaceState, opts?: CustomResourceOptions): Namespace
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
endpoint: Optional[str] = None,
is_public: Optional[bool] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None) -> Namespace
func GetNamespace(ctx *Context, name string, id IDInput, state *NamespaceState, opts ...ResourceOption) (*Namespace, error)
public static Namespace Get(string name, Input<string> id, NamespaceState? state, CustomResourceOptions? opts = null)
public static Namespace get(String name, Output<String> id, NamespaceState state, CustomResourceOptions options)
resources: _: type: scaleway:registry:Namespace get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- The description of the namespace.
- Endpoint string
- Endpoint reachable by Docker.
- Is
Public bool - Whether the images stored in the namespace should be downloadable publicly (docker pull).
- Name string
The unique name of the namespace.
Important Updates to
name
will recreate the namespace.- Organization
Id string - The Organization ID the namespace is associated with.
- Project
Id string project_id
) The ID of the project the namespace is associated with.- Region string
region
). The region in which the namespace should be created.
- Description string
- The description of the namespace.
- Endpoint string
- Endpoint reachable by Docker.
- Is
Public bool - Whether the images stored in the namespace should be downloadable publicly (docker pull).
- Name string
The unique name of the namespace.
Important Updates to
name
will recreate the namespace.- Organization
Id string - The Organization ID the namespace is associated with.
- Project
Id string project_id
) The ID of the project the namespace is associated with.- Region string
region
). The region in which the namespace should be created.
- description String
- The description of the namespace.
- endpoint String
- Endpoint reachable by Docker.
- is
Public Boolean - Whether the images stored in the namespace should be downloadable publicly (docker pull).
- name String
The unique name of the namespace.
Important Updates to
name
will recreate the namespace.- organization
Id String - The Organization ID the namespace is associated with.
- project
Id String project_id
) The ID of the project the namespace is associated with.- region String
region
). The region in which the namespace should be created.
- description string
- The description of the namespace.
- endpoint string
- Endpoint reachable by Docker.
- is
Public boolean - Whether the images stored in the namespace should be downloadable publicly (docker pull).
- name string
The unique name of the namespace.
Important Updates to
name
will recreate the namespace.- organization
Id string - The Organization ID the namespace is associated with.
- project
Id string project_id
) The ID of the project the namespace is associated with.- region string
region
). The region in which the namespace should be created.
- description str
- The description of the namespace.
- endpoint str
- Endpoint reachable by Docker.
- is_
public bool - Whether the images stored in the namespace should be downloadable publicly (docker pull).
- name str
The unique name of the namespace.
Important Updates to
name
will recreate the namespace.- organization_
id str - The Organization ID the namespace is associated with.
- project_
id str project_id
) The ID of the project the namespace is associated with.- region str
region
). The region in which the namespace should be created.
- description String
- The description of the namespace.
- endpoint String
- Endpoint reachable by Docker.
- is
Public Boolean - Whether the images stored in the namespace should be downloadable publicly (docker pull).
- name String
The unique name of the namespace.
Important Updates to
name
will recreate the namespace.- organization
Id String - The Organization ID the namespace is associated with.
- project
Id String project_id
) The ID of the project the namespace is associated with.- region String
region
). The region in which the namespace should be created.
Import
Namespaces can be imported using the {region}/{id}
, e.g.
bash
$ pulumi import scaleway:registry/namespace:Namespace main fr-par/11111111-1111-1111-1111-111111111111
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.