Sha256: eaa8ea938f1b34d98d28c0d68e2764b971338c16370ef47157533730ed770dfa

Contents?: true

Size: 557 Bytes

Versions: 22

Compression:

Stored size: 557 Bytes

Contents

# Update Fastly service returns "OK" response

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

body = DatadogAPIClient::V2::FastlyServiceRequest.new({
  data: DatadogAPIClient::V2::FastlyServiceData.new({
    attributes: DatadogAPIClient::V2::FastlyServiceAttributes.new({
      tags: [
        "myTag",
        "myTag2:myValue",
      ],
    }),
    id: "abc123",
    type: DatadogAPIClient::V2::FastlyServiceType::FASTLY_SERVICES,
  }),
})
p api_instance.update_fastly_service("account_id", "service_id", body)

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
datadog_api_client-2.8.0 examples/v2/fastly-integration/UpdateFastlyService.rb
datadog_api_client-2.7.0 examples/v2/fastly-integration/UpdateFastlyService.rb