scaleway.RegistryNamespace
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.RegistryNamespace("main", {
name: "main-cr",
description: "Main container registry",
isPublic: false,
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.RegistryNamespace("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"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.NewRegistryNamespace(ctx, "main", &scaleway.RegistryNamespaceArgs{
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.RegistryNamespace("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.RegistryNamespace;
import com.pulumi.scaleway.RegistryNamespaceArgs;
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 RegistryNamespace("main", RegistryNamespaceArgs.builder()
.name("main-cr")
.description("Main container registry")
.isPublic(false)
.build());
}
}
resources:
main:
type: scaleway:RegistryNamespace
properties:
name: main-cr
description: Main container registry
isPublic: false
Create RegistryNamespace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RegistryNamespace(name: string, args?: RegistryNamespaceArgs, opts?: CustomResourceOptions);
@overload
def RegistryNamespace(resource_name: str,
args: Optional[RegistryNamespaceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def RegistryNamespace(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 NewRegistryNamespace(ctx *Context, name string, args *RegistryNamespaceArgs, opts ...ResourceOption) (*RegistryNamespace, error)
public RegistryNamespace(string name, RegistryNamespaceArgs? args = null, CustomResourceOptions? opts = null)
public RegistryNamespace(String name, RegistryNamespaceArgs args)
public RegistryNamespace(String name, RegistryNamespaceArgs args, CustomResourceOptions options)
type: scaleway:RegistryNamespace
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 RegistryNamespaceArgs
- 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 RegistryNamespaceArgs
- 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 RegistryNamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegistryNamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RegistryNamespaceArgs
- 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 registryNamespaceResource = new Scaleway.RegistryNamespace("registryNamespaceResource", new()
{
Description = "string",
IsPublic = false,
Name = "string",
ProjectId = "string",
Region = "string",
});
example, err := scaleway.NewRegistryNamespace(ctx, "registryNamespaceResource", &scaleway.RegistryNamespaceArgs{
Description: pulumi.String("string"),
IsPublic: pulumi.Bool(false),
Name: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
})
var registryNamespaceResource = new RegistryNamespace("registryNamespaceResource", RegistryNamespaceArgs.builder()
.description("string")
.isPublic(false)
.name("string")
.projectId("string")
.region("string")
.build());
registry_namespace_resource = scaleway.RegistryNamespace("registryNamespaceResource",
description="string",
is_public=False,
name="string",
project_id="string",
region="string")
const registryNamespaceResource = new scaleway.RegistryNamespace("registryNamespaceResource", {
description: "string",
isPublic: false,
name: "string",
projectId: "string",
region: "string",
});
type: scaleway:RegistryNamespace
properties:
description: string
isPublic: false
name: string
projectId: string
region: string
RegistryNamespace 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 RegistryNamespace 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 RegistryNamespace 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 RegistryNamespace Resource
Get an existing RegistryNamespace 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?: RegistryNamespaceState, opts?: CustomResourceOptions): RegistryNamespace
@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) -> RegistryNamespace
func GetRegistryNamespace(ctx *Context, name string, id IDInput, state *RegistryNamespaceState, opts ...ResourceOption) (*RegistryNamespace, error)
public static RegistryNamespace Get(string name, Input<string> id, RegistryNamespaceState? state, CustomResourceOptions? opts = null)
public static RegistryNamespace get(String name, Output<String> id, RegistryNamespaceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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:index/registryNamespace:RegistryNamespace 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.