selectel.DomainsDomainV1
Explore with Pulumi AI
WARNING: This resource is applicable to DNS Hosting (legacy). We do not support and develop DNS Hosting (legacy), but domains and records created in DNS Hosting (legacy) continue to work until further notice. We recommend to transfer your data to DNS Hosting (actual). For more infomation about DNS Hosting (actual), see the official Selectel documentation. To create zones for your domain records in DNS Hosting (actual) use the selectel.DomainsZoneV2 resource.
Creates and manages a domain in DNS Hosting (legacy) using public API v1. For more information about domains, see the official Selectel documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const domain1 = new selectel.DomainsDomainV1("domain1", {});
import pulumi
import pulumi_selectel as selectel
domain1 = selectel.DomainsDomainV1("domain1")
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.NewDomainsDomainV1(ctx, "domain1", nil)
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 domain1 = new Selectel.DomainsDomainV1("domain1");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DomainsDomainV1;
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 domain1 = new DomainsDomainV1("domain1");
}
}
resources:
domain1:
type: selectel:DomainsDomainV1
Create DomainsDomainV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DomainsDomainV1(name: string, args?: DomainsDomainV1Args, opts?: CustomResourceOptions);
@overload
def DomainsDomainV1(resource_name: str,
args: Optional[DomainsDomainV1Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DomainsDomainV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
domains_domain_v1_id: Optional[str] = None,
name: Optional[str] = None)
func NewDomainsDomainV1(ctx *Context, name string, args *DomainsDomainV1Args, opts ...ResourceOption) (*DomainsDomainV1, error)
public DomainsDomainV1(string name, DomainsDomainV1Args? args = null, CustomResourceOptions? opts = null)
public DomainsDomainV1(String name, DomainsDomainV1Args args)
public DomainsDomainV1(String name, DomainsDomainV1Args args, CustomResourceOptions options)
type: selectel:DomainsDomainV1
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 DomainsDomainV1Args
- 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 DomainsDomainV1Args
- 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 DomainsDomainV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainsDomainV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DomainsDomainV1Args
- 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 domainsDomainV1Resource = new Selectel.DomainsDomainV1("domainsDomainV1Resource", new()
{
DomainsDomainV1Id = "string",
Name = "string",
});
example, err := selectel.NewDomainsDomainV1(ctx, "domainsDomainV1Resource", &selectel.DomainsDomainV1Args{
DomainsDomainV1Id: pulumi.String("string"),
Name: pulumi.String("string"),
})
var domainsDomainV1Resource = new DomainsDomainV1("domainsDomainV1Resource", DomainsDomainV1Args.builder()
.domainsDomainV1Id("string")
.name("string")
.build());
domains_domain_v1_resource = selectel.DomainsDomainV1("domainsDomainV1Resource",
domains_domain_v1_id="string",
name="string")
const domainsDomainV1Resource = new selectel.DomainsDomainV1("domainsDomainV1Resource", {
domainsDomainV1Id: "string",
name: "string",
});
type: selectel:DomainsDomainV1
properties:
domainsDomainV1Id: string
name: string
DomainsDomainV1 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 DomainsDomainV1 resource accepts the following input properties:
- Domains
Domain stringV1Id - Name string
- Domain name. Changing this creates a new domain name.
- Domains
Domain stringV1Id - Name string
- Domain name. Changing this creates a new domain name.
- domains
Domain StringV1Id - name String
- Domain name. Changing this creates a new domain name.
- domains
Domain stringV1Id - name string
- Domain name. Changing this creates a new domain name.
- domains_
domain_ strv1_ id - name str
- Domain name. Changing this creates a new domain name.
- domains
Domain StringV1Id - name String
- Domain name. Changing this creates a new domain name.
Outputs
All input properties are implicitly available as output properties. Additionally, the DomainsDomainV1 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- User
Id double - Selectel account ID. The account ID is in the top right corner of the Control panel.
- Id string
- The provider-assigned unique ID for this managed resource.
- User
Id float64 - Selectel account ID. The account ID is in the top right corner of the Control panel.
- id String
- The provider-assigned unique ID for this managed resource.
- user
Id Double - Selectel account ID. The account ID is in the top right corner of the Control panel.
- id string
- The provider-assigned unique ID for this managed resource.
- user
Id number - Selectel account ID. The account ID is in the top right corner of the Control panel.
- id str
- The provider-assigned unique ID for this managed resource.
- user_
id float - Selectel account ID. The account ID is in the top right corner of the Control panel.
- id String
- The provider-assigned unique ID for this managed resource.
- user
Id Number - Selectel account ID. The account ID is in the top right corner of the Control panel.
Look up Existing DomainsDomainV1 Resource
Get an existing DomainsDomainV1 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?: DomainsDomainV1State, opts?: CustomResourceOptions): DomainsDomainV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
domains_domain_v1_id: Optional[str] = None,
name: Optional[str] = None,
user_id: Optional[float] = None) -> DomainsDomainV1
func GetDomainsDomainV1(ctx *Context, name string, id IDInput, state *DomainsDomainV1State, opts ...ResourceOption) (*DomainsDomainV1, error)
public static DomainsDomainV1 Get(string name, Input<string> id, DomainsDomainV1State? state, CustomResourceOptions? opts = null)
public static DomainsDomainV1 get(String name, Output<String> id, DomainsDomainV1State state, CustomResourceOptions options)
resources: _: type: selectel:DomainsDomainV1 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.
- Domains
Domain stringV1Id - Name string
- Domain name. Changing this creates a new domain name.
- User
Id double - Selectel account ID. The account ID is in the top right corner of the Control panel.
- Domains
Domain stringV1Id - Name string
- Domain name. Changing this creates a new domain name.
- User
Id float64 - Selectel account ID. The account ID is in the top right corner of the Control panel.
- domains
Domain StringV1Id - name String
- Domain name. Changing this creates a new domain name.
- user
Id Double - Selectel account ID. The account ID is in the top right corner of the Control panel.
- domains
Domain stringV1Id - name string
- Domain name. Changing this creates a new domain name.
- user
Id number - Selectel account ID. The account ID is in the top right corner of the Control panel.
- domains_
domain_ strv1_ id - name str
- Domain name. Changing this creates a new domain name.
- user_
id float - Selectel account ID. The account ID is in the top right corner of the Control panel.
- domains
Domain StringV1Id - name String
- Domain name. Changing this creates a new domain name.
- user
Id Number - Selectel account ID. The account ID is in the top right corner of the Control panel.
Import
You can import a domain:
export OS_DOMAIN_NAME=<account_id>
export OS_USERNAME=
export OS_PASSWORD=
$ pulumi import selectel:index/domainsDomainV1:DomainsDomainV1 domain_1 <domain_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.<domain_id>
— Unique identifier of the domain, for example,45623
. To get the domain ID, in the Control panel, go to Networks Services ⟶ DNS Hosting ⟶ the domain page ⟶ copy the domain ID from the address bar.
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.