computing / Client / update_load_balancer

update_load_balancer

computing.Client.update_load_balancer(**kwargs)

指定したロードバランサーの定義を変更します。

ポート定義を更新する場合は、ポート番号もあわせて指定します。

ListenerUpdate.Listener.Protocolは、指定したListenerUpdate.Listener.LoadBalancerPortの値によって、設定値と異なる場合があります。

See also: NIFCLOUD API Documentation

Request Syntax

response = client.update_load_balancer(
    AccountingTypeUpdate=123,
    ListenerUpdate={
        'InstancePort': 123,
        'LoadBalancerPort': 123,
        'RequestListener': {
            'BalancingType': 123,
            'InstancePort': 123,
            'LoadBalancerPort': 123,
            'Protocol': 'HTTP'|'HTTPS'|'FTP'|'custom'
        }
    },
    LoadBalancerName='string',
    LoadBalancerNameUpdate='string',
    NetworkVolumeUpdate=123
)
Parameters:
  • AccountingTypeUpdate (integer) –

  • ListenerUpdate (dict) –

    • InstancePort (integer) –

    • LoadBalancerPort (integer) –

    • RequestListener (dict) –

      • BalancingType (integer) –

      • InstancePort (integer) –

      • LoadBalancerPort (integer) –

      • Protocol (string) –

  • LoadBalancerName (string) – [REQUIRED]

  • LoadBalancerNameUpdate (string) –

  • NetworkVolumeUpdate (integer) –

Return type:

dict

Returns:

Response Syntax

{
    'ResponseMetadata': {
        'RequestId': 'string'
    }
}

Response Structure

  • (dict) –

    • ResponseMetadata (dict) –

      • RequestId (string) –