For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/ko/api/latest/rum/get-service-repository-information.md. A documentation index is available at /llms.txt.
Language
Datadog site

서비스 리포지토리 정보 가져오기

경고Note: This endpoint is in preview and is subject to change. If you have any feedback, contact Datadog support.
POSThttps://api.datadoghq.com/api/v2/sourcemaps/service_repository_infohttps://api.us3.datadoghq.com/api/v2/sourcemaps/service_repository_infohttps://api.us5.datadoghq.com/api/v2/sourcemaps/service_repository_infohttps://api.datadoghq.eu/api/v2/sourcemaps/service_repository_infohttps://api.ap1.datadoghq.com/api/v2/sourcemaps/service_repository_infohttps://api.ap2.datadoghq.com/api/v2/sourcemaps/service_repository_infohttps://api.uk1.datadoghq.com/api/v2/sourcemaps/service_repository_infohttps://api.ddog-gov.com/api/v2/sourcemaps/service_repository_infohttps://api.us2.ddog-gov.com/api/v2/sourcemaps/service_repository_info

개요

특정 서비스 및 버전과 관련된 리포지토리 URL 및 커밋 SHA를 반환합니다.

This endpoint requires the rum_apps_read permission.

요청

Body Data (required)

항목
유형
설명
data [required]
object

서비스 리포지토리 정보를 가져오기 위한 요청 본문입니다.

응답

OK

Response containing service repository information.

항목
유형
설명
data [required]
object

Data object for the service repository info response.

코드 예시

서비스 리포지토리 정보 가져오기
# 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 POST "https://api.${DD_SITE}/api/v2/sourcemaps/service_repository_info" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "service": "my-web-service",
      "version": "1.0.0"
    },
    "type": "service_repository_info"
  }
}
EOF
# 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 POST "https://api.${DD_SITE}/api/v2/sourcemaps/service_repository_info" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "service": "my-web-service",
      "version": "1.0.0"
    },
    "type": "service_repository_info"
  }
}
EOF
# 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 POST "https://api.${DD_SITE}/api/v2/sourcemaps/service_repository_info" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "service": "my-web-service",
      "version": "1.0.0"
    },
    "type": "service_repository_info"
  }
}
EOF
# 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 POST "https://api.${DD_SITE}/api/v2/sourcemaps/service_repository_info" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "service": "my-web-service",
      "version": "1.0.0"
    },
    "type": "service_repository_info"
  }
}
EOF
# 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 POST "https://api.${DD_SITE}/api/v2/sourcemaps/service_repository_info" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "service": "my-web-service",
      "version": "1.0.0"
    },
    "type": "service_repository_info"
  }
}
EOF
# 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 POST "https://api.${DD_SITE}/api/v2/sourcemaps/service_repository_info" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "service": "my-web-service",
      "version": "1.0.0"
    },
    "type": "service_repository_info"
  }
}
EOF
# 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 POST "https://api.${DD_SITE}/api/v2/sourcemaps/service_repository_info" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "service": "my-web-service",
      "version": "1.0.0"
    },
    "type": "service_repository_info"
  }
}
EOF
# 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 POST "https://api.${DD_SITE}/api/v2/sourcemaps/service_repository_info" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "service": "my-web-service",
      "version": "1.0.0"
    },
    "type": "service_repository_info"
  }
}
EOF
# 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 POST "https://api.${DD_SITE}/api/v2/sourcemaps/service_repository_info" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "service": "my-web-service",
      "version": "1.0.0"
    },
    "type": "service_repository_info"
  }
}
EOF