Download OpenAPI specification:
API documentation for IAM Accounts service
| Authorization required | string Example: Basic base64_string Basic Base64(clientID:clientSecret) |
| grantType required | string Grant type |
{- "grantType": "client_credentials"
}{- "accessToken": "string",
- "refreshToken": "string",
- "expiresIn": 0,
- "refreshExpiresIn": 0
}| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/auth/userinfo' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "userId": "xxxx",
- "userType": "iam-user",
- "accountId": 1234,
- "rootEmail": "abc@gmail.com",
- "username": "username",
- "twoFactorAuth": {
- "email": {
- "verified": true,
- "enabled": true,
- "address": "xyz@gmail.com"
}, - "googleAuthenticator": {
- "verified": true,
- "enabled": true
}
}
}| id required | string ID of the service account to impersonate |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/auth/service-accounts/%7Bid%7D/impersonate' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "tokenType": "string",
- "accessToken": "string",
- "expiresIn": 0
}| Authorization required | string Example: Basic base64_string Basic Base64(clientID:clientSecret) |
| grant_type required | string Grant type |
{- "grant_type": "client_credentials"
}{- "access_token": "string",
- "refresh_token": "string",
- "expires_in": 0,
- "refresh_expires_in": 0
}| pageSize required | integer Number of items per page |
| pageNumber required | integer Page index (starting from 0) |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users', qs: {pageSize: 'SOME_INTEGER_VALUE', pageNumber: 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "data": [
- {
- "id": "xxxx",
- "createdAt": "2025-10-24T05:32:04.869Z",
- "username": "testaaa"
}
], - "pageSize": 10,
- "pageNumber": 0,
- "totalItems": 1,
- "totalPages": 1
}| Authorization required | string Example: Bearer iam_token Bearer token |
| username | string |
| password | string |
{- "username": "string",
- "password": "string"
}| id required | string |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/%7Bid%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'DELETE', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/%7Bid%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/%7Bid%7D/activate' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/%7Bid%7D/deactivate' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string |
| Authorization required | string Example: Bearer iam_token Bearer token |
| password | string |
{- "password": "string"
}| Authorization required | string Example: Bearer iam_token Bearer token |
| password | string |
{- "password": "string"
}| id required | string |
| Authorization required | string Example: Bearer iam_token Bearer token |
string <email> |
{- "email": "user@example.com"
}| Authorization required | string Example: Bearer iam_token Bearer token |
string <email> |
{- "email": "user@example.com"
}| id required | string |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/%7Bid%7D/send-verification-email' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/send-verification-email' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string |
| Authorization required | string Example: Bearer iam_token Bearer token |
| token | string^\d{6}$ |
{- "token": "string"
}| Authorization required | string Example: Bearer iam_token Bearer token |
| token | string^\d{6}$ |
{- "token": "string"
}| id required | string |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/%7Bid%7D/activate-email' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/activate-email' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/%7Bid%7D/deactivate-email' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/deactivate-email' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/%7Bid%7D/set-up-google' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/set-up-google' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string |
| Authorization required | string Example: Bearer iam_token Bearer token |
| token | string^\d{6}$ |
{- "token": "string"
}| id required | string |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/%7Bid%7D/activate-google' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/activate-google' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/%7Bid%7D/deactivate-google' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/iam-users/deactivate-google' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| pageSize required | integer Number of items per page |
| pageNumber required | integer Page index (starting from 0) |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/identity-providers', qs: {pageSize: 'SOME_INTEGER_VALUE', pageNumber: 'SOME_INTEGER_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "data": [
- {
- "id": "9be7951f-b750-4968-afe5-fc5ba8a8e535",
- "name": "idpxxx",
- "createdAt": "2025-06-12T06:46:09.311Z"
}
], - "pageSize": 10,
- "pageNumber": 0,
- "totalItems": 1,
- "totalPages": 1
}| Authorization required | string Example: Bearer iam_token Bearer token |
| name required | string Unique name of the Identity Provider |
| type required | string Type of the Identity Provider (e.g., "saml") |
| vendor required | string Vendor of the Identity Provider (e.g., "azure", "okta") |
| ssoUrl required | string Single Sign-On (SSO) URL of the Identity Provider |
{- "name": "idpxxx",
- "type": "saml",
- "vendor": "azure",
}{- "id": "9be7951f-b750-4968-afe5-fc5ba8a8e535",
- "name": "idpxxx",
- "type": "saml",
}| id required | string ID of the Identity Provider |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/identity-providers/%7Bid%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "9be7951f-b750-4968-afe5-fc5ba8a8e535",
- "name": "idpxxx",
- "accountId": 1234,
- "provider": "saml",
- "vendor": "azure",
- "createdAt": "2025-06-12T06:46:09.311Z",
- "enabled": true,
- "permissionMappers": [ ]
}| id required | string Example: 9be7951f-b750-4968-afe5-fc5ba8a8e535 Identity Provider ID |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'DELETE', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/identity-providers/9be7951f-b750-4968-afe5-fc5ba8a8e535' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string Example: 9be7951f-b750-4968-afe5-fc5ba8a8e535 Identity Provider ID |
| Authorization required | string Example: Bearer iam_token Bearer token |
| name required | string New name of the Identity Provider |
{- "name": "new-idp-name"
}| idpId required | string Example: 9be7951f-b750-4968-afe5-fc5ba8a8e535 ID of the Identity Provider |
| Authorization required | string Example: Bearer iam_token Bearer token |
| name required | string Name of the permission mapper |
| claimName required | string The claim field to check in the identity provider's token |
| claimValues required | Array of strings List of claim values that will map to specific groups |
| groups required | Array of strings List of IAM groups assigned |
{- "name": "role-mapper-admin",
- "claimName": "groups",
- "claimValues": [
- "admin",
- "devops"
], - "groups": [
- "c79a57ee-a37f-4016-af06-39bd2dec0715"
]
}{- "id": "4f67a8f1-3b90-4a31-8cbe-f11b63d8f9a2"
}| idpId required | string Example: 9be7951f-b750-4968-afe5-fc5ba8a8e535 ID of the Identity Provider |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/identity-providers/9be7951f-b750-4968-afe5-fc5ba8a8e535/permission-mappers' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": "4f67a8f1-3b90-4a31-8cbe-f11b63d8f9a2",
- "name": "role-mapper-admin",
- "createdAt": "2025-10-24T07:32:56.276Z"
}
]| idpId required | string Example: 9be7951f-b750-4968-afe5-fc5ba8a8e535 ID of the Identity Provider |
| mapperId required | string Example: 4f67a8f1-3b90-4a31-8cbe-f11b63d8f9a2 ID of the Permission Mapper |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/identity-providers/9be7951f-b750-4968-afe5-fc5ba8a8e535/permission-mappers/4f67a8f1-3b90-4a31-8cbe-f11b63d8f9a2' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "4f67a8f1-3b90-4a31-8cbe-f11b63d8f9a2",
- "name": "role-mapper-admin",
- "claimName": "groups",
- "claimValues": [
- "Admin",
- "SuperUser"
], - "groups": [
- "c79a57ee-a37f-4016-af06-39bd2dec0715"
], - "updatedAt": "2025-10-24T08:10:00.000Z",
- "createdAt": "2025-10-20T09:22:36.511Z"
}| idpId required | string Example: 9be7951f-b750-4968-afe5-fc5ba8a8e535 ID of the Identity Provider |
| mapperId required | string Example: 4f67a8f1-3b90-4a31-8cbe-f11b63d8f9a2 ID of the Permission Mapper to delete |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'DELETE', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/identity-providers/9be7951f-b750-4968-afe5-fc5ba8a8e535/permission-mappers/4f67a8f1-3b90-4a31-8cbe-f11b63d8f9a2' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| idpId required | string Example: 9be7951f-b750-4968-afe5-fc5ba8a8e535 ID of the Identity Provider |
| mapperId required | string Example: 4f67a8f1-3b90-4a31-8cbe-f11b63d8f9a2 ID of the Permission Mapper to update |
| Authorization required | string Example: Bearer iam_token Bearer token |
| claimValues | Array of strings List of claim values for the mapper |
{- "claimValues": [
- "admin",
- "developer"
]
}| searchByNameOrAccessKey | string Example: searchByNameOrAccessKey=prod-access Optional search keyword for name or accessKey (supports partial match) |
| pageSize required | integer >= 1 Example: pageSize=10 Number of items per page |
| pageNumber required | integer >= 0 Page index (0-based) |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/s3-keys', qs: { searchByNameOrAccessKey: 'prod-access', pageSize: 'SOME_INTEGER_VALUE', pageNumber: 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "data": [
- {
- "id": "xxxx",
- "name": "name",
- "accessKey": "AKIAIOSFODNN7EXAMPLE",
- "projectId": "projectId",
- "regionId": "regionId",
- "createdAt": "2025-09-08T06:10:48.637Z"
}
], - "pageSize": 10,
- "pageNumber": 0,
- "totalItems": 1,
- "totalPages": 1
}| Authorization required | string Example: Bearer iam_token Bearer token |
| name | string Optional custom name for the S3 key |
| regionId required | string Region ID where the S3 key will be created |
| projectId required | string Project ID that owns the S3 key |
{- "name": "my-s3-key",
- "regionId": "ap-southeast-1",
- "projectId": "project-1234"
}{- "id": "1b9d6bcd-bbfd-4b2d-9b21-3d3fbeefb123",
- "name": "my-s3-key",
- "accessKey": "AKIAIOSFODNN7EXAMPLE",
- "secretKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
}| id required | string Example: xxxx ID of the S3 Key |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = {method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/s3-keys/xxxx'}; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "xxxx",
- "name": "name",
- "accessKey": "AKIAIOSFODNN7EXAMPLE",
- "root": 1234,
- "projectId": "projectId",
- "regionId": "regionId",
- "restricted": false,
- "status": "ACTIVE",
- "createdAt": "2025-09-08T06:10:48.637Z",
- "updatedAt": "2025-09-08T06:10:48.637Z"
}| id required | string Example: 1b9d6bcd-bbfd-4b2d-9b21-3d3fbeefb123 ID of the S3 Key to update |
| Authorization required | string Example: Bearer iam_token Bearer token |
| name | string or null New name for the S3 Key |
| restricted | boolean or null Whether the S3 key is restricted |
{- "name": "updated-s3-key",
- "restricted": true
}| id required | string Example: 3d5e7c2a-6c44-4bb5-90f4-2d5f7d62f1e0 ID of the S3 Key to delete |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'DELETE', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/s3-keys/%7Bid%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| searchByUsername | string Example: searchByUsername=382da21 Filter users by username (supports partial match) |
| pageSize required | integer Example: pageSize=10 Number of items per page |
| pageNumber required | integer Page index (starting from 0) |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/swift-users', qs: { searchByUsername: 'SOME_STRING_VALUE', pageSize: 'SOME_INTEGER_VALUE', pageNumber: 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "data": [
- {
- "id": "54f16fcee3b34c33adc02255a4fe67c9",
- "username": "382da21",
- "projectId": "da0c390ebb0d4f529bb4a32c981c033c",
- "regionId": "8b1e9c9b-7123-54a5-ua8f-2d67d71c9212",
- "createdAt": "2025-04-18T09:15:56.277Z"
}
], - "pageSize": 10,
- "pageNumber": 0,
- "totalItems": 1,
- "totalPages": 1
}| Authorization required | string Example: Bearer iam_token Bearer token |
| regionId required | string Region ID where the Swift User will be created |
| projectId required | string Project ID associated with the Swift User |
{- "regionId": "8b1e9c9b-7123-54a5-ua8f-2d67d71c9212",
- "projectId": "18da7f582c8e4b6484eb6afd24ddc637"
}{- "id": "8525d70059a345909583a5c6dbfd91f2",
- "username": "96d89e7",
- "password": "bU8!ZrKc0P"
}| id required | string Example: 8525d70059a345909583a5c6dbfd91f2 Swift User ID |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/swift-users/8525d70059a345909583a5c6dbfd91f2' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "8525d70059a345909583a5c6dbfd91f2",
- "username": "96d89e7",
- "root": 1234,
- "projectId": "18da7f582c8e4b6484eb6afd24ddc637",
- "regionId": "8b1e9c9b-7123-54a5-ua8f-2d67d71c9212",
- "restricted": false,
- "status": "ACTIVE",
- "createdAt": "2024-04-23T02:04:19.114Z",
- "updatedAt": "2024-04-23T02:04:19.114Z"
}Update specific fields of an existing Swift User (currently supports updating the "restricted" flag).
| id required | string Example: 8525d70059a345909583a5c6dbfd91f2 ID of the Swift User to update |
| Authorization required | string Example: Bearer iam_token Bearer token |
| restricted | boolean or null Whether the Swift User has restricted access |
{- "restricted": false
}Permanently delete a Swift User by ID.
| id required | string Example: 8525d70059a345909583a5c6dbfd91f2 ID of the Swift User to delete |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'DELETE', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/swift-users/%7Bid%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| Authorization required | string Example: Bearer iam_token Bearer token |
| name required | string Service account name |
| description | string or null Optional description of the service account |
{- "name": "string",
- "description": "string"
}| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string Service account ID |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts/%7Bid%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": "string",
- "clientId": "string",
- "name": "string",
- "description": "string",
- "accessTokenLifeSpan": 0,
- "createdAt": 0,
- "enabled": true,
- "lastUse": 0
}| id required | string Service account ID |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'DELETE', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts/%7Bid%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string Service account ID |
| Authorization required | string Example: Bearer iam_token Bearer token |
| description | string Description of the service account |
| accessTokenLifeSpan | integer Access token lifespan in seconds |
{- "description": "string",
- "accessTokenLifeSpan": 3600
}| id required | string Service account ID to activate |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts/%7Bid%7D/activate' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string Service account ID to deactivate |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts/%7Bid%7D/deactivate' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string Service account ID |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts/%7Bid%7D/trusted-roots' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": "xxxx",
- "accountId": 1234,
- "email": "abc@gmail.com"
}
]| id required | string Service account ID |
| rootPortalId required | string Root User Portal ID |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts/%7Bid%7D/trusted-roots/%7BrootPortalId%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string Service account ID |
| rootPortalId required | string Root User Portal ID |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'DELETE', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts/%7Bid%7D/trusted-roots/%7BrootPortalId%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string Service account ID |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts/%7Bid%7D/reset-secret' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "clientSecret": "string"
}| id required | string Service account ID |
| keyId required | string S3 key ID to attach to the service account |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts/%7Bid%7D/s3-keys/%7BkeyId%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string Service account ID |
| keyId required | string S3 key ID to detach from the service account |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'DELETE', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts/%7Bid%7D/s3-keys/%7BkeyId%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string Service account ID |
| swiftId required | string Swift user ID to attach to the service account |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'POST', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts/%7Bid%7D/swift-users/%7BswiftId%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string Service account ID |
| swiftId required | string Swift user ID to detach from the service account |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'DELETE', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts/%7Bid%7D/swift-users/%7BswiftId%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| id required | string Service account ID |
| searchByNameOrAccessKey | string Search by name or access key (optional) |
| pageSize required | integer Number of items per page |
| pageNumber required | integer Page index (starting from 0) |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts/%7Bid%7D/s3-keys', qs: { searchByNameOrAccessKey: 'SOME_STRING_VALUE', pageSize: 'SOME_INTEGER_VALUE', pageNumber: 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "data": [
- {
- "id": "string",
- "name": "string",
- "accessKey": "string",
- "projectId": "string",
- "regionId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "pageSize": 0,
- "pageNumber": 0,
- "totalItems": 0,
- "totalPages": 0
}| id required | string Service account ID |
| searchByUsername | string Search Swift users by username (optional) |
| pageSize required | integer Number of items per page |
| pageNumber required | integer Page index (starting from 0) |
| Authorization required | string Example: Bearer iam_token Bearer token |
const request = require('request'); const options = { method: 'GET', url: 'https://iamapis.vngcloud.vn/accounts-api/v1/service-accounts/%7Bid%7D/swift-users', qs: { searchByUsername: 'SOME_STRING_VALUE', pageSize: 'SOME_INTEGER_VALUE', pageNumber: 'SOME_INTEGER_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "data": [
- {
- "id": "string",
- "username": "string",
- "projectId": "string",
- "regionId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "pageSize": 0,
- "pageNumber": 0,
- "totalItems": 0,
- "totalPages": 0
}