Cache Persisted Data
/data/cache
In the request body, the contents of additional_data depend on the storage_type value:
- When storage_type is set to object_storage, the additional_data object must include the bucket and namespace fields.
- When storage_type is set to pvc, the additional_data object must include the path field set to the path of the metadata.json file.
Request
There are no request parameters for this operation.
- application/json
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "CacheRequest":"#/components/schemas/CacheRequest", "FetchRequest":"#/components/schemas/FetchRequest", "CollectRequest":"#/components/schemas/CollectRequest", "QueryBuilder":"#/components/schemas/QueryBuilder", "QueryList":"#/components/schemas/QueryList", "JoinConditions":"#/components/schemas/JoinConditions", "StorageDetails":"#/components/schemas/StorageDetails", "CollectResponse":"#/components/schemas/CollectResponse", "FetchResponse":"#/components/schemas/FetchResponse", "CacheResponse":"#/components/schemas/CacheResponse", "Error":"#/components/schemas/Error" } }Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`. -
object
type
Specifies the input parameters for the request.
objectDiscriminator Values
- CacheRequest
- FetchRequest
- CollectRequest
- QueryBuilder
- QueryList
- JoinConditions
- StorageDetails
- CollectResponse
- FetchResponse
- CacheResponse
- Error
-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
(uri)
Provides a URI to the JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
When subclassing, specifies the extensible name of the subclass.
object-
additional_data: object
additional_data
Additional Properties Allowed:
trueProvides additional criteria used to filter the data. -
required_data(required): array
required_data
Specifies the data to retrieve.
-
storage_type(required): string
Specifies the third-party library to use for data collection.
objecttrueResponse
200 Response
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "CacheRequest":"#/components/schemas/CacheRequest", "FetchRequest":"#/components/schemas/FetchRequest", "CollectRequest":"#/components/schemas/CollectRequest", "QueryBuilder":"#/components/schemas/QueryBuilder", "QueryList":"#/components/schemas/QueryList", "JoinConditions":"#/components/schemas/JoinConditions", "StorageDetails":"#/components/schemas/StorageDetails", "CollectResponse":"#/components/schemas/CollectResponse", "FetchResponse":"#/components/schemas/FetchResponse", "CacheResponse":"#/components/schemas/CacheResponse", "Error":"#/components/schemas/Error" } }Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`. -
object
CacheResponse-allOf[1]
Specifies the output returned by the operation.
objectDiscriminator Values
- CacheRequest
- FetchRequest
- CollectRequest
- QueryBuilder
- QueryList
- JoinConditions
- StorageDetails
- CollectResponse
- FetchResponse
- CacheResponse
- Error
-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
(uri)
Provides a URI to the JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
When subclassing, specifies the extensible name of the subclass.
object-
status(required): string
Indicates the current status of the service.
400 Response
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "CacheRequest":"#/components/schemas/CacheRequest", "FetchRequest":"#/components/schemas/FetchRequest", "CollectRequest":"#/components/schemas/CollectRequest", "QueryBuilder":"#/components/schemas/QueryBuilder", "QueryList":"#/components/schemas/QueryList", "JoinConditions":"#/components/schemas/JoinConditions", "StorageDetails":"#/components/schemas/StorageDetails", "CollectResponse":"#/components/schemas/CollectResponse", "FetchResponse":"#/components/schemas/FetchResponse", "CacheResponse":"#/components/schemas/CacheResponse", "Error":"#/components/schemas/Error" } }Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`. -
object
Error-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
objectDiscriminator Values
- CacheRequest
- FetchRequest
- CollectRequest
- QueryBuilder
- QueryList
- JoinConditions
- StorageDetails
- CollectResponse
- FetchResponse
- CacheResponse
- Error
-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
(uri)
Provides a URI to the JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
When subclassing, specifies the extensible name of the subclass.
object-
code(required): string
Provides application-specific details, as defined by the API or a common list.
-
message: string
Provides additional error details and recommended corrective actions to display to the client user.
-
reason(required): string
Provides an explanation of the error to display to the client user.
-
referenceError: string
(uri)
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
401 Response
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "CacheRequest":"#/components/schemas/CacheRequest", "FetchRequest":"#/components/schemas/FetchRequest", "CollectRequest":"#/components/schemas/CollectRequest", "QueryBuilder":"#/components/schemas/QueryBuilder", "QueryList":"#/components/schemas/QueryList", "JoinConditions":"#/components/schemas/JoinConditions", "StorageDetails":"#/components/schemas/StorageDetails", "CollectResponse":"#/components/schemas/CollectResponse", "FetchResponse":"#/components/schemas/FetchResponse", "CacheResponse":"#/components/schemas/CacheResponse", "Error":"#/components/schemas/Error" } }Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`. -
object
Error-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
objectDiscriminator Values
- CacheRequest
- FetchRequest
- CollectRequest
- QueryBuilder
- QueryList
- JoinConditions
- StorageDetails
- CollectResponse
- FetchResponse
- CacheResponse
- Error
-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
(uri)
Provides a URI to the JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
When subclassing, specifies the extensible name of the subclass.
object-
code(required): string
Provides application-specific details, as defined by the API or a common list.
-
message: string
Provides additional error details and recommended corrective actions to display to the client user.
-
reason(required): string
Provides an explanation of the error to display to the client user.
-
referenceError: string
(uri)
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
403 Response
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "CacheRequest":"#/components/schemas/CacheRequest", "FetchRequest":"#/components/schemas/FetchRequest", "CollectRequest":"#/components/schemas/CollectRequest", "QueryBuilder":"#/components/schemas/QueryBuilder", "QueryList":"#/components/schemas/QueryList", "JoinConditions":"#/components/schemas/JoinConditions", "StorageDetails":"#/components/schemas/StorageDetails", "CollectResponse":"#/components/schemas/CollectResponse", "FetchResponse":"#/components/schemas/FetchResponse", "CacheResponse":"#/components/schemas/CacheResponse", "Error":"#/components/schemas/Error" } }Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`. -
object
Error-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
objectDiscriminator Values
- CacheRequest
- FetchRequest
- CollectRequest
- QueryBuilder
- QueryList
- JoinConditions
- StorageDetails
- CollectResponse
- FetchResponse
- CacheResponse
- Error
-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
(uri)
Provides a URI to the JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
When subclassing, specifies the extensible name of the subclass.
object-
code(required): string
Provides application-specific details, as defined by the API or a common list.
-
message: string
Provides additional error details and recommended corrective actions to display to the client user.
-
reason(required): string
Provides an explanation of the error to display to the client user.
-
referenceError: string
(uri)
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
404 Response
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "CacheRequest":"#/components/schemas/CacheRequest", "FetchRequest":"#/components/schemas/FetchRequest", "CollectRequest":"#/components/schemas/CollectRequest", "QueryBuilder":"#/components/schemas/QueryBuilder", "QueryList":"#/components/schemas/QueryList", "JoinConditions":"#/components/schemas/JoinConditions", "StorageDetails":"#/components/schemas/StorageDetails", "CollectResponse":"#/components/schemas/CollectResponse", "FetchResponse":"#/components/schemas/FetchResponse", "CacheResponse":"#/components/schemas/CacheResponse", "Error":"#/components/schemas/Error" } }Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`. -
object
Error-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
objectDiscriminator Values
- CacheRequest
- FetchRequest
- CollectRequest
- QueryBuilder
- QueryList
- JoinConditions
- StorageDetails
- CollectResponse
- FetchResponse
- CacheResponse
- Error
-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
(uri)
Provides a URI to the JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
When subclassing, specifies the extensible name of the subclass.
object-
code(required): string
Provides application-specific details, as defined by the API or a common list.
-
message: string
Provides additional error details and recommended corrective actions to display to the client user.
-
reason(required): string
Provides an explanation of the error to display to the client user.
-
referenceError: string
(uri)
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
405 Response
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "CacheRequest":"#/components/schemas/CacheRequest", "FetchRequest":"#/components/schemas/FetchRequest", "CollectRequest":"#/components/schemas/CollectRequest", "QueryBuilder":"#/components/schemas/QueryBuilder", "QueryList":"#/components/schemas/QueryList", "JoinConditions":"#/components/schemas/JoinConditions", "StorageDetails":"#/components/schemas/StorageDetails", "CollectResponse":"#/components/schemas/CollectResponse", "FetchResponse":"#/components/schemas/FetchResponse", "CacheResponse":"#/components/schemas/CacheResponse", "Error":"#/components/schemas/Error" } }Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`. -
object
Error-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
objectDiscriminator Values
- CacheRequest
- FetchRequest
- CollectRequest
- QueryBuilder
- QueryList
- JoinConditions
- StorageDetails
- CollectResponse
- FetchResponse
- CacheResponse
- Error
-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
(uri)
Provides a URI to the JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
When subclassing, specifies the extensible name of the subclass.
object-
code(required): string
Provides application-specific details, as defined by the API or a common list.
-
message: string
Provides additional error details and recommended corrective actions to display to the client user.
-
reason(required): string
Provides an explanation of the error to display to the client user.
-
referenceError: string
(uri)
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
409 Response
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "CacheRequest":"#/components/schemas/CacheRequest", "FetchRequest":"#/components/schemas/FetchRequest", "CollectRequest":"#/components/schemas/CollectRequest", "QueryBuilder":"#/components/schemas/QueryBuilder", "QueryList":"#/components/schemas/QueryList", "JoinConditions":"#/components/schemas/JoinConditions", "StorageDetails":"#/components/schemas/StorageDetails", "CollectResponse":"#/components/schemas/CollectResponse", "FetchResponse":"#/components/schemas/FetchResponse", "CacheResponse":"#/components/schemas/CacheResponse", "Error":"#/components/schemas/Error" } }Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`. -
object
Error-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
objectDiscriminator Values
- CacheRequest
- FetchRequest
- CollectRequest
- QueryBuilder
- QueryList
- JoinConditions
- StorageDetails
- CollectResponse
- FetchResponse
- CacheResponse
- Error
-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
(uri)
Provides a URI to the JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
When subclassing, specifies the extensible name of the subclass.
object-
code(required): string
Provides application-specific details, as defined by the API or a common list.
-
message: string
Provides additional error details and recommended corrective actions to display to the client user.
-
reason(required): string
Provides an explanation of the error to display to the client user.
-
referenceError: string
(uri)
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
500 Response
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "CacheRequest":"#/components/schemas/CacheRequest", "FetchRequest":"#/components/schemas/FetchRequest", "CollectRequest":"#/components/schemas/CollectRequest", "QueryBuilder":"#/components/schemas/QueryBuilder", "QueryList":"#/components/schemas/QueryList", "JoinConditions":"#/components/schemas/JoinConditions", "StorageDetails":"#/components/schemas/StorageDetails", "CollectResponse":"#/components/schemas/CollectResponse", "FetchResponse":"#/components/schemas/FetchResponse", "CacheResponse":"#/components/schemas/CacheResponse", "Error":"#/components/schemas/Error" } }Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`. -
object
Error-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
objectDiscriminator Values
- CacheRequest
- FetchRequest
- CollectRequest
- QueryBuilder
- QueryList
- JoinConditions
- StorageDetails
- CollectResponse
- FetchResponse
- CacheResponse
- Error
-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
(uri)
Provides a URI to the JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
When subclassing, specifies the extensible name of the subclass.
object-
code(required): string
Provides application-specific details, as defined by the API or a common list.
-
message: string
Provides additional error details and recommended corrective actions to display to the client user.
-
reason(required): string
Provides an explanation of the error to display to the client user.
-
referenceError: string
(uri)
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
501 Response
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "CacheRequest":"#/components/schemas/CacheRequest", "FetchRequest":"#/components/schemas/FetchRequest", "CollectRequest":"#/components/schemas/CollectRequest", "QueryBuilder":"#/components/schemas/QueryBuilder", "QueryList":"#/components/schemas/QueryList", "JoinConditions":"#/components/schemas/JoinConditions", "StorageDetails":"#/components/schemas/StorageDetails", "CollectResponse":"#/components/schemas/CollectResponse", "FetchResponse":"#/components/schemas/FetchResponse", "CacheResponse":"#/components/schemas/CacheResponse", "Error":"#/components/schemas/Error" } }Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`. -
object
Error-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
objectDiscriminator Values
- CacheRequest
- FetchRequest
- CollectRequest
- QueryBuilder
- QueryList
- JoinConditions
- StorageDetails
- CollectResponse
- FetchResponse
- CacheResponse
- Error
-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
(uri)
Provides a URI to the JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
When subclassing, specifies the extensible name of the subclass.
object-
code(required): string
Provides application-specific details, as defined by the API or a common list.
-
message: string
Provides additional error details and recommended corrective actions to display to the client user.
-
reason(required): string
Provides an explanation of the error to display to the client user.
-
referenceError: string
(uri)
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
503 Response
-
object
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "CacheRequest":"#/components/schemas/CacheRequest", "FetchRequest":"#/components/schemas/FetchRequest", "CollectRequest":"#/components/schemas/CollectRequest", "QueryBuilder":"#/components/schemas/QueryBuilder", "QueryList":"#/components/schemas/QueryList", "JoinConditions":"#/components/schemas/JoinConditions", "StorageDetails":"#/components/schemas/StorageDetails", "CollectResponse":"#/components/schemas/CollectResponse", "FetchResponse":"#/components/schemas/FetchResponse", "CacheResponse":"#/components/schemas/CacheResponse", "Error":"#/components/schemas/Error" } }Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`. -
object
Error-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
objectDiscriminator Values
- CacheRequest
- FetchRequest
- CollectRequest
- QueryBuilder
- QueryList
- JoinConditions
- StorageDetails
- CollectResponse
- FetchResponse
- CacheResponse
- Error
-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
(uri)
Provides a URI to the JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
When subclassing, specifies the extensible name of the subclass.
object-
code(required): string
Provides application-specific details, as defined by the API or a common list.
-
message: string
Provides additional error details and recommended corrective actions to display to the client user.
-
reason(required): string
Provides an explanation of the error to display to the client user.
-
referenceError: string
(uri)
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
Examples
This example shows the cURL command for sending a Create a Cache Object request:
curl -H "Content-Type: application/json" -H "Authorization: Bearer your_token" -H "Accept: application/json" -X POST -d @file.json 'http://hostname:port/data/cache'
where:
-
your_token is your client application's OAuth 2.0 access token.
-
file.json is the JSON file that specifies the details of the data to collect.
-
hostname is the host name for the application server.
-
port is the port for the application server.
Example of Request Body
Following is a sample request body.
{
"@type": "CacheRequest",
"required_data": [
"account_data",
"msisdn_data",
"balance_group_data",
"service_data",
"purchased_product_data",
"product_data",
"deal_data",
"plan_data",
"rate_data",
"event_data",
"deal_data_2",
"over_usage_data",
"usage_data"
],
"storage_type": "object_storage",
"additional_data": {
"bucket": "billing-cache-data",
"namespace": "mycompanynamespace"
}
}
Example of Response Body
If successful, the response code 200 is returned with a response body. For example:
{
"@type": "CacheResponse"
}