diff --git a/openapi/emulators/localstack-spec-latest.yml b/openapi/emulators/localstack-spec-latest.yml index dce65da..2104e30 100644 --- a/openapi/emulators/localstack-spec-latest.yml +++ b/openapi/emulators/localstack-spec-latest.yml @@ -12,6 +12,9 @@ info: externalDocs: description: LocalStack Documentation url: https://docs.localstack.cloud +tags: +- description: Available in LocalStack Pro + name: pro servers: - url: http://{host}:{port} variables: @@ -20,104 +23,59 @@ servers: host: default: localhost.localstack.cloud components: + parameters: + ServiceName: + description: Service name + in: path + name: service + required: true + schema: + type: string + SesIdFilter: + description: Filter for the `id` field in SES message + in: query + name: id + required: false + schema: + type: string + SesEmailFilter: + description: Filter for the `source` field in SES message + in: query + name: email + required: false + schema: + type: string + SnsAccountId: + description: '`accountId` field of the resource' + in: query + name: accountId + required: false + schema: + default: '000000000000' + type: string + SnsEndpointArn: + description: '`endpointArn` field of the resource' + in: query + name: endpointArn + required: false + schema: + type: string + SnsPhoneNumber: + description: '`phoneNumber` field of the resource' + in: query + name: phoneNumber + required: false + schema: + type: string + SnsRegion: + description: '`region` field of the resource' + in: query + name: region + required: false + schema: + default: us-east-1 + type: string schemas: - InitScripts: - additionalProperties: false - properties: - completed: - additionalProperties: false - properties: - BOOT: - type: boolean - READY: - type: boolean - SHUTDOWN: - type: boolean - START: - type: boolean - required: - - BOOT - - START - - READY - - SHUTDOWN - type: object - scripts: - items: - additionalProperties: false - properties: - name: - type: string - stage: - type: string - state: - type: string - required: - - stage - - name - - state - type: object - type: array - required: - - completed - - scripts - type: object - InitScriptsStage: - additionalProperties: false - properties: - completed: - type: boolean - scripts: - items: - additionalProperties: false - properties: - name: - type: string - stage: - type: string - state: - type: string - required: - - stage - - name - - state - type: object - type: array - required: - - completed - - scripts - type: object - SessionInfo: - additionalProperties: false - properties: - edition: - type: string - is_docker: - type: boolean - is_license_activated: - type: boolean - machine_id: - type: string - server_time_utc: - type: string - session_id: - type: string - system: - type: string - uptime: - type: integer - version: - type: string - required: - - version - - edition - - is_license_activated - - session_id - - machine_id - - system - - is_docker - - server_time_utc - - uptime - type: object StateResult: type: object description: The result of a state save operation. @@ -929,127 +887,241 @@ components: required: - metrics type: object - parameters: - ServiceName: - description: Service name - in: path - name: service - required: true - schema: - type: string - SesIdFilter: - description: Filter for the `id` field in SES message - in: query - name: id - required: false - schema: - type: string - SesEmailFilter: - description: Filter for the `source` field in SES message - in: query - name: email - required: false - schema: - type: string - SnsAccountId: - description: '`accountId` field of the resource' - in: query - name: accountId - required: false - schema: - default: '000000000000' - type: string - SnsEndpointArn: - description: '`endpointArn` field of the resource' - in: query - name: endpointArn - required: false - schema: - type: string - SnsPhoneNumber: - description: '`phoneNumber` field of the resource' - in: query - name: phoneNumber - required: false - schema: - type: string - SnsRegion: - description: '`region` field of the resource' - in: query - name: region - required: false - schema: - default: us-east-1 - type: string -paths: - /_localstack/config: - get: - description: Get current LocalStack configuration - operationId: get_config - tags: - - localstack - responses: - '200': - content: - application/json: - schema: - type: object - description: Current LocalStack configuration - '404': - description: Not found - post: - description: Configuration option to update with new value - operationId: update_config_option - tags: - - localstack - requestBody: - content: - application/json: - schema: - additionalProperties: false - properties: - value: - type: - - number - - string - variable: - pattern: ^[_a-zA-Z0-9]+$ - type: string - required: - - variable - - value - type: object - required: true - responses: - '200': - content: - application/json: - schema: - additionalProperties: false - properties: - value: - type: - - number - - string - variable: - type: string - required: - - variable - - value - type: object - description: Configuration option is updated + InitScripts: + additionalProperties: false + properties: + completed: + additionalProperties: false + properties: + BOOT: + type: boolean + READY: + type: boolean + SHUTDOWN: + type: boolean + START: + type: boolean + required: + - BOOT + - START + - READY + - SHUTDOWN + type: object + scripts: + items: + additionalProperties: false + properties: + name: + type: string + stage: + type: string + state: + type: string + required: + - stage + - name + - state + type: object + type: array + required: + - completed + - scripts + type: object + InitScriptsStage: + additionalProperties: false + properties: + completed: + type: boolean + scripts: + items: + additionalProperties: false + properties: + name: + type: string + stage: + type: string + state: + type: string + required: + - stage + - name + - state + type: object + type: array + required: + - completed + - scripts + type: object + SessionInfo: + additionalProperties: false + properties: + edition: + type: string + is_docker: + type: boolean + is_license_activated: + type: boolean + machine_id: + type: string + server_time_utc: + type: string + session_id: + type: string + system: + type: string + uptime: + type: integer + version: + type: string + required: + - version + - edition + - is_license_activated + - session_id + - machine_id + - system + - is_docker + - server_time_utc + - uptime + type: object +paths: + /_aws/bedrock/presets: + put: + operationId: put_bedrock_preset + tags: + - aws + description: | + Set or replace a response for an exact prompt in BEDROCK_INFERENCE_MODE=preset. + Presets are shared by all accounts, regions, and models, and are kept in memory + until shutdown. An unmatched prompt returns "No preset response configured for + this prompt." as the response text. + For chat requests the prompt is the system and message text blocks joined with + spaces in order. For InvokeModel requests with a prompt field, its value is used. + Preset text is returned in full regardless of the requested token limit. + requestBody: + required: true + content: + application/json: + schema: + type: object + additionalProperties: false + required: + - prompt + - response + properties: + prompt: + type: string + description: Exact prompt to match. + response: + type: string + responses: + '204': + description: Preset saved + '400': + description: Invalid request + delete: + operationId: delete_bedrock_preset + tags: + - aws + description: | + Delete a prompt's preset response. Deleting a missing preset succeeds. + requestBody: + required: true + content: + application/json: + schema: + type: object + additionalProperties: false + required: + - prompt + properties: + prompt: + type: string + description: Exact prompt to delete. + responses: + '204': + description: Preset deleted '400': + description: Invalid request + /_aws/cloudwatch/metrics/raw: + get: + description: Retrieve CloudWatch metrics + operationId: get_cloudwatch_metrics + tags: + - aws + responses: + '200': content: - application/json: {} - description: Bad request + application/json: + schema: + $ref: '#/components/schemas/CloudWatchMetrics' + description: CloudWatch metrics + /_aws/dynamodb/expired: + delete: + description: Delete expired items from TTL-enabled DynamoDB tables + operationId: delete_ddb_expired_items + tags: + - aws + responses: + '200': + content: + application/json: + schema: + additionalProperties: false + properties: + ExpiredItems: + description: Number of expired items that were deleted + type: integer + required: + - ExpiredItems + type: object + description: Operation was successful + /_aws/events/rules/{rule_arn}/trigger: + get: + description: Trigger a scheduled EventBridge rule + operationId: trigger_event_bridge_rule + tags: + - aws + parameters: + - description: EventBridge rule ARN + in: path + name: rule_arn + required: true + schema: + type: string + responses: + '200': + description: EventBridge rule was triggered '404': description: Not found - /_localstack/diagnose: + /_aws/lambda/init: get: - description: Get diagnostics report - operationId: get_diagnostics + description: Retrieve Lambda runtime init binary + operationId: get_lambda_init tags: - - localstack + - aws + responses: + '200': + content: + application/octet-stream: {} + description: Lambda runtime init binary + /_aws/lambda/runtimes: + get: + description: List available Lambda runtimes + operationId: get_lambda_runtimes + tags: + - aws + parameters: + - in: query + name: filter + required: false + schema: + default: supported + enum: + - all + - deprecated + - supported + type: string responses: '200': content: @@ -1057,109 +1129,117 @@ paths: schema: additionalProperties: false properties: - config: - type: object - docker-dependent-image-hashes: - type: object - docker-dependent-image-hosts: - type: object - docker-inspect: - type: object - file-tree: - type: object - important-endpoints: - type: object - info: - $ref: '#/components/schemas/SessionInfo' - logs: - additionalProperties: false - properties: - docker: - type: string - required: - - docker - type: object - services: - type: object - usage: - type: object - version: - additionalProperties: false - properties: - host: - additionalProperties: false - properties: - kernel: - type: string - required: - - kernel - type: object - image-version: - additionalProperties: false - properties: - created: - type: string - id: - type: string - sha256: - type: string - tag: - type: string - required: - - id - - sha256 - - tag - - created - type: object - localstack-version: - additionalProperties: false - properties: - build-date: - type: - - string - - 'null' - build-git-hash: - type: - - string - - 'null' - build-version: - type: - - string - - 'null' - required: - - build-date - - build-git-hash - - build-version - type: object - required: - - image-version - - localstack-version - - host - type: object + Runtimes: + items: + type: string + type: array required: - - version - - info - - services - - config - - docker-inspect - - docker-dependent-image-hosts - - file-tree - - important-endpoints - - logs - - usage + - Runtimes type: object - description: Diagnostics report - /_localstack/health: + description: Available Lambda runtimes + /_aws/ses: + delete: + description: Discard sent SES messages + operationId: discard_ses_messages + tags: + - aws + parameters: + - $ref: '#/components/parameters/SesIdFilter' + responses: + '204': + description: Message was successfully discarded get: - description: Get available LocalStack features and AWS services - operationId: get_features_and_services + description: Retrieve sent SES messages + operationId: get_ses_messages tags: - - localstack + - aws parameters: - - allowEmptyValue: true - in: query - name: reload - required: false + - $ref: '#/components/parameters/SesIdFilter' + - $ref: '#/components/parameters/SesEmailFilter' + responses: + '200': + content: + application/json: + schema: + additionalProperties: false + properties: + messages: + items: + $ref: '#/components/schemas/SesSentEmail' + type: array + required: + - messages + type: object + description: List of sent messages + /_aws/sns/platform-endpoint-messages: + delete: + description: Discard the messages published to a platform endpoint via SNS + operationId: discard_sns_endpoint_messages + tags: + - aws + parameters: + - $ref: '#/components/parameters/SnsAccountId' + - $ref: '#/components/parameters/SnsRegion' + - $ref: '#/components/parameters/SnsEndpointArn' + responses: + '204': + description: Platform endpoint message was discarded + get: + description: Retrieve the messages sent to a platform endpoint via SNS + operationId: get_sns_endpoint_messages + tags: + - aws + parameters: + - $ref: '#/components/parameters/SnsAccountId' + - $ref: '#/components/parameters/SnsRegion' + - $ref: '#/components/parameters/SnsEndpointArn' + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/SNSPlatformEndpointResponse' + description: SNS messages via retrospective access + /_aws/sns/sms-messages: + delete: + description: Discard SNS SMS messages + operationId: discard_sns_sms_messages + tags: + - aws + parameters: + - $ref: '#/components/parameters/SnsAccountId' + - $ref: '#/components/parameters/SnsRegion' + - $ref: '#/components/parameters/SnsPhoneNumber' + responses: + '204': + description: SMS message was discarded + get: + description: Retrieve SNS SMS messages + operationId: get_sns_sms_messages + tags: + - aws + parameters: + - $ref: '#/components/parameters/SnsAccountId' + - $ref: '#/components/parameters/SnsRegion' + - $ref: '#/components/parameters/SnsPhoneNumber' + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/SNSSMSMessagesResponse' + description: SNS messages via retrospective access + /_aws/sns/subscription-tokens/{subscription_arn}: + get: + description: Retrieve SNS subscription token for confirmation + operationId: get_sns_subscription_token + tags: + - aws + parameters: + - description: '`subscriptionArn` resource of subscription token' + in: path + name: subscription_arn + required: true schema: type: string responses: @@ -1169,1580 +1249,1503 @@ paths: schema: additionalProperties: false properties: - edition: - enum: - - community - - pro - - enterprise - - unknown + subscription_arn: type: string - features: - type: object - services: - type: object - version: + subscription_token: type: string required: - - edition - - services - - version + - subscription_token + - subscription_arn type: object - description: Available LocalStack features and AWS services - head: + description: Subscription token + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/SnsSubscriptionTokenError' + description: Bad request + '404': + content: + application/json: + schema: + $ref: '#/components/schemas/SnsSubscriptionTokenError' + description: Not found + /_aws/sqs/messages: + get: + description: List SQS queue messages without side effects + operationId: list_all_sqs_messages tags: - - localstack - operationId: health + - aws + parameters: + - description: SQS queue URL + in: query + name: QueueUrl + required: false + schema: + type: string responses: '200': content: - text/plain: {} - description: '' + text/xml: + schema: + $ref: '#/components/schemas/ReceiveMessageResult' + application/json: + schema: + $ref: '#/components/schemas/ReceiveMessageResult' + description: SQS queue messages + '400': + content: + text/xml: {} + application/json: {} + description: Bad request + '404': + content: + text/xml: {} + application/json: {} + description: Not found post: - description: Restart or terminate LocalStack session - operationId: manage_session - tags: - - localstack + summary: Retrieves one or more messages from the specified queue. + description: | + This API receives messages from an SQS queue. + https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html#API_ReceiveMessage_ResponseSyntax + operationId: receive_message requestBody: + required: true content: + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ReceiveMessageRequest' application/json: schema: - additionalProperties: false - properties: - action: - enum: - - restart - - kill - type: string - required: - - action - type: object - description: Action to perform - required: true + $ref: '#/components/schemas/ReceiveMessageRequest' responses: '200': content: - text/plain: {} - description: Action was successful + text/xml: {} + application/json: + schema: + $ref: '#/components/schemas/ReceiveMessageResult' + description: SQS queue messages '400': content: - text/plain: {} + text/xml: {} + application/json: {} description: Bad request - put: - description: Store arbitrary data to in-memory state - operationId: store_data + '404': + content: + text/xml: {} + application/json: {} + description: Not found + /_aws/sqs/messages/{region}/{account_id}/{queue_name}: + get: + description: List SQS messages without side effects + operationId: list_sqs_messages tags: - - localstack - requestBody: - content: - application/json: - schema: - type: object - description: Data to save + - aws + parameters: + - description: SQS queue region + in: path + name: region + required: true + schema: + type: string + - description: SQS queue account ID + in: path + name: account_id + required: true + schema: + type: string + - description: SQS queue name + in: path + name: queue_name + required: true + schema: + type: string responses: '200': content: + text/xml: {} application/json: schema: - additionalProperties: false - properties: - status: - type: string - required: - - status - type: object - description: Data was saved - /_localstack/info: + $ref: '#/components/schemas/ReceiveMessageResult' + description: SQS queue messages + '400': + content: + text/xml: {} + application/json: {} + description: Bad request + '404': + content: + text/xml: {} + application/json: {} + description: Not found + /_aws/cognito-idp/forgotPassword: get: - description: Get information about the current LocalStack session - operationId: get_session_info + description: Cognito forgot password endpoint + externalDocs: + url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html tags: - - localstack + - pro + - aws + post: + description: Cognito forgot password endpoint + externalDocs: + url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html + tags: + - pro + - aws + /_aws/cognito-idp/login: + get: + description: Cognito login endpoint + externalDocs: + url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html + tags: + - pro + - aws + post: + description: Cognito login endpoint + externalDocs: + url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html + tags: + - pro + - aws + /_aws/cognito-idp/logout: + get: + description: Cognito logout endpoint + externalDocs: + url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html + tags: + - pro + - aws + post: + description: Cognito logout endpoint + externalDocs: + url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html + tags: + - pro + - aws + /_aws/cognito-idp/oauth2/authorize: + get: + description: Cognito OAuth 2.0 authorization endpoint + externalDocs: + url: https://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html + tags: + - pro + - aws + /_aws/cognito-idp/oauth2/token: + post: + description: Cognito OAuth 2.0 token endpoint + externalDocs: + url: https://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html + tags: + - pro + - aws + /_aws/cognito-idp/oauth2/revoke: + post: + description: Cognito OAuth 2.0 token revocation endpoint + externalDocs: + url: https://docs.aws.amazon.com/cognito/latest/developerguide/revocation-endpoint.html + tags: + - pro + - aws + /_aws/cognito-idp/oauth2/userInfo: + get: + description: Cognito OpenID Connect userInfo endpoint + externalDocs: + url: https://docs.aws.amazon.com/cognito/latest/developerguide/userinfo-endpoint.html + tags: + - pro + - aws + /_aws/cognito-idp/saml2/idpresponse: + get: + description: Cognito SAML 2.0 idpresponse endpoint + externalDocs: + url: https://docs.aws.amazon.com/cognito/latest/developerguide/saml2-idpresponse-endpoint.html + tags: + - pro + - aws + post: + description: Cognito SAML 2.0 idpresponse endpoint + externalDocs: + url: https://docs.aws.amazon.com/cognito/latest/developerguide/saml2-idpresponse-endpoint.html + tags: + - pro + - aws + /_aws/cognito-idp/signup: + get: + description: Cognito signup endpoint + externalDocs: + url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html + tags: + - pro + - aws + post: + description: Cognito signup endpoint + externalDocs: + url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html + tags: + - pro + - aws + /_aws/iam/config: + get: + description: IAM config endpoint + tags: + - pro + - aws responses: - '200': + 200: + description: Successful retrieval of configuration content: application/json: schema: - $ref: '#/components/schemas/SessionInfo' - description: Information about the current LocalStack session - /_localstack/init: - get: - description: Get information about init scripts - operationId: get_init_script_info + $ref: '#/components/schemas/IamConfig' + post: + description: IAM config endpoint tags: - - localstack + - pro + - aws + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/IamConfig' responses: - '200': + 200: + description: Successful setting of the new configuration. + 400: + description: Bad request. + /_aws/iam/check-actions-allowed: + post: + description: Test if the given actions are allowed on the specific resource + tags: + - pro + - aws + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CheckActionsRequest' + responses: + 200: + description: Successful test. It is still required to inspect the response + as it can be denied content: application/json: schema: - $ref: '#/components/schemas/InitScripts' - description: Information about init scripts - /_localstack/init/{stage}: + $ref: '#/components/schemas/CheckActionsResponse' + /_aws/iot/LocalStackIoTRootCA.pem: get: - description: Get information about init scripts in a specific stage - operationId: get_init_script_info_stage + description: Retrieve certificate for LocalStack IoT root certificate authority tags: - - localstack + - pro + - aws + /_aws/s3files/nfs-endpoints: + get: + description: Retrieve where an S3 Files file system is served over NFS + tags: + - pro + - aws parameters: - - in: path - name: stage + - name: fileSystemArn + in: query required: true + description: ARN of the S3 Files file system + schema: + type: string + - name: accessPointArn + in: query + required: false + description: ARN of an access point to resolve instead of the file system + itself schema: type: string responses: '200': + description: The NFS endpoint serving the file system or access point content: application/json: schema: - $ref: '#/components/schemas/InitScriptsStage' - description: Information about init scripts in a specific stage + type: object + additionalProperties: false + required: + - address + - port + - exportPath + properties: + address: + type: string + description: Address of the emulator, routable from the Docker + daemon. + port: + type: integer + description: Port of the listener serving the file system or access + point. + exportPath: + type: string + description: Path the export is rooted at. + '400': + description: fileSystemArn was not given '404': + description: The file system does not exist, has no mount target, or is + not being served + /_localstack/chaos/effects: + post: + summary: Configure network effects + description: Network effects include things like latency, jitter, bandwidth + throttling etc. which do not lead to an application-level fault/exception. + operationId: set_network_effects + tags: + - pro + - chaos + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkEffectsConfig' + responses: + 200: + description: Successfully configured network effects content: - text/plain: + application/json: schema: - type: string - description: Stage not found - /_localstack/plugins: + $ref: '#/components/schemas/NetworkEffectsConfig' + 400: + description: Invalid request get: - description: '' - operationId: get_plugins + summary: Get current network effects configuration tags: - - localstack + - pro + - chaos + operationId: get_network_effects + description: Retrieve the current configuration for network latency effects + in Localstack Chaos. responses: - '200': + 200: + description: Successful retrieval of configuration content: - application/json: {} - description: '' - /_localstack/usage: + application/json: + schema: + $ref: '#/components/schemas/NetworkEffectsConfig' + /_localstack/chaos/faults: get: - description: '' - operationId: get_usage + summary: Get the current fault configuration + description: Retrieve the list of currently configured fault rules. + operationId: get_fault_rules tags: - - localstack + - pro + - chaos responses: - '200': + 200: + description: Successful retrieval of current configuration. content: - application/json: {} - description: '' - /_aws/bedrock/presets: - put: - operationId: put_bedrock_preset + application/json: + schema: + type: array + description: List of configured rules for faults. + uniqueItems: true + items: + $ref: '#/components/schemas/FaultRule' + post: + summary: Set a new fault configuration + description: Set a new set of fault rules. Overwrite the previous ones. + operationId: set_fault_rules tags: - - aws - description: | - Set or replace a response for an exact prompt in BEDROCK_INFERENCE_MODE=preset. - Presets are shared by all accounts, regions, and models, and are kept in memory - until shutdown. An unmatched prompt returns "No preset response configured for - this prompt." as the response text. - For chat requests the prompt is the system and message text blocks joined with - spaces in order. For InvokeModel requests with a prompt field, its value is used. - Preset text is returned in full regardless of the requested token limit. + - pro + - chaos requestBody: required: true content: application/json: schema: - type: object - additionalProperties: false - required: - - prompt - - response - properties: - prompt: - type: string - description: Exact prompt to match. - response: - type: string + type: array + description: List of rules for faults. + uniqueItems: true + items: + $ref: '#/components/schemas/FaultRule' responses: - '204': - description: Preset saved - '400': + 200: + description: Successful retrieval of current configuration. + content: + application/json: + schema: + type: array + description: List of configured rules for faults. + uniqueItems: true + items: + $ref: '#/components/schemas/FaultRule' + 400: description: Invalid request - delete: - operationId: delete_bedrock_preset + patch: + summary: Add a new set of rules to the current configuration + description: Add new rules to the existing fault configuration. + operationId: add_fault_rules tags: - - aws - description: | - Delete a prompt's preset response. Deleting a missing preset succeeds. + - pro + - chaos requestBody: required: true content: application/json: schema: - type: object - additionalProperties: false - required: - - prompt - properties: - prompt: - type: string - description: Exact prompt to delete. - responses: - '204': - description: Preset deleted - '400': - description: Invalid request - /_aws/cloudwatch/metrics/raw: - get: - description: Retrieve CloudWatch metrics - operationId: get_cloudwatch_metrics - tags: - - aws + type: array + description: List of configured rules for faults to be added. + uniqueItems: true + items: + $ref: '#/components/schemas/FaultRule' responses: - '200': + 200: + description: Successful retrieval of current configuration. content: application/json: schema: - $ref: '#/components/schemas/CloudWatchMetrics' - description: CloudWatch metrics - /_aws/dynamodb/expired: + type: array + description: List of configured rules for faults. + uniqueItems: true + items: + $ref: '#/components/schemas/FaultRule' delete: - description: Delete expired items from TTL-enabled DynamoDB tables - operationId: delete_ddb_expired_items - tags: - - aws - responses: - '200': - content: - application/json: - schema: - additionalProperties: false - properties: - ExpiredItems: - description: Number of expired items that were deleted - type: integer - required: - - ExpiredItems - type: object - description: Operation was successful - /_aws/events/rules/{rule_arn}/trigger: - get: - description: Trigger a scheduled EventBridge rule - operationId: trigger_event_bridge_rule - tags: - - aws - parameters: - - description: EventBridge rule ARN - in: path - name: rule_arn - required: true - schema: - type: string - responses: - '200': - description: EventBridge rule was triggered - '404': - description: Not found - /_aws/lambda/init: - get: - description: Retrieve Lambda runtime init binary - operationId: get_lambda_init + summary: Delete a set of rules from the configuration + description: Remove rules from the fault configuration. + operationId: delete_fault_rules tags: - - aws + - pro + - chaos + requestBody: + required: true + content: + application/json: + schema: + type: array + description: List of configured rules for faults. + uniqueItems: true + items: + $ref: '#/components/schemas/FaultRule' responses: - '200': + 200: + description: Successful retrieval of current configuration. content: - application/octet-stream: {} - description: Lambda runtime init binary - /_aws/lambda/runtimes: + application/json: + schema: + type: array + description: List of configured rules for faults. + uniqueItems: true + items: + $ref: '#/components/schemas/FaultRule' + 400: + description: Invalid request + /_localstack/cloudformation/deploy: get: - description: List available Lambda runtimes - operationId: get_lambda_runtimes - tags: - - aws + description: UI to deploy and manage your CloudFormation stacks using public + templates parameters: - - in: query - name: filter + - name: templateURL + in: query required: false + description: URL to a CloudFormation template (JSON or YAML). schema: - default: supported - enum: - - all - - deprecated - - supported type: string + format: uri responses: + '404': + description: Template not found. '200': + description: HTML page for CloudFormation deployment. content: - application/json: + text/html: schema: - additionalProperties: false - properties: - Runtimes: - items: - type: string - type: array - required: - - Runtimes - type: object - description: Available Lambda runtimes - /_aws/ses: - delete: - description: Discard sent SES messages - operationId: discard_ses_messages - tags: - - aws - parameters: - - $ref: '#/components/parameters/SesIdFilter' - responses: - '204': - description: Message was successfully discarded + type: string + /_localstack/pods: get: - description: Retrieve sent SES messages - operationId: get_ses_messages + description: List cloud pods + operationId: listPods tags: - - aws + - pro + - pods parameters: - - $ref: '#/components/parameters/SesIdFilter' - - $ref: '#/components/parameters/SesEmailFilter' + - description: User ID of the pod creator. Special values like `me` are accepted. + in: query + name: creator + required: false + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RemoteConfig' responses: '200': content: application/json: schema: - additionalProperties: false - properties: - messages: - items: - $ref: '#/components/schemas/SesSentEmail' - type: array - required: - - messages - type: object - description: List of sent messages - /_aws/sns/platform-endpoint-messages: - delete: - description: Discard the messages published to a platform endpoint via SNS - operationId: discard_sns_endpoint_messages - tags: - - aws - parameters: - - $ref: '#/components/parameters/SnsAccountId' - - $ref: '#/components/parameters/SnsRegion' - - $ref: '#/components/parameters/SnsEndpointArn' - responses: - '204': - description: Platform endpoint message was discarded - get: - description: Retrieve the messages sent to a platform endpoint via SNS - operationId: get_sns_endpoint_messages + $ref: '#/components/schemas/PodList' + description: The list of Cloud Pods associated with a given identity + '400': + description: Unsupported Cloud Pod remote. + post: + description: Loads a pod state from a zip file and restores its services. tags: - - aws + - pro + - pods parameters: - - $ref: '#/components/parameters/SnsAccountId' - - $ref: '#/components/parameters/SnsRegion' - - $ref: '#/components/parameters/SnsEndpointArn' + - in: query + name: merge + description: Merge strategy to use when loading the pod + required: false + schema: + type: string + requestBody: + required: true + content: + multipart/form-data: + schema: + type: object + properties: + pod: + type: string + format: binary + required: + - pod + application/octet-stream: + schema: + type: string + format: binary responses: - '200': + '201': + description: Pod state loaded successfully. + headers: + Content-Length: + description: Length of the pod in bytes. + schema: + type: integer + '400': + description: Bad request. + '422': content: - application/json: + text/plain: schema: - $ref: '#/components/schemas/SNSPlatformEndpointResponse' - description: SNS messages via retrospective access - /_aws/sns/sms-messages: - delete: - description: Discard SNS SMS messages - operationId: discard_sns_sms_messages - tags: - - aws - parameters: - - $ref: '#/components/parameters/SnsAccountId' - - $ref: '#/components/parameters/SnsRegion' - - $ref: '#/components/parameters/SnsPhoneNumber' - responses: - '204': - description: SMS message was discarded + type: string + description: The pod state is incompatible with the current LocalStack version. + /_localstack/pods/environment: get: - description: Retrieve SNS SMS messages - operationId: get_sns_sms_messages + description: | + Retrieves some information about the current environment, like LocalStack and Moto versions. tags: - - aws - parameters: - - $ref: '#/components/parameters/SnsAccountId' - - $ref: '#/components/parameters/SnsRegion' - - $ref: '#/components/parameters/SnsPhoneNumber' + - pro + - pods responses: '200': + description: A JSON object containing environment version information. content: application/json: schema: - $ref: '#/components/schemas/SNSSMSMessagesResponse' - description: SNS messages via retrospective access - /_aws/sns/subscription-tokens/{subscription_arn}: + type: object + properties: + localstack_version: + type: string + description: Version of LocalStack. + localstack_ext_version: + type: string + description: Version of LocalStack Pro. + moto_ext_version: + type: string + description: Version of Moto used within LocalStack. + pro: + type: boolean + description: Indicates whether LocalStack PRO is activated. + /_localstack/pods/remotes: get: - description: Retrieve SNS subscription token for confirmation - operationId: get_sns_subscription_token + description: Retrieves a list of all configured remotes. + operationId: list_remotes tags: - - aws - parameters: - - description: '`subscriptionArn` resource of subscription token' - in: path - name: subscription_arn - required: true - schema: - type: string + - pro + - pods responses: '200': + description: A list of remotes. content: application/json: schema: - additionalProperties: false - properties: - subscription_arn: - type: string - subscription_token: - type: string - required: - - subscription_token - - subscription_arn type: object - description: Subscription token - '400': - content: - application/json: - schema: - $ref: '#/components/schemas/SnsSubscriptionTokenError' - description: Bad request - '404': - content: - application/json: - schema: - $ref: '#/components/schemas/SnsSubscriptionTokenError' - description: Not found - /_aws/sqs/messages: + properties: + remotes: + type: array + items: + $ref: '#/components/schemas/PodRemote' + /_localstack/pods/remotes/{name}: get: - description: List SQS queue messages without side effects - operationId: list_all_sqs_messages + summary: Get a specific remote + description: Retrieves information about a specific remote by name. + operationId: get_remote tags: - - aws + - pro + - pods parameters: - - description: SQS queue URL - in: query - name: QueueUrl - required: false + - name: name + in: path + required: true + description: The name of the remote. schema: type: string responses: '200': + description: Details of the remote. content: - text/xml: - schema: - $ref: '#/components/schemas/ReceiveMessageResult' application/json: schema: - $ref: '#/components/schemas/ReceiveMessageResult' - description: SQS queue messages - '400': - content: - text/xml: {} - application/json: {} - description: Bad request + $ref: '#/components/schemas/PodRemote' '404': - content: - text/xml: {} - application/json: {} - description: Not found + description: Remote not found post: - summary: Retrieves one or more messages from the specified queue. - description: | - This API receives messages from an SQS queue. - https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html#API_ReceiveMessage_ResponseSyntax - operationId: receive_message + summary: Create a new remote + description: Creates a new remote with the specified name and configuration. + operationId: create_remote + tags: + - pro + - pods + parameters: + - name: name + in: path + required: true + description: The name of the new remote. + schema: + type: string requestBody: required: true content: - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/ReceiveMessageRequest' application/json: schema: - $ref: '#/components/schemas/ReceiveMessageRequest' + type: object + properties: + protocols: + type: array + items: + type: string + description: Supported protocols of the remote. + remote_url: + type: string + description: URL of the remote server. responses: '200': - content: - text/xml: {} - application/json: - schema: - $ref: '#/components/schemas/ReceiveMessageResult' - description: SQS queue messages + description: Remote created successfully. '400': - content: - text/xml: {} - application/json: {} - description: Bad request - '404': - content: - text/xml: {} - application/json: {} - description: Not found - /_aws/sqs/messages/{region}/{account_id}/{queue_name}: - get: - description: List SQS messages without side effects - operationId: list_sqs_messages + description: Unsupported Cloud Pod remote, or the remote name is reserved + (`default`). + delete: + summary: Delete a remote + description: Deletes a remote with the specified name. + operationId: delete_remote tags: - - aws + - pro + - pods parameters: - - description: SQS queue region - in: path - name: region - required: true - schema: - type: string - - description: SQS queue account ID - in: path - name: account_id - required: true - schema: - type: string - - description: SQS queue name + - name: name in: path - name: queue_name required: true + description: The name of the remote to delete. schema: type: string responses: '200': - content: - text/xml: {} - application/json: - schema: - $ref: '#/components/schemas/ReceiveMessageResult' - description: SQS queue messages + description: Remote deleted successfully. '400': - content: - text/xml: {} - application/json: {} - description: Bad request - '404': - content: - text/xml: {} - application/json: {} - description: Not found - /_aws/cognito-idp/forgotPassword: - get: - description: Cognito forgot password endpoint - externalDocs: - url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html - tags: - - pro - - aws - post: - description: Cognito forgot password endpoint - externalDocs: - url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html - tags: - - pro - - aws - /_aws/cognito-idp/login: - get: - description: Cognito login endpoint - externalDocs: - url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html - tags: - - pro - - aws - post: - description: Cognito login endpoint - externalDocs: - url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html - tags: - - pro - - aws - /_aws/cognito-idp/logout: - get: - description: Cognito logout endpoint - externalDocs: - url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html - tags: - - pro - - aws - post: - description: Cognito logout endpoint - externalDocs: - url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html - tags: - - pro - - aws - /_aws/cognito-idp/oauth2/authorize: - get: - description: Cognito OAuth 2.0 authorization endpoint - externalDocs: - url: https://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html - tags: - - pro - - aws - /_aws/cognito-idp/oauth2/token: - post: - description: Cognito OAuth 2.0 token endpoint - externalDocs: - url: https://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html - tags: - - pro - - aws - /_aws/cognito-idp/oauth2/revoke: - post: - description: Cognito OAuth 2.0 token revocation endpoint - externalDocs: - url: https://docs.aws.amazon.com/cognito/latest/developerguide/revocation-endpoint.html - tags: - - pro - - aws - /_aws/cognito-idp/oauth2/userInfo: - get: - description: Cognito OpenID Connect userInfo endpoint - externalDocs: - url: https://docs.aws.amazon.com/cognito/latest/developerguide/userinfo-endpoint.html - tags: - - pro - - aws - /_aws/cognito-idp/saml2/idpresponse: - get: - description: Cognito SAML 2.0 idpresponse endpoint - externalDocs: - url: https://docs.aws.amazon.com/cognito/latest/developerguide/saml2-idpresponse-endpoint.html - tags: - - pro - - aws - post: - description: Cognito SAML 2.0 idpresponse endpoint - externalDocs: - url: https://docs.aws.amazon.com/cognito/latest/developerguide/saml2-idpresponse-endpoint.html - tags: - - pro - - aws - /_aws/cognito-idp/signup: - get: - description: Cognito signup endpoint - externalDocs: - url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html - tags: - - pro - - aws - post: - description: Cognito signup endpoint - externalDocs: - url: https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-UI-endpoints.html - tags: - - pro - - aws - /_aws/iam/config: + description: The remote name is reserved (`default`) and cannot be deleted. + /_localstack/pods/state: get: - description: IAM config endpoint + description: Exports the current state of the LocalStack container into a zip + file. tags: - pro - - aws + - pods + parameters: + - name: pod_name + in: query + description: The name of the pod to save. Defaults to a unique name based + on the current timestamp. + required: false + schema: + type: string + - name: services + in: query + description: Comma-separated list of service names to include in the exported + state. + required: false + schema: + type: string responses: - 200: - description: Successful retrieval of configuration + '200': + description: A zip file containing the exported pod state. content: - application/json: + application/zip: schema: - $ref: '#/components/schemas/IamConfig' - post: - description: IAM config endpoint - tags: - - pro - - aws - requestBody: + type: string + format: binary + headers: + Content-Disposition: + description: Specifies that the response is an attachment. + schema: + type: string + Content-Length: + description: The size of the zip file in bytes. + schema: + type: integer + x-localstack-pod-services: + description: Comma-separated list of services included in the pod state. + schema: + type: string + x-localstack-pod-size: + description: The size of the pod file in bytes. + schema: + type: integer + /_localstack/pods/{name}: + delete: + operationId: deletePod + parameters: + - in: path + name: name required: true + schema: + type: string + - in: query + name: local + required: false + description: If true, the pod will be deleted only from the local storage + schema: + type: string + - in: header + name: x-localstack-state-secret + required: false + description: A secret token for authenticating the request against the platform + schema: + type: string + requestBody: content: application/json: schema: - $ref: '#/components/schemas/IamConfig' + $ref: '#/components/schemas/RemoteConfig' responses: - 200: - description: Successful setting of the new configuration. - 400: - description: Bad request. - /_aws/iam/check-actions-allowed: - post: - description: Test if the given actions are allowed on the specific resource + '200': + description: OK + '400': + description: Invalid request + '500': + description: Deletion failed tags: - pro - - aws - requestBody: + - pods + post: + description: Create and register a cloud pod version + operationId: savePod + parameters: + - description: Cloud pod name + in: path + name: name required: true + schema: + type: string + - in: query + name: local + required: false + schema: + type: boolean + - description: Cloud pod version + in: query + name: version + required: false + schema: + type: string + - in: header + name: x-localstack-state-secret + required: false + description: A secret token for authenticating the request against the platform + schema: + type: string + requestBody: content: application/json: schema: - $ref: '#/components/schemas/CheckActionsRequest' + $ref: '#/components/schemas/PodSaveRequest' responses: - 200: - description: Successful test. It is still required to inspect the response - as it can be denied + '200': content: - application/json: - schema: - $ref: '#/components/schemas/CheckActionsResponse' - /_aws/iot/LocalStackIoTRootCA.pem: - get: - description: Retrieve certificate for LocalStack IoT root certificate authority - tags: - - pro - - aws - /_aws/s3files/nfs-endpoints: - get: - description: Retrieve where an S3 Files file system is served over NFS + application/x-ndjson: {} + description: The response is a sequence of JSON events, according to the + schema, separated by a newline + '400': + description: Invalid request tags: - pro - - aws + - pods + put: + description: Load a cloud pod version + operationId: loadPod parameters: - - name: fileSystemArn - in: query + - in: path + description: The name of the Cloud Pod to be loaded into the runtime + name: name required: true - description: ARN of the S3 Files file system schema: type: string - - name: accessPointArn - in: query + - in: query + name: version + description: The version of the Cloud Pod to be loaded into the runtime required: false - description: ARN of an access point to resolve instead of the file system - itself schema: type: string + - in: query + name: merge + description: Merge strategy to use when loading the pod + required: false + schema: + type: string + - in: query + name: ignore_version_mismatches + description: Ignores version mismatches between the pod and the current LocalStack + version. + required: false + schema: + type: string + - in: header + name: x-localstack-state-secret + required: false + description: A secret token for authenticating the request against the platform + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RemoteConfig' responses: '200': - description: The NFS endpoint serving the file system or access point content: - application/json: - schema: - type: object - additionalProperties: false - required: - - address - - port - - exportPath - properties: - address: - type: string - description: Address of the emulator, routable from the Docker - daemon. - port: - type: integer - description: Port of the listener serving the file system or access - point. - exportPath: - type: string - description: Path the export is rooted at. + application/x-ndjson: {} + description: The response is a sequence of JSON events, according to the + schema, separated by a newline '400': - description: fileSystemArn was not given - '404': - description: The file system does not exist, has no mount target, or is - not being served - /_localstack/chaos/effects: - post: - summary: Configure network effects - description: Network effects include things like latency, jitter, bandwidth - throttling etc. which do not lead to an application-level fault/exception. - operationId: set_network_effects + description: Unsupported Cloud Pod remote. + '422': + content: + text/plain: + schema: + type: string + description: The pod state is incompatible with the current LocalStack version tags: - pro - - chaos - requestBody: + - pods + /_localstack/pods/{name}/versions: + get: + description: List versions for a cloud pod + operationId: getPodVersions + parameters: + - description: Cloud pod name + in: path + name: name required: true + schema: + type: string + - in: header + name: x-localstack-state-secret + required: false + description: A secret token for authenticating the request against the platform + schema: + type: string + requestBody: content: application/json: schema: - $ref: '#/components/schemas/NetworkEffectsConfig' - responses: - 200: - description: Successfully configured network effects - content: - application/json: - schema: - $ref: '#/components/schemas/NetworkEffectsConfig' - 400: - description: Invalid request - get: - summary: Get current network effects configuration - tags: - - pro - - chaos - operationId: get_network_effects - description: Retrieve the current configuration for network latency effects - in Localstack Chaos. + $ref: '#/components/schemas/RemoteConfig' responses: - 200: - description: Successful retrieval of configuration + '200': + description: A list of version details. content: application/json: schema: - $ref: '#/components/schemas/NetworkEffectsConfig' - /_localstack/chaos/faults: + $ref: '#/components/schemas/PodVersions' + '400': + description: Unsupported Cloud Pod remote. + tags: + - pro + - pods + /_localstack/replicator/jobs: get: - summary: Get the current fault configuration - description: Retrieve the list of currently configured fault rules. - operationId: get_fault_rules tags: - pro - - chaos + - replicator + description: List of replication jobs + operationId: listReplicationJobs responses: - 200: - description: Successful retrieval of current configuration. + '200': + description: List of replication jobs content: application/json: schema: + additionalProperties: false type: array - description: List of configured rules for faults. - uniqueItems: true items: - $ref: '#/components/schemas/FaultRule' + $ref: '#/components/schemas/ReplicationJob' post: - summary: Set a new fault configuration - description: Set a new set of fault rules. Overwrite the previous ones. - operationId: set_fault_rules tags: - pro - - chaos + - replicator + description: Submits a replication job + operationId: createReplicationJob requestBody: - required: true content: application/json: schema: - type: array - description: List of rules for faults. - uniqueItems: true - items: - $ref: '#/components/schemas/FaultRule' + $ref: '#/components/schemas/ReplicationRequest' responses: - 200: - description: Successful retrieval of current configuration. + '200': + description: Replication Job submitted content: application/json: schema: type: array - description: List of configured rules for faults. - uniqueItems: true items: - $ref: '#/components/schemas/FaultRule' - 400: + $ref: '#/components/schemas/ReplicationJob' + '400': description: Invalid request - patch: - summary: Add a new set of rules to the current configuration - description: Add new rules to the existing fault configuration. - operationId: add_fault_rules + '415': + description: Content-Type was not 'application/json' + /_localstack/replicator/jobs/{job_id}: + get: tags: - pro - - chaos - requestBody: + - replicator + description: Get replication job + operationId: GetReplicationJob + parameters: + - description: Id of replication job + in: path + name: job_id required: true - content: - application/json: - schema: - type: array - description: List of configured rules for faults to be added. - uniqueItems: true - items: - $ref: '#/components/schemas/FaultRule' + schema: + type: string responses: - 200: - description: Successful retrieval of current configuration. + '200': + description: Replication Job found content: application/json: schema: - type: array - description: List of configured rules for faults. - uniqueItems: true - items: - $ref: '#/components/schemas/FaultRule' - delete: - summary: Delete a set of rules from the configuration - description: Remove rules from the fault configuration. - operationId: delete_fault_rules + type: object + $ref: '#/components/schemas/ReplicationJob' + '404': + description: Replication job not found + content: + text/plain: + schema: + type: string + /_localstack/replicator/resources: + get: tags: - pro - - chaos - requestBody: - required: true - content: - application/json: - schema: - type: array - description: List of configured rules for faults. - uniqueItems: true - items: - $ref: '#/components/schemas/FaultRule' + - replicator + description: List supported resources for replication + operationId: listSupportedResources responses: - 200: - description: Successful retrieval of current configuration. + '200': + description: List of resources available for replication content: application/json: schema: + additionalProperties: false type: array - description: List of configured rules for faults. - uniqueItems: true items: - $ref: '#/components/schemas/FaultRule' - 400: - description: Invalid request - /_localstack/cloudformation/deploy: + $ref: '#/components/schemas/ReplicationSupportedResource' + /_localstack/stackinfo: get: - description: UI to deploy and manage your CloudFormation stacks using public - templates - parameters: - - name: templateURL - in: query - required: false - description: URL to a CloudFormation template (JSON or YAML). - schema: - type: string - format: uri + description: Collect information used to populate the dashboard info. responses: - '404': - description: Template not found. '200': - description: HTML page for CloudFormation deployment. content: - text/html: + application/json: schema: - type: string - /_localstack/pods: - get: - description: List cloud pods - operationId: listPods + additionalProperties: false + properties: + api_key: + type: string + duration_in_seconds: + type: integer + is_ci: + type: boolean + is_docker: + type: boolean + number_of_api_calls_error: + type: integer + number_of_api_calls_success: + type: integer + number_of_services: + type: integer + server_time_utc: + type: string + session_id: + type: string + system: + type: string + top_user_agent: + type: string + version: + type: string + required: + - server_time_utc + - session_id + - api_key + - system + - version + - is_ci + - is_docker + - duration_in_seconds + - top_user_agent + - number_of_services + - number_of_api_calls_success + - number_of_api_calls_error + type: object + description: '' tags: - pro - - pods - parameters: - - description: User ID of the pod creator. Special values like `me` are accepted. - in: query - name: creator - required: false - schema: - type: string + /_localstack/state/load: + post: + description: Load all service states. By default, it starts the services when + loading their states. requestBody: + required: false content: application/json: schema: - $ref: '#/components/schemas/RemoteConfig' + $ref: '#/components/schemas/LoadService' responses: '200': content: - application/json: + application/x-ndjson: schema: - $ref: '#/components/schemas/PodList' - description: The list of Cloud Pods associated with a given identity - '400': - description: Unsupported Cloud Pod remote. + $ref: '#/components/schemas/StateResult' + description: Successful or error is one of the status is 'error' + tags: + - pro + - state + /_localstack/state/reset: post: - description: Loads a pod state from a zip file and restores its services. + description: Reset all service states + responses: + '200': + description: Successful tags: - pro - - pods - parameters: - - in: query - name: merge - description: Merge strategy to use when loading the pod - required: false - schema: - type: string - requestBody: - required: true - content: - multipart/form-data: - schema: - type: object - properties: - pod: - type: string - format: binary - required: - - pod - application/octet-stream: - schema: - type: string - format: binary + - state + /_localstack/state/save: + post: + description: Save all service states responses: - '201': - description: Pod state loaded successfully. - headers: - Content-Length: - description: Length of the pod in bytes. - schema: - type: integer - '400': - description: Bad request. - '422': + '200': content: - text/plain: + application/x-ndjson: schema: - type: string - description: The pod state is incompatible with the current LocalStack version. - /_localstack/pods/environment: - get: - description: | - Retrieves some information about the current environment, like LocalStack and Moto versions. + $ref: '#/components/schemas/StateResult' + description: Successful or error is one of the status is 'error' tags: - pro - - pods + - state + /_localstack/state/{service}/load: + post: + description: Load a service state. By default, it starts the service, if the + service hasn't started yet. + parameters: + - $ref: '#/components/parameters/ServiceName' + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/LoadService' responses: '200': - description: A JSON object containing environment version information. + description: Successful + 500: + description: Failure content: application/json: schema: - type: object - properties: - localstack_version: - type: string - description: Version of LocalStack. - localstack_ext_version: - type: string - description: Version of LocalStack Pro. - moto_ext_version: - type: string - description: Version of Moto used within LocalStack. - pro: - type: boolean - description: Indicates whether LocalStack PRO is activated. - /_localstack/pods/remotes: - get: - description: Retrieves a list of all configured remotes. - operationId: list_remotes + $ref: '#/components/schemas/StateResult' + 404: + description: Service not found tags: - pro - - pods + - state + /_localstack/state/{service}/reset: + post: + description: Reset a service state + parameters: + - $ref: '#/components/parameters/ServiceName' responses: '200': - description: A list of remotes. + description: Successful + 404: + description: Service not found + tags: + - pro + - state + /_localstack/state/{service}/save: + post: + description: Save a service state + parameters: + - $ref: '#/components/parameters/ServiceName' + responses: + '200': + description: Successful + 500: + description: Failure content: application/json: schema: - type: object - properties: - remotes: - type: array - items: - $ref: '#/components/schemas/PodRemote' - /_localstack/pods/remotes/{name}: - get: - summary: Get a specific remote - description: Retrieves information about a specific remote by name. - operationId: get_remote + $ref: '#/components/schemas/StateResult' + 404: + description: Service not found tags: - pro - - pods - parameters: - - name: name - in: path - required: true - description: The name of the remote. - schema: - type: string + - state + /_localstack/config: + get: + description: Get current LocalStack configuration + operationId: get_config + tags: + - localstack responses: '200': - description: Details of the remote. content: application/json: schema: - $ref: '#/components/schemas/PodRemote' + type: object + description: Current LocalStack configuration '404': - description: Remote not found + description: Not found post: - summary: Create a new remote - description: Creates a new remote with the specified name and configuration. - operationId: create_remote + description: Configuration option to update with new value + operationId: update_config_option tags: - - pro - - pods - parameters: - - name: name - in: path - required: true - description: The name of the new remote. - schema: - type: string + - localstack requestBody: - required: true content: application/json: schema: - type: object + additionalProperties: false properties: - protocols: - type: array - items: - type: string - description: Supported protocols of the remote. - remote_url: + value: + type: + - number + - string + variable: + pattern: ^[_a-zA-Z0-9]+$ type: string - description: URL of the remote server. + required: + - variable + - value + type: object + required: true responses: '200': - description: Remote created successfully. + content: + application/json: + schema: + additionalProperties: false + properties: + value: + type: + - number + - string + variable: + type: string + required: + - variable + - value + type: object + description: Configuration option is updated '400': - description: Unsupported Cloud Pod remote, or the remote name is reserved - (`default`). - delete: - summary: Delete a remote - description: Deletes a remote with the specified name. - operationId: delete_remote + content: + application/json: {} + description: Bad request + '404': + description: Not found + /_localstack/diagnose: + get: + description: Get diagnostics report + operationId: get_diagnostics tags: - - pro - - pods - parameters: - - name: name - in: path - required: true - description: The name of the remote to delete. - schema: - type: string + - localstack responses: '200': - description: Remote deleted successfully. - '400': - description: The remote name is reserved (`default`) and cannot be deleted. - /_localstack/pods/state: + content: + application/json: + schema: + additionalProperties: false + properties: + config: + type: object + docker-dependent-image-hashes: + type: object + docker-dependent-image-hosts: + type: object + docker-inspect: + type: object + file-tree: + type: object + important-endpoints: + type: object + info: + $ref: '#/components/schemas/SessionInfo' + logs: + additionalProperties: false + properties: + docker: + type: string + required: + - docker + type: object + services: + type: object + usage: + type: object + version: + additionalProperties: false + properties: + host: + additionalProperties: false + properties: + kernel: + type: string + required: + - kernel + type: object + image-version: + additionalProperties: false + properties: + created: + type: string + id: + type: string + sha256: + type: string + tag: + type: string + required: + - id + - sha256 + - tag + - created + type: object + localstack-version: + additionalProperties: false + properties: + build-date: + type: + - string + - 'null' + build-git-hash: + type: + - string + - 'null' + build-version: + type: + - string + - 'null' + required: + - build-date + - build-git-hash + - build-version + type: object + required: + - image-version + - localstack-version + - host + type: object + required: + - version + - info + - services + - config + - docker-inspect + - docker-dependent-image-hosts + - file-tree + - important-endpoints + - logs + - usage + type: object + description: Diagnostics report + /_localstack/health: get: - description: Exports the current state of the LocalStack container into a zip - file. + description: Get available LocalStack features and AWS services + operationId: get_features_and_services tags: - - pro - - pods + - localstack parameters: - - name: pod_name - in: query - description: The name of the pod to save. Defaults to a unique name based - on the current timestamp. - required: false - schema: - type: string - - name: services + - allowEmptyValue: true in: query - description: Comma-separated list of service names to include in the exported - state. + name: reload required: false schema: type: string responses: '200': - description: A zip file containing the exported pod state. content: - application/zip: - schema: - type: string - format: binary - headers: - Content-Disposition: - description: Specifies that the response is an attachment. - schema: - type: string - Content-Length: - description: The size of the zip file in bytes. - schema: - type: integer - x-localstack-pod-services: - description: Comma-separated list of services included in the pod state. - schema: - type: string - x-localstack-pod-size: - description: The size of the pod file in bytes. + application/json: schema: - type: integer - /_localstack/pods/{name}: - delete: - operationId: deletePod - parameters: - - in: path - name: name - required: true - schema: - type: string - - in: query - name: local - required: false - description: If true, the pod will be deleted only from the local storage - schema: - type: string - - in: header - name: x-localstack-state-secret - required: false - description: A secret token for authenticating the request against the platform - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RemoteConfig' - responses: - '200': - description: OK - '400': - description: Invalid request - '500': - description: Deletion failed + additionalProperties: false + properties: + edition: + enum: + - community + - pro + - enterprise + - unknown + type: string + features: + type: object + services: + type: object + version: + type: string + required: + - edition + - services + - version + type: object + description: Available LocalStack features and AWS services + head: tags: - - pro - - pods - post: - description: Create and register a cloud pod version - operationId: savePod - parameters: - - description: Cloud pod name - in: path - name: name - required: true - schema: - type: string - - in: query - name: local - required: false - schema: - type: boolean - - description: Cloud pod version - in: query - name: version - required: false - schema: - type: string - - in: header - name: x-localstack-state-secret - required: false - description: A secret token for authenticating the request against the platform - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PodSaveRequest' + - localstack + operationId: health responses: '200': content: - application/x-ndjson: {} - description: The response is a sequence of JSON events, according to the - schema, separated by a newline - '400': - description: Invalid request + text/plain: {} + description: '' + post: + description: Restart or terminate LocalStack session + operationId: manage_session tags: - - pro - - pods - put: - description: Load a cloud pod version - operationId: loadPod - parameters: - - in: path - description: The name of the Cloud Pod to be loaded into the runtime - name: name - required: true - schema: - type: string - - in: query - name: version - description: The version of the Cloud Pod to be loaded into the runtime - required: false - schema: - type: string - - in: query - name: merge - description: Merge strategy to use when loading the pod - required: false - schema: - type: string - - in: query - name: ignore_version_mismatches - description: Ignores version mismatches between the pod and the current LocalStack - version. - required: false - schema: - type: string - - in: header - name: x-localstack-state-secret - required: false - description: A secret token for authenticating the request against the platform - schema: - type: string + - localstack requestBody: content: application/json: schema: - $ref: '#/components/schemas/RemoteConfig' + additionalProperties: false + properties: + action: + enum: + - restart + - kill + type: string + required: + - action + type: object + description: Action to perform + required: true responses: '200': content: - application/x-ndjson: {} - description: The response is a sequence of JSON events, according to the - schema, separated by a newline + text/plain: {} + description: Action was successful '400': - description: Unsupported Cloud Pod remote. - '422': content: - text/plain: - schema: - type: string - description: The pod state is incompatible with the current LocalStack version - tags: - - pro - - pods - /_localstack/pods/{name}/versions: - get: - description: List versions for a cloud pod - operationId: getPodVersions - parameters: - - description: Cloud pod name - in: path - name: name - required: true - schema: - type: string - - in: header - name: x-localstack-state-secret - required: false - description: A secret token for authenticating the request against the platform - schema: - type: string + text/plain: {} + description: Bad request + put: + description: Store arbitrary data to in-memory state + operationId: store_data + tags: + - localstack requestBody: content: application/json: schema: - $ref: '#/components/schemas/RemoteConfig' + type: object + description: Data to save responses: '200': - description: A list of version details. content: application/json: schema: - $ref: '#/components/schemas/PodVersions' - '400': - description: Unsupported Cloud Pod remote. - tags: - - pro - - pods - /_localstack/replicator/jobs: + additionalProperties: false + properties: + status: + type: string + required: + - status + type: object + description: Data was saved + /_localstack/info: get: + description: Get information about the current LocalStack session + operationId: get_session_info tags: - - pro - - replicator - description: List of replication jobs - operationId: listReplicationJobs + - localstack responses: '200': - description: List of replication jobs content: application/json: schema: - additionalProperties: false - type: array - items: - $ref: '#/components/schemas/ReplicationJob' - post: + $ref: '#/components/schemas/SessionInfo' + description: Information about the current LocalStack session + /_localstack/init: + get: + description: Get information about init scripts + operationId: get_init_script_info tags: - - pro - - replicator - description: Submits a replication job - operationId: createReplicationJob - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ReplicationRequest' + - localstack responses: '200': - description: Replication Job submitted content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/ReplicationJob' - '400': - description: Invalid request - '415': - description: Content-Type was not 'application/json' - /_localstack/replicator/jobs/{job_id}: + $ref: '#/components/schemas/InitScripts' + description: Information about init scripts + /_localstack/init/{stage}: get: + description: Get information about init scripts in a specific stage + operationId: get_init_script_info_stage tags: - - pro - - replicator - description: Get replication job - operationId: GetReplicationJob + - localstack parameters: - - description: Id of replication job - in: path - name: job_id + - in: path + name: stage required: true schema: type: string responses: '200': - description: Replication Job found content: application/json: schema: - type: object - $ref: '#/components/schemas/ReplicationJob' + $ref: '#/components/schemas/InitScriptsStage' + description: Information about init scripts in a specific stage '404': - description: Replication job not found content: text/plain: schema: type: string - /_localstack/replicator/resources: + description: Stage not found + /_localstack/plugins: get: + description: '' + operationId: get_plugins tags: - - pro - - replicator - description: List supported resources for replication - operationId: listSupportedResources - responses: - '200': - description: List of resources available for replication - content: - application/json: - schema: - additionalProperties: false - type: array - items: - $ref: '#/components/schemas/ReplicationSupportedResource' - /_localstack/stackinfo: - get: - description: Collect information used to populate the dashboard info. + - localstack responses: '200': content: - application/json: - schema: - additionalProperties: false - properties: - api_key: - type: string - duration_in_seconds: - type: integer - is_ci: - type: boolean - is_docker: - type: boolean - number_of_api_calls_error: - type: integer - number_of_api_calls_success: - type: integer - number_of_services: - type: integer - server_time_utc: - type: string - session_id: - type: string - system: - type: string - top_user_agent: - type: string - version: - type: string - required: - - server_time_utc - - session_id - - api_key - - system - - version - - is_ci - - is_docker - - duration_in_seconds - - top_user_agent - - number_of_services - - number_of_api_calls_success - - number_of_api_calls_error - type: object + application/json: {} description: '' + /_localstack/usage: + get: + description: '' + operationId: get_usage tags: - - pro - /_localstack/state/load: - post: - description: Load all service states. By default, it starts the services when - loading their states. - requestBody: - required: false - content: - application/json: - schema: - $ref: '#/components/schemas/LoadService' - responses: - '200': - content: - application/x-ndjson: - schema: - $ref: '#/components/schemas/StateResult' - description: Successful or error is one of the status is 'error' - tags: - - pro - - state - /_localstack/state/reset: - post: - description: Reset all service states - responses: - '200': - description: Successful - tags: - - pro - - state - /_localstack/state/save: - post: - description: Save all service states - responses: - '200': - content: - application/x-ndjson: - schema: - $ref: '#/components/schemas/StateResult' - description: Successful or error is one of the status is 'error' - tags: - - pro - - state - /_localstack/state/{service}/load: - post: - description: Load a service state. By default, it starts the service, if the - service hasn't started yet. - parameters: - - $ref: '#/components/parameters/ServiceName' - requestBody: - required: false - content: - application/json: - schema: - $ref: '#/components/schemas/LoadService' - responses: - '200': - description: Successful - 500: - description: Failure - content: - application/json: - schema: - $ref: '#/components/schemas/StateResult' - 404: - description: Service not found - tags: - - pro - - state - /_localstack/state/{service}/reset: - post: - description: Reset a service state - parameters: - - $ref: '#/components/parameters/ServiceName' - responses: - '200': - description: Successful - 404: - description: Service not found - tags: - - pro - - state - /_localstack/state/{service}/save: - post: - description: Save a service state - parameters: - - $ref: '#/components/parameters/ServiceName' + - localstack responses: '200': - description: Successful - 500: - description: Failure content: - application/json: - schema: - $ref: '#/components/schemas/StateResult' - 404: - description: Service not found - tags: - - pro - - state + application/json: {} + description: ''