Sha256: b044289c4e7af81bae606aa8dde246207ee191bba69003695491ba86f37eaa88

Contents?: true

Size: 680 Bytes

Versions: 15

Compression:

Stored size: 680 Bytes

Contents

# Create a private location returns "OK" response

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

# there is a valid "role" in the system
ROLE_DATA_ID = ENV["ROLE_DATA_ID"]

body = DatadogAPIClient::V1::SyntheticsPrivateLocation.new({
  description: "Test Example-Create_a_private_location_returns_OK_response description",
  metadata: DatadogAPIClient::V1::SyntheticsPrivateLocationMetadata.new({
    restricted_roles: [
      ROLE_DATA_ID,
    ],
  }),
  name: "Example-Create_a_private_location_returns_OK_response",
  tags: [
    "test:examplecreateaprivatelocationreturnsokresponse",
  ],
})
p api_instance.create_private_location(body)

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
datadog_api_client-2.9.0 examples/v1/synthetics/CreatePrivateLocation.rb
datadog_api_client-2.8.0 examples/v1/synthetics/CreatePrivateLocation.rb
datadog_api_client-2.7.0 examples/v1/synthetics/CreatePrivateLocation.rb
datadog_api_client-2.6.0 examples/v1/synthetics/CreatePrivateLocation.rb
datadog_api_client-2.5.0 examples/v1/synthetics/CreatePrivateLocation.rb
datadog_api_client-2.4.0 examples/v1/synthetics/CreatePrivateLocation.rb
datadog_api_client-2.3.0 examples/v1/synthetics/CreatePrivateLocation.rb
datadog_api_client-2.2.0 examples/v1/synthetics/CreatePrivateLocation.rb
datadog_api_client-2.1.0 examples/v1/synthetics/CreatePrivateLocation.rb
datadog_api_client-2.0.2 examples/v1/synthetics/CreatePrivateLocation.rb
datadog_api_client-2.0.1 examples/v1/synthetics/CreatePrivateLocation.rb
datadog_api_client-2.0.0 examples/v1/synthetics/CreatePrivateLocation.rb
datadog_api_client-1.11.0 examples/v1/synthetics/CreatePrivateLocation.rb
datadog_api_client-1.10.0 examples/v1/synthetics/CreatePrivateLocation.rb
datadog_api_client-1.9.0 examples/v1/synthetics/CreatePrivateLocation.rb