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
objectDiscriminator Values
-
object
Extensible
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.
object-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
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
Provides additional criteria used to filter the data.
-
required_data(required): array
required_data
Specifies the data to retrieve.
-
storage_type(required): string
Specifies the type of storage that contains the data.
objectResponse
200 Response
array-
Array of:
object Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "CacheResponse":"#/components/schemas/CacheResponse" } }
objectDiscriminator Values
-
object
Extensible
Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`.
-
object
Discriminator: @type-allOf[1]
Specifies the output returned by the operation.
object-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
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
objectDiscriminator Values
-
object
Extensible
Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`.
-
object
Discriminator: @type-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
object-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
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
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
401 Response
objectDiscriminator Values
-
object
Extensible
Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`.
-
object
Discriminator: @type-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
object-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
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
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
403 Response
objectDiscriminator Values
-
object
Extensible
Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`.
-
object
Discriminator: @type-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
object-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
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
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
404 Response
objectDiscriminator Values
-
object
Extensible
Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`.
-
object
Discriminator: @type-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
object-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
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
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
405 Response
objectDiscriminator Values
-
object
Extensible
Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`.
-
object
Discriminator: @type-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
object-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
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
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
409 Response
objectDiscriminator Values
-
object
Extensible
Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`.
-
object
Discriminator: @type-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
object-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
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
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
500 Response
objectDiscriminator Values
-
object
Extensible
Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`.
-
object
Discriminator: @type-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
object-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
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
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
501 Response
objectDiscriminator Values
-
object
Extensible
Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`.
-
object
Discriminator: @type-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
object-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
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
Provides a URI to documentation that describes the error.
-
status: string
Specifies the extended HTTP error code.
503 Response
objectDiscriminator Values
-
object
Extensible
Base extensible schema for use with TM Forum Open APIs. When used in a schema, the entity must be extended by specifying `@type`.
-
object
Discriminator: @type-allOf[1]
Indicates an error response from the API, usually accompanied by an HTTP status code (3xx, 4xx, or 5xx).
object-
@baseType: string
Specifies the superclass while subclassing.
-
@schemaLocation: string
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
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 Cache Data request:
curl -X POST 'http://hostname:port/data/cache' -H 'Content-Type: application/json' -d @file.json
where:
-
hostname is the host name of the application server.
-
port is the port for the application server.
-
file.json is the JSON file that specifies the data to cache and its storage details.
Example of the Request Body
The following sample shows the contents of the file.json file sent as the 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": "sample-for-dataflow",
"namespace": "abcdefghijkl"
}
}
Example of the Response Body
If successful, the response code 200 is returned with the following response body.
[
{
"@type": "CacheResponse",
"status": "Data Caching Successful"
}
]