1. Packages
  2. stackit
  3. API Docs
  4. getDnsRecordSet
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud

    DNS Record Set Resource schema.

    Example Usage

    data "stackit_dns_record_set" "example" {
      project_id    = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      zone_id       = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      record_set_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
    

    Using getDnsRecordSet

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDnsRecordSet(args: GetDnsRecordSetArgs, opts?: InvokeOptions): Promise<GetDnsRecordSetResult>
    function getDnsRecordSetOutput(args: GetDnsRecordSetOutputArgs, opts?: InvokeOptions): Output<GetDnsRecordSetResult>
    def get_dns_record_set(project_id: Optional[str] = None,
                           record_set_id: Optional[str] = None,
                           zone_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDnsRecordSetResult
    def get_dns_record_set_output(project_id: Optional[pulumi.Input[str]] = None,
                           record_set_id: Optional[pulumi.Input[str]] = None,
                           zone_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDnsRecordSetResult]
    func LookupDnsRecordSet(ctx *Context, args *LookupDnsRecordSetArgs, opts ...InvokeOption) (*LookupDnsRecordSetResult, error)
    func LookupDnsRecordSetOutput(ctx *Context, args *LookupDnsRecordSetOutputArgs, opts ...InvokeOption) LookupDnsRecordSetResultOutput

    > Note: This function is named LookupDnsRecordSet in the Go SDK.

    public static class GetDnsRecordSet 
    {
        public static Task<GetDnsRecordSetResult> InvokeAsync(GetDnsRecordSetArgs args, InvokeOptions? opts = null)
        public static Output<GetDnsRecordSetResult> Invoke(GetDnsRecordSetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDnsRecordSetResult> getDnsRecordSet(GetDnsRecordSetArgs args, InvokeOptions options)
    public static Output<GetDnsRecordSetResult> getDnsRecordSet(GetDnsRecordSetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getDnsRecordSet:getDnsRecordSet
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    STACKIT project ID to which the dns record set is associated.
    RecordSetId string
    The rr set id.
    ZoneId string
    The zone ID to which is dns record set is associated.
    ProjectId string
    STACKIT project ID to which the dns record set is associated.
    RecordSetId string
    The rr set id.
    ZoneId string
    The zone ID to which is dns record set is associated.
    projectId String
    STACKIT project ID to which the dns record set is associated.
    recordSetId String
    The rr set id.
    zoneId String
    The zone ID to which is dns record set is associated.
    projectId string
    STACKIT project ID to which the dns record set is associated.
    recordSetId string
    The rr set id.
    zoneId string
    The zone ID to which is dns record set is associated.
    project_id str
    STACKIT project ID to which the dns record set is associated.
    record_set_id str
    The rr set id.
    zone_id str
    The zone ID to which is dns record set is associated.
    projectId String
    STACKIT project ID to which the dns record set is associated.
    recordSetId String
    The rr set id.
    zoneId String
    The zone ID to which is dns record set is associated.

    getDnsRecordSet Result

    The following output properties are available:

    Active bool
    Specifies if the record set is active or not.
    Comment string
    Comment.
    Error string
    Error shows error in case create/update/delete failed.
    Fqdn string
    Fully qualified domain name (FQDN) of the record set.
    Id string
    Name string
    Name of the record which should be a valid domain according to rfc1035 Section 2.3.4. E.g. example.com
    ProjectId string
    STACKIT project ID to which the dns record set is associated.
    RecordSetId string
    The rr set id.
    Records List<string>
    Records.
    State string
    Record set state.
    Ttl int
    Time to live. E.g. 3600
    Type string
    The record set type. E.g. A or CNAME
    ZoneId string
    The zone ID to which is dns record set is associated.
    Active bool
    Specifies if the record set is active or not.
    Comment string
    Comment.
    Error string
    Error shows error in case create/update/delete failed.
    Fqdn string
    Fully qualified domain name (FQDN) of the record set.
    Id string
    Name string
    Name of the record which should be a valid domain according to rfc1035 Section 2.3.4. E.g. example.com
    ProjectId string
    STACKIT project ID to which the dns record set is associated.
    RecordSetId string
    The rr set id.
    Records []string
    Records.
    State string
    Record set state.
    Ttl int
    Time to live. E.g. 3600
    Type string
    The record set type. E.g. A or CNAME
    ZoneId string
    The zone ID to which is dns record set is associated.
    active Boolean
    Specifies if the record set is active or not.
    comment String
    Comment.
    error String
    Error shows error in case create/update/delete failed.
    fqdn String
    Fully qualified domain name (FQDN) of the record set.
    id String
    name String
    Name of the record which should be a valid domain according to rfc1035 Section 2.3.4. E.g. example.com
    projectId String
    STACKIT project ID to which the dns record set is associated.
    recordSetId String
    The rr set id.
    records List<String>
    Records.
    state String
    Record set state.
    ttl Integer
    Time to live. E.g. 3600
    type String
    The record set type. E.g. A or CNAME
    zoneId String
    The zone ID to which is dns record set is associated.
    active boolean
    Specifies if the record set is active or not.
    comment string
    Comment.
    error string
    Error shows error in case create/update/delete failed.
    fqdn string
    Fully qualified domain name (FQDN) of the record set.
    id string
    name string
    Name of the record which should be a valid domain according to rfc1035 Section 2.3.4. E.g. example.com
    projectId string
    STACKIT project ID to which the dns record set is associated.
    recordSetId string
    The rr set id.
    records string[]
    Records.
    state string
    Record set state.
    ttl number
    Time to live. E.g. 3600
    type string
    The record set type. E.g. A or CNAME
    zoneId string
    The zone ID to which is dns record set is associated.
    active bool
    Specifies if the record set is active or not.
    comment str
    Comment.
    error str
    Error shows error in case create/update/delete failed.
    fqdn str
    Fully qualified domain name (FQDN) of the record set.
    id str
    name str
    Name of the record which should be a valid domain according to rfc1035 Section 2.3.4. E.g. example.com
    project_id str
    STACKIT project ID to which the dns record set is associated.
    record_set_id str
    The rr set id.
    records Sequence[str]
    Records.
    state str
    Record set state.
    ttl int
    Time to live. E.g. 3600
    type str
    The record set type. E.g. A or CNAME
    zone_id str
    The zone ID to which is dns record set is associated.
    active Boolean
    Specifies if the record set is active or not.
    comment String
    Comment.
    error String
    Error shows error in case create/update/delete failed.
    fqdn String
    Fully qualified domain name (FQDN) of the record set.
    id String
    name String
    Name of the record which should be a valid domain according to rfc1035 Section 2.3.4. E.g. example.com
    projectId String
    STACKIT project ID to which the dns record set is associated.
    recordSetId String
    The rr set id.
    records List<String>
    Records.
    state String
    Record set state.
    ttl Number
    Time to live. E.g. 3600
    type String
    The record set type. E.g. A or CNAME
    zoneId String
    The zone ID to which is dns record set is associated.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.