Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

AWS X-Ray Sampling API

Manage sampling rules

AWS X-Ray Sampling API is one of 9 APIs that AWS X-Ray publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 1 JSON Schema definition.

Tagged areas include Sampling. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and 1 JSON Schema.

This API exposes 5 operations across 5 paths, and defines 3 schemas. It is described by OpenAPI 3.1.0, at version 2016-04-12.

Requests are made against a single base URL, https://xray.{region}.amazonaws.com.

5 operations 5 paths 3 schemas 5 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2016-04-12
Base URL
https://xray.{region}.amazonaws.com
Authentication
API Key
Resource Areas
1

Authentication & Security 1

AWS X-Ray Sampling API declares 1 security scheme for authenticating requests. An API key is passed in the header as Authorization (aws_sig_v4). By default, every request must be authenticated.

  • aws_sig_v4 — AWS Signature Version 4

Paths & Operations 5

Across 5 paths, the API surfaces 5 operations — 5 POST. Each is listed below with its method, path, parameters, and response codes.

Sampling 5

Manage sampling rules

POST
/SamplingRules
AWS X-Ray Get All Sampling Rules
GetSamplingRules body → 200
POST
/CreateSamplingRule
AWS X-Ray Create a Sampling Rule
CreateSamplingRule body → 200
POST
/UpdateSamplingRule
AWS X-Ray Update a Sampling Rule
UpdateSamplingRule body → 200
POST
/DeleteSamplingRule
AWS X-Ray Delete a Sampling Rule
DeleteSamplingRule body → 200
POST
/SamplingTargets
AWS X-Ray Get Sampling Targets
GetSamplingTargets body → 200

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are SamplingRule (13 properties), SamplingRuleRecord (3 properties), Tag (2 properties). Each schema is shown below with its type and property counts.

Tag
object
2 properties 2 required
SamplingRuleRecord
object
3 properties
SamplingRule
object
13 properties 10 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

aws-x-ray-sampling-api-openapi.yml Raw ↑

Other APIs AWS X-Ray publishes across the network.

AWS X-Ray Encryption API
AWS X-Ray Groups API
AWS X-Ray Insights API
AWS X-Ray Service Graph API
AWS X-Ray TagResource API
AWS X-Ray Tags API
AWS X-Ray Traces API
AWS X-Ray UntagResource API