Role Assignment Schedule Requests - Get
Hämta den angivna begäran om rolltilldelningsschema.
GET https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}?api-version=2020-10-01
URI-parametrar
| Name | I | Obligatorisk | Typ | Description |
|---|---|---|---|---|
|
role
|
path | True |
string |
Namnet (guid) för den begäran om rolltilldelningsschema som ska hämtas. |
|
scope
|
path | True |
string |
Omfånget för begäran om rolltilldelningsschema. |
|
api-version
|
query | True |
string minLength: 1 |
DEN API-version som ska användas för den här åtgärden. |
Svar
| Name | Typ | Description |
|---|---|---|
| 200 OK |
OK – Returnerar information om begäran om rolltilldelningsschema. |
|
| Other Status Codes |
Felsvar som beskriver varför åtgärden misslyckades. |
Säkerhet
azure_auth
Azure Active Directory OAuth2-flöde
Typ:
oauth2
Flow:
implicit
Auktoriseringswebbadress:
https://login.microsoftonline.com/common/oauth2/authorize
Omfattningar
| Name | Description |
|---|---|
| user_impersonation | personifiera ditt användarkonto |
Exempel
GetRoleAssignmentScheduleRequestByName
Exempelbegäran
GET 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
Exempelsvar
{
"properties": {
"targetRoleAssignmentScheduleId": "b1477448-2cc6-4ceb-93b4-54a202a89413",
"targetRoleAssignmentScheduleInstanceId": null,
"scope": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f",
"roleDefinitionId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608",
"principalId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
"principalType": "User",
"requestType": "SelfActivate",
"status": "Provisioned",
"approvalId": null,
"scheduleInfo": {
"startDateTime": "2020-09-09T21:35:27.91Z",
"expiration": {
"type": "AfterDuration",
"endDateTime": null,
"duration": "PT8H"
}
},
"ticketInfo": {
"ticketNumber": null,
"ticketSystem": null
},
"justification": null,
"requestorId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
"createdOn": "2020-09-09T21:35:27.91Z",
"condition": "@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'",
"conditionVersion": "1.0",
"expandedProperties": {
"scope": {
"id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f",
"displayName": "Pay-As-You-Go",
"type": "subscription"
},
"roleDefinition": {
"id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608",
"displayName": "Contributor",
"type": "BuiltInRole"
},
"principal": {
"id": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
"displayName": "User Account",
"email": "user@my-tenant.com",
"type": "User"
}
}
},
"name": "fea7a502-9a96-4806-a26f-eee560e52045",
"id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/RoleAssignmentScheduleRequests/fea7a502-9a96-4806-a26f-eee560e52045",
"type": "Microsoft.Authorization/RoleAssignmentScheduleRequests"
}
Definitioner
| Name | Description |
|---|---|
|
Cloud |
Ett felsvar från tjänsten. |
|
Cloud |
Ett felsvar från tjänsten. |
|
Expanded |
|
| Expiration |
Förfallodatum för rolltilldelningsschemat |
| Principal |
Information om huvudkontot |
|
principal |
Huvudtypen för det tilldelade huvudnamns-ID:t. |
|
Request |
Typ av begäran om rolltilldelningsschema. T.ex. SelfActivate, AdminAssign osv. |
|
Role |
Begäran om schema för rolltilldelning |
|
Role |
Information om rolldefinition |
|
Schedule |
Schemalägg information om rolltilldelningsschemat |
| Scope |
Information om resursomfånget |
| Status |
Status för begäran om rolltilldelningsschema. |
|
Ticket |
Biljettinformation för rolltilldelningen |
| Type |
Typ av förfallodatum för rolltilldelningsschemat |
CloudError
Ett felsvar från tjänsten.
| Name | Typ | Description |
|---|---|---|
| error |
Ett felsvar från tjänsten. |
CloudErrorBody
Ett felsvar från tjänsten.
| Name | Typ | Description |
|---|---|---|
| code |
string |
En identifierare för felet. Koder är invarianta och är avsedda att användas programmatiskt. |
| message |
string |
Ett meddelande som beskriver felet, avsett att vara lämpligt för visning i ett användargränssnitt. |
ExpandedProperties
| Name | Typ | Description |
|---|---|---|
| principal |
Information om huvudkontot |
|
| roleDefinition |
Information om rolldefinition |
|
| scope |
Information om resursomfånget |
Expiration
Förfallodatum för rolltilldelningsschemat
| Name | Typ | Description |
|---|---|---|
| duration |
string |
Varaktighet för rolltilldelningsschemat i TimeSpan. |
| endDateTime |
string (date-time) |
End DateTime för rolltilldelningsschemat. |
| type |
Typ av förfallodatum för rolltilldelningsschemat |
Principal
Information om huvudkontot
| Name | Typ | Description |
|---|---|---|
| displayName |
string |
Huvudnamnets visningsnamn |
|
string |
E-post-ID för huvudkontot |
|
| id |
string |
ID för huvudkontot |
| type |
string |
Typ av huvudnamn |
principalType
Huvudtypen för det tilldelade huvudnamns-ID:t.
| Värde | Description |
|---|---|
| User | |
| Group | |
| ServicePrincipal | |
| ForeignGroup | |
| Device |
RequestType
Typ av begäran om rolltilldelningsschema. T.ex. SelfActivate, AdminAssign osv.
| Värde | Description |
|---|---|
| AdminAssign | |
| AdminRemove | |
| AdminUpdate | |
| AdminExtend | |
| AdminRenew | |
| SelfActivate | |
| SelfDeactivate | |
| SelfExtend | |
| SelfRenew |
RoleAssignmentScheduleRequest
Begäran om schema för rolltilldelning
| Name | Typ | Description |
|---|---|---|
| id |
string |
Begärande-ID för rolltilldelningsschema. |
| name |
string |
Namn på begäran om rolltilldelningsschema. |
| properties.approvalId |
string |
ApprovalId för begäran om rolltilldelningsschema. |
| properties.condition |
string |
Villkoren för rolltilldelningen. Detta begränsar de resurser som den kan tilldelas till. t.ex. @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase "foo_storage_container" |
| properties.conditionVersion |
string |
Version av villkoret. Det godkända värdet är för närvarande "2.0" |
| properties.createdOn |
string (date-time) |
DateTime när begäran om rolltilldelningsschema skapades |
| properties.expandedProperties |
Ytterligare egenskaper för huvudnamn, omfång och rolldefinition |
|
| properties.justification |
string |
Motivering för rolltilldelningen |
| properties.linkedRoleEligibilityScheduleId |
string |
Schema-ID för länkad rollberättigande – för att aktivera en berättigande. |
| properties.principalId |
string |
Huvud-ID:t. |
| properties.principalType |
Huvudtypen för det tilldelade huvudnamns-ID:t. |
|
| properties.requestType |
Typ av begäran om rolltilldelningsschema. T.ex. SelfActivate, AdminAssign osv. |
|
| properties.requestorId |
string |
ID för användaren som skapade den här begäran |
| properties.roleDefinitionId |
string |
Rolldefinitions-ID. |
| properties.scheduleInfo |
Schemalägg information om rolltilldelningsschemat |
|
| properties.scope |
string |
Omfånget för begäran om rolltilldelningsschema. |
| properties.status |
Status för begäran om rolltilldelningsschema. |
|
| properties.targetRoleAssignmentScheduleId |
string |
Det resulterande rolltilldelningsschema-ID eller rolltilldelningsschema-ID som uppdateras |
| properties.targetRoleAssignmentScheduleInstanceId |
string |
Instans-ID:t för rolltilldelningsschemat uppdateras |
| properties.ticketInfo |
Biljettinformation för rolltilldelningen |
|
| type |
string |
Typ av begäran om rolltilldelningsschema. |
RoleDefinition
Information om rolldefinition
| Name | Typ | Description |
|---|---|---|
| displayName |
string |
Visningsnamn för rolldefinitionen |
| id |
string |
ID för rolldefinitionen |
| type |
string |
Typ av rolldefinition |
ScheduleInfo
Schemalägg information om rolltilldelningsschemat
| Name | Typ | Description |
|---|---|---|
| expiration |
Förfallodatum för rolltilldelningsschemat |
|
| startDateTime |
string (date-time) |
StartdatumTid för rolltilldelningsschemat. |
Scope
Information om resursomfånget
| Name | Typ | Description |
|---|---|---|
| displayName |
string |
Resursens visningsnamn |
| id |
string |
Resursens omfångs-ID |
| type |
string |
Typ av resurs |
Status
Status för begäran om rolltilldelningsschema.
| Värde | Description |
|---|---|
| Accepted | |
| PendingEvaluation | |
| Granted | |
| Denied | |
| PendingProvisioning | |
| Provisioned | |
| PendingRevocation | |
| Revoked | |
| Canceled | |
| Failed | |
| PendingApprovalProvisioning | |
| PendingApproval | |
| FailedAsResourceIsLocked | |
| PendingAdminDecision | |
| AdminApproved | |
| AdminDenied | |
| TimedOut | |
| ProvisioningStarted | |
| Invalid | |
| PendingScheduleCreation | |
| ScheduleCreated | |
| PendingExternalProvisioning |
TicketInfo
Biljettinformation för rolltilldelningen
| Name | Typ | Description |
|---|---|---|
| ticketNumber |
string |
Biljettnummer för rolltilldelningen |
| ticketSystem |
string |
Biljettsystemnamn för rolltilldelningen |
Type
Typ av förfallodatum för rolltilldelningsschemat
| Värde | Description |
|---|---|
| AfterDuration | |
| AfterDateTime | |
| NoExpiration |