For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ko/api/latest/security-monitoring/update-a-batch-migration.md. A documentation index is available at /llms.txt.
Language
Datadog site

Update a batch migration

경고Note: This endpoint is in Preview and is subject to change. To request access, contact Datadog support or your Customer Success Manager.
PATCHhttps://api.datadoghq.com/api/v2/security_monitoring/batch-migrations/{batch_id}https://api.us3.datadoghq.com/api/v2/security_monitoring/batch-migrations/{batch_id}https://api.us5.datadoghq.com/api/v2/security_monitoring/batch-migrations/{batch_id}https://api.datadoghq.eu/api/v2/security_monitoring/batch-migrations/{batch_id}https://api.ap1.datadoghq.com/api/v2/security_monitoring/batch-migrations/{batch_id}https://api.ap2.datadoghq.com/api/v2/security_monitoring/batch-migrations/{batch_id}https://api.uk1.datadoghq.com/api/v2/security_monitoring/batch-migrations/{batch_id}https://api.ddog-gov.com/api/v2/security_monitoring/batch-migrations/{batch_id}https://api.us2.ddog-gov.com/api/v2/security_monitoring/batch-migrations/{batch_id}

개요

Update the name, description, or tags of a batch migration, in any status. At least one of these attributes must be provided. Omitted attributes are left unchanged, and tags replaces the full list of tags.

This endpoint requires the security_monitoring_rules_write permission.

OAuth apps require the security_monitoring_rules_write authorization scope to access this endpoint.

인수

경로 파라미터

이름
유형
설명
batch_id [required]
string

The UUID of the batch migration.

요청

Body Data (required)

항목
유형
설명
data [required]
object

Data of the batch migration to update.

응답

OK

Response containing a batch migration.

항목
유형
설명
data [required]
object

A batch migration.

코드 예시

Update a batch migration returns "OK" response
# Path parameters
export batch_id="7cdb3a75-64fb-46ce-9445-41969e78fe8e"

# 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 PATCH "https://api.${DD_SITE}/api/v2/security_monitoring/batch-migrations/${batch_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "type": "batchMigration",
    "attributes": {
      "name": "Example-Security-Monitoring-updated",
      "tags": [
        "source:splunk",
        "team:secops"
      ]
    }
  }
}
EOF
# Path parameters
export batch_id="7cdb3a75-64fb-46ce-9445-41969e78fe8e"

# 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 PATCH "https://api.${DD_SITE}/api/v2/security_monitoring/batch-migrations/${batch_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "type": "batchMigration",
    "attributes": {
      "name": "Example-Security-Monitoring-updated",
      "tags": [
        "source:splunk",
        "team:secops"
      ]
    }
  }
}
EOF
# Path parameters
export batch_id="7cdb3a75-64fb-46ce-9445-41969e78fe8e"

# 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 PATCH "https://api.${DD_SITE}/api/v2/security_monitoring/batch-migrations/${batch_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "type": "batchMigration",
    "attributes": {
      "name": "Example-Security-Monitoring-updated",
      "tags": [
        "source:splunk",
        "team:secops"
      ]
    }
  }
}
EOF
# Path parameters
export batch_id="7cdb3a75-64fb-46ce-9445-41969e78fe8e"

# 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 PATCH "https://api.${DD_SITE}/api/v2/security_monitoring/batch-migrations/${batch_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "type": "batchMigration",
    "attributes": {
      "name": "Example-Security-Monitoring-updated",
      "tags": [
        "source:splunk",
        "team:secops"
      ]
    }
  }
}
EOF
# Path parameters
export batch_id="7cdb3a75-64fb-46ce-9445-41969e78fe8e"

# 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 PATCH "https://api.${DD_SITE}/api/v2/security_monitoring/batch-migrations/${batch_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "type": "batchMigration",
    "attributes": {
      "name": "Example-Security-Monitoring-updated",
      "tags": [
        "source:splunk",
        "team:secops"
      ]
    }
  }
}
EOF
# Path parameters
export batch_id="7cdb3a75-64fb-46ce-9445-41969e78fe8e"

# 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 PATCH "https://api.${DD_SITE}/api/v2/security_monitoring/batch-migrations/${batch_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "type": "batchMigration",
    "attributes": {
      "name": "Example-Security-Monitoring-updated",
      "tags": [
        "source:splunk",
        "team:secops"
      ]
    }
  }
}
EOF
# Path parameters
export batch_id="7cdb3a75-64fb-46ce-9445-41969e78fe8e"

# 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 PATCH "https://api.${DD_SITE}/api/v2/security_monitoring/batch-migrations/${batch_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "type": "batchMigration",
    "attributes": {
      "name": "Example-Security-Monitoring-updated",
      "tags": [
        "source:splunk",
        "team:secops"
      ]
    }
  }
}
EOF
# Path parameters
export batch_id="7cdb3a75-64fb-46ce-9445-41969e78fe8e"

# 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 PATCH "https://api.${DD_SITE}/api/v2/security_monitoring/batch-migrations/${batch_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "type": "batchMigration",
    "attributes": {
      "name": "Example-Security-Monitoring-updated",
      "tags": [
        "source:splunk",
        "team:secops"
      ]
    }
  }
}
EOF
# Path parameters
export batch_id="7cdb3a75-64fb-46ce-9445-41969e78fe8e"

# 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 PATCH "https://api.${DD_SITE}/api/v2/security_monitoring/batch-migrations/${batch_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "type": "batchMigration",
    "attributes": {
      "name": "Example-Security-Monitoring-updated",
      "tags": [
        "source:splunk",
        "team:secops"
      ]
    }
  }
}
EOF