类 EniClient


  • public class EniClient
    extends AbstractBceClient
    Provides the client for accessing the Baidu Cloud network Service Elastic Network Interface Card.
    • 构造器详细资料

      • 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.