Microsoft.Authorization roleEligibilityScheduleRequests

Bicep 資源定義

roleEligibilityScheduleRequests 資源類型是 延伸模塊資源,這表示您可以將它套用至另一個資源。

scope使用此資源上的 屬性來設定此資源的範圍。 請參閱 在 Bicep 中設定擴充功能資源的範圍

roleEligibilityScheduleRequests 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.Authorization/roleEligibilityScheduleRequests 資源,請將下列 Bicep 新增至您的範本。

resource symbolicname 'Microsoft.Authorization/roleEligibilityScheduleRequests@2022-04-01-preview' = {
  name: 'string'
  scope: resourceSymbolicName or tenant()
  properties: {
    condition: 'string'
    conditionVersion: 'string'
    justification: 'string'
    principalId: 'string'
    requestType: 'string'
    roleDefinitionId: 'string'
    scheduleInfo: {
      expiration: {
        duration: 'string'
        endDateTime: 'string'
        type: 'string'
      }
      startDateTime: 'string'
    }
    targetRoleEligibilityScheduleId: 'string'
    targetRoleEligibilityScheduleInstanceId: 'string'
    ticketInfo: {
      ticketNumber: 'string'
      ticketSystem: 'string'
    }
  }
}

屬性值

roleEligibilityScheduleRequests

名稱 描述
NAME 資源名稱 需要字串 ()
範圍 在與部署範圍不同的範圍內建立擴充資源時,請使用 。 目標資源

針對 Bicep,請將此屬性設定為資源的符號名稱,以套用 延伸模組資源

此資源類型也可以套用至租使用者。
針對 Bicep,請使用 tenant()
properties 角色資格排程要求屬性。 RoleEligibilityScheduleRequestProperties

RoleEligibilityScheduleRequestProperties

名稱 描述
condition (條件) 角色指派的條件。 這會限制可指派的資源。例如: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container' 字串
conditionVersion 條件的版本。 目前接受的值為 '2.0' 字串
理由 角色資格的理由 字串
principalId 主體標識碼。 需要字串 ()
requestType 角色指派排程要求的型別。 例如:SelfActivate、AdminAssign 等 'AdminAssign'
'AdminExtend'
'AdminRemove'
'AdminRenew'
'AdminUpdate'
'SelfActivate'
'SelfDeactivate'
'SelfExtend'
需要 『SelfRenew』 ()
roleDefinitionId 角色定義識別碼。 需要字串 ()
scheduleInfo 角色資格排程的排程資訊 RoleEligibilityScheduleRequestPropertiesScheduleInfo
targetRoleEligibilityScheduleId 正在更新的結果角色資格排程標識碼或角色資格排程標識碼 字串
targetRoleEligibilityScheduleInstanceId 正在更新的角色資格排程實例標識碼 字串
ticketInfo 角色資格的票證資訊 RoleEligibilityScheduleRequestPropertiesTicketInfo

RoleEligibilityScheduleRequestPropertiesScheduleInfo

名稱 描述
到期 角色資格排程的到期日 RoleEligibilityScheduleRequestPropertiesScheduleInfo...
startDateTime 角色資格排程的開始日期時間。 字串

RoleEligibilityScheduleRequestPropertiesScheduleInfo...

名稱 描述
持續時間 TimeSpan 中角色資格排程的持續時間。 字串
endDateTime 角色資格排程的結束日期時間。 字串
type 角色資格排程到期的類型 'AfterDateTime'
'AfterDuration'
'NoExpiration'

RoleEligibilityScheduleRequestPropertiesTicketInfo

名稱 描述
ticketNumber 角色資格的票證號碼 字串
ticketSystem 角色資格的票證系統名稱 字串

ARM 範本資源定義

roleEligibilityScheduleRequests 資源類型是 延伸模塊資源,這表示您可以將它套用至另一個資源。

scope使用此資源上的 屬性來設定此資源的範圍。 請參閱 在ARM範本中設定擴充功能資源的範圍

roleEligibilityScheduleRequests 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

資源格式

若要建立 Microsoft.Authorization/roleEligibilityScheduleRequests 資源,請將下列 JSON 新增至您的範本。

{
  "type": "Microsoft.Authorization/roleEligibilityScheduleRequests",
  "apiVersion": "2022-04-01-preview",
  "name": "string",
  "scope": "string" or "/",
  "properties": {
    "condition": "string",
    "conditionVersion": "string",
    "justification": "string",
    "principalId": "string",
    "requestType": "string",
    "roleDefinitionId": "string",
    "scheduleInfo": {
      "expiration": {
        "duration": "string",
        "endDateTime": "string",
        "type": "string"
      },
      "startDateTime": "string"
    },
    "targetRoleEligibilityScheduleId": "string",
    "targetRoleEligibilityScheduleInstanceId": "string",
    "ticketInfo": {
      "ticketNumber": "string",
      "ticketSystem": "string"
    }
  }
}

屬性值

roleEligibilityScheduleRequests

名稱 描述
類型 資源類型 'Microsoft.Authorization/roleEligibilityScheduleRequests'
apiVersion 資源 API 版本 '2022-04-01-preview'
NAME 資源名稱 字串 (必要)
範圍 在與部署範圍不同的範圍建立擴充資源時,請使用 。 目標資源

針對 JSON,請將值設定為要套用 擴充資源 的資源完整名稱。

此資源類型也可以套用至租使用者。
針對 JSON,請使用 "/"
properties 角色資格排程要求屬性。 RoleEligibilityScheduleRequestProperties

RoleEligibilityScheduleRequestProperties

名稱 描述
condition (條件) 角色指派的條件。 這會限制其可指派的資源。例如: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container' 字串
conditionVersion 條件的版本。 目前接受的值是 '2.0' 字串
理由 角色資格的理由 字串
principalId 主體標識碼。 字串 (必要)
requestType 角色指派排程要求的型別。 例如:SelfActivate、AdminAssign 等 'AdminAssign'
'AdminExtend'
'AdminRemove'
'AdminRenew'
'AdminUpdate'
'SelfActivate'
'SelfDeactivate'
'SelfExtend'
必要 ('SelfRenew')
roleDefinitionId 角色定義識別碼。 字串 (必要)
scheduleInfo 角色資格排程的排程資訊 RoleEligibilityScheduleRequestPropertiesScheduleInfo
targetRoleEligibilityScheduleId 正在更新的結果角色資格排程標識碼或角色資格排程標識碼 字串
targetRoleEligibilityScheduleInstanceId 正在更新的角色資格排程實例標識碼 字串
ticketInfo 角色資格的票證資訊 RoleEligibilityScheduleRequestPropertiesTicketInfo

RoleEligibilityScheduleRequestPropertiesScheduleInfo

名稱 描述
到期 角色資格排程的到期日 RoleEligibilityScheduleRequestPropertiesScheduleInfo...
startDateTime 角色資格排程的開始日期時間。 字串

RoleEligibilityScheduleRequestPropertiesScheduleInfo...

名稱 描述
持續時間 TimeSpan 中角色資格排程的持續時間。 字串
endDateTime 角色資格排程的結束日期時間。 字串
type 角色資格排程到期的類型 'AfterDateTime'
'AfterDuration'
'NoExpiration'

RoleEligibilityScheduleRequestPropertiesTicketInfo

名稱 描述
ticketNumber 角色資格的票證號碼 字串
ticketSystem 角色資格的票證系統名稱 字串

Terraform (AzAPI 提供者) 資源定義

roleEligibilityScheduleRequests 資源類型是 延伸模塊資源,這表示您可以將它套用至另一個資源。

parent_id使用此資源上的 屬性來設定此資源的範圍。

roleEligibilityScheduleRequests 資源類型可以使用目標作業來部署:

  • 資源群組
  • 訂用帳戶
  • 管理群組
  • 租用戶

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

資源格式

若要建立 Microsoft.Authorization/roleEligibilityScheduleRequests 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Authorization/roleEligibilityScheduleRequests@2022-04-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      condition = "string"
      conditionVersion = "string"
      justification = "string"
      principalId = "string"
      requestType = "string"
      roleDefinitionId = "string"
      scheduleInfo = {
        expiration = {
          duration = "string"
          endDateTime = "string"
          type = "string"
        }
        startDateTime = "string"
      }
      targetRoleEligibilityScheduleId = "string"
      targetRoleEligibilityScheduleInstanceId = "string"
      ticketInfo = {
        ticketNumber = "string"
        ticketSystem = "string"
      }
    }
  })
}

屬性值

roleEligibilityScheduleRequests

名稱 描述
類型 資源類型 “Microsoft.Authorization/roleEligibilityScheduleRequests@2022-04-01-preview”
NAME 資源名稱 字串 (必要)
parent_id 要套用此延伸模組資源的資源標識碼。 字串 (必要)
properties 角色資格排程要求屬性。 RoleEligibilityScheduleRequestProperties

RoleEligibilityScheduleRequestProperties

名稱 描述
condition (條件) 角色指派的條件。 這會限制其可指派的資源。例如: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container' 字串
conditionVersion 條件的版本。 目前接受的值是 '2.0' 字串
理由 角色資格的理由 字串
principalId 主體標識碼。 字串 (必要)
requestType 角色指派排程要求的型別。 例如:SelfActivate、AdminAssign 等 “AdminAssign”
“AdminExtend”
“AdminRemove”
“AdminRenew”
“AdminUpdate”
“SelfActivate”
“SelfDeactivate”
“SelfExtend”
必要) “SelfRenew” (
roleDefinitionId 角色定義識別碼。 字串 (必要)
scheduleInfo 角色資格排程的排程資訊 RoleEligibilityScheduleRequestPropertiesScheduleInfo
targetRoleEligibilityScheduleId 正在更新的結果角色資格排程標識碼或角色資格排程標識碼 字串
targetRoleEligibilityScheduleInstanceId 正在更新的角色資格排程實例標識碼 字串
ticketInfo 角色資格的票證資訊 RoleEligibilityScheduleRequestPropertiesTicketInfo

RoleEligibilityScheduleRequestPropertiesScheduleInfo

名稱 描述
到期 角色資格排程的到期日 RoleEligibilityScheduleRequestPropertiesScheduleInfo...
startDateTime 角色資格排程的開始日期時間。 字串

RoleEligibilityScheduleRequestPropertiesScheduleInfo...

名稱 描述
持續時間 TimeSpan 中角色資格排程的持續時間。 字串
endDateTime 角色資格排程的結束日期時間。 字串
type 角色資格排程到期的類型 “AfterDateTime”
“AfterDuration”
“NoExpiration”

RoleEligibilityScheduleRequestPropertiesTicketInfo

名稱 描述
ticketNumber 角色資格的票證號碼 字串
ticketSystem 角色資格的票證系統名稱 字串