Viewing docs for bytepluscc v0.0.41
published on Thursday, Jul 16, 2026 by Byteplus
published on Thursday, Jul 16, 2026 by Byteplus
Viewing docs for bytepluscc v0.0.41
published on Thursday, Jul 16, 2026 by Byteplus
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 dictionarydata "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:
- 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
Byteplus.
Get Policy Statistics - Statistical information about address status
- Targets
List<Byteplus.
Get Policy Target> - 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
Get
Policy Statistics - Statistical information about address status
- Targets
[]Get
Policy Target - 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
- alarm
Only 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
- 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
Get
Policy Statistics - Statistical information about address status
- targets
List<Get
Policy Target> - Traffic target for intelligent routing strategy
- alarm
Only 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
- 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
Get
Policy Statistics - Statistical information about address status
- targets
Get
Policy Target[] - 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
Get
Policy Statistics - Statistical information about address status
- targets
Sequence[Get
Policy Target] - Traffic target for intelligent routing strategy
- alarm
Only 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
- 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 Property Map
- Statistical information about address status
- targets List<Property Map>
- Traffic target for intelligent routing strategy
Supporting Types
GetPolicyStatistics
- Active
Addr int - Number of available addresses
- Inactive
Addr int - Number of unavailable addresses
- Active
Addr int - Number of available addresses
- Inactive
Addr int - Number of unavailable addresses
- active_
addr number - Number of available addresses
- inactive_
addr number - Number of unavailable addresses
- active
Addr Integer - Number of available addresses
- inactive
Addr Integer - Number of unavailable addresses
- active
Addr number - Number of available addresses
- inactive
Addr number - Number of unavailable addresses
- active_
addr int - Number of available addresses
- inactive_
addr int - Number of unavailable addresses
- active
Addr Number - Number of available addresses
- inactive
Addr Number - Number of unavailable addresses
GetPolicyTarget
- Pool
Id string - Address pool ID.
- Pool
Id string - Address pool ID.
- pool_
id string - Address pool ID.
- pool
Id String - Address pool ID.
- pool
Id string - Address pool ID.
- pool_
id str - Address pool ID.
- pool
Id String - Address pool ID.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
Viewing docs for bytepluscc v0.0.41
published on Thursday, Jul 16, 2026 by Byteplus
published on Thursday, Jul 16, 2026 by Byteplus