@@ -82,88 +82,90 @@ The following is a sample HTTP request to activate an eligible assignment for an
82
82
### Request
83
83
84
84
```` 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
86
86
````
87
87
88
88
### Request body
89
89
90
90
```` 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
+
109
110
````
110
111
111
112
### Response
112
113
113
114
Status code: 201
114
115
115
116
```` 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
-
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
+
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
+
167
169
````
168
170
169
171
## View the status of your requests
0 commit comments