Update service network interface card with enterprise security group
Updated at:2025-10-16
Description
Update the enterprise security group associated with the service network interface card.
- A service network interface card must include at least one security group, either a regular security group or an enterprise security group.
- This operation adds an enterprise security group to the service network interface card and simultaneously removes any existing security group, whether it's a regular security group or an enterprise security group.
- Currently, each service network interface card instance supports binding to only one enterprise security group.
Request structure
Plain Text
1PUT /v{version}/endpoint/{endpointId}?{action}&clientToken={clientToken} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
4{
5 "enterpriseSecurityGroupIds":[
6 {enterpriseSecurityGroupId}
7 ]
8}
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Required or not | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number |
| endpointId | String | Yes | URL parameter | Service network interface card ID |
| action | String | Yes | Query | The value for this API is bindEsg |
| enterpriseSecurityGroupIds | List<String> | Yes | RequestBody | List of enterprise security group IDs |
| clientToken | String | No | Query | Idempotence Token, an ASCII string with a length not exceeding 64 bits. |
Response headers
No special headers are required beyond the standard ones.
Response parameters
No special response parameters are available.
Request example
Plain Text
1PUT /v1/endpoint/endpoint-91597e97?bindEsg&clientToken=ds-hng79d HTTP/1.1
2Host: bcc.bj.baidubce.com
3authorization: bce-auth-v1/c3119080364d11e8912505e5e0ae9978/2019-04-02T08:14:25Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security-token/6b93bfd5ca2328fcb5560fa57f56253d80a629f6aac9c9cb74adf9a055fceb53
4{
5 "enterpriseSecurityGroupIds":["esg-gzsqygs59nxp"]
6}
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 7e789a40-adac-414a-8bd4-916d6be61112
3Date: Mon, 02 Apr 2019 08:14:25 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
