CreateImageLib
Creates an image library.
Operation description
Before you call this operation, make sure that the following conditions are met:
You have activated Content Moderation Enhanced Edition.
You fully understand the billing methods and pricing of Image Moderation Enhanced Edition.
For more information about how to use the API operation and its parameters, refer to the API reference.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-greenweb:CreateImageLib |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| LibName |
string |
No |
The name of the image library. |
Malicious advertising |
| Comment |
string |
No |
The remark. |
Politically sensitive content |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PortalResponse |
||
| Data |
object |
The returned data. |
|
| LibId |
string |
The ID of the custom image library. |
138xxxxx |
| Success |
boolean |
The success flag. |
True |
| Code |
integer |
The error code, which is the same as the HTTP status code. |
200 |
| Msg |
string |
The detailed description of the error code. |
success |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID generated by the server to uniquely identify the request. You can use this ID to troubleshoot issues. |
AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE**** |
Examples
Success response
JSON format
{
"Data": {
"LibId": "138xxxxx"
},
"Success": true,
"Code": 200,
"Msg": "success",
"HttpStatusCode": 200,
"RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\n"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.