{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:aliyun-rds-data/batch-execute-statement":{"post":{"operationId":"cloud_aliyun_rds_data_batch_execute_statement","summary":"Calls the BatchExecuteStatement operation to execute batch SQL statements on a set of data","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["SecretArn","ResourceArn","Sql"],"properties":{"endpoint":{"type":"string","enum":["https://rds-data.cn-beijing.aliyuncs.com","https://rds-data.cn-hangzhou.aliyuncs.com"],"default":"https://rds-data.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://rds-data.cn-hangzhou.aliyuncs.com"},"SecretArn":{"type":"string","description":"The user credential for the Data API account. You can call the https://help.aliyun.com/document_detail/446624.html operation to obtain the…"},"ResourceArn":{"type":"string","description":"Specifies the resource that the user wants to access. Format: ```acs:rds:{{regionId}}:{{accountId}}:dbinstance/{{instanceId}}``` Parameter…"},"Database":{"type":"string","description":"The database name"},"Sql":{"type":"string","description":"The SQL statement to execute. The BatchExecuteStatement operation is typically used to execute INSERT and UPDATE statements"},"TransactionId":{"type":"string","description":"The ID of the transaction that has been started. You can call the https://help.aliyun.com/document_detail/446897.html operation to obtain…"},"ParameterSets":{"type":"string","description":"The parameters of the SQL statements (JSON-encoded)"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-rds-data/begin-transaction":{"post":{"operationId":"cloud_aliyun_rds_data_begin_transaction","summary":"Starts a transaction","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["SecretArn","ResourceArn","Database"],"properties":{"endpoint":{"type":"string","enum":["https://rds-data.cn-beijing.aliyuncs.com","https://rds-data.cn-hangzhou.aliyuncs.com"],"default":"https://rds-data.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://rds-data.cn-hangzhou.aliyuncs.com"},"SecretArn":{"type":"string","description":"The user credential of the Data API account. You can call the https://help.aliyun.com/document_detail/446624.html operation to obtain the…"},"ResourceArn":{"type":"string","description":"The Alibaba Cloud Resource Name (ARN) that specifies the resource to access. Format:…"},"Database":{"type":"string","description":"The database name"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-rds-data/commit-transaction":{"post":{"operationId":"cloud_aliyun_rds_data_commit_transaction","summary":"Commits transaction changes by calling the CommitTransaction operation","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["SecretArn","ResourceArn","TransactionId"],"properties":{"endpoint":{"type":"string","enum":["https://rds-data.cn-beijing.aliyuncs.com","https://rds-data.cn-hangzhou.aliyuncs.com"],"default":"https://rds-data.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://rds-data.cn-hangzhou.aliyuncs.com"},"SecretArn":{"type":"string","description":"The user credential of the Data API account. You can call the https://help.aliyun.com/document_detail/446624.html operation to obtain the…"},"ResourceArn":{"type":"string","description":"The Alibaba Cloud Resource Name (ARN) that specifies the resource to access. Format:…"},"TransactionId":{"type":"string","description":"The ID of the transaction to commit. You can call the BeginTransaction operation to obtain the value of this parameter"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-rds-data/execute-statement":{"post":{"operationId":"cloud_aliyun_rds_data_execute_statement","summary":"Executes an SQL statement on a specified database by calling the ExecuteStatement operation","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["SecretArn","ResourceArn","Database","Sql"],"properties":{"endpoint":{"type":"string","enum":["https://rds-data.cn-beijing.aliyuncs.com","https://rds-data.cn-hangzhou.aliyuncs.com"],"default":"https://rds-data.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://rds-data.cn-hangzhou.aliyuncs.com"},"SecretArn":{"type":"string","description":"The user credential of the Data API account. You can call the https://help.aliyun.com/document_detail/446624.html operation to obtain the…"},"ResourceArn":{"type":"string","description":"The resource ARN that points to the resource that the user wants to access. Format:…"},"Database":{"type":"string","description":"The database name"},"ContinueAfterTimeout":{"type":"string","description":"Specifies whether to continue running the SQL statement if the call times out. Valid values: true: Continue running. false: Stop running.…"},"FormatRecordsAs":{"type":"string","description":"Specifies whether to format the result set as a single JSON string. Only NONE or JSON can be specified. Default value: NONE. This…"},"IncludeResultMetadata":{"type":"string","description":"Specifies whether to include metadata in the result. Valid values: true: Include metadata. false: Do not include metadata"},"Sql":{"type":"string","description":"The SQL statement to execute"},"TransactionId":{"type":"string","description":"The ID of the transaction that has been started. You can call the https://help.aliyun.com/document_detail/446897.html operation to obtain…"},"Parameters":{"type":"string","description":"The details of the parameters for the SQL statement to execute (JSON-encoded)"},"ResultSetOptions":{"type":"string","description":"The options that control how the result set is returned (JSON-encoded)"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-rds-data/insert-list":{"post":{"operationId":"cloud_aliyun_rds_data_insert_list","summary":"Invokes InsertList to bulk insert data","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["SecretArn","ResourceArn","Table"],"properties":{"endpoint":{"type":"string","enum":["https://rds-data.cn-beijing.aliyuncs.com","https://rds-data.cn-hangzhou.aliyuncs.com"],"default":"https://rds-data.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://rds-data.cn-hangzhou.aliyuncs.com"},"SecretArn":{"type":"string","description":"The user credential of the Data API account. You can call the DescribeSecrets (https://help.aliyun.com/document_detail/446624.html)…"},"ResourceArn":{"type":"string","description":"The Alibaba Cloud Resource Name (ARN) that specifies the resource to access. Format:…"},"Database":{"type":"string","description":"The database name"},"Table":{"type":"string","description":"The table name"},"TransactionId":{"type":"string","description":"The ID of the transaction to commit. You can call the BeginTransaction operation to obtain the value of this parameter"},"Records":{"type":"string","description":"The data to bulk insert. The data structure is an array, where each item represents a record (JSON-encoded)"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-rds-data/rollback-transaction":{"post":{"operationId":"cloud_aliyun_rds_data_rollback_transaction","summary":"Rolls back a transaction by calling the RollbackTransaction operation. Rolling back a transaction cancels…","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["SecretArn","ResourceArn","TransactionId"],"properties":{"endpoint":{"type":"string","enum":["https://rds-data.cn-beijing.aliyuncs.com","https://rds-data.cn-hangzhou.aliyuncs.com"],"default":"https://rds-data.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://rds-data.cn-hangzhou.aliyuncs.com"},"SecretArn":{"type":"string","description":"The user credential of the Data API account. You can call the https://help.aliyun.com/document_detail/446624.html operation to obtain the…"},"ResourceArn":{"type":"string","description":"The Alibaba Cloud Resource Name (ARN) that specifies the resource to access. Format:…"},"TransactionId":{"type":"string","description":"The ID of the transaction to roll back. You can call the BeginTransaction operation to obtain the value of this parameter"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-rds-data/version":{"post":{"operationId":"cloud_aliyun_rds_data_version","summary":"version","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://rds-data.cn-beijing.aliyuncs.com","https://rds-data.cn-hangzhou.aliyuncs.com"],"default":"https://rds-data.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://rds-data.cn-hangzhou.aliyuncs.com"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}