Delete source maps
https://api.datadoghq.com/api/v2/sourcemapshttps://api.us3.datadoghq.com/api/v2/sourcemapshttps://api.us5.datadoghq.com/api/v2/sourcemapshttps://api.datadoghq.eu/api/v2/sourcemapshttps://api.ap1.datadoghq.com/api/v2/sourcemapshttps://api.ap2.datadoghq.com/api/v2/sourcemapshttps://api.uk1.datadoghq.com/api/v2/sourcemapshttps://api.ddog-gov.com/api/v2/sourcemapshttps://api.us2.ddog-gov.com/api/v2/sourcemapsDescripción general
Deletes source maps matching the specified filter criteria. Supports dry-run mode to preview which source maps would be deleted without performing the actual deletion.
Argumentos
Cadenas de consulta
mapkind [required]The type of source map. Valid values are js, jvm, ios,
react, flutter, elf, ndk, il2cpp, wasm, portable_pdb.
js, jvm, ios, react, flutter, elf, ndk, il2cpp, wasm, portable_pdbdry_run [required]When set to true, returns the source maps that would be deleted
without performing the actual deletion. When set to false,
performs the deletion.
filter[service]Filter by service names (multiple values allowed). Required for
js, jvm, react, and flutter map kinds.
filter[version]Filter by version values (multiple values allowed, maximum 10).
Required for js, jvm, react, and flutter map kinds.
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 debug ID (single value). Supported for react.
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.
Respuesta
OK
Response containing a list of affected 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.
sourcemaps{
"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"
}
]
}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"
}
]
}Not Found
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"
}
]
}Ejemplo de código
# Required query arguments
export mapkind="js"
export dry_run="true"
# 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 DELETE "https://api.${DD_SITE}/api/v2/sourcemaps?mapkind=${mapkind}&dry_run=${dry_run}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export mapkind="js"
export dry_run="true"
# 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 DELETE "https://api.${DD_SITE}/api/v2/sourcemaps?mapkind=${mapkind}&dry_run=${dry_run}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export mapkind="js"
export dry_run="true"
# 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 DELETE "https://api.${DD_SITE}/api/v2/sourcemaps?mapkind=${mapkind}&dry_run=${dry_run}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export mapkind="js"
export dry_run="true"
# 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 DELETE "https://api.${DD_SITE}/api/v2/sourcemaps?mapkind=${mapkind}&dry_run=${dry_run}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export mapkind="js"
export dry_run="true"
# 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 DELETE "https://api.${DD_SITE}/api/v2/sourcemaps?mapkind=${mapkind}&dry_run=${dry_run}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export mapkind="js"
export dry_run="true"
# 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 DELETE "https://api.${DD_SITE}/api/v2/sourcemaps?mapkind=${mapkind}&dry_run=${dry_run}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export mapkind="js"
export dry_run="true"
# 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 DELETE "https://api.${DD_SITE}/api/v2/sourcemaps?mapkind=${mapkind}&dry_run=${dry_run}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export mapkind="js"
export dry_run="true"
# 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 DELETE "https://api.${DD_SITE}/api/v2/sourcemaps?mapkind=${mapkind}&dry_run=${dry_run}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Required query arguments
export mapkind="js"
export dry_run="true"
# 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 DELETE "https://api.${DD_SITE}/api/v2/sourcemaps?mapkind=${mapkind}&dry_run=${dry_run}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"