volcengine.cr.Registry
Explore with Pulumi AI
Provides a resource to manage cr registry
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.cr.Registry("foo", {
deleteImmediately: false,
password: "1qaz!QAZ",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.cr.Registry("foo",
delete_immediately=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
})
}
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 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());
}
}
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Registry resource accepts the following input properties:
- Delete
Immediately bool - 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 string
- The name of registry.
- Password string
- The password of registry user.
- delete
Immediately 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 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.
- delete
Immediately 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:
- Charge
Type string - The charge type of registry.
- Create
Time string - The creation time of registry.
- Domains
List<Registry
Domain> - The domain of registry.
- Id string
- The provider-assigned unique ID for this managed resource.
- Statuses
List<Registry
Status> - The status of registry.
- Type string
- The type of registry.
- User
Status string - The status of user.
- Username string
- The username of cr instance.
- Charge
Type string - The charge type of registry.
- Create
Time string - The creation time of registry.
- Domains
[]Registry
Domain - The domain of registry.
- Id string
- The provider-assigned unique ID for this managed resource.
- Statuses
[]Registry
Status - The status of registry.
- Type string
- The type of registry.
- User
Status string - The status of user.
- Username string
- The username of cr instance.
- charge
Type String - The charge type of registry.
- create
Time String - The creation time of registry.
- domains
List<Registry
Domain> - The domain of registry.
- id String
- The provider-assigned unique ID for this managed resource.
- statuses
List<Registry
Status> - The status of registry.
- type String
- The type of registry.
- user
Status String - The status of user.
- username String
- The username of cr instance.
- charge
Type string - The charge type of registry.
- create
Time string - The creation time of registry.
- domains
Registry
Domain[] - The domain of registry.
- id string
- The provider-assigned unique ID for this managed resource.
- statuses
Registry
Status[] - The status of registry.
- type string
- The type of registry.
- user
Status 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[Registry
Domain] - The domain of registry.
- id str
- The provider-assigned unique ID for this managed resource.
- statuses
Sequence[Registry
Status] - The status of registry.
- type str
- The type of registry.
- user_
status str - The status of user.
- username str
- The username of cr instance.
- charge
Type String - The charge type of registry.
- create
Time 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.
- user
Status 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.
- Charge
Type string - The charge type of registry.
- Create
Time string - The creation time of registry.
- Delete
Immediately bool - Whether delete registry immediately. Only effected in delete action.
- Domains
List<Registry
Domain> - The domain of registry.
- Name string
- The name of registry.
- Password string
- The password of registry user.
- Statuses
List<Registry
Status> - The status of registry.
- Type string
- The type of registry.
- User
Status string - The status of user.
- Username string
- The username of cr instance.
- Charge
Type string - The charge type of registry.
- Create
Time string - The creation time of registry.
- Delete
Immediately bool - Whether delete registry immediately. Only effected in delete action.
- Domains
[]Registry
Domain Args - The domain of registry.
- Name string
- The name of registry.
- Password string
- The password of registry user.
- Statuses
[]Registry
Status Args - The status of registry.
- Type string
- The type of registry.
- User
Status string - The status of user.
- Username string
- The username of cr instance.
- charge
Type String - The charge type of registry.
- create
Time String - The creation time of registry.
- delete
Immediately Boolean - Whether delete registry immediately. Only effected in delete action.
- domains
List<Registry
Domain> - The domain of registry.
- name String
- The name of registry.
- password String
- The password of registry user.
- statuses
List<Registry
Status> - The status of registry.
- type String
- The type of registry.
- user
Status String - The status of user.
- username String
- The username of cr instance.
- charge
Type string - The charge type of registry.
- create
Time string - The creation time of registry.
- delete
Immediately boolean - Whether delete registry immediately. Only effected in delete action.
- domains
Registry
Domain[] - The domain of registry.
- name string
- The name of registry.
- password string
- The password of registry user.
- statuses
Registry
Status[] - The status of registry.
- type string
- The type of registry.
- user
Status 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[Registry
Domain Args] - The domain of registry.
- name str
- The name of registry.
- password str
- The password of registry user.
- statuses
Sequence[Registry
Status Args] - The status of registry.
- type str
- The type of registry.
- user_
status str - The status of user.
- username str
- The username of cr instance.
- charge
Type String - The charge type of registry.
- create
Time String - The creation time of registry.
- delete
Immediately 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.
- user
Status String - The status of user.
- username String
- The username of cr instance.
Supporting Types
RegistryDomain, RegistryDomainArgs
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.