Skip to content

Commit 7a18f5d

Browse files
authored
Merge pull request #206068 from OWinfreyATL/owinfreyATL-PIM-ARM-API
Updated API samples
2 parents d789aaa + 3155c79 commit 7a18f5d

File tree

1 file changed

+73
-71
lines changed

1 file changed

+73
-71
lines changed

articles/active-directory/privileged-identity-management/pim-resource-roles-activate-your-roles.md

Lines changed: 73 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ms.collection: M365-identity-device-management
1919

2020
# Activate my Azure resource roles in Privileged Identity Management
2121

22-
Use Privileged Identity Management (PIM) in Azure Active Diretory (Azure AD), part of Microsoft Entra, to allow eligible role members for Azure resources to schedule activation for a future date and time. They can also select a specific activation duration within the maximum (configured by administrators).
22+
Use Privileged Identity Management (PIM) in Azure Active Directory (Azure AD), part of Microsoft Entra, to allow eligible role members for Azure resources to schedule activation for a future date and time. They can also select a specific activation duration within the maximum (configured by administrators).
2323

2424
This article is for members who need to activate their Azure resource role in Privileged Identity Management.
2525

@@ -82,88 +82,90 @@ The following is a sample HTTP request to activate an eligible assignment for an
8282
### Request
8383

8484
````HTTP
85-
PUT https://management.azure.com/providers/Microsoft.Subscription/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/64caffb6-55c0-4deb-a585-68e948ea1ad6?api-version=2020-10-01-preview
85+
PUT https://management.azure.com/providers/Microsoft.Subscription/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/fea7a502-9a96-4806-a26f-eee560e52045?api-version=2020-10-01
8686
````
8787

8888
### Request body
8989

9090
````JSON
91-
{
92-
"properties": {
93-
"principalId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
94-
"roleDefinitionId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608",
95-
"requestType": "SelfActivate",
96-
"linkedRoleEligibilityScheduleId": "b1477448-2cc6-4ceb-93b4-54a202a89413",
97-
"scheduleInfo": {
98-
"startDateTime": "2020-09-09T21:35:27.91Z",
99-
"expiration": {
100-
"type": "AfterDuration",
101-
"endDateTime": null,
102-
"duration": "PT8H"
103-
}
104-
},
105-
"condition": "@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'",
106-
"conditionVersion": "1.0"
107-
}
108-
}
91+
{
92+
"properties": {
93+
"principalId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
94+
"roleDefinitionId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608",
95+
"requestType": "SelfActivate",
96+
"linkedRoleEligibilityScheduleId": "b1477448-2cc6-4ceb-93b4-54a202a89413",
97+
"scheduleInfo": {
98+
"startDateTime": "2020-09-09T21:35:27.91Z",
99+
"expiration": {
100+
"type": "AfterDuration",
101+
"endDateTime": null,
102+
"duration": "PT8H"
103+
}
104+
},
105+
"condition": "@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'",
106+
"conditionVersion": "1.0"
107+
}
108+
}
109+
109110
````
110111

111112
### Response
112113

113114
Status code: 201
114115

115116
````HTTP
116-
{
117-
"properties": {
118-
"targetRoleAssignmentScheduleId": "c9e264ff-3133-4776-a81a-ebc7c33c8ec6",
119-
"targetRoleAssignmentScheduleInstanceId": null,
120-
"scope": "/providers/Microsoft.Subscription/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f",
121-
"roleDefinitionId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608",
122-
"principalId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
123-
"principalType": "User",
124-
"requestType": "SelfActivate",
125-
"status": "Provisioned",
126-
"approvalId": null,
127-
"scheduleInfo": {
128-
"startDateTime": "2020-09-09T21:35:27.91Z",
129-
"expiration": {
130-
"type": "AfterDuration",
131-
"endDateTime": null,
132-
"duration": "PT8H"
133-
}
134-
},
135-
"ticketInfo": {
136-
"ticketNumber": null,
137-
"ticketSystem": null
138-
},
139-
"justification": null,
140-
"requestorId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
141-
"createdOn": "2020-09-09T21:35:27.91Z",
142-
"condition": "@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'",
143-
"conditionVersion": "1.0",
144-
"expandedProperties": {
145-
"scope": {
146-
"id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f",
147-
"displayName": "Pay-As-You-Go",
148-
"type": "subscription"
149-
},
150-
"roleDefinition": {
151-
"id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608",
152-
"displayName": "Contributor",
153-
"type": "BuiltInRole"
154-
},
155-
"principal": {
156-
"id": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
157-
"displayName": "User Account",
158-
"email": "[email protected]",
159-
"type": "User"
160-
}
161-
}
162-
},
163-
"name": "fea7a502-9a96-4806-a26f-eee560e52045",
164-
"id": "/providers/Microsoft.Subscription/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/RoleAssignmentScheduleRequests/fea7a502-9a96-4806-a26f-eee560e52045",
165-
"type": "Microsoft.Authorization/RoleAssignmentScheduleRequests"
166-
}
117+
{
118+
"properties": {
119+
"targetRoleAssignmentScheduleId": "c9e264ff-3133-4776-a81a-ebc7c33c8ec6",
120+
"targetRoleAssignmentScheduleInstanceId": null,
121+
"scope": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f",
122+
"roleDefinitionId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608",
123+
"principalId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
124+
"principalType": "User",
125+
"requestType": "SelfActivate",
126+
"status": "Provisioned",
127+
"approvalId": null,
128+
"scheduleInfo": {
129+
"startDateTime": "2020-09-09T21:35:27.91Z",
130+
"expiration": {
131+
"type": "AfterDuration",
132+
"endDateTime": null,
133+
"duration": "PT8H"
134+
}
135+
},
136+
"ticketInfo": {
137+
"ticketNumber": null,
138+
"ticketSystem": null
139+
},
140+
"justification": null,
141+
"requestorId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
142+
"createdOn": "2020-09-09T21:35:27.91Z",
143+
"condition": "@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'",
144+
"conditionVersion": "1.0",
145+
"expandedProperties": {
146+
"scope": {
147+
"id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f",
148+
"displayName": "Pay-As-You-Go",
149+
"type": "subscription"
150+
},
151+
"roleDefinition": {
152+
"id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608",
153+
"displayName": "Contributor",
154+
"type": "BuiltInRole"
155+
},
156+
"principal": {
157+
"id": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
158+
"displayName": "User Account",
159+
"email": "[email protected]",
160+
"type": "User"
161+
}
162+
}
163+
},
164+
"name": "fea7a502-9a96-4806-a26f-eee560e52045",
165+
"id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/RoleAssignmentScheduleRequests/fea7a502-9a96-4806-a26f-eee560e52045",
166+
"type": "Microsoft.Authorization/RoleAssignmentScheduleRequests"
167+
}
168+
167169
````
168170

169171
## View the status of your requests

0 commit comments

Comments
 (0)