1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. privatezone
  5. getRecord
Viewing docs for bytepluscc v0.0.21
published on Thursday, Apr 2, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.21
published on Thursday, Apr 2, 2026 by Byteplus

    Data Source schema for Byteplus::PrivateZone::Record

    Using getRecord

    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 getRecord(args: GetRecordArgs, opts?: InvokeOptions): Promise<GetRecordResult>
    function getRecordOutput(args: GetRecordOutputArgs, opts?: InvokeOptions): Output<GetRecordResult>
    def get_record(id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetRecordResult
    def get_record_output(id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetRecordResult]
    func LookupRecord(ctx *Context, args *LookupRecordArgs, opts ...InvokeOption) (*LookupRecordResult, error)
    func LookupRecordOutput(ctx *Context, args *LookupRecordOutputArgs, opts ...InvokeOption) LookupRecordResultOutput

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

    public static class GetRecord 
    {
        public static Task<GetRecordResult> InvokeAsync(GetRecordArgs args, InvokeOptions? opts = null)
        public static Output<GetRecordResult> Invoke(GetRecordInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRecordResult> getRecord(GetRecordArgs args, InvokeOptions options)
    public static Output<GetRecordResult> getRecord(GetRecordArgs args, InvokeOptions options)
    
    fn::invoke:
      function: bytepluscc:privatezone/getRecord:getRecord
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Uniquely identifies the resource.
    Id string
    Uniquely identifies the resource.
    id String
    Uniquely identifies the resource.
    id string
    Uniquely identifies the resource.
    id str
    Uniquely identifies the resource.
    id String
    Uniquely identifies the resource.

    getRecord Result

    The following output properties are available:

    CreatedAt string
    Creation time of the DNS record.
    Enable bool
    Indicates whether the DNS record is enabled.
    Host string
    Domain prefix for the subdomain.
    Id string
    Uniquely identifies the resource.
    LastOperator string
    Account ID of the most recent update to the DNS record.
    Line string
    DNS record route, only the default route 'default' is supported.
    RecordId string
    DNS record ID.
    Remark string
    Remarks. Supports UTF-8 characters. Maximum 16 characters. Default is an empty string.
    Ttl int
    DNS record TTL (time to live), in seconds. Default is 600.
    Type string
    DNS record type. Valid values are: A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record. A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record.
    UpdatedAt string
    Last update time of the DNS record.
    Value string
    Record value.
    Weight int
    Record weight. The weight takes effect only when load balancing is enabled for the domain name.
    WeightEnabled bool
    Indicates whether load balancing is enabled for this record set.
    Zid int
    Domain name ID.
    CreatedAt string
    Creation time of the DNS record.
    Enable bool
    Indicates whether the DNS record is enabled.
    Host string
    Domain prefix for the subdomain.
    Id string
    Uniquely identifies the resource.
    LastOperator string
    Account ID of the most recent update to the DNS record.
    Line string
    DNS record route, only the default route 'default' is supported.
    RecordId string
    DNS record ID.
    Remark string
    Remarks. Supports UTF-8 characters. Maximum 16 characters. Default is an empty string.
    Ttl int
    DNS record TTL (time to live), in seconds. Default is 600.
    Type string
    DNS record type. Valid values are: A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record. A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record.
    UpdatedAt string
    Last update time of the DNS record.
    Value string
    Record value.
    Weight int
    Record weight. The weight takes effect only when load balancing is enabled for the domain name.
    WeightEnabled bool
    Indicates whether load balancing is enabled for this record set.
    Zid int
    Domain name ID.
    createdAt String
    Creation time of the DNS record.
    enable Boolean
    Indicates whether the DNS record is enabled.
    host String
    Domain prefix for the subdomain.
    id String
    Uniquely identifies the resource.
    lastOperator String
    Account ID of the most recent update to the DNS record.
    line String
    DNS record route, only the default route 'default' is supported.
    recordId String
    DNS record ID.
    remark String
    Remarks. Supports UTF-8 characters. Maximum 16 characters. Default is an empty string.
    ttl Integer
    DNS record TTL (time to live), in seconds. Default is 600.
    type String
    DNS record type. Valid values are: A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record. A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record.
    updatedAt String
    Last update time of the DNS record.
    value String
    Record value.
    weight Integer
    Record weight. The weight takes effect only when load balancing is enabled for the domain name.
    weightEnabled Boolean
    Indicates whether load balancing is enabled for this record set.
    zid Integer
    Domain name ID.
    createdAt string
    Creation time of the DNS record.
    enable boolean
    Indicates whether the DNS record is enabled.
    host string
    Domain prefix for the subdomain.
    id string
    Uniquely identifies the resource.
    lastOperator string
    Account ID of the most recent update to the DNS record.
    line string
    DNS record route, only the default route 'default' is supported.
    recordId string
    DNS record ID.
    remark string
    Remarks. Supports UTF-8 characters. Maximum 16 characters. Default is an empty string.
    ttl number
    DNS record TTL (time to live), in seconds. Default is 600.
    type string
    DNS record type. Valid values are: A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record. A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record.
    updatedAt string
    Last update time of the DNS record.
    value string
    Record value.
    weight number
    Record weight. The weight takes effect only when load balancing is enabled for the domain name.
    weightEnabled boolean
    Indicates whether load balancing is enabled for this record set.
    zid number
    Domain name ID.
    created_at str
    Creation time of the DNS record.
    enable bool
    Indicates whether the DNS record is enabled.
    host str
    Domain prefix for the subdomain.
    id str
    Uniquely identifies the resource.
    last_operator str
    Account ID of the most recent update to the DNS record.
    line str
    DNS record route, only the default route 'default' is supported.
    record_id str
    DNS record ID.
    remark str
    Remarks. Supports UTF-8 characters. Maximum 16 characters. Default is an empty string.
    ttl int
    DNS record TTL (time to live), in seconds. Default is 600.
    type str
    DNS record type. Valid values are: A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record. A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record.
    updated_at str
    Last update time of the DNS record.
    value str
    Record value.
    weight int
    Record weight. The weight takes effect only when load balancing is enabled for the domain name.
    weight_enabled bool
    Indicates whether load balancing is enabled for this record set.
    zid int
    Domain name ID.
    createdAt String
    Creation time of the DNS record.
    enable Boolean
    Indicates whether the DNS record is enabled.
    host String
    Domain prefix for the subdomain.
    id String
    Uniquely identifies the resource.
    lastOperator String
    Account ID of the most recent update to the DNS record.
    line String
    DNS record route, only the default route 'default' is supported.
    recordId String
    DNS record ID.
    remark String
    Remarks. Supports UTF-8 characters. Maximum 16 characters. Default is an empty string.
    ttl Number
    DNS record TTL (time to live), in seconds. Default is 600.
    type String
    DNS record type. Valid values are: A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record. A: A record. AAAA: AAAA record. CNAME: CNAME record. TXT: TXT record. MX: MX record. PTR: PTR record.
    updatedAt String
    Last update time of the DNS record.
    value String
    Record value.
    weight Number
    Record weight. The weight takes effect only when load balancing is enabled for the domain name.
    weightEnabled Boolean
    Indicates whether load balancing is enabled for this record set.
    zid Number
    Domain name ID.

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.21
    published on Thursday, Apr 2, 2026 by Byteplus
      Try Pulumi Cloud free. Your team will thank you.