1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. DnsPtrrecordV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.DnsPtrrecordV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for DNS ptr record you can get at documentation portal

    Manages a DNS PTR record in the OpenTelekomCloud DNS Service.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const fip1 = new opentelekomcloud.NetworkingFloatingipV2("fip1", {});
    const ptr1 = new opentelekomcloud.DnsPtrrecordV2("ptr1", {
        description: "An example PTR record",
        floatingipId: fip1.networkingFloatingipV2Id,
        ttl: 3000,
        tags: {
            foo: "bar",
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    fip1 = opentelekomcloud.NetworkingFloatingipV2("fip1")
    ptr1 = opentelekomcloud.DnsPtrrecordV2("ptr1",
        description="An example PTR record",
        floatingip_id=fip1.networking_floatingip_v2_id,
        ttl=3000,
        tags={
            "foo": "bar",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fip1, err := opentelekomcloud.NewNetworkingFloatingipV2(ctx, "fip1", nil)
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewDnsPtrrecordV2(ctx, "ptr1", &opentelekomcloud.DnsPtrrecordV2Args{
    			Description:  pulumi.String("An example PTR record"),
    			FloatingipId: fip1.NetworkingFloatingipV2Id,
    			Ttl:          pulumi.Float64(3000),
    			Tags: pulumi.StringMap{
    				"foo": pulumi.String("bar"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var fip1 = new Opentelekomcloud.NetworkingFloatingipV2("fip1");
    
        var ptr1 = new Opentelekomcloud.DnsPtrrecordV2("ptr1", new()
        {
            Description = "An example PTR record",
            FloatingipId = fip1.NetworkingFloatingipV2Id,
            Ttl = 3000,
            Tags = 
            {
                { "foo", "bar" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.NetworkingFloatingipV2;
    import com.pulumi.opentelekomcloud.DnsPtrrecordV2;
    import com.pulumi.opentelekomcloud.DnsPtrrecordV2Args;
    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 fip1 = new NetworkingFloatingipV2("fip1");
    
            var ptr1 = new DnsPtrrecordV2("ptr1", DnsPtrrecordV2Args.builder()
                .description("An example PTR record")
                .floatingipId(fip1.networkingFloatingipV2Id())
                .ttl(3000)
                .tags(Map.of("foo", "bar"))
                .build());
    
        }
    }
    
    resources:
      fip1:
        type: opentelekomcloud:NetworkingFloatingipV2
      ptr1:
        type: opentelekomcloud:DnsPtrrecordV2
        properties:
          description: An example PTR record
          floatingipId: ${fip1.networkingFloatingipV2Id}
          ttl: 3000
          tags:
            foo: bar
    

    Create DnsPtrrecordV2 Resource

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

    Constructor syntax

    new DnsPtrrecordV2(name: string, args: DnsPtrrecordV2Args, opts?: CustomResourceOptions);
    @overload
    def DnsPtrrecordV2(resource_name: str,
                       args: DnsPtrrecordV2Args,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def DnsPtrrecordV2(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       floatingip_id: Optional[str] = None,
                       description: Optional[str] = None,
                       dns_ptrrecord_v2_id: Optional[str] = None,
                       name: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None,
                       timeouts: Optional[DnsPtrrecordV2TimeoutsArgs] = None,
                       ttl: Optional[float] = None)
    func NewDnsPtrrecordV2(ctx *Context, name string, args DnsPtrrecordV2Args, opts ...ResourceOption) (*DnsPtrrecordV2, error)
    public DnsPtrrecordV2(string name, DnsPtrrecordV2Args args, CustomResourceOptions? opts = null)
    public DnsPtrrecordV2(String name, DnsPtrrecordV2Args args)
    public DnsPtrrecordV2(String name, DnsPtrrecordV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:DnsPtrrecordV2
    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 DnsPtrrecordV2Args
    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 DnsPtrrecordV2Args
    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 DnsPtrrecordV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DnsPtrrecordV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DnsPtrrecordV2Args
    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 dnsPtrrecordV2Resource = new Opentelekomcloud.DnsPtrrecordV2("dnsPtrrecordV2Resource", new()
    {
        FloatingipId = "string",
        Description = "string",
        DnsPtrrecordV2Id = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Opentelekomcloud.Inputs.DnsPtrrecordV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        Ttl = 0,
    });
    
    example, err := opentelekomcloud.NewDnsPtrrecordV2(ctx, "dnsPtrrecordV2Resource", &opentelekomcloud.DnsPtrrecordV2Args{
    	FloatingipId:     pulumi.String("string"),
    	Description:      pulumi.String("string"),
    	DnsPtrrecordV2Id: pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &opentelekomcloud.DnsPtrrecordV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	Ttl: pulumi.Float64(0),
    })
    
    var dnsPtrrecordV2Resource = new DnsPtrrecordV2("dnsPtrrecordV2Resource", DnsPtrrecordV2Args.builder()
        .floatingipId("string")
        .description("string")
        .dnsPtrrecordV2Id("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .timeouts(DnsPtrrecordV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .ttl(0)
        .build());
    
    dns_ptrrecord_v2_resource = opentelekomcloud.DnsPtrrecordV2("dnsPtrrecordV2Resource",
        floatingip_id="string",
        description="string",
        dns_ptrrecord_v2_id="string",
        name="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        ttl=0)
    
    const dnsPtrrecordV2Resource = new opentelekomcloud.DnsPtrrecordV2("dnsPtrrecordV2Resource", {
        floatingipId: "string",
        description: "string",
        dnsPtrrecordV2Id: "string",
        name: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        ttl: 0,
    });
    
    type: opentelekomcloud:DnsPtrrecordV2
    properties:
        description: string
        dnsPtrrecordV2Id: string
        floatingipId: string
        name: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
            update: string
        ttl: 0
    

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

    FloatingipId string
    The ID of the FloatingIP/EIP.
    Description string
    Description of the PTR record.
    DnsPtrrecordV2Id string
    The PTR record ID, which is in {region}:{floatingip_id} format.
    Name string
    Domain name of the PTR record. A domain name is case insensitive. Uppercase letters will also be converted into lowercase letters.
    Tags Dictionary<string, string>
    Tags key/value pairs to associate with the PTR record.
    Timeouts DnsPtrrecordV2Timeouts
    Ttl double
    The time to live (TTL) of the record set (in seconds). The value range is 300–2147483647. The default value is 300.
    FloatingipId string
    The ID of the FloatingIP/EIP.
    Description string
    Description of the PTR record.
    DnsPtrrecordV2Id string
    The PTR record ID, which is in {region}:{floatingip_id} format.
    Name string
    Domain name of the PTR record. A domain name is case insensitive. Uppercase letters will also be converted into lowercase letters.
    Tags map[string]string
    Tags key/value pairs to associate with the PTR record.
    Timeouts DnsPtrrecordV2TimeoutsArgs
    Ttl float64
    The time to live (TTL) of the record set (in seconds). The value range is 300–2147483647. The default value is 300.
    floatingipId String
    The ID of the FloatingIP/EIP.
    description String
    Description of the PTR record.
    dnsPtrrecordV2Id String
    The PTR record ID, which is in {region}:{floatingip_id} format.
    name String
    Domain name of the PTR record. A domain name is case insensitive. Uppercase letters will also be converted into lowercase letters.
    tags Map<String,String>
    Tags key/value pairs to associate with the PTR record.
    timeouts DnsPtrrecordV2Timeouts
    ttl Double
    The time to live (TTL) of the record set (in seconds). The value range is 300–2147483647. The default value is 300.
    floatingipId string
    The ID of the FloatingIP/EIP.
    description string
    Description of the PTR record.
    dnsPtrrecordV2Id string
    The PTR record ID, which is in {region}:{floatingip_id} format.
    name string
    Domain name of the PTR record. A domain name is case insensitive. Uppercase letters will also be converted into lowercase letters.
    tags {[key: string]: string}
    Tags key/value pairs to associate with the PTR record.
    timeouts DnsPtrrecordV2Timeouts
    ttl number
    The time to live (TTL) of the record set (in seconds). The value range is 300–2147483647. The default value is 300.
    floatingip_id str
    The ID of the FloatingIP/EIP.
    description str
    Description of the PTR record.
    dns_ptrrecord_v2_id str
    The PTR record ID, which is in {region}:{floatingip_id} format.
    name str
    Domain name of the PTR record. A domain name is case insensitive. Uppercase letters will also be converted into lowercase letters.
    tags Mapping[str, str]
    Tags key/value pairs to associate with the PTR record.
    timeouts DnsPtrrecordV2TimeoutsArgs
    ttl float
    The time to live (TTL) of the record set (in seconds). The value range is 300–2147483647. The default value is 300.
    floatingipId String
    The ID of the FloatingIP/EIP.
    description String
    Description of the PTR record.
    dnsPtrrecordV2Id String
    The PTR record ID, which is in {region}:{floatingip_id} format.
    name String
    Domain name of the PTR record. A domain name is case insensitive. Uppercase letters will also be converted into lowercase letters.
    tags Map<String>
    Tags key/value pairs to associate with the PTR record.
    timeouts Property Map
    ttl Number
    The time to live (TTL) of the record set (in seconds). The value range is 300–2147483647. The default value is 300.

    Outputs

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

    Address string
    The address of the FloatingIP/EIP.
    Id string
    The provider-assigned unique ID for this managed resource.
    Address string
    The address of the FloatingIP/EIP.
    Id string
    The provider-assigned unique ID for this managed resource.
    address String
    The address of the FloatingIP/EIP.
    id String
    The provider-assigned unique ID for this managed resource.
    address string
    The address of the FloatingIP/EIP.
    id string
    The provider-assigned unique ID for this managed resource.
    address str
    The address of the FloatingIP/EIP.
    id str
    The provider-assigned unique ID for this managed resource.
    address String
    The address of the FloatingIP/EIP.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DnsPtrrecordV2 Resource

    Get an existing DnsPtrrecordV2 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?: DnsPtrrecordV2State, opts?: CustomResourceOptions): DnsPtrrecordV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            address: Optional[str] = None,
            description: Optional[str] = None,
            dns_ptrrecord_v2_id: Optional[str] = None,
            floatingip_id: Optional[str] = None,
            name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeouts: Optional[DnsPtrrecordV2TimeoutsArgs] = None,
            ttl: Optional[float] = None) -> DnsPtrrecordV2
    func GetDnsPtrrecordV2(ctx *Context, name string, id IDInput, state *DnsPtrrecordV2State, opts ...ResourceOption) (*DnsPtrrecordV2, error)
    public static DnsPtrrecordV2 Get(string name, Input<string> id, DnsPtrrecordV2State? state, CustomResourceOptions? opts = null)
    public static DnsPtrrecordV2 get(String name, Output<String> id, DnsPtrrecordV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:DnsPtrrecordV2    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.
    The following state arguments are supported:
    Address string
    The address of the FloatingIP/EIP.
    Description string
    Description of the PTR record.
    DnsPtrrecordV2Id string
    The PTR record ID, which is in {region}:{floatingip_id} format.
    FloatingipId string
    The ID of the FloatingIP/EIP.
    Name string
    Domain name of the PTR record. A domain name is case insensitive. Uppercase letters will also be converted into lowercase letters.
    Tags Dictionary<string, string>
    Tags key/value pairs to associate with the PTR record.
    Timeouts DnsPtrrecordV2Timeouts
    Ttl double
    The time to live (TTL) of the record set (in seconds). The value range is 300–2147483647. The default value is 300.
    Address string
    The address of the FloatingIP/EIP.
    Description string
    Description of the PTR record.
    DnsPtrrecordV2Id string
    The PTR record ID, which is in {region}:{floatingip_id} format.
    FloatingipId string
    The ID of the FloatingIP/EIP.
    Name string
    Domain name of the PTR record. A domain name is case insensitive. Uppercase letters will also be converted into lowercase letters.
    Tags map[string]string
    Tags key/value pairs to associate with the PTR record.
    Timeouts DnsPtrrecordV2TimeoutsArgs
    Ttl float64
    The time to live (TTL) of the record set (in seconds). The value range is 300–2147483647. The default value is 300.
    address String
    The address of the FloatingIP/EIP.
    description String
    Description of the PTR record.
    dnsPtrrecordV2Id String
    The PTR record ID, which is in {region}:{floatingip_id} format.
    floatingipId String
    The ID of the FloatingIP/EIP.
    name String
    Domain name of the PTR record. A domain name is case insensitive. Uppercase letters will also be converted into lowercase letters.
    tags Map<String,String>
    Tags key/value pairs to associate with the PTR record.
    timeouts DnsPtrrecordV2Timeouts
    ttl Double
    The time to live (TTL) of the record set (in seconds). The value range is 300–2147483647. The default value is 300.
    address string
    The address of the FloatingIP/EIP.
    description string
    Description of the PTR record.
    dnsPtrrecordV2Id string
    The PTR record ID, which is in {region}:{floatingip_id} format.
    floatingipId string
    The ID of the FloatingIP/EIP.
    name string
    Domain name of the PTR record. A domain name is case insensitive. Uppercase letters will also be converted into lowercase letters.
    tags {[key: string]: string}
    Tags key/value pairs to associate with the PTR record.
    timeouts DnsPtrrecordV2Timeouts
    ttl number
    The time to live (TTL) of the record set (in seconds). The value range is 300–2147483647. The default value is 300.
    address str
    The address of the FloatingIP/EIP.
    description str
    Description of the PTR record.
    dns_ptrrecord_v2_id str
    The PTR record ID, which is in {region}:{floatingip_id} format.
    floatingip_id str
    The ID of the FloatingIP/EIP.
    name str
    Domain name of the PTR record. A domain name is case insensitive. Uppercase letters will also be converted into lowercase letters.
    tags Mapping[str, str]
    Tags key/value pairs to associate with the PTR record.
    timeouts DnsPtrrecordV2TimeoutsArgs
    ttl float
    The time to live (TTL) of the record set (in seconds). The value range is 300–2147483647. The default value is 300.
    address String
    The address of the FloatingIP/EIP.
    description String
    Description of the PTR record.
    dnsPtrrecordV2Id String
    The PTR record ID, which is in {region}:{floatingip_id} format.
    floatingipId String
    The ID of the FloatingIP/EIP.
    name String
    Domain name of the PTR record. A domain name is case insensitive. Uppercase letters will also be converted into lowercase letters.
    tags Map<String>
    Tags key/value pairs to associate with the PTR record.
    timeouts Property Map
    ttl Number
    The time to live (TTL) of the record set (in seconds). The value range is 300–2147483647. The default value is 300.

    Supporting Types

    DnsPtrrecordV2Timeouts, DnsPtrrecordV2TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    PTR records can be imported using region and floatingip/eip ID, separated by a colon(:), e.g.

    $ pulumi import opentelekomcloud:index/dnsPtrrecordV2:DnsPtrrecordV2 ptr_1 eu-de:d90ce693-5ccf-4136-a0ed-152ce412b6b9
    

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud