GetAddonSchema
Retrieves the schema details of an add-on.
Operation description
Retrieves the schema information of an add-on.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:GetAddonSchema |
get |
*All Resource
|
None | None |
Request syntax
GET /addons/{addonName}/schema HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| addonName |
string |
Yes |
The name of the add-on. |
cloud-rds-audit-log |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| aliyunLang |
string |
No |
The language. Default value: zh. Valid values: zh, en. |
zh |
| environmentType |
string |
No |
The environment type. Valid values: CS, ECS. |
CS |
| version |
string |
No |
The add-on version. |
0.1.1 |
| apiVersion |
string |
No |
The add-on catalog version. Valid values: v1, v2. |
v2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| fields |
array<object> |
The list of data table fields. |
|
|
array<object> |
The data table field information. |
||
| conditions |
array<object> |
The list of display conditions. |
|
|
object |
The display condition. |
||
| action |
string |
The field control mode. |
show |
| field |
string |
The field name. |
store.storageTarget |
| op |
string |
The condition operator. |
== |
| value |
any |
The target value. |
Custom |
| defaultValue |
any |
The default value. |
mysql.default |
| description |
string |
The description. |
MySQL datasource |
| disabled |
boolean |
Specifies whether the field is hidden. Valid values: true: Hidden. false: Displayed. |
false |
| element |
string |
The element type. |
input |
| fieldPath |
string |
The field path. |
mysql.host |
| label |
string |
The display name of the field. |
mysql |
| name |
string |
The field name. |
host |
| placeholder |
string |
The placeholder text. |
Please enter the metrics collection interval |
| props |
object |
The other properties of the component. |
|
| dataSource |
array<object> |
The data source information. |
|
|
object |
The data source information. |
||
| label |
string |
The label. |
tagKey |
| value |
string |
The label value. |
tagValue |
| related |
array |
The related data set. |
|
|
string |
The related data. |
mysql.host |
|
| selectMode |
string |
The selection mode. |
single |
| type |
string |
The field type. |
string |
| validation |
object |
The field validation rules. |
|
| max |
integer |
The maximum value of the score range (inclusive). |
2000 |
| maxLength |
integer |
The maximum length supported by the text control. |
100 |
| message |
string |
The detailed information. |
length limit |
| min |
integer |
The minimum value. |
0 |
| minLength |
integer |
The minimum length. |
16 |
| regular |
string |
The regular expression. |
^(http|https):// |
| required |
boolean |
Specifies whether the parameter is required. |
false |
| requestId |
string |
The request ID. |
E5B1D3D4-BB28-5996-8AD2-*********** |
| type |
string |
The schema type. |
common |
Examples
Success response
JSON format
{
"fields": [
{
"conditions": [
{
"action": "show",
"field": "store.storageTarget",
"op": "==",
"value": "Custom"
}
],
"defaultValue": "mysql.default",
"description": "MySQL datasource",
"disabled": false,
"element": "input",
"fieldPath": "mysql.host",
"label": "mysql",
"name": "host",
"placeholder": "Please enter the metrics collection interval",
"props": {
"dataSource": [
{
"label": "tagKey",
"value": "tagValue"
}
],
"related": [
"mysql.host"
],
"selectMode": "single"
},
"type": "string",
"validation": {
"max": 2000,
"maxLength": 100,
"message": "length limit",
"min": 0,
"minLength": 16,
"regular": "^(http|https)://",
"required": false
}
}
],
"requestId": "E5B1D3D4-BB28-5996-8AD2-***********",
"type": "common"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.