Files
certd/packages/ui/certd-server/metadata/access_west.yaml
2025-12-31 18:39:58 +08:00

88 lines
2.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: west
title: 西部数码授权
desc: ''
icon: tabler:map-west
input:
scope:
title: 权限范围
component:
name: a-select
vModel: value
options:
- value: account
label: 账户级别,对所有域名都有权限管理
- value: domain
label: 域名级别,仅能管理单个域名
helper: 选择权限范围
required: true
username:
title: 账号
helper: 你的登录账号
encrypt: false
required: false
mergeScript: |2-
return {
show:ctx.compute(({form})=>{
return form.access.scope === 'account'
})
}
apikey:
title: ApiKey
component:
placeholder: 账户级别的key对整个账户都有管理权限
helper: |-
账户级别的key对整个账户都有管理权限
前往[API接口配置](https://www.west.cn/manager/API/APIconfig.asp)手动设置“api连接密码”
encrypt: true
required: false
mergeScript: |2-
return {
show:ctx.compute(({form})=>{
return form.access.scope === 'account'
})
}
apidomainkey:
title: apidomainkey
component:
placeholder: 域名级别的key仅对单个域名有权限
helper: |-
域名级别的key仅对单个域名有权限。
前往[西部数据域名管理](https://www.west.cn/manager/domain/)点击域名右上方点击ApiKey获取密钥
encrypt: true
required: false
mergeScript: |2-
return {
show:ctx.compute(({form})=>{
return form.access.scope === 'domain'
})
}
domain:
title: 域名
component:
placeholder: 域名级别的key对应的域名
encrypt: false
required: false
mergeScript: |2-
return {
show:ctx.compute(({form})=>{
return form.access.scope === 'domain'
})
}
testRequest:
title: 测试
component:
name: api-test
action: TestRequest
helper: 点击测试接口是否正常
pluginType: access
type: builtIn
scriptFilePath: /plugins/plugin-west/access.js