openapi: 3.0.1
info:
title: Coveo Activity Activities Snapshot API
description: API for Coveo Platform
termsOfService: https://www.coveo.com/en/support/terms-agreements
contact:
name: Coveo
url: https://connect.coveo.com/s/discussions
version: 1.0.0
servers:
- url: https://platform.cloud.coveo.com
description: Coveo public API endpoint
security:
- oauth2:
- full
tags:
- name: Snapshot
paths:
/rest/organizations/{organizationId}/snapshots/{snapshotId}/push:
put:
tags:
- Snapshot
summary: Push Snapshot to Target Organization
description: 'Pushes a snapshot to an organization.**Required privileges:**
- `Snapshot - Edit` in both organizations.
- `View` in the original organization on all [domains](https://docs.coveo.com/en/2819/) targeted by the snapshot.
Privilege required
```
{"owner":"PLATFORM","targetDomain":"SNAPSHOTS","type":"EDIT","targetId":"*"}
```
'
operationId: pushSnapshot
parameters:
- name: organizationId
in: path
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/).
**Example:** `startingorganizationg8tp8wu3`
required: true
schema:
type: string
- name: snapshotId
in: path
description: The unique identifier of the target snapshot.
**Example:** `startingorganization-xzgbf5rdaiqtaznvh74zdwcedi`
required: true
schema:
type: string
- name: targetOrganizationId
in: query
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/) where to send the snapshot.
**Example:** `destinationorganizationg7dg3gd`
required: true
schema:
type: string
- name: developerNotes
in: query
description: A note you can attach to your snapshot.
**Example:** `pipeline snapshot`
required: false
schema:
type: string
responses:
'204':
description: No Content
x-pretty-name: pushSnapshot
x-required-privilege:
owner: PLATFORM
targetDomain: SNAPSHOTS
type: EDIT
targetId: '*'
x-required-privileges:
- owner: PLATFORM
targetDomain: SNAPSHOTS
type: EDIT
targetId: '*'
x-ui-operation-id: /rest/organizations/paramId/snapshots/paramId/push_put
/rest/organizations/{organizationId}/snapshots/{snapshotId}/dryrun:
put:
tags:
- Snapshot
summary: Validate Snapshot
description: 'Checks the effects of applying a snapshot to an organization.**Required privileges:**
- `Snapshot - Edit`
- `View` on all domains corresponding to the resources targeted by the snapshot
Privilege required
```
{"owner":"PLATFORM","targetDomain":"SNAPSHOTS","type":"EDIT","targetId":"*"}
```
'
operationId: dryrun
parameters:
- name: organizationId
in: path
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/).
**Example:** `startingorganizationg8tp8wu3`
required: true
schema:
type: string
- name: snapshotId
in: path
description: The unique identifier of the target snapshot.
**Example:** `startingorganization-xzgbf5rdaiqtaznvh74zdwcedi`
required: true
schema:
type: string
- name: deleteMissingResources
in: query
description: Whether to simulate the deletion of organization resources not present in the snapshot.
**Default:** `false`
required: false
schema:
type: boolean
default: false
- name: deletionScope
in: query
description: '**Note:** only applies when `deleteMissingResources` is set to `true`.
The scope of the resources on which to calculate deletions.
**Default:** `ONLY_TYPES_FROM_SNAPSHOT`'
required: false
schema:
type: string
enum:
- ALL_MANAGED_RESOURCES
- ONLY_TYPES_FROM_SNAPSHOT
default: ONLY_TYPES_FROM_SNAPSHOT
- name: performAutoSynchronization
in: query
description: Whether to automatically synchronize resources in the snapshot with corresponding organization resources.
**Default:** `true`
required: false
schema:
type: boolean
default: true
- name: autoSynchronizationThreshold
in: query
description: If autoSynchronization is set to true, this score controls how lenient the pairing of values will be.
The value should be set to 1.00 or lower. A value of 1 will require an exact match for synchronization of fields.
required: false
schema:
type: number
format: float
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/ReportModel'
x-pretty-name: dryrun
x-required-privilege:
owner: PLATFORM
targetDomain: SNAPSHOTS
type: EDIT
targetId: '*'
x-required-privileges:
- owner: PLATFORM
targetDomain: SNAPSHOTS
type: EDIT
targetId: '*'
x-ui-operation-id: /rest/organizations/paramId/snapshots/paramId/dryrun_put
/rest/organizations/{organizationId}/snapshots/{snapshotId}/apply:
put:
tags:
- Snapshot
summary: Apply Snapshot
description: 'Applies a snapshot to an organization.**Required privileges:**
- `Snapshot - Edit`
- `Edit` on all domains corresponding to the resources targeted by the snapshot
Privilege required
```
{"owner":"PLATFORM","targetDomain":"SNAPSHOTS","type":"EDIT","targetId":"*"}
```
'
operationId: apply
parameters:
- name: organizationId
in: path
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/).
**Example:** `startingorganizationg8tp8wu3`
required: true
schema:
type: string
- name: snapshotId
in: path
description: The unique identifier of the target snapshot.
**Example:** `startingorganization-xzgbf5rdaiqtaznvh74zdwcedi`
required: true
schema:
type: string
- name: deleteMissingResources
in: query
description: Whether to delete organization resources not present in the snapshot.
**Default:** `false`
required: false
schema:
type: boolean
default: false
- name: deletionScope
in: query
description: '**Note:** only applies when `deleteMissingResources` is set to `true`.
The scope of the resources on which to calculate deletions.
**Default:** `ONLY_TYPES_FROM_SNAPSHOT`'
required: false
schema:
type: string
enum:
- ALL_MANAGED_RESOURCES
- ONLY_TYPES_FROM_SNAPSHOT
default: ONLY_TYPES_FROM_SNAPSHOT
- name: isTransient
in: query
description: Whether to delete the snapshot after it has been applied.
**Default:** `false`
required: false
schema:
type: boolean
default: false
- name: validationRequired
in: query
description: Whether to check the effects of applying the snapshot before actually applying it.When this parameter is set to true, if an operation is found to be invalid during the validation, the service stops and returns an error report.
**Default:** `false`
required: false
schema:
type: boolean
default: false
- name: performAutoSynchronization
in: query
description: Whether to automatically synchronize resources in the snapshot with corresponding organization resources.
**Default:** `true`
required: false
schema:
type: boolean
default: true
- name: autoSynchronizationThreshold
in: query
description: If autoSynchronization is set to true, this score controls how lenient the pairing of values will be.
The value should be set to 1.00 or lower. A value of 1 will require an exact match for synchronization of fields.
required: false
schema:
type: number
format: float
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/ReportModel'
x-pretty-name: apply
x-required-privilege:
owner: PLATFORM
targetDomain: SNAPSHOTS
type: EDIT
targetId: '*'
x-required-privileges:
- owner: PLATFORM
targetDomain: SNAPSHOTS
type: EDIT
targetId: '*'
x-ui-operation-id: /rest/organizations/paramId/snapshots/paramId/apply_put
/rest/organizations/{organizationId}/snapshots:
get:
tags:
- Snapshot
summary: List Snapshots
description: 'Lists the snapshots in an [organization](https://docs.coveo.com/en/185/).**Required privilege:** `Snapshot - View`
Privilege required
```
{"owner":"PLATFORM","targetDomain":"SNAPSHOTS","type":"VIEW","targetId":"*"}
```
'
operationId: getAllSnapshots
parameters:
- name: organizationId
in: path
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/).
**Example:** `startingorganizationg8tp8wu3`
required: true
schema:
type: string
- name: includeReports
in: query
description: Whether to include snapshot reports in the response.
**Default:** `true`
required: false
schema:
type: boolean
default: true
- name: filter
in: query
required: false
schema:
type: string
- name: sortingOrder
in: query
required: false
schema:
type: string
enum:
- ASC
- DESC
default: ASC
- name: sortingType
in: query
required: false
schema:
type: string
enum:
- CREATED_DATE
- DEVELOPER_NOTE
- CREATED_BY
- ORIGIN_ID
default: CREATED_DATE
responses:
'200':
description: OK
content:
'*/*':
schema:
type: array
items:
$ref: '#/components/schemas/SnapshotModel'
x-pretty-name: getAllSnapshots
x-required-privilege:
owner: PLATFORM
targetDomain: SNAPSHOTS
type: VIEW
targetId: '*'
x-required-privileges:
- owner: PLATFORM
targetDomain: SNAPSHOTS
type: VIEW
targetId: '*'
x-ui-operation-id: /rest/organizations/paramId/snapshots_get
post:
tags:
- Snapshot
summary: Create Snapshot from Configuration
description: 'Creates a snapshot from a configuration.**Required privilege:**` Snapshot - Edit`
Privilege required
```
{"owner":"PLATFORM","targetDomain":"SNAPSHOTS","type":"EDIT","targetId":"{snapshotId}"}
```
'
operationId: createSnapshot
parameters:
- name: organizationId
in: path
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/).
**Example:** `startingorganizationg8tp8wu3`
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SnapshotModel'
required: true
responses:
'201':
description: Created
content:
'*/*':
schema:
$ref: '#/components/schemas/SnapshotModel'
x-pretty-name: createSnapshot
x-required-privilege:
owner: PLATFORM
targetDomain: SNAPSHOTS
type: EDIT
targetId: '{snapshotId}'
x-required-privileges:
- owner: PLATFORM
targetDomain: SNAPSHOTS
type: EDIT
targetId: '{snapshotId}'
x-ui-operation-id: /rest/organizations/paramId/snapshots_post
/rest/organizations/{organizationId}/snapshots/self:
post:
tags:
- Snapshot
summary: Create Organization Snapshot
description: 'Creates a snapshot of an organization and optionally sends it to another organization.**Required privileges:**
- `Snapshot - Edit`
- `View` on all domains corresponding to the resources to include in the snapshot.
- If exporting to another organization, you also need `Snapshot - Edit` privilege in that target organization.
Privilege required
```
{"owner":"PLATFORM","targetDomain":"SNAPSHOTS","type":"CREATE","targetId":"*"}
```
'
operationId: createSnapshotFromSelf
parameters:
- name: organizationId
in: path
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/).
**Example:** `startingorganizationg8tp8wu3`
required: true
schema:
type: string
- name: targetOrganizationId
in: query
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/) where to send the snapshot.
**Example:** `destinationorganizationg7dg3gd`
By default, the snapshot remains in the original organization.
required: false
schema:
type: string
- name: developerNotes
in: query
description: A note you can attach to your snapshot.
**Example:** `pipeline snapshot`
required: false
schema:
type: string
- name: includeChildrenResources
in: query
description: Whether to include child resources in the snapshot.
For example, when creating a snapshot of a query pipeline resource, if the `includeChildrenResources` parameter is set to true, the [pipeline's statements](https://docs.coveo.com/en/236/) will be included in the snapshot.
**Default:** `true`
required: false
schema:
type: boolean
default: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ExportConfigurationModel'
required: true
responses:
'201':
description: Created
content:
'*/*':
schema:
$ref: '#/components/schemas/SnapshotModel'
x-pretty-name: createSnapshotFromSelf
x-required-privilege:
owner: PLATFORM
targetDomain: SNAPSHOTS
type: CREATE
targetId: '*'
x-required-privileges:
- owner: PLATFORM
targetDomain: SNAPSHOTS
type: CREATE
targetId: '*'
x-ui-operation-id: /rest/organizations/paramId/snapshots/self_post
/rest/organizations/{organizationId}/snapshots/file:
post:
tags:
- Snapshot
summary: Create Snapshot from File
description: 'Creates a snapshot from a file containing the configuration (or multiple files zipped into one).**Required privilege:** `Snapshot - Edit`
Privilege required
```
{"owner":"PLATFORM","targetDomain":"SNAPSHOTS","type":"CREATE","targetId":"*"}
```
'
operationId: createSnapshotFromFile
parameters:
- name: organizationId
in: path
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/).
**Example:** `startingorganizationg8tp8wu3`
required: true
schema:
type: string
- name: snapshotFileType
in: query
description: 'The type of the file containing the configuration.
**Possible values:**
- `JSON`: the configuration is in one single JSON file.
- `ZIP`: the configuration is separated into several JSON files, each containing one or more resources, without overlap between files'
required: true
schema:
type: string
enum:
- JSON
- ZIP
- name: developerNotes
in: query
description: A note you can attach to your snapshot.
**Example:** `pipeline snapshot`
required: false
schema:
type: string
requestBody:
content:
application/json:
schema:
required:
- file
type: object
properties:
file:
type: string
description: The file containing the configuration.
format: binary
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/SnapshotModel'
x-pretty-name: createSnapshotFromFile
x-required-privilege:
owner: PLATFORM
targetDomain: SNAPSHOTS
type: CREATE
targetId: '*'
x-required-privileges:
- owner: PLATFORM
targetDomain: SNAPSHOTS
type: CREATE
targetId: '*'
x-ui-operation-id: /rest/organizations/paramId/snapshots/file_post
/rest/organizations/{organizationId}/snapshots/{snapshotId}:
get:
tags:
- Snapshot
summary: Show Snapshot
description: 'Shows a snapshot in an organization.**Required privilege:** `Snapshot - View`
Privilege required
```
{"owner":"PLATFORM","targetDomain":"SNAPSHOTS","type":"VIEW","targetId":"*"}
```
'
operationId: getSnapshot
parameters:
- name: organizationId
in: path
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/).
**Example:** `startingorganizationg8tp8wu3`
required: true
schema:
type: string
- name: snapshotId
in: path
description: The unique identifier of the target snapshot.
**Example:** `startingorganization-xzgbf5rdaiqtaznvh74zdwcedi`
required: true
schema:
type: string
- name: includeReports
in: query
description: Whether to include reports with the snapshot.
**Default:** `true`
required: false
schema:
type: boolean
default: true
- name: reportInclusion
in: query
description: 'The level of detail of the report.
**Possible values:**
- `NONE`: no report.
- `SUMMARY`: only report on the latest operation of every kind (dry run, application, synchronization, diff report generation).
- `ALL`: all reports.
**Default:** `SUMMARY`'
required: false
schema:
type: string
enum:
- NONE
- SUMMARY
- ALL
default: SUMMARY
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/SnapshotModel'
x-pretty-name: getSnapshot
x-required-privilege:
owner: PLATFORM
targetDomain: SNAPSHOTS
type: VIEW
targetId: '*'
x-required-privileges:
- owner: PLATFORM
targetDomain: SNAPSHOTS
type: VIEW
targetId: '*'
x-ui-operation-id: /rest/organizations/paramId/snapshots/paramId_get
delete:
tags:
- Snapshot
summary: Delete Snapshot
description: 'Deletes a snapshot in an organization.**Required privilege:** `Snapshot - Edit`
Privilege required
```
{"owner":"PLATFORM","targetDomain":"SNAPSHOTS","type":"EDIT","targetId":"*"}
```
'
operationId: deleteSnapshot
parameters:
- name: organizationId
in: path
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/).
**Example:** `startingorganizationg8tp8wu3`
required: true
schema:
type: string
- name: snapshotId
in: path
description: The unique identifier of the target snapshot.
**Example:** `startingorganization-xzgbf5rdaiqtaznvh74zdwcedi`
required: true
schema:
type: string
responses:
'204':
description: No Content
x-pretty-name: deleteSnapshot
x-required-privilege:
owner: PLATFORM
targetDomain: SNAPSHOTS
type: EDIT
targetId: '*'
x-required-privileges:
- owner: PLATFORM
targetDomain: SNAPSHOTS
type: EDIT
targetId: '*'
x-ui-operation-id: /rest/organizations/paramId/snapshots/paramId_delete
/rest/organizations/{organizationId}/snapshots/{snapshotId}/url:
get:
tags:
- Snapshot
summary: Create URL to Retrieve Snapshot Content
description: 'Creates a URL from which to retrieve the content of a snapshot.**Required privileges:**
- `Snapshot - View`
- `View` on all domains corresponding to the resources included in the snapshot
Privilege required
```
{"owner":"PLATFORM","targetDomain":"SNAPSHOTS","type":"VIEW","targetId":"*"}
```
'
operationId: generatePresignedUrl
parameters:
- name: organizationId
in: path
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/).
**Example:** `startingorganizationg8tp8wu3`
required: true
schema:
type: string
- name: snapshotId
in: path
description: The unique identifier of the target snapshot.
**Example:** `startingorganization-xzgbf5rdaiqtaznvh74zdwcedi`
required: true
schema:
type: string
- name: contentType
in: query
description: 'The version of the snapshot to show.
**Possible values:**
- `PRIMARY`: The actual snapshot content.
- `CURRENT_STATE`: The resources targeted by the snapshot as they were in the target organization itself at the moment of the last dry run operation. This is useful to compare with the actual snapshot content (`PRIMARY`) before applying it.
**Default:** `PRIMARY`'
required: false
schema:
type: string
enum:
- PRIMARY
- CURRENT_STATE
default: PRIMARY
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/UrlWithExpirationModel'
x-pretty-name: generatePresignedUrl
x-required-privilege:
owner: PLATFORM
targetDomain: SNAPSHOTS
type: VIEW
targetId: '*'
x-required-privileges:
- owner: PLATFORM
targetDomain: SNAPSHOTS
type: VIEW
targetId: '*'
x-ui-operation-id: /rest/organizations/paramId/snapshots/paramId/url_get
/rest/organizations/{organizationId}/snapshots/{snapshotId}/diff:
get:
tags:
- Snapshot
summary: Show Snapshot Diff Report
description: 'Shows the diff report for the target snapshot and dry-run report.**Required privilege:** `Snapshot - View`
Privilege required
```
{"owner":"PLATFORM","targetDomain":"SNAPSHOTS","type":"EDIT","targetId":"*"}
```
'
operationId: diff
parameters:
- name: organizationId
in: path
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/).
**Example:** `startingorganizationg8tp8wu3`
required: true
schema:
type: string
- name: snapshotId
in: path
description: The unique identifier of the target snapshot.
**Example:** `startingorganization-xzgbf5rdaiqtaznvh74zdwcedi`
required: true
schema:
type: string
- name: relativeReportId
in: query
description: The unique identifier of the dry-run operation report associated with the target diff report.
required: true
schema:
type: string
- name: numberOfLinesMax
in: query
description: Maximum number of lines before the diff is downloaded to a file.
required: false
schema:
type: integer
format: int32
default: 2147483647
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/DiffGenerationReportModel'
x-pretty-name: diff
x-required-privilege:
owner: PLATFORM
targetDomain: SNAPSHOTS
type: EDIT
targetId: '*'
x-required-privileges:
- owner: PLATFORM
targetDomain: SNAPSHOTS
type: EDIT
targetId: '*'
x-ui-operation-id: /rest/organizations/paramId/snapshots/paramId/diff_get
/rest/organizations/{organizationId}/snapshots/{snapshotId}/content:
get:
tags:
- Snapshot
summary: Retrieve Snapshot Content
description: 'Retrieves a ZIP file holding the content of the target snapshot, in the target format.**Required privileges:**
- `Snapshot - View`
- `View` on all domains corresponding to the resources included in the snapshot
Privilege required
```
{"owner":"PLATFORM","targetDomain":"SNAPSHOTS","type":"VIEW","targetId":"*"}
```
'
operationId: getArchivedSnapshotContent
parameters:
- name: organizationId
in: path
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/).
**Example:** `startingorganizationg8tp8wu3`
required: true
schema:
type: string
- name: snapshotId
in: path
description: The unique identifier of the target snapshot.
**Example:** `startingorganization-xzgbf5rdaiqtaznvh74zdwcedi`
required: true
schema:
type: string
- name: contentFormat
in: query
description: The format of the snapshot content.
**FLAT:** Content unified into a single file
**SPLIT_PER_TYPE:** Content split into one file per resource type
required: false
schema:
type: string
enum:
- FLAT
- SPLIT_PER_TYPE
default: FLAT
responses:
'200':
description: OK
content:
application/zip:
schema:
$ref: '#/components/schemas/StreamingResponseBody'
x-pretty-name: getArchivedSnapshotContent
x-required-privilege:
owner: PLATFORM
targetDomain: SNAPSHOTS
type: VIEW
targetId: '*'
x-required-privileges:
- owner: PLATFORM
targetDomain: SNAPSHOTS
type: VIEW
targetId: '*'
x-ui-operation-id: /rest/organizations/paramId/snapshots/paramId/content_get
components:
schemas:
CurrentStage:
type: object
properties:
stage:
type: string
enum:
- CREATING_SNAPSHOT
- INITIAL_PROCESSING
- SYNCHRONIZING
- COMPUTING_OPERATIONS
- VALIDATING_OPERATIONS
- PERFORMING_OPERATIONS
progressValue:
type: number
format: float
progressType:
type: string
enum:
- BINARY
- PERCENTAGE
description: The current stage being executed, with its related progress value.
SynchronizationReportModel:
type: object
properties:
id:
type: string
description: The unique identifier of the synchronization operation.
example: '`startingorganizationg8tp8wu3-upxq6zdy5lueuidcksoadlsl3e`'
updatedDate:
type: string
description: The date at which the report was created in number of milliseconds since UNIX epoch.
format: date-time
synchronizationPlanId:
type: string
description: The unique identifier of the synchronization plan.
example: '`startingorganizationg8tp8wu3-xqtzk7c2lnskasagcxy75xkgp`'
type:
type: string
description: The synchronization operation type.
enum:
- CREATE_SNAPSHOT
- DRY_RUN
- APPLY
- CREATE_SYNCHRONIZATION_PLAN
- APPLY_SYNCHRONIZATION_PLAN
- GENERATE_DIFF
status:
type: string
description: The synchronization operation status.
enum:
- PENDING
- IN_PROGRESS
- COMPLETED
- ABORTED
resultCode:
type: string
description: The synchronization operation result code at the end of the operation, if applicable.
enum:
- AUTO_SYNCHRONIZATION_FAILURE
- EXTERNAL_SERVICE_COMMUNICATION_ERROR
- RESOURCE_DEPENDENCY_CYCLE
- RESOURCES_IN_ERROR
- SUCCESS
- UNABLE_TO_PUSH_TO_ORGANIZATION
- UNABLE_TO_RETRIEVE_RESOURCES
- UNEXPECTED_ERROR
- UNSUPPORTED_RESOURCE
resourcesProcessed:
type: integer
description: The number of resources processed by the synchronization.
format: int32
linkOperations:
type: object
additionalProperties:
$ref: '#/components/schemas/SynchronizationReportLinkOperationsModel'
description: The summaries of the outcome of the link operations for the different resource types.
linkOperationDetails:
type: object
additionalProperties:
type: object
additionalProperties:
type: string
description: An object containing details about link operation failures, if applicable.
description: An object containing details about link operation failures, if applicable.
description: An object containing details about link operation failures, if applicable.
description: A snapshot synchronization report.
ResultInformation:
type: object
properties:
resultCode:
type: string
message:
type: string
description: For each type of resource, an object containing failure details, if applicable.
StreamingResponseBody:
type: object
SynchronizationReportLinkOperationsModel:
type: object
properties:
linksCreated:
type: integer
description: The number of synchronization links created.
format: int32
linksOverridden:
type: integer
description: The number of synchronization links overridden.
format: int32
linksInError:
type: integer
description: The number of synchronization links in error.
format: int32
description: A summary of the outcome of the link operations.
SnapshotMetadataModel:
type: object
properties:
schemaVersion:
type: string
description: The schema version used to specify the snapshot content.
enum:
- v1
description: Metadata about the snapshot.
ExportConfigurationModel:
type: object
properties:
resourcesToExport:
type: object
additionalProperties:
type: array
description: The export configuration model that specifies the resources to include in the snapshot.
**Example:** `{"FIELD":null,"EXTENSION":["startingorganizationg8tp8wu3-re77u4uytfgsolmnsliomx2elu"],"QUERY_PIPELINE":["*"]}`
items:
type: string
description: The export configuration model that specifies the resources to include in the snapshot.
**Example:** `{"FIELD":null,"EXTENSION":["startingorganizationg8tp8wu3-re77u4uytfgsolmnsliomx2elu"],"QUERY_PIPELINE":["*"]}`
description: The export configuration model that specifies the resources to include in the snapshot.
**Example:** `{"FIELD":null,"EXTENSION":["startingorganizationg8tp8wu3-re77u4uytfgsolmnsliomx2elu"],"QUERY_PIPELINE":["*"]}`
description: The export configuration model that specifies the resources to include in the snapshot.
UrlWithExpirationAndNumberOfLinesModel:
type: object
properties:
url:
type: string
urlExpiration:
type: string
format: date-time
numberOfLines:
type: integer
format: int32
description: The generated content patch files, separated by resource type.
ReportModel:
type: object
properties:
id:
type: string
description: The unique identifier of the report.
example: '`startingorganizationg8tp8wu3-upxq6zdy5lueuidcksoadlsl3e`'
startDate:
type: string
description: The report start date in number of milliseconds since UNIX epoch.
format: date-time
updatedDate:
type: string
description: The report last update date in number of milliseconds since UNIX epoch.
format: date-time
type:
type: string
description: The type of snapshot event.
enum:
- CREATE_SNAPSHOT
- DRY_RUN
- APPLY
- CREATE_SYNCHRONIZATION_PLAN
- APPLY_SYNCHRONIZATION_PLAN
- GENERATE_DIFF
status:
type: string
description: The status of the snapshot.
enum:
- PENDING
- IN_PROGRESS
- COMPLETED
- ABORTED
stagesToExecute:
type: array
description: The ordered stages the migration operation has to go through in order to complete.
items:
type: string
description: The ordered stages the migration operation has to go through in order to complete.
enum:
- CREATING_SNAPSHOT
- INITIAL_PROCESSING
- SYNCHRONIZING
- COMPUTING_OPERATIONS
- VALIDATING_OPERATIONS
- PERFORMING_OPERATIONS
currentStage:
$ref: '#/components/schemas/CurrentStage'
resultCode:
type: string
description: The result code of the snapshot event, if applicable.
enum:
- AUTO_SYNCHRONIZATION_FAILURE
- EXTERNAL_SERVICE_COMMUNICATION_ERROR
- RESOURCE_DEPENDENCY_CYCLE
- RESOURCES_IN_ERROR
- SUCCESS
- UNABLE_TO_PUSH_TO_ORGANIZATION
- UNABLE_TO_RETRIEVE_RESOURCES
- UNEXPECTED_ERROR
- UNSUPPORTED_RESOURCE
resourcesProcessed:
type: integer
description: The number of resources processed by the event.
format: int32
resourceOperations:
type: object
additionalProperties:
$ref: '#/components/schemas/ReportResourceOperationsModel'
description: For each type of resource, a breakdown of the number of resources per operation.
resourceOperationResults:
type: object
additionalProperties:
type: object
additionalProperties:
type: array
description: For each type of resource, an object containing failure details, if applicable.
items:
$ref: '#/components/schemas/ResultInformation'
description: For each type of resource, an object containing failure details, if applicable.
description: For each type of resource, an object containing failure details, if applicable.
description: A snapshot event report.
SnapshotModel:
type: object
properties:
id:
type: string
description: The unique identifier of the target snapshot.
example: destinationorganizationg7dg3gd-8dfs7hj3k
createdBy:
type: string
description: The username of the snapshot creator.
example: '`jdoe@example.com`'
createdDate:
type: string
description: The date of creation of the snapshot in number of milliseconds since UNIX epoch.
format: date-time
originId:
type: string
description: The unique identifier of the [organization](https://docs.coveo.com/en/185/) from whichthe snapshot originates, if it differs from the current organization.
example: '`startingorganizationg8tp8wu3`'
targetId:
type: string
description: The unique identifier of the organization in which the snapshot applies.
example: '`destinationorganizationg7dg3gd`'
developerNote:
type: string
description: A note you can attach to your snapshot.
example: '`pipeline snapshot`'
reports:
type: array
description: The list of reports of events on the snapshot.
items:
$ref: '#/components/schemas/ReportModel'
synchronizationReports:
type: array
description: The list of synchronization reports on the snapshot.
items:
$ref: '#/components/schemas/SynchronizationReportModel'
diffGenerationReports:
type: array
items:
$ref: '#/components/schemas/DiffGenerationReportModel'
contentSummary:
type: object
additionalProperties:
type: integer
description: 'A summary of the contents of the snapshot.
**Example:**`{QUERY_PIPELINE: 1, RANKING_EXPRESSION: 1}`'
format: int32
description: 'A summary of the contents of the snapshot.
**Example:**`{QUERY_PIPELINE: 1, RANKING_EXPRESSION: 1}`'
snapshotContentModel:
$ref: '#/components/schemas/SnapshotContentModel'
description: The snapshot configuration.
ReportResourceOperationsModel:
type: object
properties:
resourcesCreated:
type: integer
description: The number of resources created by the operation.
format: int32
resourcesCreatedNames:
type: array
description: The `resourceName`s of the resources created by the operation.
items:
type: string
description: The `resourceName`s of the resources created by the operation.
resourcesUpdated:
type: integer
description: The number of resources updated by the operation.
format: int32
resourcesUpdatedNames:
type: array
description: The `resourceName`s of the resources updated by the operation.
items:
type: string
description: The `resourceName`s of the resources updated by the operation.
resourcesRecreated:
type: integer
description: The number of pre-existing resources recreated by the operation. This happens when a resource cannot be updated. For example, it is not possible to rename a query pipeline, so in such a case the pipeline would be deleted and created again with the desired name. This operation counts as one recreation.
format: int32
resourcesRecreatedNames:
type: array
description: The `resourceName`s of the resources recreated by the operation.
items:
type: string
description: The `resourceName`s of the resources recreated by the operation.
resourcesDeleted:
type: integer
description: The number of resources deleted by the operation.
format: int32
resourcesDeletedNames:
type: array
description: The `resourceName`s of the resources deleted by the operation.
items:
type: string
description: The `resourceName`s of the resources deleted by the operation.
resourcesSynchronized:
type: integer
description: The number of resources synchronized by the operation.
format: int32
resourcesSynchronizedNames:
type: array
description: The `resourceName`s of the resources synchronized by the operation.
items:
type: string
description: The `resourceName`s of the resources synchronized by the operation.
resourcesInError:
type: integer
description: The number of resources for which an error occurred during the operation.
format: int32
resourcesInErrorNames:
type: array
description: The `resourceName`s of the resources for which an error occurred during the operation.
items:
type: string
description: The `resourceName`s of the resources for which an error occurred during the operation.
resourcesUnchanged:
type: integer
description: The number of resources unchanged by the operation.
format: int32
resourcesUnchangedNames:
type: array
description: The `resourceName`s of the resources unchanged by the operation.
items:
type: string
description: The `resourceName`s of the resources unchanged by the operation.
description: A summary of the outcome of the link operations.
UrlWithExpirationModel:
type: object
properties:
url:
type: string
urlExpiration:
type: string
format: date-time
DiffGenerationReportModel:
type: object
properties:
id:
type: string
description: The unique identifier of the report.
example: '`startingorganizationg8tp8wu3-upxq6zdy5lueuidcksoadlsl3e`'
snapshotId:
type: string
description: The unique identifier of the snapshot.
relativeReportId:
type: string
description: The unique identifier of the dry-run report that triggered the current diff generation.
updatedDate:
type: string
description: The report last update date in number of milliseconds since UNIX epoch.
format: date-time
status:
type: string
description: The status of the operation.
enum:
- PENDING
- IN_PROGRESS
- COMPLETED
- ABORTED
files:
type: object
additionalProperties:
$ref: '#/components/schemas/UrlWithExpirationAndNumberOfLinesModel'
description: The generated files, separated by resource type.
contentPatchFiles:
type: object
additionalProperties:
$ref: '#/components/schemas/UrlWithExpirationAndNumberOfLinesModel'
description: The generated content patch files, separated by resource type.
SnapshotResourceModel:
type: object
properties:
resourceName:
type: string
description: The unique identifier of the resource that allows tracking across organizations.
example: myextension_aAePCD
parents:
type: object
additionalProperties:
type: string
description: The parents of the resource, if applicable.
For example, a query pipeline ranking expression will have the parent query pipeline as a value in its `parents` object.
description: The parents of the resource, if applicable.
For example, a query pipeline ranking expression will have the parent query pipeline as a value in its `parents` object.
model:
type: object
additionalProperties:
type: object
description: The JSON configuration of the resource.
description: The JSON configuration of the resource.
description: The snapshot of a resource.
SnapshotContentModel:
type: object
properties:
metadata:
$ref: '#/components/schemas/SnapshotMetadataModel'
resources:
type: object
additionalProperties:
type: array
description: The snapshot resources.
items:
$ref: '#/components/schemas/SnapshotResourceModel'
description: The snapshot resources.
description: The snapshot content.
securitySchemes:
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://platform.cloud.coveo.com/oauth/authorize
tokenUrl: https://platform.cloud.coveo.com/oauth/token
scopes:
full: required