Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Índice

Table of Contents

Í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://bigfilebigfile02.brascloud.com.br:8443/api/zios/accounts/{account_id}.json'



Expand
titleResposta XML padrão


Code Block
languagexml
themeMidnight
<?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>




Expand
titleResposta JSON padrão


Code Block
languagexml
themeMidnight
{
  "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://bigfilebigfile02.brascloud.com.br:8443/api/zios/accounts/{account_id}/users.json'



Expand
titleResposta XML padrão


Code Block
languagexml
themeMidnight
<?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>




Expand
titleResposta JSON padrão


Code Block
languagexml
themeMidnight
{
  "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
  }
}



Próximos passos: