Plataforma (platform)

2.0info: 1.14.0 tenant_cleanup description: Serviço orquestrador de limpeza de tenants x-senior-domain: platform x-senior-domain-path: platform x-senior-service-path: tenant_cleanup contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: api.senior.com.br /platform/tenant_cleanupsecurityDefinitions: bearerAuth: type: apiKey in: header name: Authorization – application/json – application/jsonparameters: clientId: name: client_id type: string in: header required: true description: Identificação da aplicação cadastrada no portal do desenvolvedor (api.xplatform.com.br)paths: /backupCompleted: post: description: Informa que todos os workers concluíram o step de BACKUP para um cleanup x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – cleanupId – tenant properties: cleanupId: type: string description: Identificador do cleanup tenant: type: string description: Identificador do tenant responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/cleanupStepLog: get: description: The list request primitive for the cleanupStepLog facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/cleanupStepLogFacade default: description: Error response schema: #/definitions/genericError /apis/worker: get: description: The list request primitive for the worker facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/workerFacade default: description: Error response schema: #/definitions/genericError /apis/worker/{id}: get: description: The retrieve request primitive for the worker facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/workerFacade default: description: Error response schema: #/definitions/genericError /apis/cleanup: get: description: The list request primitive for the cleanup facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/cleanupFacade default: description: Error response schema: #/definitions/genericError /apis/cleanup/{id}: get: description: The retrieve request primitive for the cleanup facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/cleanupFacade default: description: Error response schema: #/definitions/genericError /apis/cleanupManagedServiceStep: get: description: The list request primitive for the cleanupManagedServiceStep facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/cleanupManagedServiceStepFacade default: description: Error response schema: #/definitions/genericError /apis/cleanupManagedServiceStep/{id}: get: description: The retrieve request primitive for the cleanupManagedServiceStep facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/cleanupManagedServiceStepFacade default: description: Error response schema: #/definitions/genericErrordefinitions: stepOperation: type: string enum: – PENDING – RUNNING – SUCCESS – ERROR – IGNORED – CANCELLING – CANCELLED step: type: string enum: – BACKUP – SOFT_DELETE – HARD_DELETE workerFacade: type: object required: – workerDomain – workerService – enabled – createdAt – modifiedAt – plugins properties: workerId: type: string description: Identificador do worker workerDomain: type: string description: Domínio do worker workerService: type: string description: Serviço do worker type: string description: Versão do data-plane enabled: type: boolean description: Indica se o worker está ativo createdAt: type: string description: Data de criação do registro format: date-time modifiedAt: type: string description: Data da última modificação format: date-time plugins: type: array items: #/definitions/pluginOutput description: Plugins instalados neste worker pluginOutput: type: object required: – pluginId – plugin properties: pluginId: type: string description: Identificador do plugin plugin: type: string description: Nome do plugin type: string description: Versão do plugin cleanupFacade: type: object required: – tenant – startedAt – status – stepStatus properties: cleanupId: type: string description: Identificador do cleanup tenant: type: string description: Tenant do cleanup startedAt: type: string description: Data de início do cleanup format: date-time finishedAt: type: string description: Data de término do cleanup format: date-time status: #/definitions/stepOperation stepStatus: #/definitions/stepStatus stepStatus: type: object required: – step – status – progress properties: step: #/definitions/step status: #/definitions/stepOperation progress: type: number description: Progresso da etapa atual do cleanup format: double cleanupManagedServiceStepFacade: type: object required: – cleanupId – cleanupStepId – step – cleanupManagedServiceStepId – service – domain – workerDomain – workerService – startedAt – finishedAt – status – scheduledDate properties: cleanupId: type: string description: Identificador do cleanup cleanupStepId: type: string description: Identificador da etapa do cleanup step: #/definitions/step cleanupManagedServiceStepId: type: string description: Identificador da etapa do cleanup por serviço service: type: string description: Serviço gerenciado pelo worker domain: type: string description: Dominio do serviço gerenciado workerDomain: type: string description: Domínio do worker workerService: type: string description: Serviço do worker startedAt: type: string description: Hora de início do processamento para cada serviço format: date-time finishedAt: type: string description: Hora de término do processamento para cada serviço format: date-time status: #/definitions/stepOperation scheduledDate: type: string description: Data de agendamento do hard-delete format: date-time cleanupStepLogFacade: type: object required: – cleanupManagedServiceStepId – workerDomain – workerService – service – domain – description – status properties: cleanupManagedServiceStepId: type: string description: Identificador da etapa do cleanup por serviço date: type: string description: Hora de registro do log format: date-time workerDomain: type: string description: Domínio do worker workerService: type: string description: Serviço do worker service: type: string description: Serviço gerenciado pelo worker domain: type: string description: Dominio do serviço gerenciado pluginId: type: string description: Identificador único do plugin (postgresql, mysql…) description: type: string description: Descrição do log status: #/definitions/stepOperation genericError: properties: message: type: string description: Messaging describing the error. reason: type: string description: A symbolic code identifying the category of the reason of the error. enum: – BAD_REQUEST – UNAUTHORIZED – PAYMENT_REQUIRED – FORBIDDEN – OBJECT_NOT_FOUND – REQUEST_TIMEOUT – GONE – UNPROCESSABLE – INTERNAL_ERROR – NOT_IMPLEMENTED – SERVICE_UNAVAILABLE – INSUFFICIENT_STORAGE