POST /v1/partitions
Create a new partition.
Servers
- https://api.au.sumologic.com/api/
- https://api.ca.sumologic.com/api/
- https://api.de.sumologic.com/api/
- https://api.eu.sumologic.com/api/
- https://api.fed.sumologic.com/api/
- https://api.jp.sumologic.com/api/
- https://api.kr.sumologic.com/api/
- https://api.in.sumologic.com/api/
- https://api.sumologic.com/api/
- https://api.us2.sumologic.com/api/
Request headers
| Name | Type | Required | Description | 
|---|---|---|---|
| Content-Type | String | Yes | The media type of the request body. Default value: "application/json" | 
Request body fields
| Name | Type | Required | Description | 
|---|---|---|---|
| isIncludedInDefaultSearch | Boolean | No | Indicates whether the partition is included in the default search scope. When executing a query such as "error | count," certain partitions are automatically part of the search scope. However, for specific partitions, the user must explicitly mention the partition using the _index term, as in "_index=webApp error | count". This property governs the default inclusion of the partition in the search scope. Configuring this property is exclusively permitted for flex partitions. | 
| name | String | Yes | The name of the partition. | 
| analyticsTier | String | No | The Data Tier where the data in the partition will reside. Possible values are:
1.  | 
| retentionPeriod | Integer | No | The number of days to retain data in the partition, or -1 to use the default value for your account. Only relevant if your account has variable retention enabled. Default value: -1 | 
| isCompliant | Boolean | No | Whether the partition is compliant or not. Mark a partition as compliant if it contains data used for compliance or audit purpose. Retention for a compliant partition can only be increased and cannot be reduced after the partition is marked compliant. A partition once marked compliant, cannot be marked non-compliant later. Default value: false | 
| routingExpression | String | Yes | The query that defines the data to be included in the partition. | 
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
      - This loads the API reference documentation and prepares the Http request settings.
 
- Click Test request to test run your request to the API and see the API's response.