Operations 5
Documentation
Documentation
https://docs.aws.amazon.com/xray/latest/devguide/aws-xray.html
APIReference
https://docs.aws.amazon.com/xray/latest/api/Welcome.html
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/aws-x-ray-sampling-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: AWS X-Ray Encryption Sampling API
description: AWS X-Ray provides APIs for managing trace data, sampling rules, groups, and encryption configuration. X-Ray helps developers analyze and debug distributed applications by collecting trace data as requests travel through application components.
version: '2016-04-12'
contact:
name: Amazon Web Services
url: https://aws.amazon.com/xray/
servers:
- url: https://xray.{region}.amazonaws.com
description: AWS X-Ray regional endpoint
variables:
region:
default: us-east-1
description: AWS region
security:
- aws_sig_v4: []
tags:
- name: Sampling
description: Manage sampling rules
paths:
/SamplingRules:
post:
operationId: GetSamplingRules
summary: AWS X-Ray Get All Sampling Rules
description: Retrieves all sampling rules.
tags:
- Sampling
requestBody:
content:
application/json:
schema:
type: object
properties:
NextToken:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
SamplingRuleRecords:
type: array
items:
$ref: '#/components/schemas/SamplingRuleRecord'
NextToken:
type: string
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/CreateSamplingRule:
post:
operationId: CreateSamplingRule
summary: AWS X-Ray Create a Sampling Rule
description: Creates a rule to control sampling behavior for instrumented applications.
tags:
- Sampling
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- SamplingRule
properties:
SamplingRule:
$ref: '#/components/schemas/SamplingRule'
Tags:
type: array
items:
$ref: '#/components/schemas/Tag'
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
SamplingRuleRecord:
$ref: '#/components/schemas/SamplingRuleRecord'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/UpdateSamplingRule:
post:
operationId: UpdateSamplingRule
summary: AWS X-Ray Update a Sampling Rule
description: Modifies a sampling rule's configuration.
tags:
- Sampling
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- SamplingRuleUpdate
properties:
SamplingRuleUpdate:
type: object
properties:
RuleName:
type: string
RuleARN:
type: string
ResourceARN:
type: string
Priority:
type: integer
FixedRate:
type: number
ReservoirSize:
type: integer
Host:
type: string
ServiceName:
type: string
ServiceType:
type: string
HTTPMethod:
type: string
URLPath:
type: string
Attributes:
type: object
additionalProperties:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
SamplingRuleRecord:
$ref: '#/components/schemas/SamplingRuleRecord'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/DeleteSamplingRule:
post:
operationId: DeleteSamplingRule
summary: AWS X-Ray Delete a Sampling Rule
description: Deletes a sampling rule.
tags:
- Sampling
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
RuleName:
type: string
RuleARN:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
SamplingRuleRecord:
$ref: '#/components/schemas/SamplingRuleRecord'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/SamplingTargets:
post:
operationId: GetSamplingTargets
summary: AWS X-Ray Get Sampling Targets
description: Requests a sampling quota for rules that the service is using to sample requests.
tags:
- Sampling
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- SamplingStatisticsDocuments
properties:
SamplingStatisticsDocuments:
type: array
items:
type: object
properties:
RuleName:
type: string
ClientID:
type: string
Timestamp:
type: string
format: date-time
RequestCount:
type: integer
SampledCount:
type: integer
BorrowCount:
type: integer
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
SamplingTargetDocuments:
type: array
items:
type: object
properties:
RuleName:
type: string
FixedRate:
type: number
ReservoirQuota:
type: integer
ReservoirQuotaTTL:
type: string
format: date-time
Interval:
type: integer
LastRuleModification:
type: string
format: date-time
UnprocessedStatistics:
type: array
items:
type: object
properties:
RuleName:
type: string
ErrorCode:
type: string
Message:
type: string
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
components:
schemas:
Tag:
type: object
required:
- Key
- Value
properties:
Key:
type: string
Value:
type: string
SamplingRule:
type: object
required:
- ResourceARN
- Priority
- FixedRate
- ReservoirSize
- ServiceName
- ServiceType
- Host
- HTTPMethod
- URLPath
- Version
properties:
RuleName:
type: string
RuleARN:
type: string
ResourceARN:
type: string
Priority:
type: integer
FixedRate:
type: number
ReservoirSize:
type: integer
ServiceName:
type: string
ServiceType:
type: string
Host:
type: string
HTTPMethod:
type: string
URLPath:
type: string
Version:
type: integer
Attributes:
type: object
additionalProperties:
type: string
SamplingRuleRecord:
type: object
properties:
SamplingRule:
$ref: '#/components/schemas/SamplingRule'
CreatedAt:
type: string
format: date-time
ModifiedAt:
type: string
format: date-time
securitySchemes:
aws_sig_v4:
type: apiKey
name: Authorization
in: header
description: AWS Signature Version 4