1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. privatezone
  5. getResolverRule
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::ResolverRule

    Using getResolverRule

    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 getResolverRule(args: GetResolverRuleArgs, opts?: InvokeOptions): Promise<GetResolverRuleResult>
    function getResolverRuleOutput(args: GetResolverRuleOutputArgs, opts?: InvokeOptions): Output<GetResolverRuleResult>
    def get_resolver_rule(id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetResolverRuleResult
    def get_resolver_rule_output(id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetResolverRuleResult]
    func LookupResolverRule(ctx *Context, args *LookupResolverRuleArgs, opts ...InvokeOption) (*LookupResolverRuleResult, error)
    func LookupResolverRuleOutput(ctx *Context, args *LookupResolverRuleOutputArgs, opts ...InvokeOption) LookupResolverRuleResultOutput

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

    public static class GetResolverRule 
    {
        public static Task<GetResolverRuleResult> InvokeAsync(GetResolverRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetResolverRuleResult> Invoke(GetResolverRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResolverRuleResult> getResolverRule(GetResolverRuleArgs args, InvokeOptions options)
    public static Output<GetResolverRuleResult> getResolverRule(GetResolverRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: bytepluscc:privatezone/getResolverRule:getResolverRule
      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.

    getResolverRule Result

    The following output properties are available:

    CreatedTime string
    Creation time of the forwarding rule
    Enable bool
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    EndpointId int
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    ForwardIPs List<Byteplus.GetResolverRuleForwardIP>
    IP address and port of the external DNS server. You can add up to 10 IP addresses. This parameter is only valid and required when the Type parameter is OUTBOUND
    Id string
    Uniquely identifies the resource.
    LastOperator string
    Account ID of the last update to the forwarding rule
    Line string
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    Name string
    Name of the forwarding rule. Supports UTF-8 format
    ProjectName string
    Project name associated with the forwarding rule. Default is default
    RuleId string
    Forwarding rule ID
    Tags List<Byteplus.GetResolverRuleTag>
    One or more tags associated with the forwarding rule
    Type string
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    UpdatedTime string
    Update time of the forwarding rule
    VpCs List<Byteplus.GetResolverRuleVpC>
    VPC associated with the forwarding rule. The forwarding rule takes effect in the associated VPC. When the Type parameter is OUTBOUND, the VPC region must match the region of the endpoint
    ZoneName string
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    CreatedTime string
    Creation time of the forwarding rule
    Enable bool
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    EndpointId int
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    ForwardIPs []GetResolverRuleForwardIP
    IP address and port of the external DNS server. You can add up to 10 IP addresses. This parameter is only valid and required when the Type parameter is OUTBOUND
    Id string
    Uniquely identifies the resource.
    LastOperator string
    Account ID of the last update to the forwarding rule
    Line string
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    Name string
    Name of the forwarding rule. Supports UTF-8 format
    ProjectName string
    Project name associated with the forwarding rule. Default is default
    RuleId string
    Forwarding rule ID
    Tags []GetResolverRuleTag
    One or more tags associated with the forwarding rule
    Type string
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    UpdatedTime string
    Update time of the forwarding rule
    VpCs []GetResolverRuleVpC
    VPC associated with the forwarding rule. The forwarding rule takes effect in the associated VPC. When the Type parameter is OUTBOUND, the VPC region must match the region of the endpoint
    ZoneName string
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    createdTime String
    Creation time of the forwarding rule
    enable Boolean
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    endpointId Integer
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    forwardIPs List<GetResolverRuleForwardIP>
    IP address and port of the external DNS server. You can add up to 10 IP addresses. This parameter is only valid and required when the Type parameter is OUTBOUND
    id String
    Uniquely identifies the resource.
    lastOperator String
    Account ID of the last update to the forwarding rule
    line String
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    name String
    Name of the forwarding rule. Supports UTF-8 format
    projectName String
    Project name associated with the forwarding rule. Default is default
    ruleId String
    Forwarding rule ID
    tags List<GetResolverRuleTag>
    One or more tags associated with the forwarding rule
    type String
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    updatedTime String
    Update time of the forwarding rule
    vpCs List<GetResolverRuleVpC>
    VPC associated with the forwarding rule. The forwarding rule takes effect in the associated VPC. When the Type parameter is OUTBOUND, the VPC region must match the region of the endpoint
    zoneName String
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    createdTime string
    Creation time of the forwarding rule
    enable boolean
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    endpointId number
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    forwardIPs GetResolverRuleForwardIP[]
    IP address and port of the external DNS server. You can add up to 10 IP addresses. This parameter is only valid and required when the Type parameter is OUTBOUND
    id string
    Uniquely identifies the resource.
    lastOperator string
    Account ID of the last update to the forwarding rule
    line string
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    name string
    Name of the forwarding rule. Supports UTF-8 format
    projectName string
    Project name associated with the forwarding rule. Default is default
    ruleId string
    Forwarding rule ID
    tags GetResolverRuleTag[]
    One or more tags associated with the forwarding rule
    type string
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    updatedTime string
    Update time of the forwarding rule
    vpCs GetResolverRuleVpC[]
    VPC associated with the forwarding rule. The forwarding rule takes effect in the associated VPC. When the Type parameter is OUTBOUND, the VPC region must match the region of the endpoint
    zoneName string
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    created_time str
    Creation time of the forwarding rule
    enable bool
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    endpoint_id int
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    forward_ips Sequence[GetResolverRuleForwardIP]
    IP address and port of the external DNS server. You can add up to 10 IP addresses. This parameter is only valid and required when the Type parameter is OUTBOUND
    id str
    Uniquely identifies the resource.
    last_operator str
    Account ID of the last update to the forwarding rule
    line str
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    name str
    Name of the forwarding rule. Supports UTF-8 format
    project_name str
    Project name associated with the forwarding rule. Default is default
    rule_id str
    Forwarding rule ID
    tags Sequence[GetResolverRuleTag]
    One or more tags associated with the forwarding rule
    type str
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    updated_time str
    Update time of the forwarding rule
    vp_cs Sequence[GetResolverRuleVpC]
    VPC associated with the forwarding rule. The forwarding rule takes effect in the associated VPC. When the Type parameter is OUTBOUND, the VPC region must match the region of the endpoint
    zone_name str
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC
    createdTime String
    Creation time of the forwarding rule
    enable Boolean
    Whether the forwarding rule is enabled. true: enabled. false: disabled
    endpointId Number
    Endpoint ID. This parameter is only valid and required when the Type parameter is OUTBOUND
    forwardIPs List<Property Map>
    IP address and port of the external DNS server. You can add up to 10 IP addresses. This parameter is only valid and required when the Type parameter is OUTBOUND
    id String
    Uniquely identifies the resource.
    lastOperator String
    Account ID of the last update to the forwarding rule
    line String
    Carrier for the outbound IP address of the recursive DNS server. This parameter is only valid when the Type parameter is LINE. Supported values: Mobile: China Mobile, Telecom: China Telecom, Unicom: China Unicom
    name String
    Name of the forwarding rule. Supports UTF-8 format
    projectName String
    Project name associated with the forwarding rule. Default is default
    ruleId String
    Forwarding rule ID
    tags List<Property Map>
    One or more tags associated with the forwarding rule
    type String
    Forwarding rule type. OUTBOUND: Forward to external DNS server. LINE: Carrier for the outbound IP address of the custom public recursive DNS server
    updatedTime String
    Update time of the forwarding rule
    vpCs List<Property Map>
    VPC associated with the forwarding rule. The forwarding rule takes effect in the associated VPC. When the Type parameter is OUTBOUND, the VPC region must match the region of the endpoint
    zoneName String
    Domain name(s) associated with the forwarding rule. You can enter one or more domain names. Separate multiple domain names with English commas. Up to 500 domain names are supported. This parameter is only valid and required when the Type parameter is OUTBOUND. If you set this parameter to *, the forwarding rule applies to all domain names associated with the VPC

    Supporting Types

    GetResolverRuleForwardIP

    Ip string
    IP address of the external DNS server for the VPC
    Port int
    Port of the external DNS server for the VPC
    Ip string
    IP address of the external DNS server for the VPC
    Port int
    Port of the external DNS server for the VPC
    ip String
    IP address of the external DNS server for the VPC
    port Integer
    Port of the external DNS server for the VPC
    ip string
    IP address of the external DNS server for the VPC
    port number
    Port of the external DNS server for the VPC
    ip str
    IP address of the external DNS server for the VPC
    port int
    Port of the external DNS server for the VPC
    ip String
    IP address of the external DNS server for the VPC
    port Number
    Port of the external DNS server for the VPC

    GetResolverRuleTag

    Key string
    Tag key for the user tag
    Value string
    Tag value for the user tag
    Key string
    Tag key for the user tag
    Value string
    Tag value for the user tag
    key String
    Tag key for the user tag
    value String
    Tag value for the user tag
    key string
    Tag key for the user tag
    value string
    Tag value for the user tag
    key str
    Tag key for the user tag
    value str
    Tag value for the user tag
    key String
    Tag key for the user tag
    value String
    Tag value for the user tag

    GetResolverRuleVpC

    AccountId string
    Account ID that created the VPC
    Region string
    Region of the VPC
    RegionName string
    Name of the VPC region
    VpcId string
    VPC ID
    AccountId string
    Account ID that created the VPC
    Region string
    Region of the VPC
    RegionName string
    Name of the VPC region
    VpcId string
    VPC ID
    accountId String
    Account ID that created the VPC
    region String
    Region of the VPC
    regionName String
    Name of the VPC region
    vpcId String
    VPC ID
    accountId string
    Account ID that created the VPC
    region string
    Region of the VPC
    regionName string
    Name of the VPC region
    vpcId string
    VPC ID
    account_id str
    Account ID that created the VPC
    region str
    Region of the VPC
    region_name str
    Name of the VPC region
    vpc_id str
    VPC ID
    accountId String
    Account ID that created the VPC
    region String
    Region of the VPC
    regionName String
    Name of the VPC region
    vpcId String
    VPC 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.