Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-s3:amazon-s3-metrics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
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.
A second provider on the same verified email joins the account you already have.
openapi: 3.1.0
info:
title: Amazon Simple Storage Service Metrics API
version: '2006-03-01'
description: Generated from AWS's published Smithy model for Amazon Simple Storage Service. 7 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://s3.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
paths:
/{Bucket}?metrics:
delete:
operationId: DeleteBucketMetricsConfiguration
summary: Delete Bucket Metrics Configuration
description: Deletes a metrics configuration for the Amazon CloudWatch request metrics (specified by the metrics configuration
ID) from the bucket. Note that this doesn't include the daily storage metrics. Directory buckets - For directory buckets,
you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests
in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't
supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory
buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see
Concepts for directory buckets in Local Zones in the Amazon S3 User Guide. Permissions To use this operation, you
must have permissions to perform the s3:PutMetricsConfiguration action. The bucket owner has this permission by default.
The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related
to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources. General purpose bucket
permissions - The s3:PutMet
responses:
'200':
description: Success
content:
text/xml:
schema:
type: string
parameters:
- name: Bucket
in: path
required: true
schema:
type: string
description: The name of the bucket containing the metrics configuration to delete. Directory buckets - When you use
this operation with a directory bucket, you must use path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name
. Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen Zone (Availability
Zone or Local Zone). Bucket names must also follow the format bucket-base-name--zone-id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3).
For information about bucket naming restrictions, see Directory bucket naming r
- name: id
in: query
required: true
schema:
type: string
description: The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain
letters, numbers, periods, dashes, and underscores.
- name: x-amz-expected-bucket-owner
in: header
schema:
type: string
description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). For directory buckets,
this header is not supported in this API operation. If you specify this header, the request fails with the HTTP
status code 501 Not Implemented.
tags:
- Metrics
put:
operationId: PutBucketMetricsConfiguration
summary: Put Bucket Metrics Configuration
description: Sets a metrics configuration (specified by the metrics configuration ID) for the bucket. You can have up
to 1,000 metrics configurations per bucket. If you're updating an existing metrics configuration, note that this is
a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they
are erased. Directory buckets - For directory buckets, you must make requests for this API operation to the Regional
endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name
. Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see
Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information
about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide. Permissions
To use this operation, you must have permissions to perform the s3:PutMetricsConfiguration action. The bucket owner
has this permission by default. The bucket owner can grant this permission to others. For more information about permissions,
see Permissio
responses:
'200':
description: Success
content:
text/xml:
schema:
type: string
parameters:
- name: Bucket
in: path
required: true
schema:
type: string
description: The name of the bucket for which the metrics configuration is set. Directory buckets - When you use this
operation with a directory bucket, you must use path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name
. Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen Zone (Availability
Zone or Local Zone). Bucket names must also follow the format bucket-base-name--zone-id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3).
For information about bucket naming restrictions, see Directory bucket naming rules
- name: id
in: query
required: true
schema:
type: string
description: The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain
letters, numbers, periods, dashes, and underscores.
- name: x-amz-expected-bucket-owner
in: header
schema:
type: string
description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). For directory buckets,
this header is not supported in this API operation. If you specify this header, the request fails with the HTTP
status code 501 Not Implemented.
requestBody:
content:
application/xml:
schema:
$ref: '#/components/schemas/MetricsConfiguration'
tags:
- Metrics
/{Bucket}?metrics&x-id=GetBucketMetricsConfiguration:
get:
operationId: GetBucketMetricsConfiguration
summary: Get Bucket Metrics Configuration
description: Gets a metrics configuration (specified by the metrics configuration ID) from the bucket. Note that this
doesn't include the daily storage metrics. Directory buckets - For directory buckets, you must make requests for this
API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name
. Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see
Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information
about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide. Permissions
To use this operation, you must have permissions to perform the s3:GetMetricsConfiguration action. The bucket owner
has this permission by default. The bucket owner can grant this permission to others. For more information about permissions,
see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.
General purpose bucket permissions - The s3:GetMetricsConfiguration permission is required in a
responses:
'200':
description: Success
content:
text/xml:
schema:
$ref: '#/components/schemas/GetBucketMetricsConfigurationOutput'
parameters:
- name: Bucket
in: path
required: true
schema:
type: string
description: The name of the bucket containing the metrics configuration to retrieve. Directory buckets - When you
use this operation with a directory bucket, you must use path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name
. Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen Zone (Availability
Zone or Local Zone). Bucket names must also follow the format bucket-base-name--zone-id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3).
For information about bucket naming restrictions, see Directory bucket naming
- name: id
in: query
required: true
schema:
type: string
description: The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain
letters, numbers, periods, dashes, and underscores.
- name: x-amz-expected-bucket-owner
in: header
schema:
type: string
description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). For directory buckets,
this header is not supported in this API operation. If you specify this header, the request fails with the HTTP
status code 501 Not Implemented.
tags:
- Metrics
/{Bucket}?metrics&x-id=ListBucketMetricsConfigurations:
get:
operationId: ListBucketMetricsConfigurations
summary: List Bucket Metrics Configurations
description: Lists the metrics configurations for the bucket. The metrics configurations are only for the request metrics
of the bucket and do not provide information on daily storage metrics. You can have up to 1,000 configurations per
bucket. Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint.
These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name
. Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see
Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information
about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide. This
action supports list pagination and does not return more than 100 configurations at a time. Always check the IsTruncated
element in the response. If there are no more configurations to list, IsTruncated is set to false. If there are more
configurations to list, IsTruncated is set to true, and there is a value in NextContinuationToken. You use the NextContinuationToken
value t
responses:
'200':
description: Success
content:
text/xml:
schema:
$ref: '#/components/schemas/ListBucketMetricsConfigurationsOutput'
parameters:
- name: Bucket
in: path
required: true
schema:
type: string
description: The name of the bucket containing the metrics configurations to retrieve. Directory buckets - When you
use this operation with a directory bucket, you must use path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name
. Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen Zone (Availability
Zone or Local Zone). Bucket names must also follow the format bucket-base-name--zone-id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3).
For information about bucket naming restrictions, see Directory bucket namin
- name: continuation-token
in: query
schema:
type: string
description: The marker that is used to continue a metrics configuration listing that has been truncated. Use the
NextContinuationToken from a previously truncated list response to continue the listing. The continuation token
is an opaque value that Amazon S3 understands.
- name: x-amz-expected-bucket-owner
in: header
schema:
type: string
description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). For directory buckets,
this header is not supported in this API operation. If you specify this header, the request fails with the HTTP
status code 501 Not Implemented.
tags:
- Metrics
/buckets/{tableBucketARN}/metrics:
delete:
operationId: DeleteTableBucketMetricsConfiguration
summary: Delete Table Bucket Metrics Configuration
description: Deletes the metrics configuration for a table bucket. Permissions You must have the s3tables:DeleteTableBucketMetricsConfiguration
permission to use this operation.
responses:
'200':
description: Success
content:
application/json:
schema:
type: string
'400':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/S3TablesBadRequestException'
'409':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'403':
description: ForbiddenException
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenException'
'500':
description: InternalServerErrorException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerErrorException'
'404':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/S3TablesNotFoundException'
'429':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: tableBucketARN
in: path
required: true
schema:
type: string
description: The Amazon Resource Name (ARN) of the table bucket.
tags:
- Metrics
servers:
- url: https://s3tables.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4_s3tables: []
get:
operationId: GetTableBucketMetricsConfiguration
summary: Get Table Bucket Metrics Configuration
description: Gets the metrics configuration for a table bucket. Permissions You must have the s3tables:GetTableBucketMetricsConfiguration
permission to use this operation.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/GetTableBucketMetricsConfigurationResponse'
'400':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/S3TablesBadRequestException'
'409':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'403':
description: ForbiddenException
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenException'
'500':
description: InternalServerErrorException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerErrorException'
'404':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/S3TablesNotFoundException'
'429':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: tableBucketARN
in: path
required: true
schema:
type: string
description: The Amazon Resource Name (ARN) of the table bucket.
tags:
- Metrics
servers:
- url: https://s3tables.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4_s3tables: []
put:
operationId: PutTableBucketMetricsConfiguration
summary: Put Table Bucket Metrics Configuration
description: Sets the metrics configuration for a table bucket. Permissions You must have the s3tables:PutTableBucketMetricsConfiguration
permission to use this operation.
responses:
'200':
description: Success
content:
application/json:
schema:
type: string
'400':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/S3TablesBadRequestException'
'409':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'403':
description: ForbiddenException
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenException'
'500':
description: InternalServerErrorException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerErrorException'
'404':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/S3TablesNotFoundException'
'429':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: tableBucketARN
in: path
required: true
schema:
type: string
description: The Amazon Resource Name (ARN) of the table bucket.
tags:
- Metrics
servers:
- url: https://s3tables.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4_s3tables: []
components:
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: s3
sigv4_s3tables:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: s3tables
schemas:
ConflictException:
type: object
properties:
message:
type: string
ForbiddenException:
type: object
properties:
message:
type: string
GetBucketMetricsConfigurationOutput:
type: object
properties:
MetricsConfiguration:
$ref: '#/components/schemas/MetricsConfiguration'
GetTableBucketMetricsConfigurationResponse:
type: object
properties:
tableBucketARN:
type: string
description: The Amazon Resource Name (ARN) of the table bucket.
id:
type: string
description: The unique identifier of the metrics configuration.
required:
- tableBucketARN
InternalServerErrorException:
type: object
properties:
message:
type: string
ListBucketMetricsConfigurationsOutput:
type: object
properties:
IsTruncated:
type: boolean
description: Indicates whether the returned list of metrics configurations is complete. A value of true indicates
that the list is not complete and the NextContinuationToken will be provided for a subsequent request.
ContinuationToken:
type: string
description: The marker that is used as a starting point for this metrics configuration list response. This value
is present if it was sent in the request.
NextContinuationToken:
type: string
description: The marker used to continue a metrics configuration listing that has been truncated. Use the NextContinuationToken
from a previously truncated list response to continue the listing. The continuation token is an opaque value that
Amazon S3 understands.
MetricsConfigurationList:
type: array
items:
$ref: '#/components/schemas/MetricsConfiguration'
description: The list of metrics configurations for a bucket.
MetricsAndOperator:
type: object
properties:
Prefix:
type: string
description: The prefix used when evaluating an AND predicate.
Tags:
type: array
items:
$ref: '#/components/schemas/Tag'
description: The list of tags used when evaluating an AND predicate. Tag filters are not supported for directory
buckets.
AccessPointArn:
type: string
description: The access point ARN used when evaluating an AND predicate.
MetricsConfiguration:
type: object
properties:
Id:
type: string
description: The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain
letters, numbers, periods, dashes, and underscores.
Filter:
$ref: '#/components/schemas/MetricsFilter'
required:
- Id
MetricsFilter:
type: object
properties:
Prefix:
type: string
description: The prefix used when evaluating a metrics filter.
Tag:
$ref: '#/components/schemas/Tag'
AccessPointArn:
type: string
description: The access point ARN used when evaluating a metrics filter.
And:
$ref: '#/components/schemas/MetricsAndOperator'
description: Exactly one member is set.
S3TablesBadRequestException:
type: object
properties:
message:
type: string
S3TablesNotFoundException:
type: object
properties:
message:
type: string
Tag:
type: object
properties:
Key:
type: string
description: Name of the object key.
Value:
type: string
description: Value of the tag.
required:
- Key
- Value
TooManyRequestsException:
type: object
properties:
message:
type: string
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/s3/service/2006-03-01/s3-2006-03-01.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)
sources:
- https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/s3/service/2006-03-01/s3-2006-03-01.json
- https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/s3tables/service/2018-05-10/s3tables-2018-05-10.json