1. Packages
  2. Packages
  3. Bytepluscc Provider
  4. API Docs
  5. gtm
  6. getPolicy
Viewing docs for bytepluscc v0.0.41
published on Thursday, Jul 16, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.41
published on Thursday, Jul 16, 2026 by Byteplus

    Data Source schema for Byteplus::GTM::Policy

    Using getPolicy

    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 getPolicy(args: GetPolicyArgs, opts?: InvokeOptions): Promise<GetPolicyResult>
    function getPolicyOutput(args: GetPolicyOutputArgs, opts?: InvokeOptions): Output<GetPolicyResult>
    def get_policy(id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetPolicyResult
    def get_policy_output(id: pulumi.Input[Optional[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetPolicyResult]
    func LookupPolicy(ctx *Context, args *LookupPolicyArgs, opts ...InvokeOption) (*LookupPolicyResult, error)
    func LookupPolicyOutput(ctx *Context, args *LookupPolicyOutputArgs, opts ...InvokeOption) LookupPolicyResultOutput

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

    public static class GetPolicy 
    {
        public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetPolicyResult> Invoke(GetPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
    public static Output<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: bytepluscc:gtm/getPolicy:getPolicy
      arguments:
        # arguments dictionary
    data "bytepluscc_gtm_getpolicy" "name" {
        # arguments
    }

    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 string
    Uniquely identifies the resource.
    id str
    Uniquely identifies the resource.
    id String
    Uniquely identifies the resource.

    getPolicy Result

    The following output properties are available:

    AlarmOnly bool
    If the current address pool set is unavailable, Cloud Scheduling GTM only triggers an alert notification and does not automatically switch to an available address pool. true: Cloud Scheduling GTM only triggers an alert notification. false: Cloud Scheduling GTM automatically switches to an available address pool
    GtmId string
    UUID of the GTM instance. You can obtain GtmId through the ListGtms API
    Id string
    Uniquely identifies the resource.
    PerfMode string
    Routing mode for intelligent routing strategy. perf: Performance first. capacity: Capacity first. feedback: Load feedback
    PolicyType string
    Strategy type. geo: Basic routing. perf: Intelligent routing
    RoutingMode string
    Routing mode. The parameter values are: lb: Based on load balancing, user traffic is routed proportionally to different IDCs. geo: Based on the user's geographic location and operator, user traffic is routed to the nearest IDC on the same operator's network. geo-lb (default): First, based on the user's geographic location and operator, user traffic is routed to the nearest IDC access line on the same operator's network. Then, based on load balancing, user traffic is routed proportionally to multiple IDCs
    Statistics Byteplus.GetPolicyStatistics
    Statistical information about address status
    Targets List<Byteplus.GetPolicyTarget>
    Traffic target for intelligent routing strategy
    AlarmOnly bool
    If the current address pool set is unavailable, Cloud Scheduling GTM only triggers an alert notification and does not automatically switch to an available address pool. true: Cloud Scheduling GTM only triggers an alert notification. false: Cloud Scheduling GTM automatically switches to an available address pool
    GtmId string
    UUID of the GTM instance. You can obtain GtmId through the ListGtms API
    Id string
    Uniquely identifies the resource.
    PerfMode string
    Routing mode for intelligent routing strategy. perf: Performance first. capacity: Capacity first. feedback: Load feedback
    PolicyType string
    Strategy type. geo: Basic routing. perf: Intelligent routing
    RoutingMode string
    Routing mode. The parameter values are: lb: Based on load balancing, user traffic is routed proportionally to different IDCs. geo: Based on the user's geographic location and operator, user traffic is routed to the nearest IDC on the same operator's network. geo-lb (default): First, based on the user's geographic location and operator, user traffic is routed to the nearest IDC access line on the same operator's network. Then, based on load balancing, user traffic is routed proportionally to multiple IDCs
    Statistics GetPolicyStatistics
    Statistical information about address status
    Targets []GetPolicyTarget
    Traffic target for intelligent routing strategy
    alarm_only bool
    If the current address pool set is unavailable, Cloud Scheduling GTM only triggers an alert notification and does not automatically switch to an available address pool. true: Cloud Scheduling GTM only triggers an alert notification. false: Cloud Scheduling GTM automatically switches to an available address pool
    gtm_id string
    UUID of the GTM instance. You can obtain GtmId through the ListGtms API
    id string
    Uniquely identifies the resource.
    perf_mode string
    Routing mode for intelligent routing strategy. perf: Performance first. capacity: Capacity first. feedback: Load feedback
    policy_type string
    Strategy type. geo: Basic routing. perf: Intelligent routing
    routing_mode string
    Routing mode. The parameter values are: lb: Based on load balancing, user traffic is routed proportionally to different IDCs. geo: Based on the user's geographic location and operator, user traffic is routed to the nearest IDC on the same operator's network. geo-lb (default): First, based on the user's geographic location and operator, user traffic is routed to the nearest IDC access line on the same operator's network. Then, based on load balancing, user traffic is routed proportionally to multiple IDCs
    statistics object
    Statistical information about address status
    targets list(object)
    Traffic target for intelligent routing strategy
    alarmOnly Boolean
    If the current address pool set is unavailable, Cloud Scheduling GTM only triggers an alert notification and does not automatically switch to an available address pool. true: Cloud Scheduling GTM only triggers an alert notification. false: Cloud Scheduling GTM automatically switches to an available address pool
    gtmId String
    UUID of the GTM instance. You can obtain GtmId through the ListGtms API
    id String
    Uniquely identifies the resource.
    perfMode String
    Routing mode for intelligent routing strategy. perf: Performance first. capacity: Capacity first. feedback: Load feedback
    policyType String
    Strategy type. geo: Basic routing. perf: Intelligent routing
    routingMode String
    Routing mode. The parameter values are: lb: Based on load balancing, user traffic is routed proportionally to different IDCs. geo: Based on the user's geographic location and operator, user traffic is routed to the nearest IDC on the same operator's network. geo-lb (default): First, based on the user's geographic location and operator, user traffic is routed to the nearest IDC access line on the same operator's network. Then, based on load balancing, user traffic is routed proportionally to multiple IDCs
    statistics GetPolicyStatistics
    Statistical information about address status
    targets List<GetPolicyTarget>
    Traffic target for intelligent routing strategy
    alarmOnly boolean
    If the current address pool set is unavailable, Cloud Scheduling GTM only triggers an alert notification and does not automatically switch to an available address pool. true: Cloud Scheduling GTM only triggers an alert notification. false: Cloud Scheduling GTM automatically switches to an available address pool
    gtmId string
    UUID of the GTM instance. You can obtain GtmId through the ListGtms API
    id string
    Uniquely identifies the resource.
    perfMode string
    Routing mode for intelligent routing strategy. perf: Performance first. capacity: Capacity first. feedback: Load feedback
    policyType string
    Strategy type. geo: Basic routing. perf: Intelligent routing
    routingMode string
    Routing mode. The parameter values are: lb: Based on load balancing, user traffic is routed proportionally to different IDCs. geo: Based on the user's geographic location and operator, user traffic is routed to the nearest IDC on the same operator's network. geo-lb (default): First, based on the user's geographic location and operator, user traffic is routed to the nearest IDC access line on the same operator's network. Then, based on load balancing, user traffic is routed proportionally to multiple IDCs
    statistics GetPolicyStatistics
    Statistical information about address status
    targets GetPolicyTarget[]
    Traffic target for intelligent routing strategy
    alarm_only bool
    If the current address pool set is unavailable, Cloud Scheduling GTM only triggers an alert notification and does not automatically switch to an available address pool. true: Cloud Scheduling GTM only triggers an alert notification. false: Cloud Scheduling GTM automatically switches to an available address pool
    gtm_id str
    UUID of the GTM instance. You can obtain GtmId through the ListGtms API
    id str
    Uniquely identifies the resource.
    perf_mode str
    Routing mode for intelligent routing strategy. perf: Performance first. capacity: Capacity first. feedback: Load feedback
    policy_type str
    Strategy type. geo: Basic routing. perf: Intelligent routing
    routing_mode str
    Routing mode. The parameter values are: lb: Based on load balancing, user traffic is routed proportionally to different IDCs. geo: Based on the user's geographic location and operator, user traffic is routed to the nearest IDC on the same operator's network. geo-lb (default): First, based on the user's geographic location and operator, user traffic is routed to the nearest IDC access line on the same operator's network. Then, based on load balancing, user traffic is routed proportionally to multiple IDCs
    statistics GetPolicyStatistics
    Statistical information about address status
    targets Sequence[GetPolicyTarget]
    Traffic target for intelligent routing strategy
    alarmOnly Boolean
    If the current address pool set is unavailable, Cloud Scheduling GTM only triggers an alert notification and does not automatically switch to an available address pool. true: Cloud Scheduling GTM only triggers an alert notification. false: Cloud Scheduling GTM automatically switches to an available address pool
    gtmId String
    UUID of the GTM instance. You can obtain GtmId through the ListGtms API
    id String
    Uniquely identifies the resource.
    perfMode String
    Routing mode for intelligent routing strategy. perf: Performance first. capacity: Capacity first. feedback: Load feedback
    policyType String
    Strategy type. geo: Basic routing. perf: Intelligent routing
    routingMode String
    Routing mode. The parameter values are: lb: Based on load balancing, user traffic is routed proportionally to different IDCs. geo: Based on the user's geographic location and operator, user traffic is routed to the nearest IDC on the same operator's network. geo-lb (default): First, based on the user's geographic location and operator, user traffic is routed to the nearest IDC access line on the same operator's network. Then, based on load balancing, user traffic is routed proportionally to multiple IDCs
    statistics Property Map
    Statistical information about address status
    targets List<Property Map>
    Traffic target for intelligent routing strategy

    Supporting Types

    GetPolicyStatistics

    ActiveAddr int
    Number of available addresses
    InactiveAddr int
    Number of unavailable addresses
    ActiveAddr int
    Number of available addresses
    InactiveAddr int
    Number of unavailable addresses
    active_addr number
    Number of available addresses
    inactive_addr number
    Number of unavailable addresses
    activeAddr Integer
    Number of available addresses
    inactiveAddr Integer
    Number of unavailable addresses
    activeAddr number
    Number of available addresses
    inactiveAddr number
    Number of unavailable addresses
    active_addr int
    Number of available addresses
    inactive_addr int
    Number of unavailable addresses
    activeAddr Number
    Number of available addresses
    inactiveAddr Number
    Number of unavailable addresses

    GetPolicyTarget

    PoolId string
    Address pool ID.
    PoolId string
    Address pool ID.
    pool_id string
    Address pool ID.
    poolId String
    Address pool ID.
    poolId string
    Address pool ID.
    pool_id str
    Address pool ID.
    poolId String
    Address pool 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.41
    published on Thursday, Jul 16, 2026 by Byteplus

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial