List actions (for an AWS authorization system)

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

List the awsAuthorizationSystemTypeAction objects and their properties.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) Not supported. Not supported.
Delegated (personal Microsoft account) Not supported. Not supported.
Application Not supported. Not supported.

HTTP request

GET /external/authorizationSystems/{id}/microsoft.graph.awsAuthorizationSystem/actions

Optional query parameters

This method supports the $select, $filter, $count, $top, and $skipToken OData query parameters to help customize the response. For general information, see OData query parameters.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and a collection of awsAuthorizationSystemTypeAction objects in the response body.

Examples

Example 1: List all actions for an AWS authorization system

Request

The following example shows a request to retrieve all actions for an AWS authorization system.

GET https://graph.microsoft.com/beta/external/authorizationSystems/{id}/microsoft.graph.awsAuthorizationSystem/actions

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#external/authorizationSystems/{id}/actions",
  "value": [
    {
      "@odata.type": "graph.awsAuthorizationSystemTypeAction",
      "id": "ZWMyOkFjY2VwdFJlc2VydmVkSW5zdGFuY2VzRXhjaGFuZ2VRdW90ZQ==",
      "externalId": "ec2:AcceptReservedInstancesExchangeQuote",
      "resourceTypes": ["reserved-instances"],
      "severity": "high",
      "actionType": null,
      "service": {
        "id": "ec2"
      }
    },
    {
      "@odata.type": "graph.awsAuthorizationSystemTypeAction",
      "id": "ZWMyOkFsbG9jYXRlQWRkcmVzcw==",
      "externalId": "ec2:AllocateAddress",
      "resourceTypes": ["ipv4pool-ec2"],
      "severity": "normal",
      "actionType": null,
      "service": {
        "id": "ec2"
      }
    },
    {
      "@odata.type": "graph.awsAuthorizationSystemTypeAction",
      "id": "ZWMyOkRlbGV0ZVJvdXRl",
      "externalId": "ec2:DeleteRoute",
      "resourceTypes": ["route-table", "prefix-list"],
      "severity": "high",
      "actionType": "delete",
      "service": {
        "id": "ec2"
      }
    },
    {
      "@odata.type": "graph.awsAuthorizationSystemTypeAction",
      "id": "czM6QWJvcnRNdWx0aXBhcnRVcGxvYWQ=",
      "externalId": "s3:AbortMultipartUpload",
      "resourceTypes": ["object"],
      "severity": "normal",
      "actionType": null,
      "service": {
        "id": "s3"
      }
    },
    {
      "@odata.type": "graph.awsAuthorizationSystemTypeAction",
      "id": "czM6Q29tcGxldGVNdWx0aXBhcnRVcGxvYWQ=",
      "externalId": "s3:CompleteMultipartUpload",
      "resourceTypes": ["bucket"],
      "severity": "high",
      "actionType": null,
      "service": {
        "id": "s3"
      }
    },
    {
      "@odata.type": "graph.awsAuthorizationSystemTypeAction",
      "id": "czM6Q29weU9iamVjdA==",
      "externalId": "s3:CopyObject",
      "resourceTypes": ["bucket"],
      "severity": "high",
      "actionType": null,
      "service": {
        "id": "s3"
      }
    }
  ]
}

Example 2: List actions for a specific service in an AWS authorization system

Request

The following example shows a request to retrieve the actions for an AWS authorization system where the service that the action is performed on is ec2.

GET https://graph.microsoft.com/beta/external/authorizationSystems/{id}/microsoft.graph.awsAuthorizationSystem/actions?$filter=service/id eq 'ec2'

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#external/authorizationSystems/{id}/microsoft.graph.awsAuthorizationSystem/actions?$filter=service/id eq 'ec2'",
  "value": [
    {
      "id": "ZWMyOkFjY2VwdFJlc2VydmVkSW5zdGFuY2VzRXhjaGFuZ2VRdW90ZQ==",
      "externalId": "ec2:AcceptReservedInstancesExchangeQuote",
      "resourceTypes": ["reserved-instances"],
      "severity": "high",
      "actionType": null,
      "service": {
        "id": "ec2"
      }
    },
    {
      "id": "ZWMyOkFsbG9jYXRlQWRkcmVzcw==",
      "externalId": "ec2:AllocateAddress",
      "resourceTypes": ["ipv4pool-ec2"],
      "severity": "normal",
      "actionType": null,
      "service": {
        "id": "ec2"
      }
    },
    {
      "id": "ZWMyOkRlbGV0ZVJvdXRl",
      "externalId": "ec2:DeleteRoute",
      "resourceTypes": ["route-table", "prefix-list"],
      "severity": "high",
      "actionType": "delete",
      "service": {
        "id": "ec2"
      }
    }
  ]
}

Example 3: List high risk delete actions for a specific service in the AWS authorization system

Request

The following example shows a request that retrieves actions for an AWS authorization system where the service that the action is performed on is ec2 and the action is a high risk delete action.

GET https://graph.microsoft.com/beta/external/authorizationSystems/{id}/microsoft.graph.awsAuthorizationSystem/actions?$filter=service/id eq 'ec2' and severity eq 'high' and actionType eq 'delete'

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#external/authorizationSystems/{id}/microsoft.graph.awsAuthorizationSystem/actions?$filter=service/id eq 'ec2' and severity eq 'high' and actionType eq 'delete'",
  "value": [
    {
      "id": "ZWMyOkRlbGV0ZUN1c3RvbWVyR2F0ZXdheQ==",
      "externalId": "ec2:DeleteCustomerGateway",
      "resourceTypes": ["customer-gateway"],
      "severity": "high",
      "actionType": "delete",
      "service": {
        "id": "ec2"
      }
    },
    {
      "id": "ZWMyOkRlbGV0ZVJvdXRl",
      "externalId": "ec2:DeleteRoute",
      "resourceTypes": ["route-table", "prefix-list"],
      "severity": "high",
      "actionType": "delete",
      "service": {
        "id": "ec2"
      }
    }
  ]
}