共用方式為


Microsoft.CustomProviders resourceProviders 2018-09-01-preview

Bicep 資源定義

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

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

資源格式

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

resource symbolicname 'Microsoft.CustomProviders/resourceProviders@2018-09-01-preview' = {
  location: 'string'
  name: 'string'
  properties: {
    actions: [
      {
        endpoint: 'string'
        name: 'string'
        routingType: 'string'
      }
    ]
    resourceTypes: [
      {
        endpoint: 'string'
        name: 'string'
        routingType: 'string'
      }
    ]
    validations: [
      {
        specification: 'string'
        validationType: 'string'
      }
    ]
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

CustomRPActionRouteDefinition

名字 描述 價值
端點 自訂資源提供者將 Proxy 要求的路由定義端點 URI。 這可以是一般 URI 的形式(例如 'https://testendpoint/'),也可以指定透過路徑路由傳送 (例如 'https://testendpoint/{requestPath}') 字串

約束:
模式 = ^https://.+ (必要)
名字 路由定義的名稱。 這會成為 ARM 擴充功能的名稱(例如 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/{name}') 字串 (必要)
routingType 動作要求支援的路由類型。 'Proxy'

CustomRPManifestProperties

名字 描述 價值
行動 自訂資源提供者所實作的動作清單。 CustomRPActionRouteDefinition[]
resourceTypes 自訂資源提供者所實作的資源類型清單。 CustomRPResourceTypeRouteDefinition[]
驗證 在自訂資源提供者的要求上執行的驗證清單。 CustomRPValidations[]

CustomRPResourceTypeRouteDefinition

名字 描述 價值
端點 自訂資源提供者將 Proxy 要求的路由定義端點 URI。 這可以是一般 URI 的形式(例如 'https://testendpoint/'),也可以指定透過路徑路由傳送 (例如 'https://testendpoint/{requestPath}') 字串

約束:
模式 = ^https://.+ (必要)
名字 路由定義的名稱。 這會成為 ARM 擴充功能的名稱(例如 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/{name}') 字串 (必要)
routingType 資源要求支援的路由類型。 'Proxy'
'Proxy,Cache'

CustomRPValidations

名字 描述 價值
規範 驗證規格的連結。 規格必須裝載於 raw.githubusercontent.com。 字串

約束:
模式 = ^https://raw.githubusercontent.com/.+ (必要)
validationType 要針對相符要求執行的驗證類型。 'Swagger'

Microsoft.CustomProviders/resourceProviders

名字 描述 價值
位置 資源位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 64 (必要)
性能 自訂資源提供者的指令清單 CustomRPManifestProperties
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

ResourceTags

名字 描述 價值

ARM 樣本資源定義

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

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

資源格式

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

{
  "type": "Microsoft.CustomProviders/resourceProviders",
  "apiVersion": "2018-09-01-preview",
  "name": "string",
  "location": "string",
  "properties": {
    "actions": [
      {
        "endpoint": "string",
        "name": "string",
        "routingType": "string"
      }
    ],
    "resourceTypes": [
      {
        "endpoint": "string",
        "name": "string",
        "routingType": "string"
      }
    ],
    "validations": [
      {
        "specification": "string",
        "validationType": "string"
      }
    ]
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

CustomRPActionRouteDefinition

名字 描述 價值
端點 自訂資源提供者將 Proxy 要求的路由定義端點 URI。 這可以是一般 URI 的形式(例如 'https://testendpoint/'),也可以指定透過路徑路由傳送 (例如 'https://testendpoint/{requestPath}') 字串

約束:
模式 = ^https://.+ (必要)
名字 路由定義的名稱。 這會成為 ARM 擴充功能的名稱(例如 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/{name}') 字串 (必要)
routingType 動作要求支援的路由類型。 'Proxy'

CustomRPManifestProperties

名字 描述 價值
行動 自訂資源提供者所實作的動作清單。 CustomRPActionRouteDefinition[]
resourceTypes 自訂資源提供者所實作的資源類型清單。 CustomRPResourceTypeRouteDefinition[]
驗證 在自訂資源提供者的要求上執行的驗證清單。 CustomRPValidations[]

CustomRPResourceTypeRouteDefinition

名字 描述 價值
端點 自訂資源提供者將 Proxy 要求的路由定義端點 URI。 這可以是一般 URI 的形式(例如 'https://testendpoint/'),也可以指定透過路徑路由傳送 (例如 'https://testendpoint/{requestPath}') 字串

約束:
模式 = ^https://.+ (必要)
名字 路由定義的名稱。 這會成為 ARM 擴充功能的名稱(例如 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/{name}') 字串 (必要)
routingType 資源要求支援的路由類型。 'Proxy'
'Proxy,Cache'

CustomRPValidations

名字 描述 價值
規範 驗證規格的連結。 規格必須裝載於 raw.githubusercontent.com。 字串

約束:
模式 = ^https://raw.githubusercontent.com/.+ (必要)
validationType 要針對相符要求執行的驗證類型。 'Swagger'

Microsoft.CustomProviders/resourceProviders

名字 描述 價值
apiVersion API 版本 '2018-09-01-preview'
位置 資源位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 64 (必要)
性能 自訂資源提供者的指令清單 CustomRPManifestProperties
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
類型 資源類型 'Microsoft.CustomProviders/resourceProviders'

ResourceTags

名字 描述 價值

快速入門範本

下列快速入門範本會部署此資源類型。

範本 描述
使用自定義提供者建立範本的自訂資源

部署至 Azure
此範例示範如何使用自定義提供者和邏輯應用程式,將自定義資源新增至 Resource Manager 範本。
建立函式應用程式,並使用自訂資源呼叫它

部署至 Azure
此範本會建立函式應用程式,做為範本部署中自定義資源提供者的工作負載。
使用自定義提供者擴充現有的 Azure 資源

部署至 Azure
此範例將詳細說明如何擴充現有的 Azure 資源和 Resource Manager 範本,以新增自定義工作負載。

Terraform (AzAPI 提供者) 資源定義

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

  • 資源群組

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.CustomProviders/resourceProviders@2018-09-01-preview"
  name = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      actions = [
        {
          endpoint = "string"
          name = "string"
          routingType = "string"
        }
      ]
      resourceTypes = [
        {
          endpoint = "string"
          name = "string"
          routingType = "string"
        }
      ]
      validations = [
        {
          specification = "string"
          validationType = "string"
        }
      ]
    }
  })
}

屬性值

CustomRPActionRouteDefinition

名字 描述 價值
端點 自訂資源提供者將 Proxy 要求的路由定義端點 URI。 這可以是一般 URI 的形式(例如 'https://testendpoint/'),也可以指定透過路徑路由傳送 (例如 'https://testendpoint/{requestPath}') 字串

約束:
模式 = ^https://.+ (必要)
名字 路由定義的名稱。 這會成為 ARM 擴充功能的名稱(例如 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/{name}') 字串 (必要)
routingType 動作要求支援的路由類型。 'Proxy'

CustomRPManifestProperties

名字 描述 價值
行動 自訂資源提供者所實作的動作清單。 CustomRPActionRouteDefinition[]
resourceTypes 自訂資源提供者所實作的資源類型清單。 CustomRPResourceTypeRouteDefinition[]
驗證 在自訂資源提供者的要求上執行的驗證清單。 CustomRPValidations[]

CustomRPResourceTypeRouteDefinition

名字 描述 價值
端點 自訂資源提供者將 Proxy 要求的路由定義端點 URI。 這可以是一般 URI 的形式(例如 'https://testendpoint/'),也可以指定透過路徑路由傳送 (例如 'https://testendpoint/{requestPath}') 字串

約束:
模式 = ^https://.+ (必要)
名字 路由定義的名稱。 這會成為 ARM 擴充功能的名稱(例如 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/{name}') 字串 (必要)
routingType 資源要求支援的路由類型。 'Proxy'
'Proxy,Cache'

CustomRPValidations

名字 描述 價值
規範 驗證規格的連結。 規格必須裝載於 raw.githubusercontent.com。 字串

約束:
模式 = ^https://raw.githubusercontent.com/.+ (必要)
validationType 要針對相符要求執行的驗證類型。 'Swagger'

Microsoft.CustomProviders/resourceProviders

名字 描述 價值
位置 資源位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 64 (必要)
性能 自訂資源提供者的指令清單 CustomRPManifestProperties
標籤 資源標籤 標記名稱和值的字典。
類型 資源類型 “Microsoft.CustomProviders/resourceProviders@2018-09-01-preview”

ResourceTags

名字 描述 價值