Sha256: 0b04ed518bcc9783598bd0af452a4e275666b8766c62fac592f1eaca821dabc3

Contents?: true

Size: 722 Bytes

Versions: 11

Compression:

Stored size: 722 Bytes

Contents

# Update Okta account returns "OK" response

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

# there is a valid "okta_account" in the system
OKTA_ACCOUNT_DATA_ID = ENV["OKTA_ACCOUNT_DATA_ID"]

body = DatadogAPIClient::V2::OktaAccountUpdateRequest.new({
  data: DatadogAPIClient::V2::OktaAccountUpdateRequestData.new({
    attributes: DatadogAPIClient::V2::OktaAccountUpdateRequestAttributes.new({
      auth_method: "oauth",
      domain: "https://example.okta.com/",
      client_id: "client_id",
      client_secret: "client_secret",
    }),
    type: DatadogAPIClient::V2::OktaAccountType::OKTA_ACCOUNTS,
  }),
})
p api_instance.update_okta_account(OKTA_ACCOUNT_DATA_ID, body)

Version data entries

11 entries across 11 versions & 1 rubygems

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