类 EniClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.eni.EniClient
-
public class EniClient extends AbstractBceClient
Provides the client for accessing the Baidu Cloud network Service Elastic Network Interface Card.
-
-
字段概要
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 EniClient()Constructs a new client to invoke service methods on eni.EniClient(BceClientConfiguration clientConfiguration)Constructs a new eni client using the client configuration to access eni.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddPrivateIp(EniPrivateIpOperateRequest request)Add the private ip of the specified ENI The newly added private IPs are all secondary IPsvoidattachEniInstance(EniInstanceOperateRequest request)Mount the ENI to the specified cloud host.voidbatchAddPrivateIp(EniPrivateIpBatchAddRequest request)Batch add the private ips of the specified ENI The newly added private IPs are secondary IPsvoidbatchDeletePrivateIp(EniPrivateIpBatchOperateRequest request)Batch delete the private ips of the specified ENI The primary IP cannot be deleted, only the secondary IP can be deletedvoidbindEniPublicIp(EniBindEipRequest request)ENI bind public IPCreateEniResponsecreateEni(CreateEniRequest request)Create an ENI with the specified options.voiddeleteEni(DeleteEniRequest request)Delete the specified ENI.voiddeleteEni(String eniId)Delete the specified ENI by ID.voiddeletePrivateIp(EniPrivateIpOperateRequest request)Delete the private ip of the specified ENI The primary IP cannot be deleted, only the secondary IP can be deletedvoiddetachEniInstance(EniInstanceOperateRequest request)The ENI offloads the cloud host.EniDetailgetEniDetail(GetEniDetailRequest request)Get single ENI detail owned by the authenticated user.ListEniResponselistEni(ListEniRequest request)List ENIs owned by the authenticated user.voidunBindEniPublicIp(EniUnBindEipRequest request)ENI unbind public IPvoidupdateEni(EniUpdateRequest request)Update the name or description of a specified ENI.voidupdateEniEnterpriseSecurityGroup(EniUpdateEnterpriseSecurityGroupRequest request)Update the enterprise security group bound to the ENI.voidupdateEniSecurityGroup(EniUpdateSecurityGroupRequest request)Update the normal security group bound to the ENI.-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
EniClient
public EniClient()
Constructs a new client to invoke service methods on eni.
-
EniClient
public EniClient(BceClientConfiguration clientConfiguration)
Constructs a new eni client using the client configuration to access eni.
-
-
方法详细资料
-
createEni
public CreateEniResponse createEni(CreateEniRequest request)
Create an ENI with the specified options. You could fill field of clientToken,which is especially for keeping idempotent. securityGroupIds and enterpriseSecurityGroupIds cannot be empty or have values at the same time- 参数:
request- The request containing all options for creating an ENI.- 返回:
- id of the newly created ENI.
-
updateEni
public void updateEni(EniUpdateRequest request)
Update the name or description of a specified ENI.- 参数:
request- operate model of updating ENI
-
deleteEni
public void deleteEni(DeleteEniRequest request)
Delete the specified ENI.- 参数:
request- The request containing all options for deleting the specified ENI owned by user.
-
deleteEni
public void deleteEni(String eniId)
Delete the specified ENI by ID.- 参数:
eniId- The id of ENI that will be deleted.
-
listEni
public ListEniResponse listEni(ListEniRequest request)
List ENIs owned by the authenticated user.- 参数:
request- The request containing all options for listing ENI owned by user.- 返回:
- The response with list of ENIs owned by user.
-
getEniDetail
public EniDetail getEniDetail(GetEniDetailRequest request)
Get single ENI detail owned by the authenticated user.- 参数:
request- The request containing all options for get ENI detail owned by user.- 返回:
- the ENI detail
-
addPrivateIp
public void addPrivateIp(EniPrivateIpOperateRequest request)
Add the private ip of the specified ENI The newly added private IPs are all secondary IPs- 参数:
request- The request containing all options for adding the secondary ip of the specified ENI.
-
deletePrivateIp
public void deletePrivateIp(EniPrivateIpOperateRequest request)
Delete the private ip of the specified ENI The primary IP cannot be deleted, only the secondary IP can be deleted- 参数:
request- The request containing all options for deleting the secondary ip of the specified ENI.
-
batchAddPrivateIp
public void batchAddPrivateIp(EniPrivateIpBatchAddRequest request)
Batch add the private ips of the specified ENI The newly added private IPs are secondary IPs- 参数:
request- The request containing all options for batch adding the secondary ip of the specified ENI.
-
batchDeletePrivateIp
public void batchDeletePrivateIp(EniPrivateIpBatchOperateRequest request)
Batch delete the private ips of the specified ENI The primary IP cannot be deleted, only the secondary IP can be deleted- 参数:
request- The request containing all options for batch deleting the secondary ip of the specified ENI.
-
attachEniInstance
public void attachEniInstance(EniInstanceOperateRequest request)
Mount the ENI to the specified cloud host.- 参数:
request- The request containing all options for mounting the ENI to the specified cloud host.
-
detachEniInstance
public void detachEniInstance(EniInstanceOperateRequest request)
The ENI offloads the cloud host.- 参数:
request- The request containing all options for offloading the cloud host.
-
bindEniPublicIp
public void bindEniPublicIp(EniBindEipRequest request)
ENI bind public IP- 参数:
request- The request containing all options for binding public IP
-
unBindEniPublicIp
public void unBindEniPublicIp(EniUnBindEipRequest request)
ENI unbind public IP- 参数:
request- The request containing all options for unbinding public IP
-
updateEniSecurityGroup
public void updateEniSecurityGroup(EniUpdateSecurityGroupRequest request)
Update the normal security group bound to the ENI. An ENI must have at least one security group (normal security group or enterprise security group) This operation is the normal security group that the ENI will eventually join, and will be removed from the existing normal security group or enterprise security group.- 参数:
request- The request containing all options for updating the common security group bound to the ENI.
-
updateEniEnterpriseSecurityGroup
public void updateEniEnterpriseSecurityGroup(EniUpdateEnterpriseSecurityGroupRequest request)
Update the enterprise security group bound to the ENI. An ENI must have at least one security group (normal security group or enterprise security group) This operation is the enterprise security group that the ENI will eventually join, and will be removed from the existing normal security group or enterprise security group.- 参数:
request- The request containing all options for updating the common security group bound to the ENI.
-
-