Sha256: 1db37fb97485c1e9697e2134d26e854128beba0e8e1d49489e0fcfa435b1ab6a

Contents?: true

Size: 545 Bytes

Versions: 23

Compression:

Stored size: 545 Bytes

Contents

# Add Fastly service returns "CREATED" 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.create_fastly_service("account_id", body)

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
datadog_api_client-2.29.1 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.28.1 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.27.1 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.26.1 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.26.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.25.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.24.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.22.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.21.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.20.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.19.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.18.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.17.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.16.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.15.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.14.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.13.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.12.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.11.0 examples/v2/fastly-integration/CreateFastlyService.rb
datadog_api_client-2.10.0 examples/v2/fastly-integration/CreateFastlyService.rb