computing / Client / nifty_replace_dhcp_option

nifty_replace_dhcp_option

computing.Client.nifty_replace_dhcp_option(**kwargs)

ルーターに登録されたDHCPオプションを解除し、指定したDHCPオプションに入れ替えます。

ルーターがバックアップを保持している場合は、パラメーター「Agreement」に「true」を設定し、バックアップを解除する必要があります。バックアップを保持しているかどうかはAPI「NiftyDescribeRouters」のレスポンス値「isBackup」で確認できます。

See also: NIFCLOUD API Documentation

Request Syntax

response = client.nifty_replace_dhcp_option(
    Agreement=True|False,
    DhcpOptionsId='string',
    NetworkId='string',
    NetworkName='string',
    RouterId='string',
    RouterName='string'
)
Parameters:
  • Agreement (boolean) –

  • DhcpOptionsId (string) – [REQUIRED]

  • NetworkId (string) –

  • NetworkName (string) –

  • RouterId (string) –

  • RouterName (string) –

Return type:

dict

Returns:

Response Syntax

{
    'RequestId': 'string',
    'Return': True|False
}

Response Structure

  • (dict) –

    • RequestId (string) –

    • Return (boolean) –