Sha256: c8c16a1f3a2037833b8637ecf47b1a3528e073b9e33804de1ea507bf7c04980f

Contents?: true

Size: 647 Bytes

Versions: 9

Compression:

Stored size: 647 Bytes

Contents

# Add Okta account returns "OK" response

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

body = DatadogAPIClient::V2::OktaAccountRequest.new({
  data: DatadogAPIClient::V2::OktaAccount.new({
    attributes: DatadogAPIClient::V2::OktaAccountAttributes.new({
      auth_method: "oauth",
      domain: "https://example.okta.com/",
      name: "exampleoktaintegration",
      client_id: "client_id",
      client_secret: "client_secret",
    }),
    id: "f749daaf-682e-4208-a38d-c9b43162c609",
    type: DatadogAPIClient::V2::OktaAccountType::OKTA_ACCOUNTS,
  }),
})
p api_instance.create_okta_account(body)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v2/okta-integration/CreateOktaAccount.rb
datadog_api_client-2.27.1 examples/v2/okta-integration/CreateOktaAccount.rb
datadog_api_client-2.26.1 examples/v2/okta-integration/CreateOktaAccount.rb
datadog_api_client-2.26.0 examples/v2/okta-integration/CreateOktaAccount.rb
datadog_api_client-2.25.0 examples/v2/okta-integration/CreateOktaAccount.rb
datadog_api_client-2.24.0 examples/v2/okta-integration/CreateOktaAccount.rb
datadog_api_client-2.22.0 examples/v2/okta-integration/CreateOktaAccount.rb
datadog_api_client-2.21.0 examples/v2/okta-integration/CreateOktaAccount.rb
datadog_api_client-2.20.0 examples/v2/okta-integration/CreateOktaAccount.rb