1. Packages
  2. Volcengine
  3. API Docs
  4. cr
  5. Packages
Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine

volcengine.cr.Registry

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine

    Provides a resource to manage cr registry

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Cr.Registry("foo", new()
        {
            DeleteImmediately = false,
            Password = "1qaz!QAZ",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cr"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cr.NewRegistry(ctx, "foo", &cr.RegistryArgs{
    			DeleteImmediately: pulumi.Bool(false),
    			Password:          pulumi.String("1qaz!QAZ"),
    		})
    		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.volcengine.cr.Registry;
    import com.pulumi.volcengine.cr.RegistryArgs;
    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 foo = new Registry("foo", RegistryArgs.builder()        
                .deleteImmediately(false)
                .password("1qaz!QAZ")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cr.Registry("foo",
        delete_immediately=False,
        password="1qaz!QAZ")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.cr.Registry("foo", {
        deleteImmediately: false,
        password: "1qaz!QAZ",
    });
    
    resources:
      foo:
        type: volcengine:cr:Registry
        properties:
          deleteImmediately: false
          password: 1qaz!QAZ
    

    Create Registry Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Registry(name: string, args?: RegistryArgs, opts?: CustomResourceOptions);
    @overload
    def Registry(resource_name: str,
                 args: Optional[RegistryArgs] = None,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Registry(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 delete_immediately: Optional[bool] = None,
                 name: Optional[str] = None,
                 password: Optional[str] = None)
    func NewRegistry(ctx *Context, name string, args *RegistryArgs, opts ...ResourceOption) (*Registry, error)
    public Registry(string name, RegistryArgs? args = null, CustomResourceOptions? opts = null)
    public Registry(String name, RegistryArgs args)
    public Registry(String name, RegistryArgs args, CustomResourceOptions options)
    
    type: volcengine:cr:Registry
    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 RegistryArgs
    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 RegistryArgs
    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 RegistryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RegistryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RegistryArgs
    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 registryResource = new Volcengine.Cr.Registry("registryResource", new()
    {
        DeleteImmediately = false,
        Name = "string",
        Password = "string",
    });
    
    example, err := cr.NewRegistry(ctx, "registryResource", &cr.RegistryArgs{
    	DeleteImmediately: pulumi.Bool(false),
    	Name:              pulumi.String("string"),
    	Password:          pulumi.String("string"),
    })
    
    var registryResource = new Registry("registryResource", RegistryArgs.builder()
        .deleteImmediately(false)
        .name("string")
        .password("string")
        .build());
    
    registry_resource = volcengine.cr.Registry("registryResource",
        delete_immediately=False,
        name="string",
        password="string")
    
    const registryResource = new volcengine.cr.Registry("registryResource", {
        deleteImmediately: false,
        name: "string",
        password: "string",
    });
    
    type: volcengine:cr:Registry
    properties:
        deleteImmediately: false
        name: string
        password: string
    

    Registry 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 Registry resource accepts the following input properties:

    DeleteImmediately bool
    Whether delete registry immediately. Only effected in delete action.
    Name string
    The name of registry.
    Password string
    The password of registry user.
    DeleteImmediately bool
    Whether delete registry immediately. Only effected in delete action.
    Name string
    The name of registry.
    Password string
    The password of registry user.
    deleteImmediately Boolean
    Whether delete registry immediately. Only effected in delete action.
    name String
    The name of registry.
    password String
    The password of registry user.
    deleteImmediately boolean
    Whether delete registry immediately. Only effected in delete action.
    name string
    The name of registry.
    password string
    The password of registry user.
    delete_immediately bool
    Whether delete registry immediately. Only effected in delete action.
    name str
    The name of registry.
    password str
    The password of registry user.
    deleteImmediately Boolean
    Whether delete registry immediately. Only effected in delete action.
    name String
    The name of registry.
    password String
    The password of registry user.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Registry resource produces the following output properties:

    ChargeType string
    The charge type of registry.
    CreateTime string
    The creation time of registry.
    Domains List<Pulumi.Volcengine.Cr.Outputs.RegistryDomain>
    The domain of registry.
    Id string
    The provider-assigned unique ID for this managed resource.
    Statuses List<Pulumi.Volcengine.Cr.Outputs.RegistryStatus>
    The status of registry.
    Type string
    The type of registry.
    UserStatus string
    The status of user.
    Username string
    The username of cr instance.
    ChargeType string
    The charge type of registry.
    CreateTime string
    The creation time of registry.
    Domains []RegistryDomain
    The domain of registry.
    Id string
    The provider-assigned unique ID for this managed resource.
    Statuses []RegistryStatus
    The status of registry.
    Type string
    The type of registry.
    UserStatus string
    The status of user.
    Username string
    The username of cr instance.
    chargeType String
    The charge type of registry.
    createTime String
    The creation time of registry.
    domains List<RegistryDomain>
    The domain of registry.
    id String
    The provider-assigned unique ID for this managed resource.
    statuses List<RegistryStatus>
    The status of registry.
    type String
    The type of registry.
    userStatus String
    The status of user.
    username String
    The username of cr instance.
    chargeType string
    The charge type of registry.
    createTime string
    The creation time of registry.
    domains RegistryDomain[]
    The domain of registry.
    id string
    The provider-assigned unique ID for this managed resource.
    statuses RegistryStatus[]
    The status of registry.
    type string
    The type of registry.
    userStatus string
    The status of user.
    username string
    The username of cr instance.
    charge_type str
    The charge type of registry.
    create_time str
    The creation time of registry.
    domains Sequence[RegistryDomain]
    The domain of registry.
    id str
    The provider-assigned unique ID for this managed resource.
    statuses Sequence[RegistryStatus]
    The status of registry.
    type str
    The type of registry.
    user_status str
    The status of user.
    username str
    The username of cr instance.
    chargeType String
    The charge type of registry.
    createTime String
    The creation time of registry.
    domains List<Property Map>
    The domain of registry.
    id String
    The provider-assigned unique ID for this managed resource.
    statuses List<Property Map>
    The status of registry.
    type String
    The type of registry.
    userStatus String
    The status of user.
    username String
    The username of cr instance.

    Look up Existing Registry Resource

    Get an existing Registry 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?: RegistryState, opts?: CustomResourceOptions): Registry
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            charge_type: Optional[str] = None,
            create_time: Optional[str] = None,
            delete_immediately: Optional[bool] = None,
            domains: Optional[Sequence[RegistryDomainArgs]] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            statuses: Optional[Sequence[RegistryStatusArgs]] = None,
            type: Optional[str] = None,
            user_status: Optional[str] = None,
            username: Optional[str] = None) -> Registry
    func GetRegistry(ctx *Context, name string, id IDInput, state *RegistryState, opts ...ResourceOption) (*Registry, error)
    public static Registry Get(string name, Input<string> id, RegistryState? state, CustomResourceOptions? opts = null)
    public static Registry get(String name, Output<String> id, RegistryState 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:
    ChargeType string
    The charge type of registry.
    CreateTime string
    The creation time of registry.
    DeleteImmediately bool
    Whether delete registry immediately. Only effected in delete action.
    Domains List<Pulumi.Volcengine.Cr.Inputs.RegistryDomain>
    The domain of registry.
    Name string
    The name of registry.
    Password string
    The password of registry user.
    Statuses List<Pulumi.Volcengine.Cr.Inputs.RegistryStatus>
    The status of registry.
    Type string
    The type of registry.
    UserStatus string
    The status of user.
    Username string
    The username of cr instance.
    ChargeType string
    The charge type of registry.
    CreateTime string
    The creation time of registry.
    DeleteImmediately bool
    Whether delete registry immediately. Only effected in delete action.
    Domains []RegistryDomainArgs
    The domain of registry.
    Name string
    The name of registry.
    Password string
    The password of registry user.
    Statuses []RegistryStatusArgs
    The status of registry.
    Type string
    The type of registry.
    UserStatus string
    The status of user.
    Username string
    The username of cr instance.
    chargeType String
    The charge type of registry.
    createTime String
    The creation time of registry.
    deleteImmediately Boolean
    Whether delete registry immediately. Only effected in delete action.
    domains List<RegistryDomain>
    The domain of registry.
    name String
    The name of registry.
    password String
    The password of registry user.
    statuses List<RegistryStatus>
    The status of registry.
    type String
    The type of registry.
    userStatus String
    The status of user.
    username String
    The username of cr instance.
    chargeType string
    The charge type of registry.
    createTime string
    The creation time of registry.
    deleteImmediately boolean
    Whether delete registry immediately. Only effected in delete action.
    domains RegistryDomain[]
    The domain of registry.
    name string
    The name of registry.
    password string
    The password of registry user.
    statuses RegistryStatus[]
    The status of registry.
    type string
    The type of registry.
    userStatus string
    The status of user.
    username string
    The username of cr instance.
    charge_type str
    The charge type of registry.
    create_time str
    The creation time of registry.
    delete_immediately bool
    Whether delete registry immediately. Only effected in delete action.
    domains Sequence[RegistryDomainArgs]
    The domain of registry.
    name str
    The name of registry.
    password str
    The password of registry user.
    statuses Sequence[RegistryStatusArgs]
    The status of registry.
    type str
    The type of registry.
    user_status str
    The status of user.
    username str
    The username of cr instance.
    chargeType String
    The charge type of registry.
    createTime String
    The creation time of registry.
    deleteImmediately Boolean
    Whether delete registry immediately. Only effected in delete action.
    domains List<Property Map>
    The domain of registry.
    name String
    The name of registry.
    password String
    The password of registry user.
    statuses List<Property Map>
    The status of registry.
    type String
    The type of registry.
    userStatus String
    The status of user.
    username String
    The username of cr instance.

    Supporting Types

    RegistryDomain, RegistryDomainArgs

    Domain string
    The domain of registry.
    Type string
    The type of registry.
    Domain string
    The domain of registry.
    Type string
    The type of registry.
    domain String
    The domain of registry.
    type String
    The type of registry.
    domain string
    The domain of registry.
    type string
    The type of registry.
    domain str
    The domain of registry.
    type str
    The type of registry.
    domain String
    The domain of registry.
    type String
    The type of registry.

    RegistryStatus, RegistryStatusArgs

    Conditions List<string>
    The condition of registry.
    Phase string
    The phase status of registry.
    Conditions []string
    The condition of registry.
    Phase string
    The phase status of registry.
    conditions List<String>
    The condition of registry.
    phase String
    The phase status of registry.
    conditions string[]
    The condition of registry.
    phase string
    The phase status of registry.
    conditions Sequence[str]
    The condition of registry.
    phase str
    The phase status of registry.
    conditions List<String>
    The condition of registry.
    phase String
    The phase status of registry.

    Import

    CR Registry can be imported using the name, e.g.

     $ pulumi import volcengine:cr/registry:Registry default enterprise-x
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine