CheckIAM2VirtualIDConfigFile
API Request
URLs
PUT zstack/v1/iam2/virtual-ids/from-file
Headers
Authorization: OAuth the-session-uuid
Body
Note: In
the preceding sample, both systemTags and userTags are optional.
These two fields can be included in the body structure.
{
"checkIAM2VirtualIDConfigFile": {
"virtualIDInfos": "FILE CONTENT ENCODE BY BASE64"
},
"systemTags": [],
"userTags": []
}

Curl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"checkIAM2VirtualIDConfigFile":{"virtualIDInfos":"FILE CONTENT ENCODE BY BASE64"}}' http://localhost:8080/zstack/v1/iam2/virtual-ids/from-file
Request Parameters
Name | Type | Location | Description | Optional Value | Starting Version |
---|---|---|---|---|---|
virtualIDInfos | String | body (contained in the checkIAM2VirtualIDConfigFile structure) | The user information encoded in Base64 format. | 3.6.0 | |
systemTags | List | body | Optional. The system tags. | 3.6.0 | |
userTags | List | body | Optional. The user tags. | 3.6.0 |
API Response
Sample
Response
{
"results": [
{
"line": 123.0,
"detail": "Duplicate user name"
}
]
}
Name | Type | Description | Starting Version |
---|---|---|---|
error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error. | 3.6.0 |
results | List | See results. | 3.6.0 |
#error
Name | Type | Description | Starting Version |
---|---|---|---|
code | String | The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. | 3.6.0 |
description | String | The brief description of the error. | 3.6.0 |
details | String | The details about the error. | 3.6.0 |
elaboration | String | The reserved field. Default value: null. | 3.6.0 |
opaque | LinkedHashMap | The reserved field. Default value: null. | 3.6.0 |
cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 3.6.0 |
#results
Name | Type | Description | Starting Version |
---|---|---|---|
line | int | 3.6.0 | |
detail | String | 3.6.0 |
SDK Sample
Java
SDK
CheckIAM2VirtualIDConfigFileAction action = new CheckIAM2VirtualIDConfigFileAction();
action.virtualIDInfos = "FILE CONTENT ENCODE BY BASE64";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
CheckIAM2VirtualIDConfigFileAction.Result res = action.call();
Python
SDK
CheckIAM2VirtualIDConfigFileAction action = CheckIAM2VirtualIDConfigFileAction()
action.virtualIDInfos = "FILE CONTENT ENCODE BY BASE64"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
CheckIAM2VirtualIDConfigFileAction.Result res = action.call()