Microsoft.Network serviceEndpointPolicies 2021-02-01

Bicep 資源定義

serviceEndpointPolicies 資源類型可以使用目標作業進行部署:

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

資源格式

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

resource symbolicname 'Microsoft.Network/serviceEndpointPolicies@2021-02-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    serviceEndpointPolicyDefinitions: [
      {
        id: 'string'
        name: 'string'
        properties: {
          description: 'string'
          service: 'string'
          serviceResources: [
            'string'
          ]
        }
      }
    ]
  }
}

屬性值

serviceEndpointPolicies

名稱 描述
NAME 資源名稱 字串 (必要)

字元限制:1-80

有效字元:
英數字元、底線、句號和連字號。

以英數字元開頭。 以英數字元或底線結尾。
location 資源位置。 string
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標記
properties 服務端點原則的屬性。 ServiceEndpointPolicyPropertiesFormat

ServiceEndpointPolicyPropertiesFormat

名稱 描述
serviceEndpointPolicyDefinitions 服務端點原則的服務端點原則定義集合。 ServiceEndpointPolicyDefinition[]

ServiceEndpointPolicyDefinition

名稱 描述
id 資源識別碼。 字串
NAME 資源群組內唯一的資源名稱。 此名稱可用來存取資源。 string
properties 服務端點原則定義的屬性。 ServiceEndpointPolicyDefinitionPropertiesFormat

ServiceEndpointPolicyDefinitionPropertiesFormat

名稱 描述
description 此規則的說明。 限制為 140 個字元。 string
服務 服務端點名稱。 string
serviceResources 服務資源的清單。 string[]

ARM 範本資源定義

serviceEndpointPolicies 資源類型可以使用目標作業進行部署:

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

資源格式

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

{
  "type": "Microsoft.Network/serviceEndpointPolicies",
  "apiVersion": "2021-02-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "serviceEndpointPolicyDefinitions": [
      {
        "id": "string",
        "name": "string",
        "properties": {
          "description": "string",
          "service": "string",
          "serviceResources": [ "string" ]
        }
      }
    ]
  }
}

屬性值

serviceEndpointPolicies

名稱 描述
類型 資源類型 'Microsoft.Network/serviceEndpointPolicies'
apiVersion 資源 API 版本 '2021-02-01'
NAME 資源名稱 字串 (必要)

字元限制:1-80

有效字元:
英數字元、底線、句號和連字號。

以英數字元開頭。 以英數字元或底線結尾。
location 資源位置。 string
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標記
properties 服務端點原則的屬性。 ServiceEndpointPolicyPropertiesFormat

ServiceEndpointPolicyPropertiesFormat

名稱 描述
serviceEndpointPolicyDefinitions 服務端點原則的服務端點原則定義集合。 ServiceEndpointPolicyDefinition[]

ServiceEndpointPolicyDefinition

名稱 描述
id 資源識別碼。 字串
NAME 資源群組內唯一的資源名稱。 此名稱可用來存取資源。 string
properties 服務端點原則定義的屬性。 ServiceEndpointPolicyDefinitionPropertiesFormat

ServiceEndpointPolicyDefinitionPropertiesFormat

名稱 描述
description 此規則的說明。 限制為 140 個字元。 string
服務 服務端點名稱。 string
serviceResources 服務資源的清單。 string[]

Terraform (AzAPI 提供者) 資源定義

serviceEndpointPolicies 資源類型可以使用目標作業進行部署:

  • 資源群組

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

資源格式

若要建立 Microsoft.Network/serviceEndpointPolicies 資源,請將下列 Terraform 新增至您的範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Network/serviceEndpointPolicies@2021-02-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      serviceEndpointPolicyDefinitions = [
        {
          id = "string"
          name = "string"
          properties = {
            description = "string"
            service = "string"
            serviceResources = [
              "string"
            ]
          }
        }
      ]
    }
  })
}

屬性值

serviceEndpointPolicies

名稱 描述
類型 資源類型 「Microsoft.Network/serviceEndpointPolicies@2021-02-01」
NAME 資源名稱 字串 (必要)

字元限制:1-80

有效字元:
英數字元、底線、句號和連字號。

以英數字元開頭。 以英數字元或底線結尾。
location 資源位置。 string
parent_id 若要部署至資源群組,請使用該資源群組的識別碼。 字串 (必要)
tags 資源標籤。 標記名稱和值的字典。
properties 服務端點原則的屬性。 ServiceEndpointPolicyPropertiesFormat

ServiceEndpointPolicyPropertiesFormat

名稱 描述
serviceEndpointPolicyDefinitions 服務端點原則的服務端點原則定義集合。 ServiceEndpointPolicyDefinition[]

ServiceEndpointPolicyDefinition

名稱 描述
id 資源識別碼。 字串
NAME 資源群組內唯一的資源名稱。 此名稱可用來存取資源。 string
properties 服務端點原則定義的屬性。 ServiceEndpointPolicyDefinitionPropertiesFormat

ServiceEndpointPolicyDefinitionPropertiesFormat

名稱 描述
description 此規則的說明。 限制為 140 個字元。 string
服務 服務端點名稱。 string
serviceResources 服務資源的清單。 string[]