cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API Poll to retrieve Storage Tier for AWS EC2 Hosts

Bwil818
Newcomer

Was unable to find any properties or meta data for Storage Tier provisioned for AWS hosts. Is there a call out there to accomplish this?

The exposed disk members only contain performance data, not properties for storage tiers like S3 / Glacier, etc

https://{environmentid}.live.dynatrace.com/api/v2/entities/HOST-****

Thanks,

Brian

1 REPLY 1

mark_bley
Dynatrace Champion
Dynatrace Champion

EC2 instances have relationships to AWS storage, this is displayed under the entity relationships.

Here is an example:

{
  "entityId": "EC2_INSTANCE-EF2433B7515B48A0",
  "type": "EC2_INSTANCE",
  "displayName": "flow-logs-ap-southeast-1a-ec2",
  ...
  "toRelationships": {
    "isDiskOf": [
      {
        "id": "EBS_VOLUME-6B4C8E3DE2799738",
        "type": "EBS_VOLUME"
      }
    ],
    "isSiteOf": [
      {
        "id": "AWS_AVAILABILITY_ZONE-134473C7CC0C725F",
        "type": "AWS_AVAILABILITY_ZONE"
      }
    ]
  }
}

The details to the EBS volume

{
  "entityId": "EBS_VOLUME-6B4C8E3DE2799738",
  "type": "EBS_VOLUME",
  "displayName": "vol-08e3f531511",
  "properties": {
    "detectedName": "vol-08e3f5315116",
    "ebsSnapshotId": "snap-0337e5de65d",
    "iops": 100,
    "creationTimestamp": 1717685627536,
    "ebsType": "gp2",
    "arn": "arn:aws:ec2:ap-southeast-1:2:volume/vol-08e3f5315",
    "deviceName": "/dev/sda1"
  },
  "tags": [
   ...
  ],
  "icon": {
    "primaryIconType": "amazon-ebs"
  },
  "fromRelationships": {
    "isDiskOf": [
      {
        "id": "EC2_INSTANCE-EF2433B7515B48A0",
        "type": "EC2_INSTANCE"
      }
    ]
  }
}

 You get the tier in the properties for the EBS volume, hope this helps.

This info comes from the entities API

Featured Posts