Endpoint "tools"
Creato per:
- Sviluppatore
- Utente
- Amministratore
- Leader
Gli strumenti sandbox consentono di selezionare artefatti diversi ed esportarli in un pacchetto. Un pacchetto può essere costituito da uno o più oggetti. Tutti gli oggetti inclusi in un pacchetto devono appartenere alla stessa sandbox.
L'endpoint /tools
nell'API degli strumenti sandbox consente di elencare e recuperare i dati JSON del processo.
Dettagli processo
Per recuperare in modo indipendente i dati JSON del processo, effettua una richiesta di GET all'endpoint /tools
e fornisci l'ID del processo.
Formato API
GET /tools/job/{JOB_ID}
Parametro | Descrizione |
---|---|
ID del processo che desideri cercare. |
Richiesta
La richiesta seguente recupera informazioni per {JOB_ID}.
curl -X GET \
https://platform.adobe.io/data/foundation/exim/tools/job/{JOB_ID} \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
Risposta
In caso di esito positivo, la risposta restituisce i dettagli per l'ID del processo su cui viene eseguita la query, fornendo aggiornamenti dello stato in tempo reale man mano che completedTasks
e failedTasks
vengono aggiornati all'avanzamento del processo.
{
"status": "OK",
"type": "SUCCESS",
"message": "Job with ID: 0fe588dc4af64f9f98396cb6b49afb6c found",
"object": {
"id": "0fe588dc4af64f9f98396cb6b49afb6c",
"name": "acme",
"description": "Acme Business Group",
"visibility": "TENANT",
"requestType": "IMPORT",
"expiry": 0,
"snapshotId": "dd0b89579d554d07a814a620a44f9e43",
"createdTimestamp": 1696510894380,
"modifiedTimestamp": 1696510894380,
"type": "PARTIAL",
"jobStatus": "SUCCESS",
"jobType": "NEW",
"counter": 0,
"imsOrgId": "5C1328435BF324E90A49402A@AdobeOrg",
"jobHash": "6n8iV3KS6OGb0YQIQBaGhoAKKNeATeROqzV8/zbkNM8=",
"sourceSandbox": {
"name": "acme-sandbox",
"imsOrgId": "5C1328435BF324E90A49402A@AdobeOrg",
"empty": false
},
"destinationSandbox": {
"name": "acme-sandbox1",
"imsOrgId": "5C1328435BF324E90A49402A@AdobeOrg",
"empty": false
},
"completedTasks": [
{
"taskType": "POST",
"taskStatus": "SUCCESS",
"artifact": {
"id": "https://ns.adobe.com/cjmstage/mixins/68f038b712e54546f99035a20d6ead649ca9d5b135eb24de",
"type": "REGISTRY_MIXIN",
"found": false,
"count": 0,
"title": "drb",
"messages": [
{
"status": "CREATED",
"attempt": 1,
"message": "REGISTRY_MIXIN created. Source id=https://ns.adobe.com/cjmstage/mixins/68f038b712e54546f99035a20d6ead649ca9d5b135eb24de; Target id=https://ns.adobe.com/cjmstage/mixins/220968a10a69ced58180ff1ccbe4f03124e44d17a0f23383"
}
],
"newId": "https://ns.adobe.com/cjmstage/mixins/220968a10a69ced58180ff1ccbe4f03124e44d17a0f23383"
}
},
{
"taskType": "POST",
"taskStatus": "SUCCESS",
"artifact": {
"id": "https://ns.adobe.com/cjmstage/schemas/3926d1ff658a191bcb511b7c4ec45afee1c146a5b152e500",
"type": "REGISTRY_SCHEMA",
"found": false,
"count": 0,
"title": "drbFormSubmissions",
"messages": [
{
"status": "CREATED",
"attempt": 1,
"message": "REGISTRY_SCHEMA created. Source id=https://ns.adobe.com/cjmstage/schemas/3926d1ff658a191bcb511b7c4ec45afee1c146a5b152e500; Target id=https://ns.adobe.com/cjmstage/schemas/5e32908b8db9b37a5f3e7b5851d6ffa9e3bf8487abaef3c5"
}
],
"newId": "https://ns.adobe.com/cjmstage/schemas/5e32908b8db9b37a5f3e7b5851d6ffa9e3bf8487abaef3c5"
}
},
{
"taskType": "POST",
"taskStatus": "SUCCESS",
"artifact": {
"id": "651344d17c8c8d289d10a8e6",
"type": "CATALOG_DATASET",
"found": false,
"count": 0,
"title": "drbFormSubmissions",
"messages": [
{
"status": "CREATED",
"attempt": 1,
"message": "CATALOG_DATASET created. Source id=651344d17c8c8d289d10a8e6; Target id=651eb3af5901df289dcb4511"
}
],
"newId": "651eb3af5901df289dcb4511"
}
}
],
"importReplacementMap": {
"651344d17c8c8d289d10a8e6": "651eb3af5901df289dcb4511",
"5a3b530ee7c4b38e9b33a69d22bfb75a2c5020e5a7a61e51": "b6d8ae6376864e22ed8169a9dac3b2115d1c72b5c1d1bced",
"https://ns.adobe.com/cjmstage/mixins/68f038b712e54546f99035a20d6ead649ca9d5b135eb24de": "https://ns.adobe.com/cjmstage/mixins/220968a10a69ced58180ff1ccbe4f03124e44d17a0f23383",
"https://ns.adobe.com/cjmstage/schemas/3926d1ff658a191bcb511b7c4ec45afee1c146a5b152e500": "https://ns.adobe.com/cjmstage/schemas/5e32908b8db9b37a5f3e7b5851d6ffa9e3bf8487abaef3c5"
},
"sourceParentArtifactMap": {
"651344d17c8c8d289d10a8e6": "745F37C35E4B776E0A49421B@AdobeOrg::ajo-object-copy::CATALOG_DATASET::6512ec5a5bcd5e289c33a594",
"5a3b530ee7c4b38e9b33a69d22bfb75a2c5020e5a7a61e51": "745F37C35E4B776E0A49421B@AdobeOrg::ajo-object-copy::REGISTRY_DESCRIPTOR::9d20176f1eb3f09dac4070b4bd6c4f79e8debdc8a0535725",
"https://ns.adobe.com/cjmstage/mixins/68f038b712e54546f99035a20d6ead649ca9d5b135eb24de": "745F37C35E4B776E0A49421B@AdobeOrg::ajo-object-copy::REGISTRY_MIXIN::https://ns.adobe.com/cjmstage/mixins/37d29b7590c59928583b4d9a189229261291e388b7aa1031",
"https://ns.adobe.com/cjmstage/schemas/3926d1ff658a191bcb511b7c4ec45afee1c146a5b152e500": "745F37C35E4B776E0A49421B@AdobeOrg::ajo-object-copy::REGISTRY_SCHEMA::https://ns.adobe.com/cjmstage/schemas/926a7aa38b7cc93b87dd03c8f73e6e7537651407c30b66a0"
}
}
}