Sha256: 8dfb2051002b7d6e89ba8da158eb220f62e0fe5371df673a678ae53b45f5e4d9

Contents?: true

Size: 1.36 KB

Versions: 16

Compression:

Stored size: 1.36 KB

Contents

# Update your organization returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::OrganizationsAPI.new

body = DatadogAPIClient::V1::Organization.new({
  billing: DatadogAPIClient::V1::OrganizationBilling.new({
    type: "parent_billing",
  }),
  description: "some description",
  name: "New child org",
  public_id: "abcdef12345",
  settings: DatadogAPIClient::V1::OrganizationSettings.new({
    private_widget_share: false,
    saml: DatadogAPIClient::V1::OrganizationSettingsSaml.new({
      enabled: false,
    }),
    saml_autocreate_access_role: DatadogAPIClient::V1::AccessRole::READ_ONLY,
    saml_autocreate_users_domains: DatadogAPIClient::V1::OrganizationSettingsSamlAutocreateUsersDomains.new({
      domains: [
        "example.com",
      ],
      enabled: false,
    }),
    saml_can_be_enabled: false,
    saml_idp_endpoint: "https://my.saml.endpoint",
    saml_idp_initiated_login: DatadogAPIClient::V1::OrganizationSettingsSamlIdpInitiatedLogin.new({
      enabled: false,
    }),
    saml_idp_metadata_uploaded: false,
    saml_login_url: "https://my.saml.login.url",
    saml_strict_mode: DatadogAPIClient::V1::OrganizationSettingsSamlStrictMode.new({
      enabled: false,
    }),
  }),
  subscription: DatadogAPIClient::V1::OrganizationSubscription.new({
    type: "pro",
  }),
  trial: false,
})
p api_instance.update_org("abc123", body)

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.27.1 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.26.1 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.26.0 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.25.0 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.24.0 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.22.0 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.21.0 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.20.0 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.19.0 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.18.0 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.17.0 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.16.0 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.15.0 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.14.0 examples/v1/organizations/UpdateOrg.rb
datadog_api_client-2.13.0 examples/v1/organizations/UpdateOrg.rb