1. Packages
  2. Scaleway
  3. API Docs
  4. RegistryNamespace
Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs

scaleway.RegistryNamespace

Explore with Pulumi AI

scaleway logo
Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs

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

    Examples

    Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@lbrlabs/pulumi-scaleway";
    
    const main = new scaleway.RegistryNamespace("main", {
        description: "Main container registry",
        isPublic: false,
    });
    
    import pulumi
    import lbrlabs_pulumi_scaleway as scaleway
    
    main = scaleway.RegistryNamespace("main",
        description="Main container registry",
        is_public=False)
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var main = new Scaleway.RegistryNamespace("main", new()
        {
            Description = "Main container registry",
            IsPublic = false,
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    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
    	})
    }
    
    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

    new RegistryNamespace(name: string, args?: RegistryNamespaceArgs, opts?: CustomResourceOptions);
    @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)
    @overload
    def RegistryNamespace(resource_name: str,
                          args: Optional[RegistryNamespaceArgs] = None,
                          opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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
    

    Package Details

    Repository
    scaleway lbrlabs/pulumi-scaleway
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the scaleway Terraform Provider.

    scaleway logo
    Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs