All Products
Search
Document Center

Network Intelligence Service:DeleteNetworkPath

Last Updated:Sep 13, 2024

Deletes a network path.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
nis:DeleteNetworkPathdelete
  • NetworkPath
    acs:nis:*:{#accountId}:networkpath/{#NetworkPathId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID of the network path that you want to delete.

cn-shanghai
NetworkPathIdsarrayYes

The IDs of network paths.

stringYes

You can call the CreateNetworkPath operation to obtain the ID of the network path.

np-10c31b7aca0e4486****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

C4331873-C534-590F-A905-F66C53B88A47
Databoolean

Result of operation.

  • true: Delete Success.
  • false: Delete Fail.
true

Examples

Sample success responses

JSONformat

{
  "RequestId": "C4331873-C534-590F-A905-F66C53B88A47",
  "Data": true
}

Error codes

HTTP status codeError codeError messageDescription
400IllegalParam.DiskCategoryThe specified disk category (%s) is invalid.The specified disk category (%s) is invalid.
400SizeExceeds.ZonesThe length of the specified available zones exceeds the limit.The specified number of zones exceeds the upper limit.
400SizeExceeds.DiskCategoriesThe length of the specified disk categories exceeds the limit.The specified number of disk categories exceeds the upper limit.
400OperationDenied.ZonesConflictThe specified available zones do not belong to the same region.The specified zones do not belong to the same region.
400IllegalParam.ZoneIdThe specified available zone (%s) is invalid.The specified zone (%s) is invalid.
400IllegalParam.StepMinutesThe specified sampling interval (%s) is invalid.The specified sampling interval (%s) is invalid.
400IllegalParam.BeginTimeThe specified begin time (%s) is invalid.The specified start time (%s) is invalid.
400IllegalParam.EndTimeThe specified end time (%s) is invalid.The specified end time (%s) is invalid.
400Mismatch.BeginTimeAndEndTimeThe specified begin time must be earlier than the end time.The specified start time must be earlier than the end time.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-03-21The Error code has changed. The response structure of the API has changedView Change Details