共用方式為


Microsoft.ApiManagement 服務/門戶設置 2021-04-01-preview

Bicep 資源定義

服務/入口網站設定資源類型可以使用目標作業來部署:

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

資源格式

若要建立 Microsoft.ApiManagement/service/portalsettings 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.ApiManagement/service/portalsettings@2021-04-01-preview' = {
  name: 'string'
  // For remaining properties, see microsoft.apimanagement/service/portalsettings objects
}

microsoft.apimanagement/service/portalsettings 物件

設定 名稱 屬性,以指定物件的類型。

針對 登入,請使用:

{
  name: 'signin'
  properties: {
    enabled: bool
  }
}

針對 註冊,請使用:

{
  name: 'signup'
  properties: {
    enabled: bool
    termsOfService: {
      consentRequired: bool
      enabled: bool
      text: 'string'
    }
  }
}

針對 委派,請使用:

{
  name: 'delegation'
  properties: {
    subscriptions: {
      enabled: bool
    }
    url: 'string'
    userRegistration: {
      enabled: bool
    }
    validationKey: 'string'
  }
}

屬性值

Microsoft.ApiManagement/service/portal設置

名字 描述 價值
名字 資源名稱 'signin' (必要)
父母 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型的資源符號名稱:服務
性能 登入設定合約屬性。 PortalSigninSettingProperties

Microsoft.ApiManagement/service/portal設置

名字 描述 價值
名字 資源名稱 'signup' (必要)
父母 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型的資源符號名稱:服務
性能 註冊設定合約屬性。 PortalSignupSettingsProperties

Microsoft.ApiManagement/service/portal設置

名字 描述 價值
名字 資源名稱 '委派' (必要)
父母 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型的資源符號名稱:服務
性能 委派設定合約屬性。 PortalDelegationSettingsProperties

microsoft.apimanagement/service/portalsettings

名字 描述 價值
名字 針對類型 Microsoft.ApiManagement/service/portalsettings設定為 'signin'。 設定為類型為 Microsoft.ApiManagement/service/portalsettings的 'signup'。 針對類型 Microsoft.ApiManagement/service/portalsettings設定為 'delegation'。 'delegation'
'signin'
'signup' (必要)

PortalDelegationSettingsProperties

名字 描述 價值
訂閱 訂用帳戶委派設定。 SubscriptionsDelegationSettingsProperties
URL 委派 URL。 字串
用戶註冊 用戶註冊委派設定。 RegistrationDelegationSettingsProperties
validationKey 要驗證的base64編碼驗證金鑰,要求來自 Azure API 管理。 字串

約束:
敏感性值。 以安全參數的形式傳入。

PortalSigninSettingProperties

名字 描述 價值
啟用 將匿名使用者重新導向至 Sign-In 頁面。 布爾 (bool)

PortalSignupSettingsProperties

名字 描述 價值
啟用 允許使用者在開發人員入口網站上註冊。 布爾 (bool)
服務條款 服務條款合約屬性。 TermsOfServiceProperties

RegistrationDelegationSettingsProperties

名字 描述 價值
啟用 啟用或停用用戶註冊的委派。 布爾 (bool)

SubscriptionsDelegationSettingsProperties

名字 描述 價值
啟用 啟用或停用訂閱的委派。 布爾 (bool)

TermsOfServiceProperties

名字 描述 價值
同意必需 要求使用者同意服務條款。 布爾 (bool)
啟用 在註冊程式期間顯示服務條款。 布爾 (bool)
發簡訊 服務條款文字。 字串

ARM 樣本資源定義

服務/入口網站設定資源類型可以使用目標作業來部署:

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

資源格式

若要建立 Microsoft.ApiManagement/service/portalsettings 資源,請將下列 JSON 新增至範本。

{
  "name": "string"
  // For remaining properties, see microsoft.apimanagement/service/portalsettings objects
}

microsoft.apimanagement/service/portalsettings 物件

設定 名稱 屬性,以指定物件的類型。

針對 登入,請使用:

{
  "name": "signin",
  "properties": {
    "enabled": "bool"
  }
}

針對 註冊,請使用:

{
  "name": "signup",
  "properties": {
    "enabled": "bool",
    "termsOfService": {
      "consentRequired": "bool",
      "enabled": "bool",
      "text": "string"
    }
  }
}

針對 委派,請使用:

{
  "name": "delegation",
  "properties": {
    "subscriptions": {
      "enabled": "bool"
    },
    "url": "string",
    "userRegistration": {
      "enabled": "bool"
    },
    "validationKey": "string"
  }
}

屬性值

Microsoft.ApiManagement/service/portal設置

名字 描述 價值
apiVersion API 版本 “2021-04-01-預覽”
名字 資源名稱 'signin' (必要)
性能 登入設定合約屬性。 PortalSigninSettingProperties
類型 資源類型 “Microsoft.ApiManagement/service/portalsettings”

Microsoft.ApiManagement/service/portal設置

名字 描述 價值
apiVersion API 版本 “2021-04-01-預覽”
名字 資源名稱 'signup' (必要)
性能 註冊設定合約屬性。 PortalSignupSettingsProperties
類型 資源類型 “Microsoft.ApiManagement/service/portalsettings”

Microsoft.ApiManagement/service/portal設置

名字 描述 價值
apiVersion API 版本 “2021-04-01-預覽”
名字 資源名稱 '委派' (必要)
性能 委派設定合約屬性。 PortalDelegationSettingsProperties
類型 資源類型 “Microsoft.ApiManagement/service/portalsettings”

microsoft.apimanagement/service/portalsettings

名字 描述 價值
名字 針對類型 Microsoft.ApiManagement/service/portalsettings設定為 'signin'。 設定為類型為 Microsoft.ApiManagement/service/portalsettings的 'signup'。 針對類型 Microsoft.ApiManagement/service/portalsettings設定為 'delegation'。 'delegation'
'signin'
'signup' (必要)

PortalDelegationSettingsProperties

名字 描述 價值
訂閱 訂用帳戶委派設定。 SubscriptionsDelegationSettingsProperties
URL 委派 URL。 字串
用戶註冊 用戶註冊委派設定。 RegistrationDelegationSettingsProperties
validationKey 要驗證的base64編碼驗證金鑰,要求來自 Azure API 管理。 字串

約束:
敏感性值。 以安全參數的形式傳入。

PortalSigninSettingProperties

名字 描述 價值
啟用 將匿名使用者重新導向至 Sign-In 頁面。 布爾 (bool)

PortalSignupSettingsProperties

名字 描述 價值
啟用 允許使用者在開發人員入口網站上註冊。 布爾 (bool)
服務條款 服務條款合約屬性。 TermsOfServiceProperties

RegistrationDelegationSettingsProperties

名字 描述 價值
啟用 啟用或停用用戶註冊的委派。 布爾 (bool)

SubscriptionsDelegationSettingsProperties

名字 描述 價值
啟用 啟用或停用訂閱的委派。 布爾 (bool)

TermsOfServiceProperties

名字 描述 價值
同意必需 要求使用者同意服務條款。 布爾 (bool)
啟用 在註冊程式期間顯示服務條款。 布爾 (bool)
發簡訊 服務條款文字。 字串

使用範例

Terraform (AzAPI 提供者) 資源定義

服務/入口網站設定資源類型可以使用目標作業來部署:

  • 資源群組

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  name = "string"
  // For remaining properties, see microsoft.apimanagement/service/portalsettings objects
}

microsoft.apimanagement/service/portalsettings 物件

設定 名稱 屬性,以指定物件的類型。

針對 登入,請使用:

{
  name = "signin"
  properties = {
    enabled = bool
  }
}

針對 註冊,請使用:

{
  name = "signup"
  properties = {
    enabled = bool
    termsOfService = {
      consentRequired = bool
      enabled = bool
      text = "string"
    }
  }
}

針對 委派,請使用:

{
  name = "delegation"
  properties = {
    subscriptions = {
      enabled = bool
    }
    url = "string"
    userRegistration = {
      enabled = bool
    }
    validationKey = "string"
  }
}

屬性值

Microsoft.ApiManagement/service/portal設置

名字 描述 價值
名字 資源名稱 'signin' (必要)
父項識別碼 此資源為父系之資源的標識碼。 類型的資源標識碼:服務
性能 登入設定合約屬性。 PortalSigninSettingProperties
類型 資源類型 “Microsoft.ApiManagement/service/portalsettings@2021-04-01-preview”

Microsoft.ApiManagement/service/portal設置

名字 描述 價值
名字 資源名稱 'signup' (必要)
父項識別碼 此資源為父系之資源的標識碼。 類型的資源標識碼:服務
性能 註冊設定合約屬性。 PortalSignupSettingsProperties
類型 資源類型 “Microsoft.ApiManagement/service/portalsettings@2021-04-01-preview”

Microsoft.ApiManagement/service/portal設置

名字 描述 價值
名字 資源名稱 '委派' (必要)
父項識別碼 此資源為父系之資源的標識碼。 類型的資源標識碼:服務
性能 委派設定合約屬性。 PortalDelegationSettingsProperties
類型 資源類型 “Microsoft.ApiManagement/service/portalsettings@2021-04-01-preview”

microsoft.apimanagement/service/portalsettings

名字 描述 價值
名字 針對類型 Microsoft.ApiManagement/service/portalsettings設定為 'signin'。 設定為類型為 Microsoft.ApiManagement/service/portalsettings的 'signup'。 針對類型 Microsoft.ApiManagement/service/portalsettings設定為 'delegation'。 'delegation'
'signin'
'signup' (必要)

PortalDelegationSettingsProperties

名字 描述 價值
訂閱 訂用帳戶委派設定。 SubscriptionsDelegationSettingsProperties
URL 委派 URL。 字串
用戶註冊 用戶註冊委派設定。 RegistrationDelegationSettingsProperties
validationKey 要驗證的base64編碼驗證金鑰,要求來自 Azure API 管理。 字串

約束:
敏感性值。 以安全參數的形式傳入。

PortalSigninSettingProperties

名字 描述 價值
啟用 將匿名使用者重新導向至 Sign-In 頁面。 布爾 (bool)

PortalSignupSettingsProperties

名字 描述 價值
啟用 允許使用者在開發人員入口網站上註冊。 布爾 (bool)
服務條款 服務條款合約屬性。 TermsOfServiceProperties

RegistrationDelegationSettingsProperties

名字 描述 價值
啟用 啟用或停用用戶註冊的委派。 布爾 (bool)

SubscriptionsDelegationSettingsProperties

名字 描述 價值
啟用 啟用或停用訂閱的委派。 布爾 (bool)

TermsOfServiceProperties

名字 描述 價值
同意必需 要求使用者同意服務條款。 布爾 (bool)
啟用 在註冊程式期間顯示服務條款。 布爾 (bool)
發簡訊 服務條款文字。 字串