Sha256: 1d7609017afdb1ae3251924fa2858d1c2ca814beeacec5671d05a98a7c0bddb1
Contents?: true
Size: 1.57 KB
Versions: 19
Compression:
Stored size: 1.57 KB
Contents
# Update Scanning Group 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::SensitiveDataScannerGroupUpdateRequest.new({ meta: DatadogAPIClient::V2::SensitiveDataScannerMetaVersionOnly.new({}), data: DatadogAPIClient::V2::SensitiveDataScannerGroupUpdate.new({ id: GROUP_DATA_ID, type: DatadogAPIClient::V2::SensitiveDataScannerGroupType::SENSITIVE_DATA_SCANNER_GROUP, attributes: DatadogAPIClient::V2::SensitiveDataScannerGroupAttributes.new({ name: "Example-Sensitive-Data-Scanner", is_enabled: false, product_list: [ DatadogAPIClient::V2::SensitiveDataScannerProduct::LOGS, ], filter: DatadogAPIClient::V2::SensitiveDataScannerFilter.new({ query: "*", }), }), relationships: DatadogAPIClient::V2::SensitiveDataScannerGroupRelationships.new({ configuration: DatadogAPIClient::V2::SensitiveDataScannerConfigurationData.new({ data: DatadogAPIClient::V2::SensitiveDataScannerConfiguration.new({ type: DatadogAPIClient::V2::SensitiveDataScannerConfigurationType::SENSITIVE_DATA_SCANNER_CONFIGURATIONS, id: CONFIGURATION_DATA_ID, }), }), rules: DatadogAPIClient::V2::SensitiveDataScannerRuleData.new({ data: [], }), }), }), }) p api_instance.update_scanning_group(GROUP_DATA_ID, body)
Version data entries
19 entries across 19 versions & 1 rubygems