# Cloud Protected Entity Controller Resource

The API allows you to list and view cloud protected entities.

### GET /cloud-protected-entities/{protectedEntityType}

Returns list of protected entity by type.

Request Parameters
name | type | description
--- | --- | ---
protectedEntityType | path | specify type of protected entity

Response Body
media type | data type | description
--- | --- | ---
application/json | array of CloudProtectedEntityDetails (JSON) | list of protected entities

#### Example

##### Request

    GET /cloud-protected-entities/{protectedEntityType}
    Content-Type: */*
    Accept: application/json

    ...

##### Response

    HTTP/1.1 200 OK
    Content-Type: application/json

    [ {
      "guid" : "f8f73bf9-2445-4bce-a7dd-753be3b40a67",
      "lastBackup" : 1451649601000
    } ]

### GET /cloud-protected-entities/{protectedEntityType}/dropdown

Returns list of protected entity by type, with reduced informations, for UI dropdown.

Request Parameters
name | type | description
--- | --- | ---
protectedEntityType | path | specify type of protected entity

Response Body
media type | data type | description
--- | --- | ---
application/json | array of CloudProtectedEntityDropdownRecord (JSON) | list of protected entities

#### Example

##### Request

    GET /cloud-protected-entities/{protectedEntityType}/dropdown
    Content-Type: */*
    Accept: application/json

    ...

##### Response

    HTTP/1.1 200 OK
    Content-Type: application/json

    [ { } ]

### GET /cloud-protected-entities/{protectedEntityType}/{guid}

Returns details of protected entity by type and guid.

Request Parameters
name | type | description
--- | --- | ---
guid | path | specify guid of protected entity
protectedEntityType | path | specify type of protected entity

Response Body
media type | data type | description
--- | --- | ---
application/json | CloudProtectedEntityDetails (JSON) | protected entity

#### Example

##### Request

    GET /cloud-protected-entities/{protectedEntityType}/{guid}
    Content-Type: */*
    Accept: application/json

    ...

##### Response

    HTTP/1.1 200 OK
    Content-Type: application/json

    {
      "guid" : "f8f73bf9-2445-4bce-a7dd-753be3b40a67",
      "lastBackup" : 1451649601000
    }

### GET /cloud-protected-entities/site/{guid}/subsites

Returns list of subsites of the site.

Request Parameters
name | type | description
--- | --- | ---
guid | path | specify guid of site

Response Body
media type | data type | description
--- | --- | ---
application/json | array of CloudSiteListEntry (JSON) | list of subsites

#### Example

##### Request

    GET /cloud-protected-entities/site/{guid}/subsites
    Content-Type: */*
    Accept: application/json

    ...

##### Response

    HTTP/1.1 200 OK
    Content-Type: application/json

    [ { } ]

### GET /cloud-protected-entities/{protectedEntityType}/{guid}/get-available-features-for-restore

Request Parameters
name | type | description
--- | --- | ---
guid | path |
protectedEntityType | path |

Response Body
media type | data type | description
--- | --- | ---
application/json | CloudUserAvailableFeaturesForRestore (JSON) |

#### Example

##### Request

    GET /cloud-protected-entities/{protectedEntityType}/{guid}/get-available-features-for-restore
    Content-Type: */*
    Accept: application/json

    ...

##### Response

    HTTP/1.1 200 OK
    Content-Type: application/json

    { }

### GET /cloud-protected-entities/{protectedEntityType}/{guid}/storage-usage

Returns storage usage of protected entity by type and guid.

Request Parameters
name | type | description
--- | --- | ---
guid | path | specify guid of protected entity
protectedEntityType | path | specify type of protected entity

Response Body
media type | data type | description
--- | --- | ---
application/json | StorageUsage (JSON) | storage usage of protected entity

#### Example

##### Request

    GET /cloud-protected-entities/{protectedEntityType}/{guid}/storage-usage
    Content-Type: */*
    Accept: application/json

    ...

##### Response

    HTTP/1.1 200 OK
    Content-Type: application/json

    { }

### GET /cloud-protected-entities/{protectedEntityType}/{guid}/{tab}

Returns container folder for features

Request Parameters
name | type | description
--- | --- | ---
guid | path | specify guid of protected entity
protectedEntityType | path | specify type of protected entity
tab | path | tab name for feature

Response Body
media type | data type | description
--- | --- | ---
application/json | array of CloudProtectedObjectDetailsForUI (JSON) | protected entity

#### Example

##### Request

    GET /cloud-protected-entities/{protectedEntityType}/{guid}/{tab}
    Content-Type: */*
    Accept: application/json

    ...

##### Response

    HTTP/1.1 200 OK
    Content-Type: application/json

    [ { } ]