Sha256: a978eb14d27f9d94f7a2c758649e1e45a06f313743826cd2e40a4da6bac32864

Contents?: true

Size: 630 Bytes

Versions: 3

Compression:

Stored size: 630 Bytes

Contents

# Add Fastly account returns "CREATED" response

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

body = DatadogAPIClient::V2::FastlyAccountCreateRequest.new({
  data: DatadogAPIClient::V2::FastlyAccountCreateRequestData.new({
    attributes: DatadogAPIClient::V2::FastlyAccountCreateRequestAttributes.new({
      api_key: "ExampleAddFastlyaccountreturnsCREATEDresponse",
      name: "Example-Add_Fastly_account_returns_CREATED_response",
      services: [],
    }),
    type: DatadogAPIClient::V2::FastlyAccountType::FASTLY_ACCOUNTS,
  }),
})
p api_instance.create_fastly_account(body)

Version data entries

3 entries across 3 versions & 1 rubygems

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