Manage Applications

    Get storage policy

    get
    https://api.box.com/2.0
    /storage_policies/:storage_policy_id

    Fetches a specific storage policy.

    Request

    application/json

    Path Parameters

    stringin pathrequired
    34342

    The ID of the storage policy.

    Response

    application/jsonStorage Policy

    Returns a storage policy object.

    You can now try out some of our APIs live, right here in the documentation.
    Log In

    Request Example

    cURL
    curl -X GET https://api.box.com/2.0/storage_policies/34342 \
         -H "Authorization: Bearer <ACCESS_TOKEN>"
    .NET
    BoxStoragePolicy policy = await client.StoragePoliciesManager.GetStoragePolicyAsync(policyId: "6");
    Java
    BoxStoragePolicy storagePolicy = new BoxStoragePolicy(api, id);
    BoxStoragePolicy.Info storagePolicyInfo = storagePolicy.getInfo();
    Python
    storage_policy = client.storage_policy(policy_id='12345').get()
    print('Storage Policy ID is {0} and name is {1}'.format(storage_policy.id, storage_policy.name))
    Node
    client.storagePolicies.get('6')
        .then(storagePolicy => {
            /* storagePolicy -> {
                type: 'storage_policy', 
                id: '6',
                name: 'Tokyo & Singapore' }
            */
        });

    Response Example

    {
      "id": 11446498,
      "type": "storage_policy",
      "name": "Montreal / Dublin"
    }