Sha256: f729a52a2c47fcacb4d46631737415c7ebb91ab3b6b3736fec69816be4bc618c

Contents?: true

Size: 578 Bytes

Versions: 1

Compression:

Stored size: 578 Bytes

Contents

# Delete Multiple Apps returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
  config.unstable_operations["v2.delete_apps".to_sym] = true
end
api_instance = DatadogAPIClient::V2::AppsAPI.new

# there is a valid "app" in the system
APP_DATA_ID = ENV["APP_DATA_ID"]

body = DatadogAPIClient::V2::DeleteAppsRequest.new({
  data: [
    DatadogAPIClient::V2::DeleteAppsRequestDataItems.new({
      id: APP_DATA_ID,
      type: DatadogAPIClient::V2::DeleteAppsRequestDataItemsType::APPDEFINITIONS,
    }),
  ],
})
p api_instance.delete_apps(body)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datadog_api_client-2.29.1 examples/v2/apps/DeleteApps.rb