UpdateRegisteredLocation
Updates a registered location.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dlf:UpdateRegisteredLocation |
*All Resource
|
None | None |
Request syntax
PUT /webapi/locations HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| LocationId |
string |
Yes |
The location ID. Note
Call the RegisterLocation operation to obtain the location ID. |
LOC-AB8FBC17F95A4AF5 |
| InventoryCollectEnabled |
boolean |
No |
Specifies whether to enable OSS inventory. |
true |
| OssLogCollectEnabled |
boolean |
No |
Specifies whether to enable OSS logging. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
8030C902-C25B-1839-867D-E6F70A5B9810 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data |
object |
The returned data. |
|
| LocationId |
string |
The location ID. |
LOC-AB8FBC17F95A4AF5 |
| StorageCollectTaskOperationResultList |
array |
The results for updating collection tasks. |
|
| StorageCollectTaskOperationResult |
The result for updating a collection task. |
Examples
Success response
JSON format
{
"RequestId": "8030C902-C25B-1839-867D-E6F70A5B9810",
"Success": true,
"Data": {
"LocationId": "LOC-AB8FBC17F95A4AF5",
"StorageCollectTaskOperationResultList": [
{
"Success": true,
"TaskId": "",
"TaskType": "",
"DlfCreated": false,
"ErrCode": "",
"ErrMessage": ""
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.