Skip to end of metadata
Go to start of metadata
Índice de funções
Mostrar conta (Administrador da conta)
GET /api/zios/accounts/{account_id}(.xml/json) |
---|
Exemplo: curl -X GET -H "Content-Type: application/json" -H "X-Access-Key: <token>" 'https://bigfile.brascloud.com.br:8443/api/zios/accounts/{account_id}.json' |
Resposta XML padrão
<?xml version="1.0" encoding="UTF-8"?>
<show-one-account-response>
<status type="integer">0</status>
<account>
<update_time>1461821755.08</update_time>
<name>zios_admin</name>
<is_system_account>True</is_system_account>
<public_url_list type="array">
<public_url>https://bigfile.brascloud.com.br:443/v1/AUTH_91ea5bd5cdc04adb9f5e3c00a346c463</public_url>
</public_url_list>
<enabled>True</enabled>
<email>eyal@email.com</email>
<state>normal</state>
<create_time>1461821754.96</create_time>
<id>91ea5bd5cdc04adb9f5e3c00a346c463</id>
<description/>
</account>
</show-one-account-response>
Resposta JSON padrão
{
"response": {
"status": 0,
"count": {
"update_time": "1461821755.08",
"name": "zios_admin",
"is_system_account": "True",
"public_url_list": [
"https://bigfile.brascloud.com.br:443/v1/AUTH_91ea5bd5cdc04adb9f5e3c00a346c463"
],
"enabled": "True",
"email": "eyal@email.com",
"state": "normal",
"create_time": "1461821754.96",
"id": "91ea5bd5cdc04adb9f5e3c00a346c463",
"description": null
}
}
}
Mostrar usuários de uma conta (Administrador da conta)
GET /api/zios/accounts/{account_id}/users(.xml/json) |
---|
Exemplo: curl -X GET -H "Content-Type: application/json" -H "X-Access-Key: <token>" 'https://bigfile.brascloud.com.br:8443/api/zios/accounts/{account_id}/users.json' |
Resposta XML padrão
<?xml version="1.0" encoding="UTF-8"?>
<show-users-response>
<status type="integer">0</status>
<users-count type="integer">1</users-count>
<users type="array">
<user>
<update_time>1462073035.42</update_time>
<name>eyal</name>
<enabled>True</enabled>
<id>507ab47f362a4299aabe2f6e622c9b5f</id>
<create_time>1461821754.97</create_time>
<init_password_changed>True</init_password_changed>
<role_list type="array">
<role>zios_admin</role>
</role_list>
<is_system_user>True</is_system_user>
<account_name>zios_admin</account_name>
<account_id>91ea5bd5cdc04adb9f5e3c00a346c463</account_id>
</user>
</users>
</show-users-response>
Resposta JSON padrão
{
"response": {
"status": 0,
"users": [
{
"update_time": "1462073035.42",
"name": "eyal",
"enabled": "True",
"id": "507ab47f362a4299aabe2f6e622c9b5f",
"create_time": "1461821754.97",
"init_password_changed": "True",
"role_list": [
"zios_admin"
],
"is_system_user": "True",
"account_name": "zios_admin",
"account_id": "91ea5bd5cdc04adb9f5e3c00a346c463"
}
],
"count": 1
}
}