Microsoft.App managedEnvironments/javaComponents
Bicep 資源定義
managedEnvironments/javaComponents 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.App/managedEnvironments/javaComponents 資源,請將下列 Bicep 新增至您的範本。
resource symbolicname 'Microsoft.App/managedEnvironments/javaComponents@2024-10-02-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
configurations: [
{
propertyName: 'string'
value: 'string'
}
]
scale: {
maxReplicas: int
minReplicas: int
}
serviceBinds: [
{
name: 'string'
serviceId: 'string'
}
]
componentType: 'string'
// For remaining properties, see JavaComponentProperties objects
}
}
JavaComponentProperties 物件
設定 componentType 屬性,以指定對象的類型。
針對 Nacos,請使用:
{
componentType: 'Nacos'
ingress: {}
}
針對 SpringBootAdmin,請使用:
{
componentType: 'SpringBootAdmin'
ingress: {}
}
針對 SpringCloudConfig,請使用:
{
componentType: 'SpringCloudConfig'
}
針對 SpringCloudEureka,請使用:
{
componentType: 'SpringCloudEureka'
ingress: {}
}
針對 springCloudGateway
{
componentType: 'SpringCloudGateway'
ingress: {}
springCloudGatewayRoutes: [
{
filters: [
'string'
]
id: 'string'
order: int
predicates: [
'string'
]
uri: 'string'
}
]
}
屬性值
JavaComponentConfigurationProperty
名字 | 描述 | 價值 |
---|---|---|
propertyName | 屬性的名稱 | 字串 |
價值 | 屬性的值 | 字串 |
JavaComponentIngress
名字 | 描述 | 價值 |
---|
JavaComponentProperties
名字 | 描述 | 價值 |
---|---|---|
componentType | 針對類型 NacosComponent設定為 'Nacos'。 針對 springBootAdminComponent 類型設定為 'SpringBootAdmin',。 針對 springCloudConfigComponent 類型設定為 'SpringCloudConfig',。 針對 springCloudEurekaComponent 類型設定為 'SpringCloudEureka',。 針對 springCloudGatewayComponent 類型設定為 'SpringCloudGateway',。 | 'Nacos' 'SpringBootAdmin' 'SpringCloudConfig' 'SpringCloudEureka' 'SpringCloudGateway' (必要) |
配置 | Java 元件組態屬性的清單 | JavaComponentConfigurationProperty[] |
規模 | Java 元件調整組態 | JavaComponentPropertiesScale |
serviceBinds | 系結至 Java 元件的 Java 元件清單 | JavaComponentServiceBind[] |
JavaComponentPropertiesScale
名字 | 描述 | 價值 |
---|---|---|
maxReplicas | 自選。 Java 元件複本數目上限 | 整數 (int) |
minReplicas | 自選。 Java 元件複本的數目下限。 如果未設定,預設值為1 | 整數 (int) |
JavaComponentServiceBind
名字 | 描述 | 價值 |
---|---|---|
名字 | 服務系結的名稱 | 字串 |
serviceId | 目標服務的資源標識碼 | 字串 |
Microsoft.App/managedEnvironments/javaComponents
名字 | 描述 | 價值 |
---|---|---|
名字 | 資源名稱 | 字串 約束: 模式 = ^[-\w\._\(\)]+$ (必要) |
父母 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型資源的符號名稱:managedEnvironments |
性能 | Java 元件資源特定屬性 | JavaComponentProperties |
NacosComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | “納科斯”(必要) |
入口 | Java 元件輸入組態。 | JavaComponentIngress |
ScgRoute
名字 | 描述 | 價值 |
---|---|---|
過濾器 | 路由的篩選 | string[] |
身份識別碼 | 路由的標識碼 | 字串 (必要) |
次序 | 路由的順序 | 整數 (int) |
謂詞 | 路由的述詞 | string[] |
uri | 路由的 URI | 字串 (必要) |
SpringBootAdminComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | 'SpringBootAdmin' (必要) |
入口 | Java 元件輸入組態。 | JavaComponentIngress |
SpringCloudConfigComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | 'SpringCloudConfig' (必要) |
SpringCloudEurekaComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | 'SpringCloudEureka' (必要) |
入口 | Java 元件輸入組態。 | JavaComponentIngress |
SpringCloudGatewayComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | 'SpringCloudGateway' (必要) |
入口 | Java 元件輸入組態。 | JavaComponentIngress |
springCloudGatewayRoutes | 網關路由定義 | ScgRoute[] |
ARM 樣本資源定義
managedEnvironments/javaComponents 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.App/managedEnvironments/javaComponents 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.App/managedEnvironments/javaComponents",
"apiVersion": "2024-10-02-preview",
"name": "string",
"properties": {
"configurations": [
{
"propertyName": "string",
"value": "string"
}
],
"scale": {
"maxReplicas": "int",
"minReplicas": "int"
},
"serviceBinds": [
{
"name": "string",
"serviceId": "string"
}
],
"componentType": "string"
// For remaining properties, see JavaComponentProperties objects
}
}
JavaComponentProperties 物件
設定 componentType 屬性,以指定對象的類型。
針對 Nacos,請使用:
{
"componentType": "Nacos",
"ingress": {
}
}
針對 SpringBootAdmin,請使用:
{
"componentType": "SpringBootAdmin",
"ingress": {
}
}
針對 SpringCloudConfig,請使用:
{
"componentType": "SpringCloudConfig"
}
針對 SpringCloudEureka,請使用:
{
"componentType": "SpringCloudEureka",
"ingress": {
}
}
針對 springCloudGateway
{
"componentType": "SpringCloudGateway",
"ingress": {
},
"springCloudGatewayRoutes": [
{
"filters": [ "string" ],
"id": "string",
"order": "int",
"predicates": [ "string" ],
"uri": "string"
}
]
}
屬性值
JavaComponentConfigurationProperty
名字 | 描述 | 價值 |
---|---|---|
propertyName | 屬性的名稱 | 字串 |
價值 | 屬性的值 | 字串 |
JavaComponentIngress
名字 | 描述 | 價值 |
---|
JavaComponentProperties
名字 | 描述 | 價值 |
---|---|---|
componentType | 針對類型 NacosComponent設定為 'Nacos'。 針對 springBootAdminComponent 類型設定為 'SpringBootAdmin',。 針對 springCloudConfigComponent 類型設定為 'SpringCloudConfig',。 針對 springCloudEurekaComponent 類型設定為 'SpringCloudEureka',。 針對 springCloudGatewayComponent 類型設定為 'SpringCloudGateway',。 | 'Nacos' 'SpringBootAdmin' 'SpringCloudConfig' 'SpringCloudEureka' 'SpringCloudGateway' (必要) |
配置 | Java 元件組態屬性的清單 | JavaComponentConfigurationProperty[] |
規模 | Java 元件調整組態 | JavaComponentPropertiesScale |
serviceBinds | 系結至 Java 元件的 Java 元件清單 | JavaComponentServiceBind[] |
JavaComponentPropertiesScale
名字 | 描述 | 價值 |
---|---|---|
maxReplicas | 自選。 Java 元件複本數目上限 | 整數 (int) |
minReplicas | 自選。 Java 元件複本的數目下限。 如果未設定,預設值為1 | 整數 (int) |
JavaComponentServiceBind
名字 | 描述 | 價值 |
---|---|---|
名字 | 服務系結的名稱 | 字串 |
serviceId | 目標服務的資源標識碼 | 字串 |
Microsoft.App/managedEnvironments/javaComponents
名字 | 描述 | 價值 |
---|---|---|
apiVersion | API 版本 | '2024-10-02-preview' |
名字 | 資源名稱 | 字串 約束: 模式 = ^[-\w\._\(\)]+$ (必要) |
性能 | Java 元件資源特定屬性 | JavaComponentProperties |
類型 | 資源類型 | 'Microsoft.App/managedEnvironments/javaComponents' |
NacosComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | “納科斯”(必要) |
入口 | Java 元件輸入組態。 | JavaComponentIngress |
ScgRoute
名字 | 描述 | 價值 |
---|---|---|
過濾器 | 路由的篩選 | string[] |
身份識別碼 | 路由的標識碼 | 字串 (必要) |
次序 | 路由的順序 | 整數 (int) |
謂詞 | 路由的述詞 | string[] |
uri | 路由的 URI | 字串 (必要) |
SpringBootAdminComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | 'SpringBootAdmin' (必要) |
入口 | Java 元件輸入組態。 | JavaComponentIngress |
SpringCloudConfigComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | 'SpringCloudConfig' (必要) |
SpringCloudEurekaComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | 'SpringCloudEureka' (必要) |
入口 | Java 元件輸入組態。 | JavaComponentIngress |
SpringCloudGatewayComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | 'SpringCloudGateway' (必要) |
入口 | Java 元件輸入組態。 | JavaComponentIngress |
springCloudGatewayRoutes | 網關路由定義 | ScgRoute[] |
Terraform (AzAPI 提供者) 資源定義
managedEnvironments/javaComponents 資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.App/managedEnvironments/javaComponents 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.App/managedEnvironments/javaComponents@2024-10-02-preview"
name = "string"
body = jsonencode({
properties = {
configurations = [
{
propertyName = "string"
value = "string"
}
]
scale = {
maxReplicas = int
minReplicas = int
}
serviceBinds = [
{
name = "string"
serviceId = "string"
}
]
componentType = "string"
// For remaining properties, see JavaComponentProperties objects
}
})
}
JavaComponentProperties 物件
設定 componentType 屬性,以指定對象的類型。
針對 Nacos,請使用:
{
componentType = "Nacos"
ingress = {
}
}
針對 SpringBootAdmin,請使用:
{
componentType = "SpringBootAdmin"
ingress = {
}
}
針對 SpringCloudConfig,請使用:
{
componentType = "SpringCloudConfig"
}
針對 SpringCloudEureka,請使用:
{
componentType = "SpringCloudEureka"
ingress = {
}
}
針對 springCloudGateway
{
componentType = "SpringCloudGateway"
ingress = {
}
springCloudGatewayRoutes = [
{
filters = [
"string"
]
id = "string"
order = int
predicates = [
"string"
]
uri = "string"
}
]
}
屬性值
JavaComponentConfigurationProperty
名字 | 描述 | 價值 |
---|---|---|
propertyName | 屬性的名稱 | 字串 |
價值 | 屬性的值 | 字串 |
JavaComponentIngress
名字 | 描述 | 價值 |
---|
JavaComponentProperties
名字 | 描述 | 價值 |
---|---|---|
componentType | 針對類型 NacosComponent設定為 'Nacos'。 針對 springBootAdminComponent 類型設定為 'SpringBootAdmin',。 針對 springCloudConfigComponent 類型設定為 'SpringCloudConfig',。 針對 springCloudEurekaComponent 類型設定為 'SpringCloudEureka',。 針對 springCloudGatewayComponent 類型設定為 'SpringCloudGateway',。 | 'Nacos' 'SpringBootAdmin' 'SpringCloudConfig' 'SpringCloudEureka' 'SpringCloudGateway' (必要) |
配置 | Java 元件組態屬性的清單 | JavaComponentConfigurationProperty[] |
規模 | Java 元件調整組態 | JavaComponentPropertiesScale |
serviceBinds | 系結至 Java 元件的 Java 元件清單 | JavaComponentServiceBind[] |
JavaComponentPropertiesScale
名字 | 描述 | 價值 |
---|---|---|
maxReplicas | 自選。 Java 元件複本數目上限 | 整數 (int) |
minReplicas | 自選。 Java 元件複本的數目下限。 如果未設定,預設值為1 | 整數 (int) |
JavaComponentServiceBind
名字 | 描述 | 價值 |
---|---|---|
名字 | 服務系結的名稱 | 字串 |
serviceId | 目標服務的資源標識碼 | 字串 |
Microsoft.App/managedEnvironments/javaComponents
名字 | 描述 | 價值 |
---|---|---|
名字 | 資源名稱 | 字串 約束: 模式 = ^[-\w\._\(\)]+$ (必要) |
parent_id | 此資源為父系之資源的標識碼。 | 類型的資源標識碼:managedEnvironments |
性能 | Java 元件資源特定屬性 | JavaComponentProperties |
類型 | 資源類型 | “Microsoft.App/managedEnvironments/javaComponents@2024-10-02-preview” |
NacosComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | “納科斯”(必要) |
入口 | Java 元件輸入組態。 | JavaComponentIngress |
ScgRoute
名字 | 描述 | 價值 |
---|---|---|
過濾器 | 路由的篩選 | string[] |
身份識別碼 | 路由的標識碼 | 字串 (必要) |
次序 | 路由的順序 | 整數 (int) |
謂詞 | 路由的述詞 | string[] |
uri | 路由的 URI | 字串 (必要) |
SpringBootAdminComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | 'SpringBootAdmin' (必要) |
入口 | Java 元件輸入組態。 | JavaComponentIngress |
SpringCloudConfigComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | 'SpringCloudConfig' (必要) |
SpringCloudEurekaComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | 'SpringCloudEureka' (必要) |
入口 | Java 元件輸入組態。 | JavaComponentIngress |
SpringCloudGatewayComponent
名字 | 描述 | 價值 |
---|---|---|
componentType | Java 元件的類型。 | 'SpringCloudGateway' (必要) |
入口 | Java 元件輸入組態。 | JavaComponentIngress |
springCloudGatewayRoutes | 網關路由定義 | ScgRoute[] |