Sha256: 8a84ce090d4e0dd6329d77badb78e1379ddcdf2a6212b4f31e0db266c0914c22

Contents?: true

Size: 526 Bytes

Versions: 5

Compression:

Stored size: 526 Bytes

Contents

# Update the tags for a device returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::NetworkDeviceMonitoringAPI.new

body = DatadogAPIClient::V2::ListTagsResponse.new({
  data: DatadogAPIClient::V2::ListTagsResponseData.new({
    attributes: DatadogAPIClient::V2::ListTagsResponseDataAttributes.new({
      tags: [
        "tag:test",
        "tag:testbis",
      ],
    }),
    id: "default_device",
    type: "tags",
  }),
})
p api_instance.update_device_user_tags("default_device", body)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v2/network-device-monitoring/UpdateDeviceUserTags.rb
datadog_api_client-2.27.1 examples/v2/network-device-monitoring/UpdateDeviceUserTags.rb
datadog_api_client-2.26.1 examples/v2/network-device-monitoring/UpdateDeviceUserTags.rb
datadog_api_client-2.26.0 examples/v2/network-device-monitoring/UpdateDeviceUserTags.rb
datadog_api_client-2.25.0 examples/v2/network-device-monitoring/UpdateDeviceUserTags.rb