@@ -77,88 +77,88 @@ The following is a sample HTTP request to activate an eligible assignment for an
77
77
### Request
78
78
79
79
```` HTTP
80
- 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
80
+ 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
81
81
````
82
82
83
83
### Request body
84
84
85
85
```` JSON
86
- {
87
- "properties" : {
88
- "principalId" : " a3bb8764-cb92-4276-9d2a-ca1e895e55ea" ,
89
- "roleDefinitionId" : " /subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608" ,
90
- "requestType" : " SelfActivate" ,
91
- "linkedRoleEligibilityScheduleId" : " b1477448-2cc6-4ceb-93b4-54a202a89413" ,
92
- "scheduleInfo" : {
93
- "startDateTime" : " 2020-09-09T21:35:27.91Z" ,
94
- "expiration" : {
95
- "type" : " AfterDuration" ,
96
- "endDateTime" : null ,
97
- "duration" : " PT8H"
98
- }
99
- },
100
- "condition" : " @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'" ,
101
- "conditionVersion" : " 1.0"
102
- }
103
- }
86
+ {
87
+ "properties" : {
88
+ "principalId" : " a3bb8764-cb92-4276-9d2a-ca1e895e55ea" ,
89
+ "roleDefinitionId" : " /subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608" ,
90
+ "requestType" : " SelfActivate" ,
91
+ "linkedRoleEligibilityScheduleId" : " b1477448-2cc6-4ceb-93b4-54a202a89413" ,
92
+ "scheduleInfo" : {
93
+ "startDateTime" : " 2020-09-09T21:35:27.91Z" ,
94
+ "expiration" : {
95
+ "type" : " AfterDuration" ,
96
+ "endDateTime" : null ,
97
+ "duration" : " PT8H"
98
+ }
99
+ },
100
+ "condition" : " @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'" ,
101
+ "conditionVersion" : " 1.0"
102
+ }
103
+ }
104
104
````
105
105
106
106
### Response
107
107
108
108
Status code: 201
109
109
110
110
```` HTTP
111
- {
112
- "properties": {
113
- "targetRoleAssignmentScheduleId": "c9e264ff-3133-4776-a81a-ebc7c33c8ec6",
114
- "targetRoleAssignmentScheduleInstanceId": null,
115
- "scope": "/providers/Microsoft.Subscription/ subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f",
116
- "roleDefinitionId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608",
117
- "principalId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
118
- "principalType": "User",
119
- "requestType": "SelfActivate",
120
- "status": "Provisioned",
121
- "approvalId": null,
122
- "scheduleInfo": {
123
- "startDateTime": "2020-09-09T21:35:27.91Z",
124
- "expiration": {
125
- "type": "AfterDuration",
126
- "endDateTime": null,
127
- "duration": "PT8H"
128
- }
129
- },
130
- "ticketInfo": {
131
- "ticketNumber": null,
132
- "ticketSystem": null
133
- },
134
- "justification": null,
135
- "requestorId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
136
- "createdOn": "2020-09-09T21:35:27.91Z",
137
- "condition": "@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'",
138
- "conditionVersion": "1.0",
139
- "expandedProperties": {
140
- "scope": {
141
- "id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f",
142
- "displayName": "Pay-As-You-Go",
143
- "type": "subscription"
144
- },
145
- "roleDefinition": {
146
- "id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608",
147
- "displayName": "Contributor",
148
- "type": "BuiltInRole"
149
- },
150
- "principal": {
151
- "id": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
152
- "displayName": "User Account",
153
-
154
- "type": "User"
155
- }
156
- }
157
- },
158
- "name": "fea7a502-9a96-4806-a26f-eee560e52045",
159
- "id": "/providers/Microsoft.Subscription/ subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/RoleAssignmentScheduleRequests/fea7a502-9a96-4806-a26f-eee560e52045",
160
- "type": "Microsoft.Authorization/RoleAssignmentScheduleRequests"
161
- }
111
+ {
112
+ "properties": {
113
+ "targetRoleAssignmentScheduleId": "c9e264ff-3133-4776-a81a-ebc7c33c8ec6",
114
+ "targetRoleAssignmentScheduleInstanceId": null,
115
+ "scope": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f",
116
+ "roleDefinitionId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608",
117
+ "principalId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
118
+ "principalType": "User",
119
+ "requestType": "SelfActivate",
120
+ "status": "Provisioned",
121
+ "approvalId": null,
122
+ "scheduleInfo": {
123
+ "startDateTime": "2020-09-09T21:35:27.91Z",
124
+ "expiration": {
125
+ "type": "AfterDuration",
126
+ "endDateTime": null,
127
+ "duration": "PT8H"
128
+ }
129
+ },
130
+ "ticketInfo": {
131
+ "ticketNumber": null,
132
+ "ticketSystem": null
133
+ },
134
+ "justification": null,
135
+ "requestorId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
136
+ "createdOn": "2020-09-09T21:35:27.91Z",
137
+ "condition": "@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'",
138
+ "conditionVersion": "1.0",
139
+ "expandedProperties": {
140
+ "scope": {
141
+ "id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f",
142
+ "displayName": "Pay-As-You-Go",
143
+ "type": "subscription"
144
+ },
145
+ "roleDefinition": {
146
+ "id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608",
147
+ "displayName": "Contributor",
148
+ "type": "BuiltInRole"
149
+ },
150
+ "principal": {
151
+ "id": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
152
+ "displayName": "User Account",
153
+
154
+ "type": "User"
155
+ }
156
+ }
157
+ },
158
+ "name": "fea7a502-9a96-4806-a26f-eee560e52045",
159
+ "id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/RoleAssignmentScheduleRequests/fea7a502-9a96-4806-a26f-eee560e52045",
160
+ "type": "Microsoft.Authorization/RoleAssignmentScheduleRequests"
161
+ }
162
162
````
163
163
164
164
## View the status of your requests
0 commit comments