Sha256: 9b684b7b9a189404ada995643d80d2d6de381fff764d70009fa965ece2e4a502

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new
archive_id = "archive_id_example" # String | The ID of the archive.
body = DatadogAPIClient::V2::RelationshipToRole.new # RelationshipToRole |

begin
  # Grant role to an archive
  api_instance.add_read_role_to_archive(archive_id, body)
rescue DatadogAPIClient::V2::APIError => e
  puts "Error when calling LogsArchivesAPI->add_read_role_to_archive: #{e}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datadog_api_client-1.7.0 examples/generated/v2/logs-archives/AddReadRoleToArchive.rb