GetAddonSchema

Updated at:

Retrieves the schema details of an add-on.

Operation description

Retrieves the schema information of an add-on.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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.