1. Packages
  2. Scaleway
  3. API Docs
  4. RegistryNamespace
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

scaleway.RegistryNamespace

Explore with Pulumi AI

scaleway logo
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

    Creates and manages Scaleway Container Registry. For more information see the documentation.

    Example Usage

    Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const main = new scaleway.RegistryNamespace("main", {
        description: "Main container registry",
        isPublic: false,
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    main = scaleway.RegistryNamespace("main",
        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{
    			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()
        {
            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()        
                .description("Main container registry")
                .isPublic(false)
                .build());
    
        }
    }
    
    resources:
      main:
        type: scaleway:RegistryNamespace
        properties:
          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.

    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

    The RegistryNamespace resource accepts the following input properties:

    Description string
    The description of the namespace.
    IsPublic 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.

    ProjectId 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.
    IsPublic 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.

    ProjectId 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.
    isPublic 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.

    projectId 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.
    isPublic 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.

    projectId 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.
    isPublic 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.

    projectId 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.
    OrganizationId 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.
    OrganizationId 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.
    organizationId 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.
    organizationId 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.
    organizationId 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.
    The following state arguments are supported:
    Description string
    The description of the namespace.
    Endpoint string
    Endpoint reachable by Docker.
    IsPublic 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.

    OrganizationId string
    The organization ID the namespace is associated with.
    ProjectId 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.
    IsPublic 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.

    OrganizationId string
    The organization ID the namespace is associated with.
    ProjectId 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.
    isPublic 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.

    organizationId String
    The organization ID the namespace is associated with.
    projectId 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.
    isPublic 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.

    organizationId string
    The organization ID the namespace is associated with.
    projectId 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.
    isPublic 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.

    organizationId String
    The organization ID the namespace is associated with.
    projectId 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.
    scaleway logo
    Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse