Sha256: abf7c3f4b02b223075f44027f51c41076a1f6bfaf05c3547750f0ebb0a1992ac

Contents?: true

Size: 481 Bytes

Versions: 8

Compression:

Stored size: 481 Bytes

Contents

# Create a project returns "CREATED" response

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

body = DatadogAPIClient::V2::ProjectCreateRequest.new({
  data: DatadogAPIClient::V2::ProjectCreate.new({
    attributes: DatadogAPIClient::V2::ProjectCreateAttributes.new({
      key: "SEC",
      name: "Security Investigation",
    }),
    type: DatadogAPIClient::V2::ProjectResourceType::PROJECT,
  }),
})
p api_instance.create_project(body)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v2/case-management/CreateProject.rb
datadog_api_client-2.27.1 examples/v2/case-management/CreateProject.rb
datadog_api_client-2.26.1 examples/v2/case-management/CreateProject.rb
datadog_api_client-2.26.0 examples/v2/case-management/CreateProject.rb
datadog_api_client-2.25.0 examples/v2/case-management/CreateProject.rb
datadog_api_client-2.24.0 examples/v2/case-management/CreateProject.rb
datadog_api_client-2.22.0 examples/v2/case-management/CreateProject.rb
datadog_api_client-2.21.0 examples/v2/case-management/CreateProject.rb