Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.networkservices/v1beta1.getServiceLbPolicy
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Gets details of a single ServiceLbPolicy.
Using getServiceLbPolicy
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 getServiceLbPolicy(args: GetServiceLbPolicyArgs, opts?: InvokeOptions): Promise<GetServiceLbPolicyResult>
function getServiceLbPolicyOutput(args: GetServiceLbPolicyOutputArgs, opts?: InvokeOptions): Output<GetServiceLbPolicyResult>
def get_service_lb_policy(location: Optional[str] = None,
project: Optional[str] = None,
service_lb_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceLbPolicyResult
def get_service_lb_policy_output(location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
service_lb_policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceLbPolicyResult]
func LookupServiceLbPolicy(ctx *Context, args *LookupServiceLbPolicyArgs, opts ...InvokeOption) (*LookupServiceLbPolicyResult, error)
func LookupServiceLbPolicyOutput(ctx *Context, args *LookupServiceLbPolicyOutputArgs, opts ...InvokeOption) LookupServiceLbPolicyResultOutput
> Note: This function is named LookupServiceLbPolicy
in the Go SDK.
public static class GetServiceLbPolicy
{
public static Task<GetServiceLbPolicyResult> InvokeAsync(GetServiceLbPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetServiceLbPolicyResult> Invoke(GetServiceLbPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServiceLbPolicyResult> getServiceLbPolicy(GetServiceLbPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:networkservices/v1beta1:getServiceLbPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Location string
- Service
Lb stringPolicy Id - Project string
- Location string
- Service
Lb stringPolicy Id - Project string
- location String
- service
Lb StringPolicy Id - project String
- location string
- service
Lb stringPolicy Id - project string
- location str
- service_
lb_ strpolicy_ id - project str
- location String
- service
Lb StringPolicy Id - project String
getServiceLbPolicy Result
The following output properties are available:
- Auto
Capacity Pulumi.Drain Google Native. Network Services. V1Beta1. Outputs. Service Lb Policy Auto Capacity Drain Response - Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
- Create
Time string - The timestamp when this resource was created.
- Description string
- Optional. A free-text description of the resource. Max length 1024 characters.
- Failover
Config Pulumi.Google Native. Network Services. V1Beta1. Outputs. Service Lb Policy Failover Config Response - Optional. Configuration related to health based failover.
- Labels Dictionary<string, string>
- Optional. Set of label tags associated with the ServiceLbPolicy resource.
- Load
Balancing stringAlgorithm - Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
- Name string
- Name of the ServiceLbPolicy resource. It matches pattern
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}
. - Update
Time string - The timestamp when this resource was last updated.
- Auto
Capacity ServiceDrain Lb Policy Auto Capacity Drain Response - Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
- Create
Time string - The timestamp when this resource was created.
- Description string
- Optional. A free-text description of the resource. Max length 1024 characters.
- Failover
Config ServiceLb Policy Failover Config Response - Optional. Configuration related to health based failover.
- Labels map[string]string
- Optional. Set of label tags associated with the ServiceLbPolicy resource.
- Load
Balancing stringAlgorithm - Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
- Name string
- Name of the ServiceLbPolicy resource. It matches pattern
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}
. - Update
Time string - The timestamp when this resource was last updated.
- auto
Capacity ServiceDrain Lb Policy Auto Capacity Drain Response - Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
- create
Time String - The timestamp when this resource was created.
- description String
- Optional. A free-text description of the resource. Max length 1024 characters.
- failover
Config ServiceLb Policy Failover Config Response - Optional. Configuration related to health based failover.
- labels Map<String,String>
- Optional. Set of label tags associated with the ServiceLbPolicy resource.
- load
Balancing StringAlgorithm - Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
- name String
- Name of the ServiceLbPolicy resource. It matches pattern
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}
. - update
Time String - The timestamp when this resource was last updated.
- auto
Capacity ServiceDrain Lb Policy Auto Capacity Drain Response - Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
- create
Time string - The timestamp when this resource was created.
- description string
- Optional. A free-text description of the resource. Max length 1024 characters.
- failover
Config ServiceLb Policy Failover Config Response - Optional. Configuration related to health based failover.
- labels {[key: string]: string}
- Optional. Set of label tags associated with the ServiceLbPolicy resource.
- load
Balancing stringAlgorithm - Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
- name string
- Name of the ServiceLbPolicy resource. It matches pattern
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}
. - update
Time string - The timestamp when this resource was last updated.
- auto_
capacity_ Servicedrain Lb Policy Auto Capacity Drain Response - Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
- create_
time str - The timestamp when this resource was created.
- description str
- Optional. A free-text description of the resource. Max length 1024 characters.
- failover_
config ServiceLb Policy Failover Config Response - Optional. Configuration related to health based failover.
- labels Mapping[str, str]
- Optional. Set of label tags associated with the ServiceLbPolicy resource.
- load_
balancing_ stralgorithm - Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
- name str
- Name of the ServiceLbPolicy resource. It matches pattern
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}
. - update_
time str - The timestamp when this resource was last updated.
- auto
Capacity Property MapDrain - Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
- create
Time String - The timestamp when this resource was created.
- description String
- Optional. A free-text description of the resource. Max length 1024 characters.
- failover
Config Property Map - Optional. Configuration related to health based failover.
- labels Map<String>
- Optional. Set of label tags associated with the ServiceLbPolicy resource.
- load
Balancing StringAlgorithm - Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
- name String
- Name of the ServiceLbPolicy resource. It matches pattern
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}
. - update
Time String - The timestamp when this resource was last updated.
Supporting Types
ServiceLbPolicyAutoCapacityDrainResponse
- Enable bool
- Optional. If set to 'True', an unhealthy IG/NEG will be set as drained. - An IG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the IG/NEG are healthy. - This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service.
- Enable bool
- Optional. If set to 'True', an unhealthy IG/NEG will be set as drained. - An IG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the IG/NEG are healthy. - This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service.
- enable Boolean
- Optional. If set to 'True', an unhealthy IG/NEG will be set as drained. - An IG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the IG/NEG are healthy. - This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service.
- enable boolean
- Optional. If set to 'True', an unhealthy IG/NEG will be set as drained. - An IG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the IG/NEG are healthy. - This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service.
- enable bool
- Optional. If set to 'True', an unhealthy IG/NEG will be set as drained. - An IG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the IG/NEG are healthy. - This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service.
- enable Boolean
- Optional. If set to 'True', an unhealthy IG/NEG will be set as drained. - An IG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the IG/NEG are healthy. - This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service.
ServiceLbPolicyFailoverConfigResponse
- Failover
Health intThreshold - Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.
- Failover
Health intThreshold - Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.
- failover
Health IntegerThreshold - Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.
- failover
Health numberThreshold - Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.
- failover_
health_ intthreshold - Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.
- failover
Health NumberThreshold - Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi