# Chargeback Reporting Controller Resource

[SVP-3429] API to get the backup-size report (usage of backup files) for specified query parameters

### POST /chargeback-reporting/backup-size/app

Request Parameters
name | type | description | default | constraints
--- | --- | --- | --- | ---
count-type | query |  | STORED_BYTES | "FRONTEND_BYTES" or "STORED_BYTES"
project-uuid | query |  |  |

Request Body
media type | data type
--- | ---
application/json | ChargebackAppRequest (JSON)

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

#### Example

##### Request

    POST /chargeback-reporting/backup-size/app
    Content-Type: application/json
    Accept: application/json

    {
      "valid" : true,
      "cloud" : true,
      "OS" : true
    }

##### Response

    HTTP/1.1 201 Created
    Content-Type: application/json

    [ { } ]

### POST /chargeback-reporting/backup-size/cloud

Request Parameters
name | type | description | default | constraints
--- | --- | --- | --- | ---
count-type | query |  | STORED_BYTES | "FRONTEND_BYTES" or "STORED_BYTES"
project-uuid | query |  |  |

Request Body
media type | data type
--- | ---
application/json | ChargebackCloudRequest (JSON)

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

#### Example

##### Request

    POST /chargeback-reporting/backup-size/cloud
    Content-Type: application/json
    Accept: application/json

    {
      "cloud" : true,
      "valid" : true,
      "OS" : true
    }

##### Response

    HTTP/1.1 201 Created
    Content-Type: application/json

    [ { } ]

### POST /chargeback-reporting/backup-size/os

Request Parameters
name | type | description | default | constraints
--- | --- | --- | --- | ---
count-type | query |  | STORED_BYTES | "FRONTEND_BYTES" or "STORED_BYTES"
project-uuid | query |  |  |

Request Body
media type | data type
--- | ---
application/json | ChargebackOSRequest (JSON)

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

#### Example

##### Request

    POST /chargeback-reporting/backup-size/os
    Content-Type: application/json
    Accept: application/json

    {
      "OS" : true,
      "valid" : true,
      "cloud" : true
    }

##### Response

    HTTP/1.1 201 Created
    Content-Type: application/json

    [ { } ]

### POST /chargeback-reporting/backup-size/storage

Request Parameters
name | type | description | default | constraints
--- | --- | --- | --- | ---
count-type | query |  | STORED_BYTES | "FRONTEND_BYTES" or "STORED_BYTES"
project-uuid | query |  |  |

Request Body
media type | data type
--- | ---
application/json | ChargebackStorageRequest (JSON)

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

#### Example

##### Request

    POST /chargeback-reporting/backup-size/storage
    Content-Type: application/json
    Accept: application/json

    {
      "valid" : true,
      "cloud" : true,
      "OS" : true
    }

##### Response

    HTTP/1.1 201 Created
    Content-Type: application/json

    [ { } ]

### POST /chargeback-reporting/backup-size/vm

Request Parameters
name | type | description | default | constraints
--- | --- | --- | --- | ---
count-type | query |  | STORED_BYTES | "FRONTEND_BYTES" or "STORED_BYTES"
project-uuid | query |  |  |

Request Body
media type | data type
--- | ---
application/json | ChargebackVmRequest (JSON)

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

#### Example

##### Request

    POST /chargeback-reporting/backup-size/vm
    Content-Type: application/json
    Accept: application/json

    {
      "valid" : true,
      "cloud" : true,
      "OS" : true
    }

##### Response

    HTTP/1.1 201 Created
    Content-Type: application/json

    [ { } ]

### POST /chargeback-reporting/transfer-size/app

Request Parameters
name | type | description | default | constraints
--- | --- | --- | --- | ---
count-type | query |  | STORED_BYTES | "FRONTEND_BYTES" or "STORED_BYTES"
from | query |  |  | long
project-uuid | query |  |  |
to | query |  |  | long

Request Body
media type | data type
--- | ---
application/json | ChargebackAppRequest (JSON)

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

#### Example

##### Request

    POST /chargeback-reporting/transfer-size/app
    Content-Type: application/json
    Accept: application/json

    {
      "valid" : true,
      "cloud" : true,
      "OS" : true
    }

##### Response

    HTTP/1.1 201 Created
    Content-Type: application/json

    [ { } ]

### POST /chargeback-reporting/transfer-size/cloud

Request Parameters
name | type | description | default | constraints
--- | --- | --- | --- | ---
count-type | query |  | STORED_BYTES | "FRONTEND_BYTES" or "STORED_BYTES"
from | query |  |  | long
project-uuid | query |  |  |
to | query |  |  | long

Request Body
media type | data type
--- | ---
application/json | ChargebackCloudRequest (JSON)

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

#### Example

##### Request

    POST /chargeback-reporting/transfer-size/cloud
    Content-Type: application/json
    Accept: application/json

    {
      "cloud" : true,
      "valid" : true,
      "OS" : true
    }

##### Response

    HTTP/1.1 201 Created
    Content-Type: application/json

    [ { } ]

### POST /chargeback-reporting/transfer-size/os

Request Parameters
name | type | description | default | constraints
--- | --- | --- | --- | ---
count-type | query |  | STORED_BYTES | "FRONTEND_BYTES" or "STORED_BYTES"
from | query |  |  | long
project-uuid | query |  |  |
to | query |  |  | long

Request Body
media type | data type
--- | ---
application/json | ChargebackOSRequest (JSON)

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

#### Example

##### Request

    POST /chargeback-reporting/transfer-size/os
    Content-Type: application/json
    Accept: application/json

    {
      "OS" : true,
      "valid" : true,
      "cloud" : true
    }

##### Response

    HTTP/1.1 201 Created
    Content-Type: application/json

    [ { } ]

### POST /chargeback-reporting/transfer-size/storage

Request Parameters
name | type | description | default | constraints
--- | --- | --- | --- | ---
count-type | query |  | STORED_BYTES | "FRONTEND_BYTES" or "STORED_BYTES"
from | query |  |  | long
project-uuid | query |  |  |
to | query |  |  | long

Request Body
media type | data type
--- | ---
application/json | ChargebackStorageRequest (JSON)

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

#### Example

##### Request

    POST /chargeback-reporting/transfer-size/storage
    Content-Type: application/json
    Accept: application/json

    {
      "valid" : true,
      "cloud" : true,
      "OS" : true
    }

##### Response

    HTTP/1.1 201 Created
    Content-Type: application/json

    [ { } ]

### POST /chargeback-reporting/transfer-size/vm

Request Parameters
name | type | description | default | constraints
--- | --- | --- | --- | ---
count-type | query |  | STORED_BYTES | "FRONTEND_BYTES" or "STORED_BYTES"
from | query |  |  | long
project-uuid | query |  |  |
to | query |  |  | long

Request Body
media type | data type
--- | ---
application/json | ChargebackVmRequest (JSON)

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

#### Example

##### Request

    POST /chargeback-reporting/transfer-size/vm
    Content-Type: application/json
    Accept: application/json

    {
      "valid" : true,
      "cloud" : true,
      "OS" : true
    }

##### Response

    HTTP/1.1 201 Created
    Content-Type: application/json

    [ { } ]