arazzo: 1.0.1
info:
title: Amazon Neptune Analytics Reset Graph
summary: Empty a Neptune Analytics graph of all data, then wait until it is AVAILABLE
again.
description: A fast-reset workflow for Neptune Analytics that removes all nodes
and edges while keeping the graph resource and its configuration. The workflow
confirms the graph exists and is AVAILABLE, issues the reset with the required
performCleanData confirmation, and polls the graph until it returns to the AVAILABLE
status after the RESETTING state. The poll loop uses a retry delay. Every step
spells out its request inline so the flow can be read and executed without opening
the underlying OpenAPI description.
version: 1.0.0
x-realizes-capability-ids:
- BC-600.50
x-capability-derivation:
method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability
edge. No classification at this step.'
min_confidence: 0.7
sources:
- capability_id: BC-600.50
capability_name: IT Infrastructure Management
spec: amazon-neptune-graphs-api-openapi.yml
confidence: 0.75
model: "Turbo EA Capabilities by Vincent Verdet \u2014 Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities,\
\ CC BY 4.0"
sourceDescriptions:
- name: graphsApi
url: ../openapi/amazon-neptune-graphs-api-openapi.yml
type: openapi
workflows:
- workflowId: analytics-reset-graph
summary: Reset a graph's data and poll until it is AVAILABLE again.
description: Confirms the graph is available, resets all data, then polls until
the graph returns to AVAILABLE.
inputs:
type: object
required:
- graphIdentifier
properties:
graphIdentifier:
type: string
description: The unique identifier of the graph to reset.
steps:
- stepId: confirmGraph
description: Confirm the graph exists and capture its current status before resetting.
operationId: GetGraph
parameters:
- name: graphIdentifier
in: path
value: $inputs.graphIdentifier
successCriteria:
- condition: $statusCode == 200
outputs:
currentStatus: $response.body#/status
- stepId: ResetGraph
description: Empty all data from the graph. performCleanData must be true to confirm
the destructive reset.
operationId: ResetGraph
parameters:
- name: graphIdentifier
in: path
value: $inputs.graphIdentifier
requestBody:
contentType: application/json
payload:
performCleanData: true
successCriteria:
- condition: $statusCode == 200
outputs:
resetStatus: $response.body#/status
- stepId: pollGraph
description: Poll the graph. Retry while the status is RESETTING and finish once
it returns to AVAILABLE.
operationId: GetGraph
parameters:
- name: graphIdentifier
in: path
value: $inputs.graphIdentifier
successCriteria:
- condition: $statusCode == 200
outputs:
status: $response.body#/status
onSuccess:
- name: resetInProgress
type: goto
criteria:
- condition: $response.body#/status == 'RESETTING'
stepId: pollGraph
x-poll-interval-seconds: 20
- name: resetDone
type: end
criteria:
- condition: $response.body#/status == 'AVAILABLE'
outputs:
graphIdentifier: $inputs.graphIdentifier
status: $steps.pollGraph.outputs.status
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.