百度智能云

All Product Document

          Elastic IP

          EIPGroup Instance

          EIPGroup instance is an EIP shared bandwidth created in Baidu AI Cloud.

          • Identity Verification is required for creation of EIP shared bandwidth, if you fail to pass identity verification, you can go to identity verification under security authentication in [Baidu Open Cloud Console](https://login.bce.baidu.com/? account=&redirect=http%3A%2F%2Fconsole.bce.baidu.com%2Fqualify%2F#/qualify/result) for authentication, and currently, only the creation of prepaid EIP shared bandwidth is supported.

          Create Instance

          The following codes can be used to create EIPGroup instance.

          def test_create_eip_group(eip_group_client, eip_count, bandwidth_in_mbps, billing):
              response = eip_group_client.create_eip_group(eip_count, bandwidth_in_mbps,
                                   name, billing=billing)
              print response

          Bandwidth Capacity Expansion in EIP Shared Bandwidth

          Specify the bandwidth capacity expansion of EIP shared bandwidth.

          def test_resize_eip_group_bandwidth(eip_group_client, id, bandwidth_in_mbps):
              response = eip_group_client.resize_eip_group_bandwidth(id, bandwidth_in_mbps)
              print response

          Quantity Expansion of EIP in EIP Shared Bandwidth

          It is used to specify quantity expansion of EIP in EIP shared bandwidth.

          def test_resize_eip_group_count(eip_group_client, id, eip_add_count):
              response = eip_group_client.resize_eip_group_count(id, eip_add_count)
              print response

          Update EIP Shared Bandwidth

          Update of EIP shared bandwidth

          def test_update_eip_group(eip_group_client, id, name):
              response = eip_group_client.update_eip_group(id, name)
              print response

          Query EIP Shared Bandwidth List

          • EIP shared bandwidth list can be queried according to multiple conditions.
          • If no query condition is provided, the default query overwrites all EIPs.
          • The returned result is the query result of intersection of multiple conditions, i.e. when multiple conditions are provided, EIP shared bandwidth meeting all conditions simultaneously is returned.
          • The query result above supports marker paging, with paging size of 1,000 by default, which can be specified via maxKeys parameter.
          def test_list_eip_groups(eip_group_client, id, name, status, marker, max_keys):
              response = eip_group_client.list_eip_groups(id, name, status, marker, max_keys)
              print response

          Query Details of EIP Shared Bandwidth

          Query details of EIP shared bandwidth.

          def test_get_eip_group(eip_group_client, id):
              response = eip_group_client.get_eip_group(id)
              print response

          Renew EIP Shared Bandwidth

          • For the renewal operation of specified EIP shared bandwidth, extend the expiration time.
          • No renewal operation can be conducted during EIP shared bandwidth capacity expansion and reduction.
          def test_purchase_reserved_eip_group(eip_group_client, id, billing):
              response = eip_group_client.purchase_reserved_eip_group(id, billing=billing)
              print response
          Previous
          EIP Instance
          Next
          EipBP Instance