Sha256: ad3699dd47eb4fe21071a941fa3c91ef1bb1e8b062e3bb25e4d4128b8a613c02

Contents?: true

Size: 1.12 KB

Versions: 25

Compression:

Stored size: 1.12 KB

Contents

# Reorder Groups returns "OK" response

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

# there is a valid "scanning_group" in the system
GROUP_DATA_ID = ENV["GROUP_DATA_ID"]

# a valid "configuration" in the system
CONFIGURATION_DATA_ID = ENV["CONFIGURATION_DATA_ID"]

body = DatadogAPIClient::V2::SensitiveDataScannerConfigRequest.new({
  data: DatadogAPIClient::V2::SensitiveDataScannerReorderConfig.new({
    relationships: DatadogAPIClient::V2::SensitiveDataScannerConfigurationRelationships.new({
      groups: DatadogAPIClient::V2::SensitiveDataScannerGroupList.new({
        data: [
          DatadogAPIClient::V2::SensitiveDataScannerGroupItem.new({
            type: DatadogAPIClient::V2::SensitiveDataScannerGroupType::SENSITIVE_DATA_SCANNER_GROUP,
            id: GROUP_DATA_ID,
          }),
        ],
      }),
    }),
    type: DatadogAPIClient::V2::SensitiveDataScannerConfigurationType::SENSITIVE_DATA_SCANNER_CONFIGURATIONS,
    id: CONFIGURATION_DATA_ID,
  }),
  meta: DatadogAPIClient::V2::SensitiveDataScannerMetaVersionOnly.new({}),
})
p api_instance.reorder_scanning_groups(body)

Version data entries

25 entries across 25 versions & 1 rubygems

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