| title | Get awsPolicy |
|---|---|
| description | Read the properties and relationships of an awsPolicy object. |
| author | mrudulahg01 |
| ms.reviewer | ciem_pm |
| ms.localizationpriority | medium |
| ms.subservice | entra-permissions-management |
| doc_type | apiPageType |
| ms.date | 04/18/2024 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
[!INCLUDE permissions-management-retirement-note]
Read the properties and relationships of a single awsPolicy object in an AWS authorization system. An AWS policy is an object in AWS that defines the permissions of the associated entity or resource. When a principal, such as a user, makes a request, the policies and their associated permissions determine whether the request is allowed or denied.
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.
[!INCLUDE permissions-table]
GET /external/authorizationSystems/{id}/microsoft.graph.awsAuthorizationSystem/policies/{awsPolicyId}
GET /external/authorizationSystems/{id}/microsoft.graph.awsAuthorizationSystem/policies(externalId='{externalId}')This method supports the $select OData query parameter to help customize the response. For general information, see OData query parameters.
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this method returns a 200 OK response code and an awsPolicy object in the response body.
The following example shows a request to Retrieve the details of an AWS policy by its ID.
GET https://graph.microsoft.com/beta/external/authorizationSystems/{id}/microsoft.graph.awsAuthorizationSystem/policies/YXJuOmF3czppYW06OjEyMzQ1Njc4OTAxMjpwb2xpY3kvQUFBLWxpc3RQdXRHZXRBbGxCdWNrZXRz[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
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
{
"value":
{
"@odata.type": "#microsoft.graph.awsPolicy",
"id": "YXJuOmF3czppYW06OjEyMzQ1Njc4OTAxMjpwb2xpY3kvQUFBLWxpc3RQdXRHZXRBbGxCdWNrZXRz",
"externalId": "arn:aws:iam::123456789012:policy/AAA-listPutGetAllBuckets",
"displayName": "AAA-listPutGetAllBuckets",
"awsPolicyType": "custom"
}
}