selectel.CraasRegistryV1
Explore with Pulumi AI
Creates and manages a registry in Container Registry using public API v1. For more information about Container Registry, see the official Selectel documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const registry1 = new selectel.CraasRegistryV1("registry1", {projectId: selectel_vpc_project_v2.project_1.id});
import pulumi
import pulumi_selectel as selectel
registry1 = selectel.CraasRegistryV1("registry1", project_id=selectel_vpc_project_v2["project_1"]["id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewCraasRegistryV1(ctx, "registry1", &selectel.CraasRegistryV1Args{
ProjectId: pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var registry1 = new Selectel.CraasRegistryV1("registry1", new()
{
ProjectId = selectel_vpc_project_v2.Project_1.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.CraasRegistryV1;
import com.pulumi.selectel.CraasRegistryV1Args;
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 registry1 = new CraasRegistryV1("registry1", CraasRegistryV1Args.builder()
.projectId(selectel_vpc_project_v2.project_1().id())
.build());
}
}
resources:
registry1:
type: selectel:CraasRegistryV1
properties:
projectId: ${selectel_vpc_project_v2.project_1.id}
Create CraasRegistryV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CraasRegistryV1(name: string, args: CraasRegistryV1Args, opts?: CustomResourceOptions);
@overload
def CraasRegistryV1(resource_name: str,
args: CraasRegistryV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def CraasRegistryV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
craas_registry_v1_id: Optional[str] = None,
name: Optional[str] = None,
timeouts: Optional[CraasRegistryV1TimeoutsArgs] = None)
func NewCraasRegistryV1(ctx *Context, name string, args CraasRegistryV1Args, opts ...ResourceOption) (*CraasRegistryV1, error)
public CraasRegistryV1(string name, CraasRegistryV1Args args, CustomResourceOptions? opts = null)
public CraasRegistryV1(String name, CraasRegistryV1Args args)
public CraasRegistryV1(String name, CraasRegistryV1Args args, CustomResourceOptions options)
type: selectel:CraasRegistryV1
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 CraasRegistryV1Args
- 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 CraasRegistryV1Args
- 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 CraasRegistryV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CraasRegistryV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CraasRegistryV1Args
- 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 craasRegistryV1Resource = new Selectel.CraasRegistryV1("craasRegistryV1Resource", new()
{
ProjectId = "string",
CraasRegistryV1Id = "string",
Name = "string",
Timeouts = new Selectel.Inputs.CraasRegistryV1TimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := selectel.NewCraasRegistryV1(ctx, "craasRegistryV1Resource", &selectel.CraasRegistryV1Args{
ProjectId: pulumi.String("string"),
CraasRegistryV1Id: pulumi.String("string"),
Name: pulumi.String("string"),
Timeouts: &selectel.CraasRegistryV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var craasRegistryV1Resource = new CraasRegistryV1("craasRegistryV1Resource", CraasRegistryV1Args.builder()
.projectId("string")
.craasRegistryV1Id("string")
.name("string")
.timeouts(CraasRegistryV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
craas_registry_v1_resource = selectel.CraasRegistryV1("craasRegistryV1Resource",
project_id="string",
craas_registry_v1_id="string",
name="string",
timeouts={
"create": "string",
"delete": "string",
})
const craasRegistryV1Resource = new selectel.CraasRegistryV1("craasRegistryV1Resource", {
projectId: "string",
craasRegistryV1Id: "string",
name: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: selectel:CraasRegistryV1
properties:
craasRegistryV1Id: string
name: string
projectId: string
timeouts:
create: string
delete: string
CraasRegistryV1 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 CraasRegistryV1 resource accepts the following input properties:
- Project
Id string - Unique identifier of the associated project. Changing this creates a new registry. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Craas
Registry stringV1Id - Name string
- Registry name. Changing this creates a new registry. The name can contain lowercase latin characters, digits, and hyphens. The name starts with a letter and ends with a letter or a digit. It cannot exceed 20 symbols. Learn more about Registries in Container Registry.
- Timeouts
Craas
Registry V1Timeouts
- Project
Id string - Unique identifier of the associated project. Changing this creates a new registry. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Craas
Registry stringV1Id - Name string
- Registry name. Changing this creates a new registry. The name can contain lowercase latin characters, digits, and hyphens. The name starts with a letter and ends with a letter or a digit. It cannot exceed 20 symbols. Learn more about Registries in Container Registry.
- Timeouts
Craas
Registry V1Timeouts Args
- project
Id String - Unique identifier of the associated project. Changing this creates a new registry. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- craas
Registry StringV1Id - name String
- Registry name. Changing this creates a new registry. The name can contain lowercase latin characters, digits, and hyphens. The name starts with a letter and ends with a letter or a digit. It cannot exceed 20 symbols. Learn more about Registries in Container Registry.
- timeouts
Craas
Registry V1Timeouts
- project
Id string - Unique identifier of the associated project. Changing this creates a new registry. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- craas
Registry stringV1Id - name string
- Registry name. Changing this creates a new registry. The name can contain lowercase latin characters, digits, and hyphens. The name starts with a letter and ends with a letter or a digit. It cannot exceed 20 symbols. Learn more about Registries in Container Registry.
- timeouts
Craas
Registry V1Timeouts
- project_
id str - Unique identifier of the associated project. Changing this creates a new registry. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- craas_
registry_ strv1_ id - name str
- Registry name. Changing this creates a new registry. The name can contain lowercase latin characters, digits, and hyphens. The name starts with a letter and ends with a letter or a digit. It cannot exceed 20 symbols. Learn more about Registries in Container Registry.
- timeouts
Craas
Registry V1Timeouts Args
- project
Id String - Unique identifier of the associated project. Changing this creates a new registry. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- craas
Registry StringV1Id - name String
- Registry name. Changing this creates a new registry. The name can contain lowercase latin characters, digits, and hyphens. The name starts with a letter and ends with a letter or a digit. It cannot exceed 20 symbols. Learn more about Registries in Container Registry.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CraasRegistryV1 resource produces the following output properties:
Look up Existing CraasRegistryV1 Resource
Get an existing CraasRegistryV1 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?: CraasRegistryV1State, opts?: CustomResourceOptions): CraasRegistryV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
craas_registry_v1_id: Optional[str] = None,
endpoint: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
status: Optional[str] = None,
timeouts: Optional[CraasRegistryV1TimeoutsArgs] = None) -> CraasRegistryV1
func GetCraasRegistryV1(ctx *Context, name string, id IDInput, state *CraasRegistryV1State, opts ...ResourceOption) (*CraasRegistryV1, error)
public static CraasRegistryV1 Get(string name, Input<string> id, CraasRegistryV1State? state, CustomResourceOptions? opts = null)
public static CraasRegistryV1 get(String name, Output<String> id, CraasRegistryV1State state, CustomResourceOptions options)
resources: _: type: selectel:CraasRegistryV1 get: id: ${id}
- 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.
- Craas
Registry stringV1Id - Endpoint string
- Registry endpoint. For example,
cr.selcloud.ru/my-registry
- Name string
- Registry name. Changing this creates a new registry. The name can contain lowercase latin characters, digits, and hyphens. The name starts with a letter and ends with a letter or a digit. It cannot exceed 20 symbols. Learn more about Registries in Container Registry.
- Project
Id string - Unique identifier of the associated project. Changing this creates a new registry. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Status string
- Registry status.
- Timeouts
Craas
Registry V1Timeouts
- Craas
Registry stringV1Id - Endpoint string
- Registry endpoint. For example,
cr.selcloud.ru/my-registry
- Name string
- Registry name. Changing this creates a new registry. The name can contain lowercase latin characters, digits, and hyphens. The name starts with a letter and ends with a letter or a digit. It cannot exceed 20 symbols. Learn more about Registries in Container Registry.
- Project
Id string - Unique identifier of the associated project. Changing this creates a new registry. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Status string
- Registry status.
- Timeouts
Craas
Registry V1Timeouts Args
- craas
Registry StringV1Id - endpoint String
- Registry endpoint. For example,
cr.selcloud.ru/my-registry
- name String
- Registry name. Changing this creates a new registry. The name can contain lowercase latin characters, digits, and hyphens. The name starts with a letter and ends with a letter or a digit. It cannot exceed 20 symbols. Learn more about Registries in Container Registry.
- project
Id String - Unique identifier of the associated project. Changing this creates a new registry. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- status String
- Registry status.
- timeouts
Craas
Registry V1Timeouts
- craas
Registry stringV1Id - endpoint string
- Registry endpoint. For example,
cr.selcloud.ru/my-registry
- name string
- Registry name. Changing this creates a new registry. The name can contain lowercase latin characters, digits, and hyphens. The name starts with a letter and ends with a letter or a digit. It cannot exceed 20 symbols. Learn more about Registries in Container Registry.
- project
Id string - Unique identifier of the associated project. Changing this creates a new registry. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- status string
- Registry status.
- timeouts
Craas
Registry V1Timeouts
- craas_
registry_ strv1_ id - endpoint str
- Registry endpoint. For example,
cr.selcloud.ru/my-registry
- name str
- Registry name. Changing this creates a new registry. The name can contain lowercase latin characters, digits, and hyphens. The name starts with a letter and ends with a letter or a digit. It cannot exceed 20 symbols. Learn more about Registries in Container Registry.
- project_
id str - Unique identifier of the associated project. Changing this creates a new registry. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- status str
- Registry status.
- timeouts
Craas
Registry V1Timeouts Args
- craas
Registry StringV1Id - endpoint String
- Registry endpoint. For example,
cr.selcloud.ru/my-registry
- name String
- Registry name. Changing this creates a new registry. The name can contain lowercase latin characters, digits, and hyphens. The name starts with a letter and ends with a letter or a digit. It cannot exceed 20 symbols. Learn more about Registries in Container Registry.
- project
Id String - Unique identifier of the associated project. Changing this creates a new registry. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- status String
- Registry status.
- timeouts Property Map
Supporting Types
CraasRegistryV1Timeouts, CraasRegistryV1TimeoutsArgs
Import
You can import a registry:
export OS_DOMAIN_NAME=<account_id>
export OS_USERNAME=
export OS_PASSWORD=
export INFRA_PROJECT_ID=<selectel_project_id>
$ pulumi import selectel:index/craasRegistryV1:CraasRegistryV1 registry_1 <registry_id>
where:
<account_id>
— Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration.<username>
— Name of the service user. To get the name, in the Control panel, go to Identity & Access Management ⟶ User management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service users.<password>
— Password of the service user.<selectel_project_id>
— Unique identifier of the associated project. To get the ID, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project. Learn more about Projects.<registry_id>
— Unique identifier of the registry, for example,939506d6-7621-4581-b673-eacf3db30f5b
. To get the registry ID, use Selectel Cloud Management API.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectel
Terraform Provider.