Create Index
By using this operation, you can create cache index at run time when golden record cache has been defined and started.
| HTTP Method |
|
|||
| Endpoint URL | See Endpoint | |||
| Resource | /fastcache/metadata/createIndex | |||
| Body Parameters | Specify the following parameters: | |||
| Name | Description | Data Type | ||
| Required | ||||
| repositoryName | Repository name on which the operation is to be performed | string | ||
| cacheIndexList | List of indexes which you want to create on the repository space. | List of string | ||
| indexName | Name of the index | string | ||
| indexType | Type of index. Valid values are HASH or TREE. To know the difference between these two types, see the TIBCO ActiveSpaces Developer's Guide | string | ||
| indexColumnNames | Name of the columns on which you want to create the index. | List of string | ||
| Media Type | application/json | |||
| Request Model |
{
"repositoryName": "string",
"cacheIndexList": [
{
"indexName": "string",
"indexType": "string",
"indexColumnNames": [
"string"
]
}
],
"fieldsToBeAdded": [
{
"name": "string",
"dataType": "string"
}
]
}
|
|||
| Response Model |
{
responseMessages: [
{
"code": "string",
"message": "string",
"type": "string",
]
"success": "boolean"
}
]
}
]
|
|||
| Request Example |
{
"repositoryName": "PERSON",
"cacheIndexList": [
{
"indexName": "INDEX__PRODUCTID",
"indexType": "HASH",
"indexColumnNames": [
"PRODUCTID"
]
}
],
"fieldsToBeAdded": null
}
|
|||
| Response Example |
[
{
"code": "FC-00008",
"message": "Index created - INDEX__PRODUCTID",
"type": "Info"
}
]
|
|||
| Success Response | Example:
Code: 200 successful operation |
|||
| Error Response | If the response is unsuccessful, either of the following error code is displayed:
Example: Code: 400 Parameters required are missing OR Code: 500 Invalid Request For error code response, see Error Handling . |
|||
Copyright © Cloud Software Group, Inc. All rights reserved.
