Querying Private IP Address Details
Function
This API is used to query details about a private IP address using the specified ID.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
vpc:privateIps:get
Read
privateIp *
- vpc:PrivateIpId
- vpc:SubnetId
- vpc:VpcId
-
-
URI
GET /v1/{project_id}/privateips/{privateip_id}
|
Parameter |
Mandatory |
Description |
|---|---|---|
|
project_id |
Yes |
Specifies the project ID. For details about how to obtain a project ID, see Obtaining a Project ID. |
|
privateip_id |
Yes |
Specifies the ID of the private IP address, which uniquely identifies the private IP address. |
Request Parameters
None
Example Request
GET https://{Endpoint}/v1/{project_id}/privateips/d600542a-b231-45ed-af05-e9930cb14f78
Response Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
privateip |
privateip object |
Specifies the private IP address objects. For details, see Table 3. |
Example Response
{
"privateip":
{
"status": "DOWN",
"id": "d600542a-b231-45ed-af05-e9930cb14f78",
"subnet_id": "531dec0f-3116-411b-a21b-e612e42349fd",
"tenant_id": "8b7e35ad379141fc9df3e178bd64f55c",
"device_owner": "",
"ip_address": "192.168.1.11"
}
}
Status Code
See Status Codes.
Error Code
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot