Updating the Cross-Account Resource View in CloudCMDB
Function
This API is used to modify a created cross-account resource view in CloudCMDB.
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 Permissions Policies and Supported Actions for details on the required permissions.
- 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
coc:resourceView:update
Write
resourceView *
-
-
-
URI
PUT /v1/resource/views/{id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
id |
Yes |
String |
Definition: View ID Constraints: N/A Value range: The value is a string. It contains 1 to 32 characters. Default value: N/A |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
organization_unit_ids |
Yes |
Array of strings |
Definition: List of IDs of OUs aggregated by the view. Constraints: N/A Value range: N/A Default value: N/A |
|
resource_types |
Yes |
Array of strings |
Definition: Resource types contained in the view. Value range: There are many resource types. Select a resource type based on the actual service. The common resource types are as follows: |
|
organization_id |
No |
String |
Definition: ID of the organization to which the view belongs. Constraints: N/A Value range: The value is a string. It contains 0 to 36 characters. Default value: N/A |
|
view_type |
Yes |
String |
Definition: View type. Constraints: N/A Value range: Currently, only organization is supported. Default value: N/A |
|
name |
Yes |
String |
Definition: View name. Constraints: N/A Value range: The value can contain 3 to 50 characters, including letters, digits, hyphens (-), and underscores (_). Default value: N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
String |
Definition: View ID. Value range: The value is a string. It contains 1 to 32 characters. |
Example Requests
This API is used to update a cross-account resource view in CloudCMDB.
PUT https://{Endpoint}/v1/resource/views/{id}
{
"name" : "Test modification",
"view_type" : "organizational",
"organization_id" : "o-xuglfowux9ks92yrt7q4yc3ubsy6mjhd",
"domain_ids" : [ "fb858e4f455646259b40065b50e72e61", "dc2d76541f754d68a4c8d150262d92c2" ],
"resource_types" : [ "dms.kafkas", "dms.queues", "dms.rabbitmqs", "dms.reliabilitys", "dms.kafka_nodes", "dms.rabbitmq_nodes", "dms.rocketmq_nodes", "dcs.redis", "dcs.memcached" ]
}
Example Responses
Status code: 200
View updated successfully.
{
"data" : "686b63cb101fbf1cdab37803"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
View updated successfully. |
Error Codes
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