1. Packages
  2. Powerdns Provider
  3. API Docs
  4. Record
powerdns 1.5.0 published on Monday, Apr 14, 2025 by pan-net

powerdns.Record

Explore with Pulumi AI

powerdns logo
powerdns 1.5.0 published on Monday, Apr 14, 2025 by pan-net

    Create Record Resource

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

    Constructor syntax

    new Record(name: string, args: RecordArgs, opts?: CustomResourceOptions);
    @overload
    def Record(resource_name: str,
               args: RecordArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Record(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               records: Optional[Sequence[str]] = None,
               ttl: Optional[float] = None,
               type: Optional[str] = None,
               zone: Optional[str] = None,
               name: Optional[str] = None,
               record_id: Optional[str] = None,
               set_ptr: Optional[bool] = None)
    func NewRecord(ctx *Context, name string, args RecordArgs, opts ...ResourceOption) (*Record, error)
    public Record(string name, RecordArgs args, CustomResourceOptions? opts = null)
    public Record(String name, RecordArgs args)
    public Record(String name, RecordArgs args, CustomResourceOptions options)
    
    type: powerdns:Record
    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 RecordArgs
    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 RecordArgs
    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 RecordArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RecordArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RecordArgs
    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 recordResource = new Powerdns.Record("recordResource", new()
    {
        Records = new[]
        {
            "string",
        },
        Ttl = 0,
        Type = "string",
        Zone = "string",
        Name = "string",
        RecordId = "string",
        SetPtr = false,
    });
    
    example, err := powerdns.NewRecord(ctx, "recordResource", &powerdns.RecordArgs{
    	Records: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Ttl:      pulumi.Float64(0),
    	Type:     pulumi.String("string"),
    	Zone:     pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	RecordId: pulumi.String("string"),
    	SetPtr:   pulumi.Bool(false),
    })
    
    var recordResource = new Record("recordResource", RecordArgs.builder()
        .records("string")
        .ttl(0)
        .type("string")
        .zone("string")
        .name("string")
        .recordId("string")
        .setPtr(false)
        .build());
    
    record_resource = powerdns.Record("recordResource",
        records=["string"],
        ttl=0,
        type="string",
        zone="string",
        name="string",
        record_id="string",
        set_ptr=False)
    
    const recordResource = new powerdns.Record("recordResource", {
        records: ["string"],
        ttl: 0,
        type: "string",
        zone: "string",
        name: "string",
        recordId: "string",
        setPtr: false,
    });
    
    type: powerdns:Record
    properties:
        name: string
        recordId: string
        records:
            - string
        setPtr: false
        ttl: 0
        type: string
        zone: string
    

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

    Records List<string>
    A string list of records.
    Ttl double
    The TTL of the record.
    Type string
    The record type.
    Zone string
    The name of zone to contain this record.
    Name string
    The name of the record.
    RecordId string
    SetPtr bool
    [Deprecated in PowerDNS 4.3.0] A boolean (true/false), determining whether API server should automatically create PTR record in the matching reverse zone. Existing PTR records are replaced. If no matching reverse zone, an error is thrown.
    Records []string
    A string list of records.
    Ttl float64
    The TTL of the record.
    Type string
    The record type.
    Zone string
    The name of zone to contain this record.
    Name string
    The name of the record.
    RecordId string
    SetPtr bool
    [Deprecated in PowerDNS 4.3.0] A boolean (true/false), determining whether API server should automatically create PTR record in the matching reverse zone. Existing PTR records are replaced. If no matching reverse zone, an error is thrown.
    records List<String>
    A string list of records.
    ttl Double
    The TTL of the record.
    type String
    The record type.
    zone String
    The name of zone to contain this record.
    name String
    The name of the record.
    recordId String
    setPtr Boolean
    [Deprecated in PowerDNS 4.3.0] A boolean (true/false), determining whether API server should automatically create PTR record in the matching reverse zone. Existing PTR records are replaced. If no matching reverse zone, an error is thrown.
    records string[]
    A string list of records.
    ttl number
    The TTL of the record.
    type string
    The record type.
    zone string
    The name of zone to contain this record.
    name string
    The name of the record.
    recordId string
    setPtr boolean
    [Deprecated in PowerDNS 4.3.0] A boolean (true/false), determining whether API server should automatically create PTR record in the matching reverse zone. Existing PTR records are replaced. If no matching reverse zone, an error is thrown.
    records Sequence[str]
    A string list of records.
    ttl float
    The TTL of the record.
    type str
    The record type.
    zone str
    The name of zone to contain this record.
    name str
    The name of the record.
    record_id str
    set_ptr bool
    [Deprecated in PowerDNS 4.3.0] A boolean (true/false), determining whether API server should automatically create PTR record in the matching reverse zone. Existing PTR records are replaced. If no matching reverse zone, an error is thrown.
    records List<String>
    A string list of records.
    ttl Number
    The TTL of the record.
    type String
    The record type.
    zone String
    The name of zone to contain this record.
    name String
    The name of the record.
    recordId String
    setPtr Boolean
    [Deprecated in PowerDNS 4.3.0] A boolean (true/false), determining whether API server should automatically create PTR record in the matching reverse zone. Existing PTR records are replaced. If no matching reverse zone, an error is thrown.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Record Resource

    Get an existing Record 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?: RecordState, opts?: CustomResourceOptions): Record
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            record_id: Optional[str] = None,
            records: Optional[Sequence[str]] = None,
            set_ptr: Optional[bool] = None,
            ttl: Optional[float] = None,
            type: Optional[str] = None,
            zone: Optional[str] = None) -> Record
    func GetRecord(ctx *Context, name string, id IDInput, state *RecordState, opts ...ResourceOption) (*Record, error)
    public static Record Get(string name, Input<string> id, RecordState? state, CustomResourceOptions? opts = null)
    public static Record get(String name, Output<String> id, RecordState state, CustomResourceOptions options)
    resources:  _:    type: powerdns:Record    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:
    Name string
    The name of the record.
    RecordId string
    Records List<string>
    A string list of records.
    SetPtr bool
    [Deprecated in PowerDNS 4.3.0] A boolean (true/false), determining whether API server should automatically create PTR record in the matching reverse zone. Existing PTR records are replaced. If no matching reverse zone, an error is thrown.
    Ttl double
    The TTL of the record.
    Type string
    The record type.
    Zone string
    The name of zone to contain this record.
    Name string
    The name of the record.
    RecordId string
    Records []string
    A string list of records.
    SetPtr bool
    [Deprecated in PowerDNS 4.3.0] A boolean (true/false), determining whether API server should automatically create PTR record in the matching reverse zone. Existing PTR records are replaced. If no matching reverse zone, an error is thrown.
    Ttl float64
    The TTL of the record.
    Type string
    The record type.
    Zone string
    The name of zone to contain this record.
    name String
    The name of the record.
    recordId String
    records List<String>
    A string list of records.
    setPtr Boolean
    [Deprecated in PowerDNS 4.3.0] A boolean (true/false), determining whether API server should automatically create PTR record in the matching reverse zone. Existing PTR records are replaced. If no matching reverse zone, an error is thrown.
    ttl Double
    The TTL of the record.
    type String
    The record type.
    zone String
    The name of zone to contain this record.
    name string
    The name of the record.
    recordId string
    records string[]
    A string list of records.
    setPtr boolean
    [Deprecated in PowerDNS 4.3.0] A boolean (true/false), determining whether API server should automatically create PTR record in the matching reverse zone. Existing PTR records are replaced. If no matching reverse zone, an error is thrown.
    ttl number
    The TTL of the record.
    type string
    The record type.
    zone string
    The name of zone to contain this record.
    name str
    The name of the record.
    record_id str
    records Sequence[str]
    A string list of records.
    set_ptr bool
    [Deprecated in PowerDNS 4.3.0] A boolean (true/false), determining whether API server should automatically create PTR record in the matching reverse zone. Existing PTR records are replaced. If no matching reverse zone, an error is thrown.
    ttl float
    The TTL of the record.
    type str
    The record type.
    zone str
    The name of zone to contain this record.
    name String
    The name of the record.
    recordId String
    records List<String>
    A string list of records.
    setPtr Boolean
    [Deprecated in PowerDNS 4.3.0] A boolean (true/false), determining whether API server should automatically create PTR record in the matching reverse zone. Existing PTR records are replaced. If no matching reverse zone, an error is thrown.
    ttl Number
    The TTL of the record.
    type String
    The record type.
    zone String
    The name of zone to contain this record.

    Package Details

    Repository
    powerdns pan-net/terraform-provider-powerdns
    License
    Notes
    This Pulumi package is based on the powerdns Terraform Provider.
    powerdns logo
    powerdns 1.5.0 published on Monday, Apr 14, 2025 by pan-net