Help Center/ CodeArts Repo/ API Reference/ APIs/ Repository/ Deleting the Repository IP Address Whitelist
Updated on 2025-03-28 GMT+08:00

Deleting the Repository IP Address Whitelist

Function

Delete the repository IP address whitelist.

URI

DELETE /v4/projects/{id}/trusted-ip-addresses/{ip_id}

Table 1 Query parameters

Parameter

Mandatory

Type

Description

id

Yes

Integer

Repository ID.

ip_id

Yes

Integer

IP address ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Response Parameters

Status code: 200

Table 3 Response body parameters (array)

Parameter

Type

Description

status

String

Association result.

Table 4 Error

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

DELETE https://{endpoint}/v4/projects/{id}/trusted-ip-addresses/{ip_id}

Example Responses

Status code: 200

OK
{
       status: success
}

Status Code

Status Code

Description

200

OK

Error code.

See Error Codes.