...
Example REQUEST |
GET /usageManagement/usage/1234/fields=date,usageType,usageDescription |
Example RESPONSE |
200 Content-Type: application/json { "date": "2013-05-31T09:00:00+00:01", |
Example REQUEST B |
GET /usageManagementi/usage/?fields=date,usageType,status,ratedProductUsage.taxIncludedRatingAmount& ratedProductUsage.taxIncludedRatingAmount.gt=10 |
Example RESPONSE B |
200 Content-Type: application/json
{ "date": " 2013-04-19T16:42:23-04:00", |
All standard error codes apply.
...
GET usageManagement/usageSpecification/{ID}?{attributeSelector}&{attributeFilter} Example REQUEST |
GET usageManagement/usageSpecification/22 |
Example RESPONSE |
200 Content-Type: application/json { |
Example REQUEST B |
GET usageManagement/usageSpecification/?name="cloudCpuSpec" |
Example RESPONSE B |
200 |
...
Rule name | Rule/Pre Condition/Side Effects/Post Conditions |
usageCharacteristic | name and value are mandatory |
relatedParty | role and party are mandatory startDateTime is not mandatory but has a default value -> it is set to sysdate by default |
ratedProductUsage | When a usage record is created with a status of rated or billed, the following attributes are mandatory: |
ratedProductUsage | When a usage record is created with a status of rated or billed, the following default values apply: |
Create a usage
REQUEST |
POST usageManagement/usage Content-type: application/json
{ "date": "2013-04-19T16:42:23-04:00", |
RESPONSE |
201 |
...
Rule name | Rule/Pre Condition/Side Effects/Post Conditions |
usageSpecCharacteristic | name and usageSpecCharacteristicValue are mandatory |
usageSpecCharacteristicValue | valueType is mandatory |
Example REQUEST | |
POST usageManagement/usageSpecification/ Accept: application/json
{{ | [ [ |
Example RESPONSE | |
201 |
...
REQUEST A – "rate" a single usage record |
PATCH usageManagement/usage/1234/ Content-type: application/json
{ |
RESPONSE |
201 |
...
REQUEST |
POST ../usageManagement/importJob |
RESPONSE |
201 Content-Type: application/json Location: ../usageManagement/importJob/54
{ "url": "ftp://ftp.myUsage.com/usage/54" |
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
...
REQUEST | |
POST ../usageManagement/exportJob | |
RESPONSE | |
201 Content-Type: application/json Location: ../usageManagement/exportJob | /54 /54
{ |
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
...
REQUEST |
GET ../usageManagement/exportJob/54 |
RESPONSE |
200 Content-Type: application/json
{ |
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
...
REQUEST |
GET ../usageManagement/importJob/54 |
RESPONSE |
200 Content-Type: application/json
{ |
© TM Forum 2015. All Rights Reserved.