feat: 添加云管中心账号 Azure 国际

This commit is contained in:
Bai
2021-03-18 20:17:28 +08:00
committed by Jiangjie.Bai
parent e0a927c7e1
commit 2274b65d83
4 changed files with 13 additions and 1 deletions

View File

@@ -1038,6 +1038,7 @@
"AWS_Int": "AWS(国际)",
"HuaweiCloud": "华为云",
"Azure":"Azure(中国)",
"Azure_Int": "Azure(国际)",
"HostnameStrategy": "用于生成资产主机名。例如1. 实例名称 (instanceDemo)2. 实例名称和部分IP(后两位) (instanceDemo-250.1)",
"IsAlwaysUpdate": "资产信息保持最新",
"AccountCreate": "创建账户",

View File

@@ -1028,6 +1028,7 @@
"AWS_Int": "AWS(International)",
"HuaweiCloud": "Huawei Cloud",
"Azure":"Azure(China)",
"Azure_Int": "Azure(International)",
"HostnameStrategy": "Used to produce the asset hostname. For example, 1. Instance name (instanceDemo)2. Instance name and Partial IP (instanceDemo-250.1)",
"IsAlwaysUpdate": "Asset info is kept up-to-date",
"AccountCreate": "Create account",

View File

@@ -4,7 +4,7 @@
<script type="text/jsx">
import GenericListTable from '@/layout/components/GenericListTable'
import { ACCOUNT_PROVIDER_ATTRS_MAP, aliyun, aws_china, aws_international, huaweicloud, qcloud, azure, vmware } from '../const'
import { ACCOUNT_PROVIDER_ATTRS_MAP, aliyun, aws_china, aws_international, huaweicloud, qcloud, azure, azure_international, vmware } from '../const'
import { BooleanFormatter, DetailFormatter } from '@/components/ListTable/formatters'
export default {
@@ -102,6 +102,10 @@ export default {
name: azure,
title: ACCOUNT_PROVIDER_ATTRS_MAP[azure].title
},
{
name: azure_international,
title: ACCOUNT_PROVIDER_ATTRS_MAP[azure_international].title
},
{
name: vmware,
title: ACCOUNT_PROVIDER_ATTRS_MAP[vmware].title

View File

@@ -6,6 +6,7 @@ export const aws_china = 'aws_china'
export const huaweicloud = 'huaweicloud'
export const qcloud = 'qcloud'
export const azure = 'azure'
export const azure_international = 'azure_international'
export const vmware = 'vmware'
export const ACCOUNT_PROVIDER_ATTRS_MAP = {
@@ -39,6 +40,11 @@ export const ACCOUNT_PROVIDER_ATTRS_MAP = {
title: i18n.t('xpack.Cloud.Azure'),
attrs: ['client_id', 'client_secret', 'tenant_id', 'subscription_id']
},
[azure_international]: {
name: azure_international,
title: i18n.t('xpack.Cloud.Azure_Int'),
attrs: ['client_id', 'client_secret', 'tenant_id', 'subscription_id']
},
[vmware]: {
name: vmware,
title: 'VMware',