更新 S3 详细信息
开发环境
开发环境
POST
https://stablediffusionapi.com/api/v1/enterprise/update_s3
POST
向https://stablediffusionapi.com/api/v1/enterprise/update_s3端点发送请求。您必须传递下面列出的请求正文参数才能更新 S3 详细信息。信息 您可以使用任何 S3 兼容服务,例如 Cloudflare R2、Digital Ocean Spaces、AWS S3、Google Cloud Storage、Alibaba OSS、Backblaze 等。
危险 您需要在 S3 存储桶上提供 PutObjectAcl。否则您将无法将图像上传到 S3 存储桶。以下是 stackoverflow 的链接,了解如何执行此操作: https://stackoverflow.com/questions/36272286/getting-access-denied-when-calling-the-putobject-operation-with-bucket-level-per
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://stablediffusionapi.com/api/v1/enterprise/update_s3?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw '{
"key": "enterprise_api_key",
"public_url": "https://d1okzptojspljx.cloudfront.net/generations/",
"region_name": "us-east-1",
"endpoint_url": "https://stable-diffusion-api.s3.amazonaws.com",
"aws_access_key_id": "access-key",
"aws_secret_access_key": "secret-key",
"image_directory": "generations"
}'
响应示例响应示例
{
"Version": "string",
"Statement": [
{
"Sid": "string",
"Effect": "string",
"Action": [
"string"
],
"Resource": [
"string"
]
}
]
}
请求参数
Body 参数application/json
返回响应
修改于 2023-10-30 07:06:25