Associating a Security Level with Assets
Function
This API is used to associate a security level with multiple assets.
URI
PUT /v3/{project_id}/asset/entities/security-level
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
IAM Token |
workspace |
Yes |
String |
DGC workspace ID |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
guids |
Yes |
Array of strings |
Asset GUID |
security_level |
Yes |
String |
Security level |
Response Parameters
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error message |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error message |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error message |
Status code: 404
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error message |
Example Requests
{ "guids" : [ "a0a555e8-0e52-48ef-a067-bd0a7e255a29", "6a9862e2-62d3-481c-8486-a4c609bca740" ], "security_level" : "l1" }
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
400 |
BadRequest |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.