List source maps
https://api.datadoghq.com/api/v2/sourcemaps/listhttps://api.us3.datadoghq.com/api/v2/sourcemaps/listhttps://api.us5.datadoghq.com/api/v2/sourcemaps/listhttps://api.datadoghq.eu/api/v2/sourcemaps/listhttps://api.ap1.datadoghq.com/api/v2/sourcemaps/listhttps://api.ap2.datadoghq.com/api/v2/sourcemaps/listhttps://api.uk1.datadoghq.com/api/v2/sourcemaps/listhttps://api.ddog-gov.com/api/v2/sourcemaps/listhttps://api.us2.ddog-gov.com/api/v2/sourcemaps/list概要
Retrieves a paginated list of source maps. Send filters as query parameters,
not in a JSON request body. mapkind defaults to js.
For JavaScript source maps, choose one of the three request shapes below.
Examples: the following commands use the US1 API host. Replace the host with
the API host for your site, and the service, version, debug ID, and cursor with
values from your organization. Use --get so curl sends the filters in the query
string; -X GET with --data-urlencode sends them in the request body instead.
1. List by service and version
Provide both filter[service] and filter[version] to search source maps
indexed by service and version. Omit search_by.
Pagination: prefer cursor pagination. Omit page[after] and page[number]
on the first request. To get the next page, pass meta.page.next_cursor as
page[after], keeping the same filters. Continue until
meta.page.has_more_results is false. Do not decode or modify the cursor.
Legacy page-number pagination is also supported, starting at page[number]=1.
curl -sS --get "https://api.datadoghq.com/api/v2/sourcemaps/list" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
--data-urlencode "mapkind=js" \
--data-urlencode "filter[service]=my-web-service" \
--data-urlencode "filter[version]=1.0.0" \
--data-urlencode "page[size]=10"
2. Find a specific JavaScript debug ID
Provide filter[debug_id] with a UUID. Service and version filters are not
required. Omit search_by.
Pagination: the lookup returns at most one result, so no pagination is
needed. page[after] is not supported.
curl -sS --get "https://api.datadoghq.com/api/v2/sourcemaps/list" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
--data-urlencode "mapkind=js" \
--data-urlencode "filter[debug_id]=00000000-0000-4000-8000-000000000001"
3. Browse source maps indexed by debug ID
Set search_by=debug_id without specifying a debug ID. Do not send service,
version, or filename filters in this mode.
Pagination: this mode requires cursor pagination; page[number] is not
supported. Omit page[after] on the first request. To get the next page, pass
meta.page.next_cursor as page[after], keeping the same search mode and
filters. Continue until meta.page.has_more_results is false. Do not decode
or modify the cursor.
First page:
curl -sS --get "https://api.datadoghq.com/api/v2/sourcemaps/list" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
--data-urlencode "mapkind=js" \
--data-urlencode "search_by=debug_id" \
--data-urlencode "page[size]=10"
Next page:
curl -sS --get "https://api.datadoghq.com/api/v2/sourcemaps/list" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
--data-urlencode "mapkind=js" \
--data-urlencode "search_by=debug_id" \
--data-urlencode "page[size]=10" \
--data-urlencode "page[after]=<meta.page.next_cursor>"
For other map kinds, use page[number], starting at 1.
引数
クエリ文字列
search_bySet to debug_id to browse JavaScript source maps indexed by debug ID.
Only supported for mapkind=js. Omit for service/version searches or a
specific filter[debug_id] lookup. In debug-ID browse mode, service,
version, and filename filters are not supported.
debug_idmapkindThe type of source map. Defaults to js.
js, jvm, ios, react, flutter, elf, ndk, il2cpp, wasm, portable_pdbpage[after]Cursor for the next page of a JavaScript listing. Use the value from
meta.page.next_cursor and keep the same search mode and filters.
Omit on the first request. Not supported for other map kinds or for
a specific filter[debug_id] lookup without search_by=debug_id.
page[size]The number of results per page. Defaults to 100. Must be at least 1; values above 1000 are capped at 1000.
100page[number]Legacy page number, starting from 1. Prefer page[after] for JavaScript
listings. Not supported with search_by=debug_id. Other map kinds
default to page 1 when pagination parameters are omitted.
filter[service]Filter by service names (multiple values allowed). Required for
jvm, react, and flutter map kinds. Also required for js unless
searching by filter[debug_id] or browsing with search_by=debug_id.
filter[version]Filter by version values (multiple values allowed). Required for
jvm, react, and flutter map kinds. Also required for js unless
searching by filter[debug_id] or browsing with search_by=debug_id.
filter[variant]Filter by variant values (multiple values allowed). Supported for jvm.
filter[id]Filter by source map ID values (multiple values allowed). Supported for all map kinds.
filter[build_id]Filter by build ID values (multiple values allowed). Supported for jvm, ndk, il2cpp, wasm, and portable_pdb.
filter[uuid]Filter by UUID values (multiple values allowed). Supported for ios.
filter[platform]Filter by platform values (multiple values allowed). Supported for react.
filter[build_number]Filter by build number values (multiple values allowed). Supported for react.
filter[bundle_name]Filter by bundle name values (multiple values allowed). Supported for react.
filter[arch]Filter by architecture values (multiple values allowed). Supported
for flutter, elf, and ndk.
filter[symbol_source]Filter by symbol source values (multiple values allowed). Supported for elf.
filter[origin]Filter by origin values (multiple values allowed). Supported for elf.
filter[origin_version]Filter by origin version values (multiple values allowed). Supported for elf.
filter[filename]Filter by filename (single value). Supported for js, elf, ndk, wasm, and portable_pdb.
filter[debug_id]Filter by a single debug ID in UUID format. Supported for js and react.
For js, the lookup returns at most one result and does not require
service/version filters. For react, service/version filters remain required.
filter[gnu_build_id]Filter by GNU build ID (single value). Supported for elf.
filter[go_build_id]Filter by Go build ID (single value). Supported for elf.
filter[file_hash]Filter by file hash (single value). Supported for elf.
応答
OK
Response containing a paginated list of source maps.
data [required]List of source map data objects.
Object 1JavaScript source map data object.
attributes [required]Attributes of a JavaScript source map.
absolute_pathThe absolute path to the minified JavaScript file.
blob_storage_sourcemap_pathThe path to the source map in blob storage.
build_idThe build identifier.
created_at [required]The timestamp when the source map was created.
debug_idThe debug identifier (UUID format) that uniquely identifies this JavaScript source map. Returned for source maps indexed by debug ID.
domainThe domain associated with the source map.
file_nameThe file name of the minified JavaScript file.
mapkind [required]The type of source map. Always js for JavaScript source maps.
jsserviceThe service name associated with the source map.
size [required]The size of the source map file in bytes.
variantThe source map variant.
versionThe version of the service associated with the source map.
version_codeThe version code.
id [required]The unique identifier of the source map.
type [required]The resource type for source map objects.
sourcemapsObject 2React Native source map data object.
attributes [required]Attributes of a React Native source map.
build_numberThe build number.
bundle_nameThe bundle name.
bundle_versionThe bundle version.
created_at [required]The timestamp when the source map was created.
debug_idThe debug identifier (UUID format).
mapkind [required]The type of source map. Always react for React Native source maps.
reactplatformThe platform the source map was built for (e.g., ios, android).
serviceThe service name associated with the source map.
size [required]The size of the source map file in bytes.
versionThe version of the service associated with the source map.
id [required]The unique identifier of the source map.
type [required]The resource type for source map objects.
sourcemapsObject 3iOS dSYM source map data object.
attributes [required]Attributes of an iOS dSYM source map.
created_at [required]The timestamp when the source map was created.
mapkind [required]The type of source map. Always ios for iOS dSYM source maps.
iossize [required]The size of the dSYM file in bytes.
uuidsThe UUID(s) associated with the dSYM file.
id [required]The unique identifier of the source map.
type [required]The resource type for source map objects.
sourcemapsObject 4JVM (ProGuard/R8) mapping file data object.
attributes [required]Attributes of a JVM mapping file.
build_idThe build identifier (UUID format).
created_at [required]The timestamp when the mapping file was created.
mapkind [required]The type of source map. Always jvm for JVM source maps.
jvmserviceThe service name associated with the mapping file.
size [required]The size of the mapping file in bytes.
variantThe build variant (e.g., release, debug).
versionThe version of the service associated with the mapping file.
version_codeThe version code.
id [required]The unique identifier of the source map.
type [required]The resource type for source map objects.
sourcemapsObject 5Flutter symbol file data object.
attributes [required]Attributes of a Flutter symbol file.
archThe target CPU architecture.
created_at [required]The timestamp when the symbol file was created.
mapkind [required]The type of source map. Always flutter for Flutter source maps.
flutterserviceThe service name associated with the symbol file.
size [required]The size of the symbol file in bytes.
variantThe build variant.
versionThe version of the service associated with the symbol file.
id [required]The unique identifier of the source map.
type [required]The resource type for source map objects.
sourcemapsObject 6ELF symbol file data object.
attributes [required]Attributes of an ELF symbol file.
archThe target CPU architecture.
created_at [required]The timestamp when the symbol file was created.
file_hashThe SHA256 hash of the ELF file.
file_nameThe ELF file name.
gnu_build_idThe GNU build ID (UUID format).
go_build_idThe Go build ID (UUID format).
mapkind [required]The type of source map. Always elf for ELF source maps.
elforiginThe origin of the ELF file.
origin_versionThe version of the origin package.
size [required]The size of the ELF file in bytes.
symbol_sourceThe source of the debug symbols.
id [required]The unique identifier of the source map.
type [required]The resource type for source map objects.
sourcemapsObject 7Android NDK symbol file data object.
attributes [required]Attributes of an Android NDK symbol file.
archThe target CPU architecture.
build_idThe build identifier (UUID format).
created_at [required]The timestamp when the symbol file was created.
file_nameThe NDK library file name.
mapkind [required]The type of source map. Always ndk for Android NDK source maps.
ndksize [required]The size of the symbol file in bytes.
id [required]The unique identifier of the source map.
type [required]The resource type for source map objects.
sourcemapsObject 8IL2CPP mapping file data object.
attributes [required]Attributes of an IL2CPP mapping file.
build_idThe build identifier (UUID format).
created_at [required]The timestamp when the mapping file was created.
mapkind [required]The type of source map. Always il2cpp for IL2CPP source maps.
il2cppsize [required]The size of the mapping file in bytes.
id [required]The unique identifier of the source map.
type [required]The resource type for source map objects.
sourcemapsObject 9WebAssembly symbol file data object.
attributes [required]Attributes of a WebAssembly symbol file.
build_idThe build identifier.
created_atThe timestamp when the symbol file was created.
file_nameThe file name of the symbol file.
mapkind [required]The type of source map. Always wasm for WebAssembly symbol files.
wasmsizeThe size of the symbol file in bytes.
id [required]The unique identifier of the source map.
type [required]The resource type for source map objects.
sourcemapsObject 10Portable PDB file data object.
attributes [required]Attributes of a Portable PDB file.
build_idThe build identifier.
created_atThe timestamp when the symbol file was created.
file_nameThe file name of the symbol file.
mapkind [required]The type of source map. Always portable_pdb for Portable PDB files.
portable_pdbsizeThe size of the symbol file in bytes.
id [required]The unique identifier of the source map.
type [required]The resource type for source map objects.
sourcemapsmetaPagination metadata for the source maps list response.
page [required]Page information for the source maps list response.
has_more_results [required]Whether there are more results available beyond the current page.
next_cursorCursor for the next page of a JavaScript cursor-based listing. Pass
this value as page[after] with the same search mode and filters.
Only returned when another page is available.
total_filtered_count [required]Total number of matching source maps for legacy page-number pagination.
Cursor-based listings do not compute a total; this field may be zero
even when records are returned. Use has_more_results to continue.
{
"data": [
{
"attributes": {
"absolute_path": "/js/bundle.min.js",
"blob_storage_sourcemap_path": "org123/1.0.0/bundle.min.js.map",
"build_id": "abc123",
"created_at": "2024-01-01T00:00:00Z",
"debug_id": "00000000-0000-4000-8000-000000000001",
"domain": "example.com",
"file_name": "bundle.min.js",
"mapkind": "js",
"service": "my-web-service",
"size": 1024,
"variant": "release",
"version": "1.0.0",
"version_code": "100"
},
"id": "5",
"type": "sourcemaps"
}
],
"meta": {
"page": {
"has_more_results": false,
"next_cursor": "string",
"total_filtered_count": 100
}
}
}Bad Request
API error response.
errors [required]A list of errors.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Request Entity Too Large
API error response.
errors [required]A list of errors.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Too many requests
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Internal Server Error
API error response.
errors [required]A list of errors.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}コード例
# Required query arguments
export search_by="debug_id"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/sourcemaps/list?search_by=${search_by}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export search_by="debug_id"
# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/sourcemaps/list?search_by=${search_by}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export search_by="debug_id"
# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/sourcemaps/list?search_by=${search_by}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export search_by="debug_id"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/sourcemaps/list?search_by=${search_by}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export search_by="debug_id"
# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/sourcemaps/list?search_by=${search_by}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export search_by="debug_id"
# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/sourcemaps/list?search_by=${search_by}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export search_by="debug_id"
# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/sourcemaps/list?search_by=${search_by}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export search_by="debug_id"
# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/sourcemaps/list?search_by=${search_by}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export search_by="debug_id"
# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/sourcemaps/list?search_by=${search_by}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"