'1.0',
'info' => [
'style' => 'RPC',
'product' => 'gpdb',
'version' => '2016-05-03',
],
'directories' => [
[
'id' => 269850,
'title' => '模型服务',
'type' => 'directory',
'children' => [
'DescribeModelService',
'DeleteModelService',
'ListSupportModels',
'ListModelServices',
'CreateModelService',
],
],
[
'id' => 269846,
'title' => 'AINode',
'type' => 'directory',
'children' => [
'DeleteAINode',
'ListAINodePools',
'AddAINode',
],
],
[
'id' => 224000,
'title' => 'Supabase',
'type' => 'directory',
'children' => [
'ModifySupabaseProjectSecurityIps',
'ResetSupabaseProjectPassword',
'CreateSupabaseProject',
'DeleteSupabaseProject',
'ListSupabaseProjects',
'GetSupabaseProject',
'GetSupabaseProjectDashboardAccount',
'GetSupabaseProjectApiKeys',
],
],
[
'id' => 194270,
'title' => 'Data API',
'type' => 'directory',
'children' => [
'ExecuteStatement',
'DescribeTable',
'ListTables',
'ListSchemas',
'ListDatabases',
],
],
[
'id' => 194276,
'title' => 'Secret',
'type' => 'directory',
'children' => [
'ListSecrets',
'GetSecretValue',
'DeleteSecret',
'CreateSecret',
],
],
[
'id' => 187873,
'title' => 'RAG Service',
'type' => 'directory',
'children' => [
'InitVectorDatabase',
[
'id' => 192907,
'title' => '管理命名空间',
'type' => 'directory',
'children' => [
'CreateNamespace',
'DescribeNamespace',
'ListNamespaces',
'DeleteNamespace',
],
],
[
'id' => 192914,
'title' => '管理向量集',
'type' => 'directory',
'children' => [
'CreateCollection',
'DescribeCollection',
'ListCollections',
'ModifyCollection',
'DeleteCollection',
'GrantCollection',
],
],
[
'id' => 192908,
'title' => '管理文档',
'type' => 'directory',
'children' => [
[
'id' => 192909,
'title' => '管理文档库',
'type' => 'directory',
'children' => [
'CreateDocumentCollection',
'ListDocumentCollections',
'DeleteDocumentCollection',
'EnableCollectionGraphRAG',
],
],
[
'id' => 192910,
'title' => '上传文档',
'type' => 'directory',
'children' => [
'UpsertChunks',
'UploadDocumentAsync',
'GetUploadDocumentJob',
'CancelUploadDocumentJob',
'GetGraphRAGJob',
],
],
[
'id' => 192911,
'title' => '检索',
'type' => 'directory',
'children' => [
'QueryKnowledgeBasesContent',
'QueryContent',
],
],
[
'id' => 365951,
'title' => '知识库问答',
'type' => 'directory',
'children' => [
'ChatWithKnowledgeBaseStream',
'ChatWithKnowledgeBase',
],
],
[
'id' => 192912,
'title' => '查看和删除文档',
'type' => 'directory',
'children' => [
'ListDocuments',
'DescribeDocument',
'DeleteDocument',
],
],
],
],
[
'id' => 192913,
'title' => '管理向量',
'type' => 'directory',
'children' => [
[
'id' => 192915,
'title' => '上传向量数据',
'type' => 'directory',
'children' => [
'UpsertCollectionData',
'UpsertCollectionDataAsync',
'GetUpsertCollectionDataJob',
'CancelUpsertCollectionDataJob',
],
],
[
'id' => 192916,
'title' => '检索',
'type' => 'directory',
'children' => [
'QueryCollectionData',
],
],
[
'id' => 192917,
'title' => '管理向量数据',
'type' => 'directory',
'children' => [
'UpdateCollectionDataMetadata',
'DeleteCollectionData',
],
],
],
],
[
'id' => 192918,
'title' => '索引管理',
'type' => 'directory',
'children' => [
'CreateVectorIndex',
'DeleteVectorIndex',
'CreateIndex',
'DescribeCreateIndexJob',
'CancelCreateIndexJob',
'DeleteIndex',
'ListIndices',
'DescribeIndex',
],
],
[
'id' => 200009,
'title' => 'Embedding',
'type' => 'directory',
'children' => [
'TextEmbedding',
],
],
[
'id' => 196834,
'title' => 'Rerank',
'type' => 'directory',
'children' => [
'Rerank',
],
],
[
'id' => 365952,
'title' => 'RAG Service 私有化',
'type' => 'directory',
'children' => [
'DescribeZonesPrivateRAGService',
'DeployPrivateRAGService',
'DescribePrivateRAGService',
'DeletePrivateRAGService',
],
],
],
],
[
'id' => 192465,
'title' => '实时数据消费',
'type' => 'directory',
'children' => [
[
'id' => 192466,
'title' => '实时数据源',
'type' => 'directory',
'children' => [
'ListStreamingDataSources',
'DeleteStreamingDataSource',
'ModifyStreamingDataSource',
'CreateStreamingDataSource',
'DescribeStreamingDataSource',
],
],
[
'id' => 192472,
'title' => '实时数据服务',
'type' => 'directory',
'children' => [
'ListStreamingDataServices',
'CreateStreamingDataService',
'ModifyStreamingDataService',
'DescribeStreamingDataService',
'DeleteStreamingDataService',
],
],
[
'id' => 192478,
'title' => '实时数据同步任务',
'type' => 'directory',
'children' => [
'ModifyStreamingJob',
'DescribeStreamingJob',
'CreateStreamingJob',
'DeleteStreamingJob',
'ListStreamingJobs',
],
],
],
],
[
'id' => 192537,
'title' => '插件管理',
'type' => 'directory',
'children' => [
'ListDatabaseExtensions',
'DescribeExtension',
'UpgradeExtensions',
'ListInstanceExtensions',
'CreateExtensions',
'DeleteExtension',
],
],
[
'id' => 192538,
'title' => '外部数据管理',
'type' => 'directory',
'children' => [
[
'id' => 192539,
'title' => '异构数据源管理',
'type' => 'directory',
'children' => [
[
'id' => 192540,
'title' => '外部数据服务',
'type' => 'directory',
'children' => [
'DescribeExternalDataService',
'DeleteExternalDataService',
'ListExternalDataServices',
'CreateExternalDataService',
'ModifyExternalDataService',
'DescribeHadoopClustersInSameNet',
],
],
[
'id' => 192542,
'title' => 'Hadoop数据源',
'type' => 'directory',
'children' => [
'DescribeHadoopConfigs',
'CreateHadoopDataSource',
'DescribeHadoopDataSource',
'ModifyHadoopDataSource',
'CheckHadoopDataSource',
'DeleteHadoopDataSource',
'CheckHadoopNetConnection',
],
],
[
'id' => 192543,
'title' => 'JDBC数据源',
'type' => 'directory',
'children' => [
'CreateJDBCDataSource',
'ModifyJDBCDataSource',
'CheckJDBCSourceNetConnection',
'DescribeJDBCDataSource',
'DeleteJDBCDataSource',
],
],
[
'id' => 192541,
'title' => '其他数据源',
'type' => 'directory',
'children' => [
'ListExternalDataSources',
],
],
],
],
],
],
[
'id' => 183074,
'title' => '创建实例',
'type' => 'directory',
'children' => [
'CreateDBInstance',
],
],
[
'id' => 2569,
'title' => '实例管理',
'type' => 'directory',
'children' => [
'DeleteDBInstance',
'ModifyDBInstanceDescription',
'ModifyDBInstanceMaintainTime',
'ModifyDBInstanceResourceGroup',
'ModifyVectorConfiguration',
'PauseInstance',
'RebalanceDBInstance',
'RestartDBInstance',
'ResumeInstance',
'UpgradeDBVersion',
'ModifyDBInstanceDeploymentMode',
],
],
[
'id' => 183108,
'title' => '实例变配',
'type' => 'directory',
'children' => [
'DescribeDataReDistributeInfo',
'ModifyDBInstanceConfig',
'UpgradeDBInstance',
'PauseDataRedistribute',
'ResumeDataRedistribute',
],
],
[
'id' => 183078,
'title' => '查询实例',
'type' => 'directory',
'children' => [
'DescribeDBClusterNode',
'DescribeDBInstanceAttribute',
'DescribeDBInstances',
'DescribeDBVersionInfos',
'DescribeSupportFeatures',
],
],
[
'id' => 183079,
'title' => '参数管理',
'type' => 'directory',
'children' => [
'DescribeModifyParameterLog',
'DescribeParameters',
'ModifyParameters',
],
],
[
'id' => 183080,
'title' => '备份管理',
'type' => 'directory',
'children' => [
'DescribeBackupPolicy',
'DescribeDataBackups',
'DescribeLogBackups',
'ModifyBackupPolicy',
'CreateBackup',
'DeleteBackup',
'ListBackupJobs',
'DescribeBackupJob',
'CloneDBInstance',
],
],
[
'id' => 183081,
'title' => '账号管理',
'type' => 'directory',
'children' => [
'CreateAccount',
'DescribeAccounts',
'GetAccount',
'DeleteAccount',
'DescribeDiagnosisDimensions',
'ModifyAccountDescription',
'ResetAccountPassword',
'DescribeRoles',
],
],
[
'id' => 183082,
'title' => '数据共享',
'type' => 'directory',
'children' => [
'DescribeDataShareInstances',
'DescribeDataSharePerformance',
'SetDataShareInstance',
],
],
[
'id' => 183083,
'title' => '诊断与优化',
'type' => 'directory',
'children' => [
'DescribeDBClusterPerformance',
'DescribeDBInstanceDataBloat',
'DescribeDBInstanceDataSkew',
'DescribeDBInstanceDiagnosisSummary',
'DescribeDBInstanceIndexUsage',
'DescribeDBInstancePerformance',
'DescribeDiagnosisMonitorPerformance',
'DescribeDiagnosisRecords',
'DescribeDiagnosisSQLInfo',
'DescribeDownloadRecords',
'DescribeDownloadSQLLogs',
'DescribeHealthStatus',
'DescribeWaitingSQLInfo',
'DescribeWaitingSQLRecords',
'DownloadDiagnosisRecords',
'DownloadSQLLogsRecords',
],
],
[
'id' => 183084,
'title' => '计划管理',
'type' => 'directory',
'children' => [
'CreateDBInstancePlan',
'DeleteDBInstancePlan',
'DescribeDBInstancePlans',
'SetDBInstancePlanStatus',
'UpdateDBInstancePlan',
],
],
[
'id' => 2574,
'title' => '标签管理',
'type' => 'directory',
'children' => [
'DescribeTags',
'ListTagResources',
'TagResources',
'UntagResources',
],
],
[
'id' => 183085,
'title' => '安全管理',
'type' => 'directory',
'children' => [
[
'id' => 365953,
'title' => '白名单管理',
'type' => 'directory',
'children' => [
'CreateDBInstanceIPArray',
'DescribeDBInstanceIPArrayList',
'ModifySecurityIps',
'DeleteDBInstanceIPArray',
],
],
'CheckServiceLinkedRole',
'CreateServiceLinkedRole',
'DescribeDBInstanceSSL',
'DescribeUserEncryptionKeyList',
'ModifyDBInstanceSSL',
],
],
[
'id' => 183086,
'title' => '日志管理',
'type' => 'directory',
'children' => [
'DescribeDBInstanceErrorLog',
'DescribeSQLLogCount',
'DescribeSQLLogsV2',
'ModifySQLCollectorPolicy',
],
],
[
'id' => 183087,
'title' => '网络管理',
'type' => 'directory',
'children' => [
'AllocateInstancePublicConnection',
'DescribeDBInstanceNetInfo',
'DescribeRdsVpcs',
'DescribeRdsVSwitchs',
'ModifyDBInstanceConnectionString',
'ReleaseInstancePublicConnection',
'SwitchDBInstanceNetType',
],
],
[
'id' => 183088,
'title' => '资源管理',
'type' => 'directory',
'children' => [
'DescribeAvailableResources',
'DescribeRegions',
],
],
[
'id' => 183089,
'title' => '样本数据集',
'type' => 'directory',
'children' => [
'CreateSampleData',
'DescribeSampleData',
'UnloadSampleData',
],
],
[
'id' => 191974,
'title' => '资源组',
'type' => 'directory',
'children' => [
'EnableDBResourceGroup',
'DisableDBResourceGroup',
'CreateDBResourceGroup',
'DeleteDBResourceGroup',
'ModifyDBResourceGroup',
'DescribeDBResourceGroup',
'BindDBResourceGroupWithRole',
'UnbindDBResourceGroupWithRole',
'DescribeDBResourceManagementMode',
],
],
[
'id' => 185591,
'title' => '其他',
'type' => 'directory',
'children' => [
'ModifyMasterSpec',
'DescribeSQLLogs',
'HandleActiveSQLRecord',
'DescribeDBInstanceSupportMaxPerformance',
'ResetIMVMonitorData',
'DescribeIMVInfos',
'DescribeActiveSQLRecords',
'ModifyDBInstancePayType',
'ModifyDBInstanceNetworkType',
'DeleteRemoteADBDataSource',
'CreateRemoteADBDataSource',
'ListRemoteADBDataSources',
'ModifyRemoteADBDataSource',
'GetStatementResult',
'CreateDatabase',
'ListSlowSQLRecords',
'DownloadSlowSQLRecords',
'DeleteDatabase',
'DescribeRebalanceStatus',
'DescribeDatabase',
'ListInstanceDatabases',
],
],
],
'components' => [
'schemas' => [
'ColumnMetadata' => [
'title' => 'Column Metadata',
'description' => 'Data API ColumnMetadata',
'type' => 'object',
'properties' => [
'Name' => [
'title' => '列名称',
'type' => 'string',
],
'DataType' => [
'title' => '数据类型',
'type' => 'string',
],
'ColumnDefault' => [
'title' => '默认值',
'type' => 'string',
],
'MaxLength' => [
'title' => '字符最大长度',
'type' => 'integer',
'format' => 'int32',
],
'Nullable' => [
'title' => '是否允许NULL值',
'type' => 'boolean',
],
'SchemaName' => [
'title' => '所属schema名称',
'type' => 'string',
],
'TableName' => [
'title' => '所属表名称',
'type' => 'string',
],
'IsCaseSensitive' => [
'title' => '是否大小写敏感',
'type' => 'boolean',
],
'IsCurrency' => [
'title' => '列是否存储货币值',
'type' => 'boolean',
],
'IsSigned' => [
'title' => '列是否有符号',
'type' => 'boolean',
],
'Precision' => [
'title' => '列的精度,表示整个十进制数的整数和小数部分一共包含的位数',
'type' => 'integer',
'format' => 'int32',
],
'Scale' => [
'title' => '列的比例,表示十进制数的小数部分包含的位数',
'type' => 'integer',
'format' => 'int32',
],
'IsPrimaryKey' => [
'title' => '是否是主键',
'type' => 'boolean',
],
'Comment' => [
'title' => '列描述',
'type' => 'string',
],
'UdtName' => [
'title' => '列使用的基础数据类型的名字',
'type' => 'string',
],
],
],
'Field' => [
'title' => 'Field',
'description' => 'Data API Field',
'type' => 'object',
'properties' => [
'BlobValue' => [
'title' => 'Base64编码的二进制',
'type' => 'string',
],
'BooleanValue' => [
'title' => '布尔值',
'type' => 'boolean',
],
'DoubleValue' => [
'title' => 'Double 类型值',
'type' => 'number',
'format' => 'double',
],
'IsNull' => [
'title' => '是否为空',
'type' => 'boolean',
],
'LongValue' => [
'title' => 'Long 类型值',
'type' => 'integer',
'format' => 'int64',
],
'StringValue' => [
'title' => '字符串',
'type' => 'string',
],
],
],
'StatementData' => [
'title' => 'Statement Data',
'description' => 'Data API StatementData',
'type' => 'object',
'properties' => [
'Id' => [
'title' => 'sql id',
'type' => 'string',
],
'CreatedAt' => [
'title' => '创建时间',
'type' => 'string',
],
'Database' => [
'title' => '库名',
'type' => 'string',
],
'Parameters' => [
'title' => 'sql变量列表',
'type' => 'array',
'items' => [
'type' => 'string',
'example' => 'sql变量',
],
],
'Sql' => [
'title' => '执行的单个sql',
'type' => 'string',
],
'Sqls' => [
'title' => '多个sql列表',
'type' => 'array',
'items' => [
'type' => 'string',
'example' => '执行的sql',
],
],
'SecretArn' => [
'title' => '用户凭证',
'type' => 'string',
],
'Status' => [
'title' => '状态',
'type' => 'string',
],
'UpdatedAt' => [
'title' => '更新时间',
'type' => 'string',
],
],
],
],
],
'apis' => [
'DescribeModelService' => [
'summary' => '查询模型服务',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'ModelServiceId',
'in' => 'query',
'schema' => [
'description' => '模型服务id',
'type' => 'string',
'required' => true,
'example' => 'mx-xxxxxxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'ModelServiceId' => [
'description' => '模型服务ID。',
'type' => 'string',
'example' => 'ms-xxxxxxxxx',
],
'ModelName' => [
'description' => '模型名称。',
'type' => 'string',
'example' => 'Qwen3-Embedding-8B',
],
'Status' => [
'description' => '模型服务状态。',
'type' => 'string',
'example' => '- deployming'."\n"
.'- active',
],
'PublicConnectUrl' => [
'description' => '公网连接串。',
'type' => 'string',
'example' => 'http://ms-xxxxxxx-o.xxxx.rds.aliyuncs.com',
],
'PrivateConnectUrl' => [
'description' => '内网连接串。',
'type' => 'string',
'example' => 'http://ms-xxxxxxx.xxxx.rds.aliyuncs.com',
],
'SecurityIpList' => [
'description' => 'IP白名单分组下的IP列表,以逗号隔开',
'type' => 'string',
'example' => '127.0.0.1',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2019-09-08T16:00:00Z',
],
'ApiKey' => [
'description' => 'API Key内容',
'type' => 'string',
'example' => 'cx/Y57lTNf*********',
],
'Description' => [
'description' => '描述信息。',
'type' => 'string',
'example' => 'test',
],
'ModelParams' => [
'description' => '模型参数。',
'type' => 'object',
'example' => '暂未开放',
],
'AiNodes' => [
'description' => 'AINode列表。',
'type' => 'array',
'items' => [
'description' => 'AINode名称。',
'type' => 'string',
'example' => 'ai-xxxxxxxxx',
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"ModelServiceId\\": \\"ms-xxxxxxxxx\\",\\n \\"ModelName\\": \\"Qwen3-Embedding-8B\\",\\n \\"Status\\": \\"- deployming\\\\n- active\\",\\n \\"PublicConnectUrl\\": \\"http://ms-xxxxxxx-o.xxxx.rds.aliyuncs.com\\",\\n \\"PrivateConnectUrl\\": \\"http://ms-xxxxxxx.xxxx.rds.aliyuncs.com\\",\\n \\"SecurityIpList\\": \\"127.0.0.1\\",\\n \\"CreateTime\\": \\"2019-09-08T16:00:00Z\\",\\n \\"ApiKey\\": \\"cx/Y57lTNf*********\\",\\n \\"Description\\": \\"test\\",\\n \\"ModelParams\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"AiNodes\\": [\\n \\"ai-xxxxxxxxx\\"\\n ]\\n}","type":"json"}]',
'title' => '查询模型服务',
'description' => '## 使用说明'."\n"
.'本接口用于查看模型服务的详细信息。'."\n"
."\n"
.'## QPS限制'."\n"
.'本接口的单用户QPS限制默认为1000次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。'."\n",
],
'DeleteModelService' => [
'summary' => '删除模型服务',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'ModelServiceId',
'in' => 'query',
'schema' => [
'description' => '需要删除的模型服务ID。',
'type' => 'string',
'required' => true,
'example' => 'mx-xxxxxxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '删除模型服务',
'description' => '删除模型服务。',
],
'ListSupportModels' => [
'summary' => '获取支持的模型列表',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'ModelNames' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'modelNames' => [
'description' => '支持的模型名称列表。',
'type' => 'array',
'items' => [
'description' => '模型名称。',
'type' => 'string',
'example' => 'Qwen3-Embedding-8B',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"ModelNames\\": {\\n \\"modelNames\\": [\\n \\"Qwen3-Embedding-8B\\"\\n ]\\n }\\n}","type":"json"}]',
'title' => '查询支持的模型列表',
'description' => '- 本接口用于查询支持的模型列表。',
],
'ListModelServices' => [
'summary' => '查询所有模型服务',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
."\n"
.'- **20**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**20**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '30',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'PageNumber' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageRecordCount' => [
'description' => '当前页记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'TotalRecordCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '2',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'ModelServices' => [
'description' => '模型服务列表',
'type' => 'array',
'items' => [
'description' => '模型服务列表',
'type' => 'object',
'properties' => [
'ModelServiceId' => [
'description' => '模型服务ID。',
'type' => 'string',
'example' => 'mx-xxxxxxxxx',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'Description' => [
'description' => '描述信息。',
'type' => 'string',
'example' => 'test description',
],
'ModelName' => [
'description' => '设备型号名称。',
'type' => 'string',
'example' => 'sambert-zhiying-v1',
],
'PublicConnUrl' => [
'description' => '公网连接地址。',
'type' => 'string',
'example' => 'http://ms-xxxxxxx-o.xxxx.rds.aliyuncs.com',
],
'PrivateConnUrl' => [
'description' => '私网连接地址。',
'type' => 'string',
'example' => 'http://ms-xxxxxxx.xxxx.rds.aliyuncs.com',
],
'AiNodes' => [
'description' => '模型部署使用的AINode列表。',
'type' => 'array',
'items' => [
'description' => 'AINode名称。',
'type' => 'string',
'example' => 'ai-xxxxxxxxx',
],
],
'SecurityIPList' => [
'description' => 'IP白名单分组下的IP列表,最多1000个以逗号隔开,有以下三种格式:'."\n"
.'- 0.0.0.0/0'."\n"
.'- 10.23.12.24(IP)'."\n"
.'- 10.23.12.24/24(CIDR模式,无类域间路由,`/24`表示了地址中前缀的长度,范围为`[1,32]`)',
'type' => 'string',
'example' => '0.0.0.0/0',
],
'ApiKey' => [
'description' => 'API Key内容',
'type' => 'string',
'example' => 'mI3F7B18vgfqJjUtWmgITw==',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2024-09-28T02:18:39Z',
],
'ModelParams' => [
'description' => '模型服务参数(暂未开放)。',
'type' => 'object',
'additionalProperties' => [
'type' => 'string',
'example' => '暂未开放。',
'description' => '暂未开放。',
],
'example' => '暂未开放',
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"PageNumber\\": 1,\\n \\"PageRecordCount\\": 1,\\n \\"TotalRecordCount\\": 2,\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"ModelServices\\": [\\n {\\n \\"ModelServiceId\\": \\"mx-xxxxxxxxx\\",\\n \\"Status\\": \\"success\\",\\n \\"Description\\": \\"test description\\",\\n \\"ModelName\\": \\"sambert-zhiying-v1\\",\\n \\"PublicConnUrl\\": \\"http://ms-xxxxxxx-o.xxxx.rds.aliyuncs.com\\",\\n \\"PrivateConnUrl\\": \\"http://ms-xxxxxxx.xxxx.rds.aliyuncs.com\\",\\n \\"AiNodes\\": [\\n \\"ai-xxxxxxxxx\\"\\n ],\\n \\"SecurityIPList\\": \\"0.0.0.0/0\\",\\n \\"ApiKey\\": \\"mI3F7B18vgfqJjUtWmgITw==\\",\\n \\"CreateTime\\": \\"2024-09-28T02:18:39Z\\",\\n \\"ModelParams\\": {\\n \\"key\\": \\"暂未开放。\\"\\n }\\n }\\n ]\\n}","type":"json"}]',
'title' => '查询所有模型服务',
'description' => '## 使用说明'."\n"
.'本接口用于查看所有模型服务信息。'."\n"
.'## QPS限制'."\n"
.'本接口的单用户QPS限制默认为1000次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。',
],
'CreateModelService' => [
'summary' => '创建模型服务。',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'ModelName',
'in' => 'query',
'schema' => [
'description' => '模型名称。',
'type' => 'string',
'required' => true,
'example' => 'Qwen3-Embedding-8B',
],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => [
'description' => '描述信息。',
'type' => 'string',
'required' => false,
'example' => 'test',
],
],
[
'name' => 'SecurityIPList',
'in' => 'query',
'schema' => [
'description' => 'IP白名单。'."\n"
."\n"
.'127.0.0.1表示禁止任何外部IP访问,您可以在实例创建完成后调用[ModifySecurityIps](~~86928~~)接口修改IP白名单。',
'type' => 'string',
'required' => false,
'example' => '127.0.0.1',
],
],
[
'name' => 'AiNodes',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '模型部署使用的AINode节点列表。',
'type' => 'array',
'items' => [
'description' => 'AINode节点名称。',
'type' => 'string',
'required' => false,
'example' => 'ai-xxxxxx',
],
'required' => true,
],
],
[
'name' => 'ModelParams',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '模型参数(待支持)。',
'type' => 'object',
'required' => false,
'example' => '暂未开放',
],
],
[
'name' => 'ResourceGroupId',
'in' => 'formData',
'schema' => [
'description' => '实例当前所属的资源组ID。如何获取资源组ID,请参见[查看资源组基本信息](~~151181~~)。',
'type' => 'string',
'required' => false,
'example' => 'rg-bp67acfmxazb4p****',
],
],
[
'name' => 'ClientToken',
'in' => 'formData',
'schema' => [
'description' => '幂等性校验。更多信息,请参见[如何保证幂等性](~~327176~~)。',
'type' => 'string',
'required' => false,
'example' => '0c593ea1-3bea-11e9-b96b-88**********',
],
],
[
'name' => 'Replicas',
'in' => 'query',
'schema' => [
'description' => '模型服务副本数。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
[
'name' => 'InferenceEngine',
'in' => 'query',
'schema' => [
'description' => '推理引擎(当前仅支持vllm)。',
'type' => 'string',
'required' => false,
'example' => 'vllm',
],
],
[
'name' => 'EnablePublicConnection',
'in' => 'query',
'schema' => [
'type' => 'boolean',
'required' => false,
'default' => 'false',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ModelServiceId' => [
'description' => '模型服务ID。',
'type' => 'string',
'example' => 'ms-xxxxxxxxx',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ModelServiceId\\": \\"ms-xxxxxxxxx\\",\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '创建模型服务',
'description' => '请确保在使用该接口前,已充分了解AnalyticDB PostgreSQL版产品的[收费方式](~~35406~~)和[价格](https://www.aliyun.com/price/product#/gpdb/detail/GreenplumPost)[价格](https://www.alibabacloud.com/zh/product/hybriddb-postgresql/pricing)。',
],
'DeleteAINode' => [
'summary' => '删除AI节点',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'AINodePoolId',
'in' => 'query',
'schema' => [
'description' => 'AINode 资源池ID。',
'type' => 'string',
'required' => false,
'example' => 'aipool-xxxx',
],
],
[
'name' => 'AINodeNum',
'in' => 'query',
'schema' => [
'description' => '待删除的AINode数量。',
'type' => 'integer',
'format' => 'int32',
'required' => true,
'example' => '1',
],
],
[
'name' => 'NodeNames',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => '待删除的AINode 列表。',
'type' => 'array',
'items' => [
'description' => '待删除的AINode ID(暂未开放)',
'type' => 'string',
'required' => false,
'example' => 'ai-xxxxx',
],
'required' => false,
'maxItems' => 100,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'OrderId' => [
'title' => 'Id of the request',
'description' => 'Id of the request',
'type' => 'string',
'example' => '*********',
],
'RequestId' => [
'title' => 'Id of the request',
'description' => 'Id of the request',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"OrderId\\": \\"*********\\",\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '删除AINode',
'description' => '- 包年包月实例不支持手动释放,实例到期后会自动释放。'."\n"
.'- 只有运行状态为**运行中**的按量付费实例支持通过本接口释放。',
],
'ListAINodePools' => [
'summary' => '查询AINode节点列表',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => 'Region ID',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求Id。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'AINodePoolInfos' => [
'description' => 'AINode资源池详情。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'AINodePoolId' => [
'description' => 'AINode所属的资源池ID。',
'type' => 'string',
'example' => 'aipool-xxxxxxxxx',
],
'NodeNum' => [
'description' => '节点数量。',
'type' => 'string',
'example' => '2',
],
'AINodeInfos' => [
'description' => 'AINode详细信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'NodeName' => [
'description' => 'AINode节点名称。',
'type' => 'string',
'example' => 'ai-xxxxxxxxx',
],
'Namespace' => [
'description' => '命名空间。',
'type' => 'string',
'example' => 'adbpg-ainode',
],
'NodeSpec' => [
'description' => 'AINode节点规格,当前支持的规格列表。'."\n"
."\n"
.'```'."\n"
.'ADB.AIMedium.1'."\n"
.'ADB.AILarge.1'."\n"
.'ADB.AIStandard.2'."\n"
.'ADB.AIMedium.2'."\n"
.'ADB.AILarge.2'."\n"
.'ADB.AIXLarge.2'."\n"
.'ADB.AIStandard.6'."\n"
.'ADB.AIMedium.6'."\n"
.'ADB.AILarge.6'."\n"
.'ADB.AIXLarge.6'."\n"
.'ADB.AIStandard.3'."\n"
.'ADB.AIMedium.3'."\n"
.'ADB.AILarge.3'."\n"
.'ADB.AIXLarge.3'."\n"
.'ADB.AIStandard.4'."\n"
.'ADB.AIMedium.4'."\n"
.'ADB.AILarge.4'."\n"
.'ADB.AIXLarge.4'."\n"
.'ADB.AIStandard.5'."\n"
.'ADB.AIMedium.5'."\n"
.'ADB.AILarge.5'."\n"
.'ADB.AIXLarge.5'."\n"
.'ADB.AIStandard.8'."\n"
.'ADB.AIMedium.8'."\n"
.'ADB.AILarge.8'."\n"
.'ADB.AIXLarge.8'."\n"
.'ADB.AI2XLarge.8'."\n"
.'```',
'type' => 'string',
'example' => 'ADB.AIStandard.1',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2024-10-09T02:07:15Z',
],
'UpdateTime' => [
'description' => '更新时间。',
'type' => 'string',
'example' => '2025-06-16T02:04:42Z',
],
'BindStatus' => [
'description' => 'AINode的状态。'."\n"
.'- unbound:表示未绑定。'."\n"
.'- bound:表示已绑定。',
'type' => 'string',
'example' => "\n"
.' bound:表示已绑定。',
],
'BindObject' => [
'description' => 'AINode绑定的类型。',
'type' => 'string',
'example' => 'model_serving',
],
'ZoneId' => [
'type' => 'string',
],
],
],
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"AINodePoolInfos\\": [\\n {\\n \\"AINodePoolId\\": \\"aipool-xxxxxxxxx\\",\\n \\"NodeNum\\": \\"2\\",\\n \\"AINodeInfos\\": [\\n {\\n \\"NodeName\\": \\"ai-xxxxxxxxx\\",\\n \\"Namespace\\": \\"adbpg-ainode\\",\\n \\"NodeSpec\\": \\"ADB.AIStandard.1\\",\\n \\"CreateTime\\": \\"2024-10-09T02:07:15Z\\",\\n \\"UpdateTime\\": \\"2025-06-16T02:04:42Z\\",\\n \\"BindStatus\\": \\"\\\\n bound:表示已绑定。\\",\\n \\"BindObject\\": \\"model_serving\\",\\n \\"ZoneId\\": \\"\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
'title' => '列举AINode资源池信息',
'description' => '- 本接口用于查询AINode节点列表',
],
'AddAINode' => [
'summary' => '添加AI节点。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'AINodePoolId',
'in' => 'query',
'schema' => [
'description' => 'AINode所属资源池Id',
'type' => 'string',
'required' => false,
'example' => 'aipool-xxxxx',
],
],
[
'name' => 'AINodeSpecInfos',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => 'AINode节点规格信息。',
'type' => 'array',
'items' => [
'description' => 'AINode规格以及数量描述',
'type' => 'object',
'properties' => [
'NodeSpec' => [
'description' => '节点规格。'."\n"
."\n"
.'```'."\n"
.'ADB.AIStandard.1'."\n"
.'ADB.AIMedium.1'."\n"
.'ADB.AILarge.1'."\n"
.'ADB.AIStandard.2'."\n"
.'ADB.AIMedium.2'."\n"
.'ADB.AILarge.2'."\n"
.'ADB.AIXLarge.2'."\n"
.'ADB.AIStandard.6'."\n"
.'ADB.AIMedium.6'."\n"
.'ADB.AILarge.6'."\n"
.'ADB.AIXLarge.6'."\n"
.'ADB.AIStandard.3'."\n"
.'ADB.AIMedium.3'."\n"
.'ADB.AILarge.3'."\n"
.'ADB.AIXLarge.3'."\n"
.'ADB.AIStandard.4'."\n"
.'ADB.AIMedium.4'."\n"
.'ADB.AILarge.4'."\n"
.'ADB.AIXLarge.4'."\n"
.'ADB.AIStandard.5'."\n"
.'ADB.AIMedium.5'."\n"
.'ADB.AILarge.5'."\n"
.'ADB.AIXLarge.5'."\n"
.'ADB.AIStandard.8'."\n"
.'ADB.AIMedium.8'."\n"
.'ADB.AILarge.8'."\n"
.'ADB.AIXLarge.8'."\n"
.'ADB.AI2XLarge.8'."\n"
.'```',
'type' => 'string',
'required' => true,
'example' => 'ADB.AIStandard.1',
],
'NodeNum' => [
'description' => '节点数量。',
'type' => 'string',
'required' => true,
'example' => '2',
],
],
'required' => false,
],
'required' => true,
'maxItems' => 100,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'OrderId' => [
'title' => 'Id of the request',
'description' => 'Id of the request',
'type' => 'string',
'example' => '111111111111',
],
'RequestId' => [
'title' => 'Id of the request',
'description' => 'Id of the request',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"OrderId\\": \\"111111111111\\",\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '添加AINode节点',
'description' => '## 使用说明'."\n"
.'本接口用于添加AINode节点。'."\n"
."\n"
.'## QPS限制'."\n"
.'本接口的单用户QPS限制默认为1000次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。'."\n"
."\n"
.'本文档中的QPS仅为默认参考值,准确信息请参见[API速率配额列表](https://quotas.console.aliyun.com/flow-control-products/gpdb/quotas)。',
],
'ModifySupabaseProjectSecurityIps' => [
'summary' => '修改supabase项目白名单。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'SecurityIPList',
'in' => 'query',
'schema' => [
'description' => 'IP白名单分组下的IP列表,最多1000个,以逗号隔开,格式如下:'."\n"
.'- 10.23.12.24(IP)'."\n"
.'- 10.23.12.24/24(CIDR模式,无类域间路由,`/24`表示地址中前缀的长度,范围为`[1,32]`)',
'type' => 'string',
'required' => true,
'example' => '127.0.0.1',
],
],
[
'name' => 'ProjectId',
'in' => 'query',
'schema' => [
'description' => 'Supabase实例ID',
'type' => 'string',
'required' => true,
'example' => 'sbp-407****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D****',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D****\\"\\n}","type":"json"}]',
'title' => '修改Supabase项目白名单',
'description' => '在开始使用Supabase实例前,您需要将客户端的IP地址或IP地址段添加到Supabase实例的白名单中。',
],
'ResetSupabaseProjectPassword' => [
'summary' => '重置supabase数据库密码。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'AccountPassword',
'in' => 'query',
'schema' => [
'description' => '数据库账号密码。'."\n"
.'- 由大写字母、小写字母、数字、特殊字符中的任意三种组成。'."\n"
.'- 特殊符号包含:`!@#$%^&*()_+-=`'."\n"
.'- 密码长度为8~32个字符。',
'type' => 'string',
'required' => true,
'example' => 'Pw123456',
],
],
[
'name' => 'ProjectId',
'in' => 'query',
'schema' => [
'description' => 'Supabase实例ID',
'type' => 'string',
'required' => true,
'example' => 'sbp-tyarplz****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D****',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D****\\"\\n}","type":"json"}]',
'title' => '修改Supabase项目数据库密码',
'description' => '本接口用于重置supabase数据库密码',
],
'CreateSupabaseProject' => [
'summary' => '创建supabase project。',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID,您可以通过[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'ProjectName',
'in' => 'query',
'schema' => [
'description' => '项目名称。命名规则如下:'."\n"
."\n"
.'- 长度为1~128字符。'."\n"
."\n"
.'- 只能包含英文字母,数字,短划线(-)和下划线(_)。'."\n"
."\n"
.'- 必须以英文字母或下划线(_)开头。',
'type' => 'string',
'required' => true,
'example' => 'saas_iot_x86_modbustcp_lqt01',
],
],
[
'name' => 'ZoneId',
'in' => 'query',
'schema' => [
'description' => '可用区ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的可用区ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou-h',
],
],
[
'name' => 'AccountPassword',
'in' => 'query',
'schema' => [
'description' => '初始账户的密码。'."\n"
."\n"
.'- 由大写字母、小写字母、数字、特殊字符其中三种及以上组成。'."\n"
.'- 支持的特殊字符:`!@#$%^&*()_+-=`'."\n"
.'- 长度为8~32个字符。',
'type' => 'string',
'required' => true,
'example' => 'Pw123456',
],
],
[
'name' => 'SecurityIPList',
'in' => 'query',
'schema' => [
'description' => 'IP白名单。'."\n"
."\n"
.'127.0.0.1表示禁止任何外部IP访问,您可以在实例创建完成后调用[ModifySecurityIps](~~86928~~)接口修改IP白名单。',
'type' => 'string',
'required' => true,
'example' => '127.0.0.1',
],
],
[
'name' => 'VpcId',
'in' => 'query',
'schema' => [
'description' => 'VPC ID。'."\n"
.'> - 您可以调用[DescribeRdsVpcs](~~208327~~)接口查看可用的VPC ID。'."\n"
.'> - 该参数必须传入。',
'type' => 'string',
'required' => true,
'example' => 'vpc-bp*******************',
],
],
[
'name' => 'VSwitchId',
'in' => 'query',
'schema' => [
'description' => 'vSwitch ID。'."\n"
."\n"
.'> - **vSwitchId**必填。'."\n"
.'> - **vSwitch**所在可用区必须与**ZoneId**保持一致。',
'type' => 'string',
'required' => true,
'example' => 'vsw-bp1cpq8mr64paltkb****',
],
],
[
'name' => 'ProjectSpec',
'in' => 'query',
'schema' => [
'description' => 'Supabase实例规格,默认为1C1G。',
'type' => 'string',
'required' => true,
'example' => '1C1G',
],
],
[
'name' => 'StorageSize',
'in' => 'query',
'schema' => [
'description' => '存储空间大小,单位GB,默认1GB。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '2',
],
],
[
'name' => 'DiskPerformanceLevel',
'in' => 'query',
'schema' => [
'description' => '云盘PL等级,默认PL0。取值可选:'."\n"
.'- PL0'."\n"
.'- PL1',
'type' => 'string',
'required' => false,
'example' => 'PL0',
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => [
'description' => '幂等性校验。更多信息,请参见[如何保证幂等性](~~327176~~)。',
'type' => 'string',
'required' => false,
'example' => '0c593ea1-3bea-11e9-b96b-88888888****',
],
],
[
'name' => 'PayType',
'in' => 'query',
'schema' => [
'type' => 'string',
'required' => false,
],
],
[
'name' => 'UsedTime',
'in' => 'query',
'schema' => [
'type' => 'string',
'required' => false,
],
],
[
'name' => 'Period',
'in' => 'query',
'schema' => [
'type' => 'string',
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ProjectId' => [
'description' => 'Supabase实例ID',
'type' => 'string',
'example' => 'sbp-180****',
],
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求ID',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D****',
],
'OrderId' => [
'type' => 'string',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ProjectId\\": \\"sbp-180****\\",\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D****\\",\\n \\"OrderId\\": \\"\\"\\n}","type":"json"}]',
'title' => '创建Supabase项目',
'description' => '- 本接口用于创建Supabase实例',
],
'DeleteSupabaseProject' => [
'summary' => '删除Supabase实例。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'ProjectId',
'in' => 'query',
'schema' => [
'description' => 'Supabase项目的ID。您可以登录控制台Supabase页面,获取工作空间ID。',
'type' => 'string',
'required' => true,
'example' => 'sbp-1****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D****',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D****\\"\\n}","type":"json"}]',
'title' => '删除Supabase项目',
'description' => '- 本接口用于删除Supabase实例',
],
'ListSupabaseProjects' => [
'summary' => '查询Supabase实例列表。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => [
'description' => '下一个查询开始Token。',
'type' => 'string',
'required' => false,
'example' => 'caeba0bbb2be03f84eb48b699f0a****',
],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => [
'description' => '本次读取的最大数据量,默认值为10。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '20',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'type' => 'integer',
'format' => 'int32',
'required' => false,
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'type' => 'integer',
'format' => 'int32',
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D****',
],
'PageNumber' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageRecordCount' => [
'description' => '当前页记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '20',
],
'TotalRecordCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '2',
],
'Items' => [
'description' => '实例详情列表。',
'type' => 'array',
'items' => [
'description' => '实例详情。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'Supabase实例状态。',
'type' => 'string',
'example' => 'running',
],
'PublicConnectUrl' => [
'description' => 'Supabase DashBoard公网连接串。',
'type' => 'string',
'example' => '10.154.11.10',
],
'EngineVersion' => [
'description' => '数据库版本。',
'type' => 'string',
'example' => '6.0',
],
'ZoneId' => [
'description' => '可用区ID。',
'type' => 'string',
'example' => 'cn-hangzhou-h',
],
'ProjectName' => [
'description' => 'Supabase项目名称。',
'type' => 'string',
'example' => 'supabase_project',
],
'VSwitchId' => [
'description' => 'vSwitch ID。',
'type' => 'string',
'example' => 'vsw-bp1cpq8mr64paltkb****',
],
'ProjectId' => [
'description' => 'Supabase实例ID。',
'type' => 'string',
'example' => 'sbp-12***',
],
'DiskPerformanceLevel' => [
'description' => '云盘等级。',
'type' => 'string',
'example' => 'PL0',
],
'StorageSize' => [
'description' => '存储空间大小,单位GB。',
'type' => 'integer',
'format' => 'int64',
'example' => '2',
],
'PayType' => [
'description' => '计费类型,取值说明:'."\n"
."\n"
.'- **Postpaid**:按量付费。'."\n"
.'- **Prepaid**:包年包月。'."\n"
.'- **Free**: 免费。',
'type' => 'string',
'example' => 'Postpaid',
],
'PrivateConnectUrl' => [
'description' => 'Supbase Dashboard内网连接串。',
'type' => 'string',
'example' => '192.168.0.1',
],
'ProjectSpec' => [
'description' => 'Supabase实例规格。',
'type' => 'string',
'example' => '1C1G',
],
'VpcId' => [
'description' => 'VPC ID。',
'type' => 'string',
'example' => 'vpc-bp19ame5m1r3oejns****',
],
'SecurityIPList' => [
'description' => 'IP白名单分组下的IP列表,以逗号隔开,有以下三种格式:'."\n"
.'- 0.0.0.0/0'."\n"
.'- 10.23.12.24(IP)'."\n"
.'- 10.23.12.24/24(CIDR模式,无类域间路由,`/24`表示了地址中前缀的长度,范围为`[1,32]`)',
'type' => 'string',
'example' => '127.0.0.1',
],
'RegionId' => [
'description' => '地域ID。',
'type' => 'string',
'example' => 'cn-hangzhou',
],
'Engine' => [
'description' => '数据库类型。',
'type' => 'string',
'example' => 'gpdb',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2021-10-09T04:54:08Z',
],
'DashboardPassword' => [
'description' => 'Supabase Dashboard密码(暂未使用)。',
'type' => 'string',
'example' => 'xxpassword',
],
'DashboardUserName' => [
'description' => 'Supabase Dashboard用户名(暂未使用)。',
'type' => 'string',
'example' => 'null',
],
'ExpireTime' => [
'type' => 'string',
],
],
],
],
'NextToken' => [
'description' => '下一个查询开始Token。',
'type' => 'string',
'example' => 'caeba0bbb2be03f84eb48b699f0a****',
],
'MaxResults' => [
'description' => '本次读取的最大数据量,默认值为10。',
'type' => 'integer',
'format' => 'int32',
'example' => '50',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D****\\",\\n \\"PageNumber\\": 1,\\n \\"PageRecordCount\\": 20,\\n \\"TotalRecordCount\\": 2,\\n \\"Items\\": [\\n {\\n \\"Status\\": \\"running\\",\\n \\"PublicConnectUrl\\": \\"10.154.11.10\\",\\n \\"EngineVersion\\": \\"6.0\\",\\n \\"ZoneId\\": \\"cn-hangzhou-h\\",\\n \\"ProjectName\\": \\"supabase_project\\",\\n \\"VSwitchId\\": \\"vsw-bp1cpq8mr64paltkb****\\",\\n \\"ProjectId\\": \\"sbp-12***\\",\\n \\"DiskPerformanceLevel\\": \\"PL0\\",\\n \\"StorageSize\\": 2,\\n \\"PayType\\": \\"Postpaid\\",\\n \\"PrivateConnectUrl\\": \\"192.168.0.1\\",\\n \\"ProjectSpec\\": \\"1C1G\\",\\n \\"VpcId\\": \\"vpc-bp19ame5m1r3oejns****\\",\\n \\"SecurityIPList\\": \\"127.0.0.1\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Engine\\": \\"gpdb\\",\\n \\"CreateTime\\": \\"2021-10-09T04:54:08Z\\",\\n \\"DashboardPassword\\": \\"xxpassword\\",\\n \\"DashboardUserName\\": \\"null\\",\\n \\"ExpireTime\\": \\"\\"\\n }\\n ],\\n \\"NextToken\\": \\"caeba0bbb2be03f84eb48b699f0a****\\",\\n \\"MaxResults\\": 50\\n}","type":"json"}]',
'title' => '查询Supabase项目列表',
'description' => '- 本接口用于查询Supabase实例列表',
],
'GetSupabaseProject' => [
'summary' => '查询Supabase实例详情。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'ProjectId',
'in' => 'query',
'schema' => [
'description' => 'Supabase实例ID,可以在控制台Supabase页面获取。',
'type' => 'string',
'required' => true,
'example' => 'sbp-263****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D****',
],
'ProjectName' => [
'description' => 'Supabase项目名称。',
'type' => 'string',
'example' => 'supabase_project',
],
'ProjectSpec' => [
'description' => 'Supabase实例规格。',
'type' => 'string',
'example' => '1C1G',
],
'Status' => [
'description' => 'Supabase实例状态。',
'type' => 'string',
'example' => 'running',
],
'PublicConnectUrl' => [
'description' => 'Supabase Dashboard公网连接串。',
'type' => 'string',
'example' => '10.154.11.10',
],
'PrivateConnectUrl' => [
'description' => 'Supabase Dashboard内网连接串。',
'type' => 'string',
'example' => '192.168.0.11',
],
'RegionId' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'example' => 'cn-hangzhou',
],
'ZoneId' => [
'description' => '可用区ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的可用区ID。',
'type' => 'string',
'example' => 'cn-hangzhou-i',
],
'VpcId' => [
'description' => 'VPC ID。'."\n"
.'> - 您可以调用[DescribeRdsVpcs](~~208327~~)接口查看可用的VPC ID。'."\n"
.'> - 该参数必须传入。',
'type' => 'string',
'example' => 'vpc-bp*******************',
],
'VSwitchId' => [
'description' => 'vSwitch ID,若传入VPC ID的值,则该参数必传。',
'type' => 'string',
'example' => 'vsw-bp1cpq8mr64paltkb****',
],
'SecurityIpList' => [
'description' => 'IP白名单分组下的IP列表,以逗号隔开',
'type' => 'string',
'example' => '127.0.0.1',
],
'DiskPerformanceLevel' => [
'description' => '云盘PL等级。取值可选:'."\n"
.'- PL0'."\n"
.'- PL1',
'type' => 'string',
'example' => 'PL0',
],
'Engine' => [
'description' => '数据库引擎类型。',
'type' => 'string',
'example' => 'postgres',
],
'EngineVersion' => [
'description' => '引擎版本。',
'type' => 'string',
'example' => '15',
],
'StorageSize' => [
'description' => '存储空间大小,单位GB。',
'type' => 'integer',
'format' => 'int64',
'example' => '2',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2019-09-08T16:00:00Z',
],
'DashboardUserName' => [
'description' => 'Supabase Dashboard用户名(暂未使用)',
'type' => 'string',
'example' => 'username',
],
'ProjectId' => [
'description' => 'Supabase实例ID。',
'type' => 'string',
'example' => 'sbp-545434',
],
'DashboardPassword' => [
'description' => 'Supabase Dashboard密码(暂未使用)',
'type' => 'string',
'example' => 'xxpassword',
],
'PayType' => [
'type' => 'string',
],
'InstanceVersion' => [
'type' => 'string',
],
'StorageType' => [
'type' => 'string',
],
'Eni' => [
'type' => 'string',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D****\\",\\n \\"ProjectName\\": \\"supabase_project\\",\\n \\"ProjectSpec\\": \\"1C1G\\",\\n \\"Status\\": \\"running\\",\\n \\"PublicConnectUrl\\": \\"10.154.11.10\\",\\n \\"PrivateConnectUrl\\": \\"192.168.0.11\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"ZoneId\\": \\"cn-hangzhou-i\\",\\n \\"VpcId\\": \\"vpc-bp*******************\\",\\n \\"VSwitchId\\": \\"vsw-bp1cpq8mr64paltkb****\\",\\n \\"SecurityIpList\\": \\"127.0.0.1\\",\\n \\"DiskPerformanceLevel\\": \\"PL0\\",\\n \\"Engine\\": \\"postgres\\",\\n \\"EngineVersion\\": \\"15\\",\\n \\"StorageSize\\": 2,\\n \\"CreateTime\\": \\"2019-09-08T16:00:00Z\\",\\n \\"DashboardUserName\\": \\"username\\",\\n \\"ProjectId\\": \\"sbp-545434\\",\\n \\"DashboardPassword\\": \\"xxpassword\\",\\n \\"PayType\\": \\"\\",\\n \\"InstanceVersion\\": \\"\\",\\n \\"StorageType\\": \\"\\",\\n \\"Eni\\": \\"\\"\\n}","type":"json"}]',
'title' => '查询Supabase实例详情',
'description' => '此接口为查询Supabase实例详情',
],
'GetSupabaseProjectDashboardAccount' => [
'summary' => '查询Supabase项目dashboard账号信息。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在 Region ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'ProjectId',
'in' => 'query',
'schema' => [
'description' => 'Supabase实例ID。',
'type' => 'string',
'required' => true,
'example' => 'sbp-4ptxp5mp****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D****',
],
'ProjectName' => [
'description' => 'Supabase项目名称(暂未使用)。',
'type' => 'string',
'example' => 'supabase_prod',
],
'ProjectId' => [
'description' => 'Supabase实例ID。',
'type' => 'string',
'example' => 'sbp-twmoe9bakow',
],
'DashboardPassword' => [
'description' => 'Supabase Dashboard密码。',
'type' => 'string',
'example' => 'xxpassword',
],
'DashboardUsername' => [
'description' => 'Supabase Dashboard用户名。',
'type' => 'string',
'example' => 'xxuser',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D****\\",\\n \\"ProjectName\\": \\"supabase_prod\\",\\n \\"ProjectId\\": \\"sbp-twmoe9bakow\\",\\n \\"DashboardPassword\\": \\"xxpassword\\",\\n \\"DashboardUsername\\": \\"xxuser\\"\\n}","type":"json"}]',
'title' => '查询Supabase Dashboard账号信息',
'description' => '查询Supabase项目Dashboard账号信息',
],
'GetSupabaseProjectApiKeys' => [
'summary' => '查询Supabase实例 API Keys。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'ProjectId',
'in' => 'query',
'schema' => [
'description' => 'Supabase实例ID',
'type' => 'string',
'required' => true,
'example' => 'sbp-481****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D****',
],
'ApiKeys' => [
'description' => 'API Keys列表',
'type' => 'array',
'items' => [
'description' => 'API Key',
'type' => 'object',
'properties' => [
'Name' => [
'description' => 'API Key名称。包括anon key和service role key',
'type' => 'string',
'example' => 'anon key',
],
'ApiKey' => [
'description' => 'API Key内容',
'type' => 'string',
'example' => 'Tmz2Z59caMDeq/Xi9vuc****',
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D****\\",\\n \\"ApiKeys\\": [\\n {\\n \\"Name\\": \\"anon key\\",\\n \\"ApiKey\\": \\"Tmz2Z59caMDeq/Xi9vuc****\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => '查询Supabase项目API Keys',
'description' => '此接口为查询Supabase实例API Keys',
],
'ExecuteStatement' => [
'summary' => '执行SQL语句。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '225498',
'abilityTreeNodes' => [
'FEATUREgpdb95T353',
],
'autoTest' => false,
'notSupportAutoTestReason' => '数据类API,自动化测试中,无法通过RAM验证(POP仅会返回200)',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
[
'name' => 'RagWorkspaceCollection',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '向量数据集参数。'."\n"
.'> 当WorkspaceId非空时,必须同时传入该参数。',
'type' => 'object',
'properties' => [
'Namespace' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您可以通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
],
'Collection' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mycollection',
],
],
'required' => false,
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-beijing',
],
],
[
'name' => 'SecretArn',
'in' => 'query',
'schema' => [
'description' => '访问凭证。通过CreateSecret接口创建。'."\n"
."\n"
.'> 通过子账号访问此接口时,需要有对此SecretArn的UseSecret或GetSecretValue的权限。',
'type' => 'string',
'required' => true,
'example' => 'acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'adbtest',
],
],
[
'name' => 'RunType',
'in' => 'query',
'schema' => [
'description' => '运行类型。可选:'."\n"
.'- synchronous: 同步'."\n"
.'- asynchronous:异步,暂时不支持。',
'type' => 'string',
'required' => false,
'example' => 'synchronous',
],
],
[
'name' => 'StatementName',
'in' => 'query',
'schema' => [
'description' => '执行语句名称。当RunType为asynchronous时生效。',
'type' => 'string',
'required' => false,
'example' => 'test',
],
],
[
'name' => 'Sql',
'in' => 'formData',
'schema' => [
'description' => '需要执行的SQL语句。',
'type' => 'string',
'required' => false,
'example' => 'select * from table1',
],
],
[
'name' => 'Sqls',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => '多条SQL。',
'type' => 'array',
'items' => [
'description' => 'SQL语句。',
'type' => 'string',
'required' => false,
'example' => 'set idle_in_transaction_session_timeout = 300000',
],
'required' => false,
],
],
[
'name' => 'Parameters',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => '配置参数列表。',
'type' => 'array',
'items' => [
'description' => '配置参数列表。',
'type' => 'any',
'required' => false,
'example' => 'myvalue',
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-xxxxxxxxx',
],
'SecretArn' => [
'description' => '访问凭证。',
'type' => 'string',
'example' => 'acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ',
],
'CreatedAt' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2023-12-04T10:08:47+0800',
],
'Database' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'adbtest',
],
'Id' => [
'description' => '异步SQL时的任务ID。',
'type' => 'string',
'example' => 'ABB39CC3',
],
'Data' => [
'description' => '同步调用的返回结果。',
'type' => 'object',
'properties' => [
'Records' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Records' => [
'description' => '多行数据。',
'type' => 'array',
'items' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Record' => [
'description' => '单行数据。',
'type' => 'array',
'items' => [
'description' => '单个数据。',
'$ref' => '#/components/schemas/Field',
],
],
],
],
],
],
],
'ColumnMetadata' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ColumnMetadata' => [
'description' => '列元数据列表。',
'type' => 'array',
'items' => [
'description' => '列元数据。',
'$ref' => '#/components/schemas/ColumnMetadata',
],
],
],
],
'TotalNumRows' => [
'description' => '总共条目。',
'type' => 'integer',
'format' => 'int64',
'example' => '10',
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"DBInstanceId\\": \\"gp-xxxxxxxxx\\",\\n \\"SecretArn\\": \\"acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ\\",\\n \\"CreatedAt\\": \\"2023-12-04T10:08:47+0800\\",\\n \\"Database\\": \\"adbtest\\",\\n \\"Id\\": \\"ABB39CC3\\",\\n \\"Data\\": {\\n \\"Records\\": {\\n \\"Records\\": [\\n {\\n \\"Record\\": [\\n {\\n \\"BlobValue\\": \\"\\",\\n \\"BooleanValue\\": true,\\n \\"DoubleValue\\": 0,\\n \\"IsNull\\": true,\\n \\"LongValue\\": 0,\\n \\"StringValue\\": \\"\\"\\n }\\n ]\\n }\\n ]\\n },\\n \\"ColumnMetadata\\": {\\n \\"ColumnMetadata\\": [\\n {\\n \\"Name\\": \\"\\",\\n \\"DataType\\": \\"\\",\\n \\"ColumnDefault\\": \\"\\",\\n \\"MaxLength\\": 0,\\n \\"Nullable\\": true,\\n \\"SchemaName\\": \\"\\",\\n \\"TableName\\": \\"\\",\\n \\"IsCaseSensitive\\": true,\\n \\"IsCurrency\\": true,\\n \\"IsSigned\\": true,\\n \\"Precision\\": 0,\\n \\"Scale\\": 0,\\n \\"IsPrimaryKey\\": true,\\n \\"Comment\\": \\"\\",\\n \\"UdtName\\": \\"\\"\\n }\\n ]\\n },\\n \\"TotalNumRows\\": 10\\n }\\n}","type":"json"}]',
'title' => '执行SQL语句',
],
'DescribeTable' => [
'summary' => '查看表详情。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '225539',
'abilityTreeNodes' => [
'FEATUREgpdb95T353',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL版实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-beijing',
],
],
[
'name' => 'SecretArn',
'in' => 'query',
'schema' => [
'description' => '访问凭证。通过CreateSecret接口创建。'."\n"
."\n"
.'> 通过子账号访问此接口时,需要有对此SecretArn的UseSecret或GetSecretValue的权限。',
'type' => 'string',
'required' => true,
'example' => 'acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'adbtest',
],
],
[
'name' => 'Schema',
'in' => 'query',
'schema' => [
'description' => '表所在的Schema的名称。',
'type' => 'string',
'required' => true,
'example' => 'public',
],
],
[
'name' => 'Table',
'in' => 'query',
'schema' => [
'description' => '表名称。',
'type' => 'string',
'required' => true,
'example' => 'mytable',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'ColumnList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ColumnList' => [
'description' => '字段列表信息。',
'type' => 'array',
'items' => [
'description' => '字段列表信息。',
'$ref' => '#/components/schemas/ColumnMetadata',
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"ColumnList\\": {\\n \\"ColumnList\\": [\\n {\\n \\"Name\\": \\"\\",\\n \\"DataType\\": \\"\\",\\n \\"ColumnDefault\\": \\"\\",\\n \\"MaxLength\\": 0,\\n \\"Nullable\\": true,\\n \\"SchemaName\\": \\"\\",\\n \\"TableName\\": \\"\\",\\n \\"IsCaseSensitive\\": true,\\n \\"IsCurrency\\": true,\\n \\"IsSigned\\": true,\\n \\"Precision\\": 0,\\n \\"Scale\\": 0,\\n \\"IsPrimaryKey\\": true,\\n \\"Comment\\": \\"\\",\\n \\"UdtName\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '查看表详情',
],
'ListTables' => [
'summary' => '查看数据表列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '225538',
'abilityTreeNodes' => [
'FEATUREgpdb95T353',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
.'> 您可以调用[DescribeDBInstances](~~196830~~)接口查看目标地域下所有实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-beijing',
],
],
[
'name' => 'SecretArn',
'in' => 'query',
'schema' => [
'description' => '访问凭证。通过CreateSecret接口创建。'."\n"
."\n"
.'> 通过子账号访问此接口时,需要有对此SecretArn的UseSecret或GetSecretValue的权限。',
'type' => 'string',
'required' => true,
'example' => 'acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'adbtest',
],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => [
'description' => '分页时返回的最多数目,范围在1~100之间。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '100',
],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => [
'description' => '下一个查询开始Token。',
'type' => 'string',
'required' => false,
'example' => 'caeba0bbb2be03f84eb48b699f0a4883',
],
],
[
'name' => 'TablePattern',
'in' => 'query',
'schema' => [
'description' => '表名称匹配模式,比如```ab%```表示以ab开头的名称。',
'type' => 'string',
'required' => false,
'example' => 'ab%',
],
],
[
'name' => 'Schema',
'in' => 'query',
'schema' => [
'description' => '表所在的Schema的名称。',
'type' => 'string',
'required' => true,
'example' => 'public',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => '状态,取值说明:'."\n"
.'- **success**:成功'."\n"
.'- **fail**:失败',
'type' => 'string',
'example' => 'success',
],
'NextToken' => [
'description' => '下一个查询开始Token。',
'type' => 'string',
'example' => 'caeba0bbb2be03f84eb48b699f0a4883',
],
'Tables' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Tables' => [
'description' => '表列表。',
'type' => 'array',
'items' => [
'description' => '表名称。',
'type' => 'string',
'example' => 'mytable',
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"NextToken\\": \\"caeba0bbb2be03f84eb48b699f0a4883\\",\\n \\"Tables\\": {\\n \\"Tables\\": [\\n \\"mytable\\"\\n ]\\n }\\n}","type":"json"}]',
'title' => '查看数据表列表',
],
'ListSchemas' => [
'summary' => '查看Schema列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '225537',
'abilityTreeNodes' => [
'FEATUREgpdb95T353',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID',
'type' => 'string',
'required' => true,
'example' => 'cn-beijing',
],
],
[
'name' => 'SecretArn',
'in' => 'query',
'schema' => [
'description' => '访问凭证。通过CreateSecret接口创建。'."\n"
."\n"
.'> 通过子账号访问此接口时,需要有对此SecretArn的UseSecret或GetSecretValue的权限。',
'type' => 'string',
'required' => true,
'example' => 'acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'adbtest',
],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => [
'description' => '分页时返回的最多数目,范围在1~100之间。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '20',
],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => [
'description' => '分页查询时,下一个查询开始Token。',
'type' => 'string',
'required' => false,
'example' => 'caeba0bbb2be03f84eb48b699f0a4883',
],
],
[
'name' => 'SchemaPattern',
'in' => 'query',
'schema' => [
'description' => 'Schema名称匹配值,如```ab%```表示以ab开头的名称。',
'type' => 'string',
'required' => false,
'example' => 'aaa%',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'NextToken' => [
'description' => '分页查询时,下一个查询开始Token。',
'type' => 'string',
'example' => 'caeba0bbb2be03f84eb48b699f0a4883',
],
'Schemas' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Schemas' => [
'description' => 'Schema列表。',
'type' => 'array',
'items' => [
'description' => 'Schema名称。',
'type' => 'string',
'example' => 'public',
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"NextToken\\": \\"caeba0bbb2be03f84eb48b699f0a4883\\",\\n \\"Schemas\\": {\\n \\"Schemas\\": [\\n \\"public\\"\\n ]\\n }\\n}","type":"json"}]',
'title' => '查看Schema列表',
],
'ListDatabases' => [
'summary' => '查看数据库列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '225534',
'abilityTreeNodes' => [
'FEATUREgpdb95T353',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在 Region ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-beijing',
],
],
[
'name' => 'SecretArn',
'in' => 'query',
'schema' => [
'description' => '访问凭证。通过CreateSecret接口创建。'."\n"
."\n"
.'> 通过子账号访问此接口时,需要有对此SecretArn的UseSecret或GetSecretValue的权限。',
'type' => 'string',
'required' => true,
'example' => 'acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'testdb',
],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => [
'description' => '分页时返回的最多数目,范围在1~100之间。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '50',
],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => [
'description' => '下一个查询开始Token。',
'type' => 'string',
'required' => false,
'example' => 'caeba0bbb2be03f84eb48b699f0a4883',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回信息。',
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'NextToken' => [
'description' => '下一个查询开始Token。',
'type' => 'string',
'example' => 'caeba0bbb2be03f84eb48b699f0a4883',
],
'Databases' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Databases' => [
'description' => '查询到的数据库列表。',
'type' => 'array',
'items' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'acc_001',
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"NextToken\\": \\"caeba0bbb2be03f84eb48b699f0a4883\\",\\n \\"Databases\\": {\\n \\"Databases\\": [\\n \\"acc_001\\"\\n ]\\n }\\n}","type":"json"}]',
'title' => '查看数据库列表',
],
'ListSecrets' => [
'summary' => '查看访问凭证列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '225492',
'abilityTreeNodes' => [
'FEATUREgpdb95T353',
],
'autoTest' => false,
'notSupportAutoTestReason' => '鉴权对象不作为入参,因此鉴权对象不存在情形,无法实现RAM标准错误信息透出,故不支持自动化测试',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-beijing',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'Count' => [
'description' => '数目。',
'type' => 'integer',
'format' => 'int64',
'example' => '4',
],
'Secrets' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Secrets' => [
'description' => '凭证列表。',
'type' => 'array',
'items' => [
'description' => '凭证信息。',
'type' => 'object',
'properties' => [
'AccountId' => [
'description' => '阿里云账号ID。',
'type' => 'string',
'example' => '1033***',
],
'RegionId' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'example' => 'cn-beijing',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp14****',
],
'SecretName' => [
'description' => '凭据名称。',
'type' => 'string',
'example' => 'testsecret',
],
'SecretArn' => [
'description' => '唯一指定用户创建的Data API账号的登录凭证及权限。'."\n"
.'格式如下:```acs:gpdb:{{region}}:{{accountId}}:secret/{{secretName}}-{{32 digits random string}```。',
'type' => 'string',
'example' => 'acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ',
],
'Description' => [
'description' => '描述信息。',
'type' => 'string',
'example' => 'test description',
],
'Username' => [
'description' => '用户名。',
'type' => 'string',
'example' => 'testacc',
],
],
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\",\\n \\"Count\\": 4,\\n \\"Secrets\\": {\\n \\"Secrets\\": [\\n {\\n \\"AccountId\\": \\"1033***\\",\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"DBInstanceId\\": \\"gp-bp14****\\",\\n \\"SecretName\\": \\"testsecret\\",\\n \\"SecretArn\\": \\"acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ\\",\\n \\"Description\\": \\"test description\\",\\n \\"Username\\": \\"testacc\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '查看访问凭证列表',
],
'GetSecretValue' => [
'summary' => '获取凭据详细信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '225484',
'abilityTreeNodes' => [
'FEATUREgpdb95T353',
],
'autoTest' => false,
'notSupportAutoTestReason' => '鉴权对象不作为入参,因此鉴权对象不存在情形,无法实现RAM标准错误信息透出,故不支持自动化测试',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在Region ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-beijing',
],
],
[
'name' => 'SecretArn',
'in' => 'query',
'schema' => [
'description' => '唯一指定用户创建的Data API账号的登录凭证及权限。'."\n"
.'格式如下:```acs:gpdb:{{region}}:{{accountId}}:secret/{{secretName}}-{{32 digits random string}```。'."\n"
."\n"
.'> 和SecretName参数二选一。',
'type' => 'string',
'required' => false,
'example' => 'acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ',
],
],
[
'name' => 'SecretName',
'in' => 'query',
'schema' => [
'description' => '用户凭证名称。'."\n"
."\n"
.'> 和SecretArn参数二选一。',
'type' => 'string',
'required' => false,
'example' => 'testsecret',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => '状态,取值如下:'."\n"
."\n"
.'- **success**:成功。'."\n"
.'- **fail**:失败。',
'type' => 'string',
'example' => 'success',
],
'SecretArn' => [
'description' => '唯一指定用户创建的Data API账号的登录凭证及权限。'."\n"
.'格式如下:```acs:gpdb:{{region}}:{{accountId}}:secret/{{secretName}}-{{32 digits random string}```。',
'type' => 'string',
'example' => 'acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ',
],
'SecretName' => [
'description' => '凭据名称。',
'type' => 'string',
'example' => 'testsecret',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-xxxxxxxxx',
],
'Username' => [
'description' => '用户名。',
'type' => 'string',
'example' => 'testacc',
],
'Password' => [
'description' => '目标数据库密码。',
'type' => 'string',
'example' => 'pwd123',
],
'Description' => [
'description' => '描述信息。',
'type' => 'string',
'example' => 'test secret',
],
'Code' => [
'description' => '错误码。',
'type' => 'string',
'example' => 'Secret.NotFound',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"SecretArn\\": \\"acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ\\",\\n \\"SecretName\\": \\"testsecret\\",\\n \\"DBInstanceId\\": \\"gp-xxxxxxxxx\\",\\n \\"Username\\": \\"testacc\\",\\n \\"Password\\": \\"pwd123\\",\\n \\"Description\\": \\"test secret\\",\\n \\"Code\\": \\"Secret.NotFound\\"\\n}","type":"json"}]',
'title' => '获取凭证里信息',
],
'DeleteSecret' => [
'summary' => '删除实例的访问凭证。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '225490',
'abilityTreeNodes' => [
'FEATUREgpdb95T353',
],
'autoTest' => false,
'notSupportAutoTestReason' => '鉴权对象不作为入参,因此鉴权对象不存在情形,无法实现RAM标准错误信息透出,故不支持自动化测试',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。可通过DescribeDBInstances接口查询获取。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在Region ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-beijing',
],
],
[
'name' => 'SecretArn',
'in' => 'query',
'schema' => [
'description' => '唯一指定用户创建的Data API账号的登录凭证及权限。'."\n"
.'格式如下:```acs:gpdb:{{region}}:{{accountId}}:secret/{{secretName}}-{{32 digits random string}```。'."\n"
."\n"
.'> 和SecretName参数二选一。',
'type' => 'string',
'required' => false,
'example' => 'acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ',
],
],
[
'name' => 'SecretName',
'in' => 'query',
'schema' => [
'description' => '凭据名称。'."\n"
."\n\n"
.'> 和SecretArn参数二选一。',
'type' => 'string',
'required' => false,
'example' => 'testsecret',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
."\n"
.'- **fail**:执行失败。'."\n"
.'- **success**:执行成功。',
'type' => 'string',
'example' => 'success',
],
'SecretArn' => [
'description' => '唯一指定用户创建的Data API账号的登录凭证及权限。'."\n"
.'格式如下:```acs:gpdb:{{region}}:{{accountId}}:secret/{{secretName}}-{{32 digits random string}```。',
'type' => 'string',
'example' => 'acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"SecretArn\\": \\"acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ\\"\\n}","type":"json"}]',
'title' => '删除访问凭证',
],
'CreateSecret' => [
'summary' => '通过用户名密码创建访问实例的凭证。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '225479',
'abilityTreeNodes' => [
'FEATUREgpdb95T353',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL版实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-beijing',
],
],
[
'name' => 'Username',
'in' => 'query',
'schema' => [
'description' => '数据库访问用户名。'."\n"
."\n"
.'> 限制:'."\n"
.'> - 由小写字母,数字,下划线组成,并且以小写字母开头。'."\n"
.'> - 长度不能超过64个字符。',
'type' => 'string',
'required' => true,
'example' => 'testacc',
],
],
[
'name' => 'Password',
'in' => 'query',
'schema' => [
'description' => '数据库访问密码。',
'type' => 'string',
'required' => true,
'example' => 'pwd123',
],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => [
'description' => '凭据的描述信息。长度不能超过255个字符。',
'type' => 'string',
'required' => false,
'example' => 'test',
],
],
[
'name' => 'SecretName',
'in' => 'query',
'schema' => [
'description' => '凭据名称。由字母、数字和下划线组成,长度为1-16个字符。为空时则使用Username参数作为SecretName。',
'type' => 'string',
'required' => false,
'example' => 'testsecret',
],
],
[
'name' => 'TestConnection',
'in' => 'query',
'schema' => [
'description' => '是否通过用户名和密码检测实例链接是否正常。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => '状态,取值如下:'."\n"
."\n"
.'- **success**:成功。'."\n"
.'- **fail**:失败。',
'type' => 'string',
'example' => 'success',
],
'SecretArn' => [
'description' => '唯一指定用户创建的Data API账号的登录凭证及权限。'."\n"
.'格式如下:```acs:gpdb:{{region}}:{{accountId}}:secret/{{secretName}}-{{32 digits random string}```。',
'type' => 'string',
'example' => 'acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ',
],
'SecretName' => [
'description' => '凭证的名称。',
'type' => 'string',
'example' => 'testsecret',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\",\\n \\"SecretArn\\": \\"acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ\\",\\n \\"SecretName\\": \\"testsecret\\"\\n}","type":"json"}]',
'title' => '创建访问凭证',
],
'InitVectorDatabase' => [
'summary' => '初始化向量检索数据库。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '187877',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'ManagerAccount',
'in' => 'query',
'schema' => [
'description' => '具有rds_superuser权限的管理账号名称。'."\n"
."\n"
.'> 您可以通过控制台->账号管理来创建账号,或者通过[CreateAccount](~~2361789~~)接口创建。',
'type' => 'string',
'required' => true,
'example' => 'testaccount',
],
],
[
'name' => 'ManagerAccountPassword',
'in' => 'query',
'schema' => [
'description' => '管理账号密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。'."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '失败信息详情。',
'type' => 'string',
'example' => 'failed to connect database, detailMsg: getConnection fail::SQL State: 28P01, Error Code: 0, Error Message: FATAL: password',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"failed to connect database, detailMsg: getConnection fail::SQL State: 28P01, Error Code: 0, Error Message: FATAL: password\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '初始化向量数据库',
],
'CreateNamespace' => [
'summary' => '创建向量数据的命名空间。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '182674',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
.'> 您可以调用[DescribeDBInstances](~~196830~~)接口查看目标地域下所有实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-bp152460513z****',
],
],
[
'name' => 'ManagerAccount',
'in' => 'query',
'schema' => [
'description' => '具有rds_superuser权限的管理账号名称。'."\n"
."\n"
.'> 您可以通过控制台->账号管理来创建账号,或调用[CreateAccount](~~2361789~~)接口创建。',
'type' => 'string',
'required' => true,
'example' => 'testaccount',
],
],
[
'name' => 'ManagerAccountPassword',
'in' => 'query',
'schema' => [
'description' => '管理账号密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '要创建的命名空间名称,用于租户隔离(后端会自动创建同名的用户账号)。'."\n"
."\n"
.'> 名称需符合PostgreSQL对象名限制。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword2',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '创建命名空间',
],
'DescribeNamespace' => [
'summary' => '查询命名空间信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '182826',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-bp152460513z****',
],
],
[
'name' => 'ManagerAccount',
'in' => 'query',
'schema' => [
'description' => '具有rds_superuser权限的管理账号名称。'."\n"
."\n"
.'> 您可以通过控制台->账号管理来创建账号,或者通过[CreateAccount](~~2361789~~)接口创建。',
'type' => 'string',
'required' => true,
'example' => 'testaccount',
],
],
[
'name' => 'ManagerAccountPassword',
'in' => 'query',
'schema' => [
'description' => '管理账号密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'mynamespace',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的Region ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'NamespaceInfo' => [
'description' => '命名空间信息。',
'type' => 'object',
'additionalProperties' => [
'type' => 'string',
'example' => '{}',
'description' => '命名空间信息。',
],
],
'Namespace' => [
'description' => '命名空间。',
'type' => 'string',
'example' => 'mynamespace',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp152460513z****',
],
'RegionId' => [
'description' => '地域ID。',
'type' => 'string',
'example' => 'cn-hangzhou',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'Successful',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"NamespaceInfo\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"Namespace\\": \\"mynamespace\\",\\n \\"DBInstanceId\\": \\"gp-bp152460513z****\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Status\\": \\"success\\",\\n \\"Message\\": \\"Successful\\"\\n}","type":"json"}]',
'title' => '查询命名空间信息',
],
'ListNamespaces' => [
'summary' => '查询命名空间列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '182828',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-bp152460513z****',
],
],
[
'name' => 'ManagerAccount',
'in' => 'query',
'schema' => [
'description' => '具有rds_superuser权限的管理账号名称。'."\n"
."\n"
.'> 您可以通过控制台->账号管理来创建账号,或者通过[CreateAccount](~~2361789~~)接口创建。',
'type' => 'string',
'required' => true,
'example' => 'testaccount',
],
],
[
'name' => 'ManagerAccountPassword',
'in' => 'query',
'schema' => [
'description' => '管理账号密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Count' => [
'description' => '总条数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'Namespaces' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Namespace' => [
'description' => '命名空间列表。',
'type' => 'array',
'items' => [
'description' => '命名空间。',
'type' => 'string',
'example' => '["mynamespace"]',
],
],
],
],
'RegionId' => [
'description' => '地域ID。',
'type' => 'string',
'example' => 'cn-hangzhou',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp152460513z****',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Count\\": 1,\\n \\"Namespaces\\": {\\n \\"Namespace\\": [\\n \\"[\\\\\\"mynamespace\\\\\\"]\\"\\n ]\\n },\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"DBInstanceId\\": \\"gp-bp152460513z****\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '查询命名空间列表',
],
'DeleteNamespace' => [
'summary' => '删除命名空间。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '182771',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-bp152460513z7****',
],
],
[
'name' => 'ManagerAccount',
'in' => 'query',
'schema' => [
'description' => '具有rds_superuser权限的管理账号名称。'."\n"
."\n"
.'> 您可以通过控制台->账号管理来创建账号,或者通过[CreateAccount](~~2361789~~)接口创建。',
'type' => 'string',
'required' => true,
'example' => 'testaccount',
],
],
[
'name' => 'ManagerAccountPassword',
'in' => 'query',
'schema' => [
'description' => '管理账号密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您可以通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'mynamespace',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '删除命名空间',
],
'CreateCollection' => [
'summary' => '创建向量数据集。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '182772',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-bp152460513z****',
],
],
[
'name' => 'ManagerAccount',
'in' => 'query',
'schema' => [
'description' => '具有rds_superuser权限的管理账号名称。'."\n"
."\n"
.'> 您可以调用[CreateAccount](~~2361789~~)接口创建账号。',
'type' => 'string',
'required' => true,
'example' => 'testaccount',
],
],
[
'name' => 'ManagerAccountPassword',
'in' => 'query',
'schema' => [
'description' => '管理账号密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您可以通过[CreateNamespace](~~2401495~~)接口创建,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '要创建的集合名。'."\n"
."\n"
.'> 名称需符合PostgreSQL对象名限制。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'Dimension',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => [
'description' => '向量维度。'."\n"
."\n"
.'> 如果指定此值,会构建索引,且后续上传向量数据接口[UpsertCollectionData](~~2401493~~)的Rows.Vector长度需和此值一致。如果不指定此值,可以后续调用[CreateVectorIndex](~~2401499~~)构建索引。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '1024',
],
],
[
'name' => 'FullTextRetrievalFields',
'in' => 'query',
'schema' => [
'description' => '用于全文检索的字段,多个字段用英文逗号(,)分隔,且字段必须属于Metadata里定义的key。',
'type' => 'string',
'required' => false,
'example' => 'title,content',
],
],
[
'name' => 'Metadata',
'in' => 'query',
'schema' => [
'description' => '向量数据的元信息,为MAP格式的JSON字符串。其中key代表字段名,value代表数据类型。'."\n"
."\n"
.'> 支持的数据类型'."\n"
.'> - 数据类型列表详见:[数据类型](~~424383~~)。'."\n"
.'> - 其中money类型暂不支持。'."\n"
."\n"
.'>id、vector、to_tsvector、source字段为保留字段,禁止使用。>',
'type' => 'string',
'required' => true,
'example' => '{"title":"text","content":"text","response":"int"}',
],
],
[
'name' => 'Parser',
'in' => 'query',
'schema' => [
'description' => '用于全文检索的分词器,默认为zh_cn。',
'type' => 'string',
'required' => false,
'example' => 'zh_cn',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'Metrics',
'in' => 'query',
'schema' => [
'description' => '向量构建索引时的方法。取值说明:'."\n"
.'- l2:欧氏距离。'."\n"
.'- ip:点积(内积)距离。'."\n"
.'- cosine:余弦相似度。',
'type' => 'string',
'required' => false,
'example' => 'cosine',
'enum' => [
'l2',
'ip',
'cosine',
],
],
],
[
'name' => 'HnswM',
'in' => 'query',
'schema' => [
'description' => 'HNSW算法中的最大邻居数。接口会根据向量维度自动设置此值,一般不需要手动设置。'."\n"
."\n"
.'> 取值范围:'."\n"
.'>- AnalyticDB PostgreSQL 6.0版实例:1~1000。'."\n"
.'>- AnalyticDB PostgreSQL 7.0版实例:2~100,默认值16。'."\n"
."\n"
.'> 建议根据向量维度来设置:'."\n"
.'>- 小于等于384:16'."\n"
.'>- 大于384小于等于768:32'."\n"
.'>- 大于768小于等于1024:64'."\n"
.'>- 大于1024:128',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'maximum' => '1000',
'minimum' => '1',
'example' => '64',
],
],
[
'name' => 'HnswEfConstruction',
'in' => 'query',
'schema' => [
'description' => 'HNSW算法构建索引时的候选集大小。取值需要>= 2*HNSW_M。'."\n"
."\n"
.'> 取值范围:'."\n"
.'>- AnalyticDB PostgreSQL 6.0版实例:40~4000。'."\n"
.'>- AnalyticDB PostgreSQL 7.0版实例:4~1000,默认值 64。',
'type' => 'string',
'required' => false,
'example' => '128',
],
],
[
'name' => 'PqEnable',
'in' => 'query',
'schema' => [
'description' => '索引是否开启PQ(Product quantization)算法加速,数据量大于50w时建议开启。取值说明:'."\n"
.'- 0:关闭。'."\n"
.'- 1:开启(默认)。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
'enum' => [
'0',
'1',
],
],
],
[
'name' => 'ExternalStorage',
'in' => 'query',
'schema' => [
'description' => '是否使用mmap构建HNSW索引,默认为0。如果数据不需要删除,且对上传数据的速度性能有要求时,建议设置为1。'."\n"
."\n"
.'取值说明:'."\n"
.'- 0:默认采用段页式存储构建索引,这种模式可以使用PostgreSQL中的shared_buffer做缓存,支持删除和更新等操作。'."\n"
.'- 1:该索引会采用mmap构建索引,该模式不支持删除更新等操作。'."\n"
."\n"
.'>仅6.0版本支持参数ExternalStorage。7.0版本暂不支持。>',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '0',
'enum' => [
'0',
'1',
],
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
[
'name' => 'MetadataIndices',
'in' => 'query',
'schema' => [
'description' => '标量索引字段,多个字段用英文逗号(,)分隔,且字段必须属于Metadata里定义的key。',
'type' => 'string',
'required' => false,
'example' => 'title',
],
],
[
'name' => 'SupportSparse',
'in' => 'query',
'schema' => [
'description' => '是否支持稀疏向量。默认值:false。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
],
],
[
'name' => 'SparseVectorIndexConfig',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '稀疏向量索引配置。如果传入,则创建稀疏向量索引。',
'type' => 'object',
'properties' => [
'HnswM' => [
'description' => 'HNSW算法中的最大邻居数。接口会根据向量维度自动设置此值,一般不需要手动设置。'."\n"
."\n"
.'> 取值范围:'."\n"
.'>- AnalyticDB PostgreSQL 6.0版实例:1~1000。'."\n"
.'>- AnalyticDB PostgreSQL 7.0版实例:2~100,默认值16。'."\n"
."\n"
.'> 建议根据向量维度来设置:'."\n"
.'>- 小于等于384:16'."\n"
.'>- 大于384小于等于768:32'."\n"
.'>- 大于768小于等于1024:64'."\n"
.'>- 大于1024:128',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '64',
],
'HnswEfConstruction' => [
'description' => 'HNSW算法构建索引时的候选集大小。取值范围:4~1000,默认值64。'."\n"
."\n"
.'> 仅AnalyticDB PostgreSQL 7.0版实例需要传该值,且取值需要>= 2*HNSW_M。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '128',
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'create successfully',
],
'Status' => [
'description' => '创建状态,取值说明:'."\n"
.'- **success**:成功。'."\n"
.'- **fail**:失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"create successfully\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '创建向量数据集',
'requestParamsDescription' => '> 创建向量数据集成功后,您可参考[DescribeCollection](~~2401507~~)查看已创建的向量数据集。',
],
'DescribeCollection' => [
'summary' => '查询向量数据集信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '182822',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-bp152460513z****',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您可以通[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '向量详情。',
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Dimension' => [
'description' => '向量维度。',
'type' => 'integer',
'format' => 'int32',
'example' => '1024',
],
'FullTextRetrievalFields' => [
'description' => '用于全文检索的字段,多个字段用英文逗号(,)分隔。',
'type' => 'string',
'example' => 'title,content',
],
'Metadata' => [
'description' => '向量数据的元信息,为MAP格式的JSON字符串。其中key代表字段名,value代表数据类型。'."\n"
.'>id、vector、to_tsvector字段为保留字段,禁止使用。>',
'type' => 'object',
'additionalProperties' => [
'type' => 'string',
'description' => '元数据。',
'example' => '{"title":"text","content":"text"}',
],
],
'Metrics' => [
'description' => 'Distance Metrics。',
'type' => 'string',
'example' => 'cosine',
],
'Parser' => [
'description' => '用于全文检索的分词器。',
'type' => 'string',
'example' => 'zh_cn',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp152460513z****',
],
'RegionId' => [
'description' => '地域ID。',
'type' => 'string',
'example' => 'cn-hangzhou',
],
'Namespace' => [
'description' => '命名空间。',
'type' => 'string',
'example' => 'mynamespace',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'SupportSparse' => [
'description' => '是否支持稀疏向量。',
'type' => 'boolean',
'example' => 'true',
],
'SparseVectorMetrics' => [
'description' => '稀疏向量构建索引时的方法。',
'type' => 'string',
'example' => 'ip',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Dimension\\": 1024,\\n \\"FullTextRetrievalFields\\": \\"title,content\\",\\n \\"Metadata\\": {\\n \\"key\\": \\"{\\\\\\"title\\\\\\":\\\\\\"text\\\\\\",\\\\\\"content\\\\\\":\\\\\\"text\\\\\\"}\\"\\n },\\n \\"Metrics\\": \\"cosine\\",\\n \\"Parser\\": \\"zh_cn\\",\\n \\"DBInstanceId\\": \\"gp-bp152460513z****\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Namespace\\": \\"mynamespace\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"SupportSparse\\": true,\\n \\"SparseVectorMetrics\\": \\"ip\\"\\n}","type":"json"}]',
'title' => '查询向量数据集信息',
],
'ListCollections' => [
'summary' => '查询向量数据集列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '182825',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[CreateNamespace](~~2401495~~)接口创建,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Count' => [
'description' => '总条数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'Collections' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Collection' => [
'description' => '向量数据集列表。',
'type' => 'array',
'items' => [
'description' => '向量数据集名称。',
'type' => 'string',
'example' => '["document"]',
],
],
],
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-xxxxxxxxx',
],
'RegionId' => [
'description' => '地域ID。',
'type' => 'string',
'example' => 'cn-hangzhou',
],
'Namespace' => [
'description' => '命名空间。',
'type' => 'string',
'example' => 'mynamespace',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Count\\": 1,\\n \\"Collections\\": {\\n \\"Collection\\": [\\n \\"[\\\\\\"document\\\\\\"]\\"\\n ]\\n },\\n \\"DBInstanceId\\": \\"gp-xxxxxxxxx\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Namespace\\": \\"mynamespace\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '查询向量数据集列表',
],
'ModifyCollection' => [
'summary' => '更新向量数据集',
'path' => '',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '182772',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过CreateNamespace接口创建,通过ListNamespaces接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'Metadata',
'in' => 'query',
'schema' => [
'description' => '向量metadata新增和修改操作的元信息,为JSON字符串,其中JSON字符串的格式如示例所示。'."\n"
."\n"
.'通过指定该参数可以实现增加新的metadata定义,也可对已有metadata的定义执行重命名和隐式数据类型转换操作。'."\n"
."\n"
.'具体来说'."\n"
."\n"
.'当指定 `operations[*].operator = add` 时,为增加新metadata定义的操作,此时 `operations[*].newMetaName` 代表新metadata定义的名称, `operations[*].newMetaType` 代表新metadata定义的数据类型'."\n"
."\n"
.'当指定 `operations[*].operator = replace` 时,为修改已有metadata定义的操作,此时 `operations[*].oldMetaName` 代表当前metadata定义的名称, `operations[*].newMetaName` 代表metadata定义重命名后的名称, `operations[*].newMetaType` 代表metadata定义新的数据类型。如果仅需要重命名,则无需指定 `operations[*].newMetaType` 字段,如果仅需隐式数据类型转换,则无需指定 `operations[*].newMetaName` 字段'."\n"
."\n\n"
.'> 支持的数据类型'."\n"
.'> - 数据类型列表详见:[数据类型](~~424383~~)。'."\n"
.'> - 其中money类型暂不支持。'."\n"
."\n"
.'>id、vector、to_tsvector、source字段为保留字段,禁止使用。>',
'type' => 'string',
'required' => true,
'example' => '{"operations":['."\n"
.'{"operator":"add","newMetaType":"int","newMetaName":"ext1"},'."\n"
.'{"operator":"replace","oldMetaName":"ext2","newMetaName":"ext3"},'."\n"
.'{"operator":"replace","newMetaType":"bigint","oldMetaName":"ext4"},'."\n"
.'{"operator":"replace","newMetaType":"int","oldMetaName":"ext5","newMetaName":"ext6"}'."\n"
.']}',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'Successful',
],
'Metadata' => [
'description' => '向量数据的元信息,为MAP格式的JSON字符串。其中key代表字段名,value代表数据类型。'."\n"
."\n"
.'> 支持的数据类型'."\n"
.'> - 数据类型列表详见:[数据类型](~~424383~~)。'."\n"
.'> - 其中money类型暂不支持。',
'type' => 'string',
'example' => '{"title":"text","content":"text","response":"int"}',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
."\n"
.'- **false**:执行失败。'."\n"
.'- **true**:执行成功。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"Successful\\",\\n \\"Metadata\\": \\"{\\\\\\"title\\\\\\":\\\\\\"text\\\\\\",\\\\\\"content\\\\\\":\\\\\\"text\\\\\\",\\\\\\"response\\\\\\":\\\\\\"int\\\\\\"}\\",\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '修改向量数据集',
],
'DeleteCollection' => [
'summary' => '删除向量数据集。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '182774',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '删除向量数据集',
],
'GrantCollection' => [
'summary' => '向量数据集授权。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '存储预留模式实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[CreateCollection](~~2401497~~)接口创建,通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'GrantToNamespace',
'in' => 'query',
'schema' => [
'description' => '授权目标,即此命名空间有此向量数据集的相应权限。',
'type' => 'string',
'required' => true,
'example' => 'othernamespace',
],
],
[
'name' => 'GrantType',
'in' => 'query',
'schema' => [
'description' => '授权类型,可选值:'."\n"
."\n"
.'- rw:读写权限'."\n"
.'- ro:只读权限'."\n"
.'- none:删除权限',
'type' => 'string',
'required' => true,
'example' => 'rw',
'enum' => [
'rw',
'ro',
'none',
],
],
],
[
'name' => 'ManagerAccount',
'in' => 'query',
'schema' => [
'description' => '具有rds_superuser权限的管理账户名称。'."\n"
."\n"
.'> 您可以通过控制台->账号管理来创建账号,或者通过[CreateAccount](~~2361789~~)接口创建。',
'type' => 'string',
'required' => true,
'example' => 'testaccount',
],
],
[
'name' => 'ManagerAccountPassword',
'in' => 'query',
'schema' => [
'description' => '管理账户密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您通过[ListNamespaces](~~2401502~~)查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '向量数据集授权',
],
'CreateDocumentCollection' => [
'summary' => '创建知识库。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'ManagerAccount',
'in' => 'query',
'schema' => [
'description' => '具有rds_superuser权限的管理账号名称。'."\n"
."\n"
.'> 您可以通过控制台->账号管理来创建账号,或者通过[CreateAccount](~~2361789~~)接口创建。',
'type' => 'string',
'required' => true,
'example' => 'testaccount',
],
],
[
'name' => 'ManagerAccountPassword',
'in' => 'query',
'schema' => [
'description' => '管理账号密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[CreateNamespace](~~2401495~~)接口创建,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '要创建的文档库名称。'."\n"
."\n"
.'> 名称需符合PostgreSQL对象名限制。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'EmbeddingModel',
'in' => 'query',
'schema' => [
'description' => '向量化算法。默认值:text-embedding-v3。'."\n"
."\n"
.'> 支持的算法:'."\n"
.'> - text-embedding-v3(推荐,默认值): 1024维、768维、512维'."\n"
.'> - multimodal-embedding-v1(推荐):1024维, 多模态向量算法'."\n"
.'> - text-embedding-v1: 1536维'."\n"
.'> - text-embedding-v2: 1536维'."\n"
.'> - text2vec(不推荐): 1024维'."\n"
.'> - m3e-base(不推荐): 768维'."\n"
.'> - m3e-small(不推荐): 512维'."\n"
.'> - clip-vit-b-32(不推荐):CLIP ViT-B/32模型, 512维, 图片向量化算法'."\n"
.'> - clip-vit-b-16(不推荐):CLIP ViT-B/16模型, 512维, 图片向量化算法'."\n"
.'> - clip-vit-l-14(不推荐):CLIP ViT-L/14模型, 768维, 图片向量化算法'."\n"
.'> - clip-vit-l-14-336px(不推荐):CLIP ViT-L/14@336px模型, 768维, 图片向量化算法'."\n"
.'> - clip-rn50(不推荐):CLIP RN50模型, 1024维, 图片向量化算法'."\n"
.'> - clip-rn101(不推荐):CLIP RN101模型, 512维, 图片向量化算法'."\n"
.'> - clip-rn50x4(不推荐):CLIP RN50x4模型, 640维, 图片向量化算法'."\n"
.'> - clip-rn50x16(不推荐):CLIP RN50x16模型, 768维, 图片向量化算法'."\n"
.'> - clip-rn50x64(不推荐):CLIP RN50x64模型, 1024维, 图片向量化算法',
'type' => 'string',
'required' => false,
'example' => 'text-embedding-v1',
'default' => 'text-embedding-v3',
'enum' => [],
],
],
[
'name' => 'Dimension',
'in' => 'query',
'schema' => [
'description' => '向量维度。默认值是向量化算法支持的维度。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1024',
],
],
[
'name' => 'FullTextRetrievalFields',
'in' => 'query',
'schema' => [
'description' => '用于全文检索的字段,多个字段用英文逗号(,)分隔,且字段必须属于Metadata里定义的key。',
'type' => 'string',
'required' => false,
'example' => 'title,page',
],
],
[
'name' => 'Metadata',
'in' => 'query',
'schema' => [
'description' => '向量数据的元信息,为MAP格式的JSON字符串。其中key代表字段名,value代表数据类型。'."\n"
."\n"
.'> 支持的数据类型'."\n"
.'> - 数据类型列表详见:[数据类型](~~424383~~)。'."\n"
.'> - 其中money类型暂不支持。'."\n"
."\n"
.'>id、vector、doc_name、content、loader_metadata、source、to_tsvector字段为保留字段,禁止使用。>',
'type' => 'string',
'required' => false,
'example' => '{"title":"text","page":"int"}',
],
],
[
'name' => 'Parser',
'in' => 'query',
'schema' => [
'description' => '用于全文检索的分词器,默认为zh_cn。',
'type' => 'string',
'required' => false,
'example' => 'zh_cn',
'default' => 'zh_cn',
],
],
[
'name' => 'Metrics',
'in' => 'query',
'schema' => [
'description' => '向量构建索引时的方法'."\n"
."\n"
.'取值说明:'."\n"
.'- **l2**:欧氏距离。'."\n"
.'- **ip**:点积(内积)距离。'."\n"
.'- **cosine**(默认):余弦相似度。',
'type' => 'string',
'required' => false,
'example' => 'cosine',
'default' => 'cosine',
],
],
[
'name' => 'HnswM',
'in' => 'query',
'schema' => [
'description' => 'HNSW算法中的最大邻居数。接口会根据向量维度自动设置此值,一般不需要手动设置。'."\n"
."\n"
.'> 取值范围:'."\n"
.'>- AnalyticDB PostgreSQL 6.0版实例:1~1000。'."\n"
.'>- AnalyticDB PostgreSQL 7.0版实例:2~100,默认值16。'."\n"
."\n"
.'> 建议根据向量维度来设置:'."\n"
.'>- 小于等于384:16'."\n"
.'>- 大于384小于等于768:32'."\n"
.'>- 大于768小于等于1024:64'."\n"
.'>- 大于1024:128',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'maximum' => '1000',
'minimum' => '0',
'example' => '64',
'enum' => [],
],
],
[
'name' => 'HnswEfConstruction',
'in' => 'query',
'schema' => [
'description' => 'HNSW算法构建索引时的候选集大小。取值需要>= 2*HNSW_M。'."\n"
."\n"
.'> 取值范围:'."\n"
.'>- AnalyticDB PostgreSQL 6.0版实例:40~4000。'."\n"
.'>- AnalyticDB PostgreSQL 7.0版实例:4~1000,默认值 64。',
'type' => 'string',
'required' => false,
'example' => '128',
],
],
[
'name' => 'PqEnable',
'in' => 'query',
'schema' => [
'description' => '索引是否开启PQ(Product quantization)算法加速,数据量大于50w时建议开启。取值说明:'."\n"
.'- 0:关闭。'."\n"
.'- 1:开启(默认)。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
'enum' => [],
],
],
[
'name' => 'ExternalStorage',
'in' => 'query',
'schema' => [
'description' => '是否使用mmap构建HNSW索引,默认为0。如果数据不需要删除,且对上传数据的速度性能有要求时,建议设置为1。'."\n"
."\n"
.'取值说明:'."\n"
.'- 0:默认采用段页式存储构建索引,这种模式可以使用PostgreSQL中的shared_buffer做缓存,支持删除和更新等操作。'."\n"
.'- 1:该索引会采用mmap构建索引,该模式不支持删除更新等操作。'."\n"
."\n"
.'>仅6.0版本支持参数ExternalStorage。7.0版本暂不支持。>',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '0',
'enum' => [
'0',
'1',
],
],
],
[
'name' => 'MetadataIndices',
'in' => 'query',
'schema' => [
'description' => '标量索引字段,多个字段用英文逗号(,)分隔,且字段必须属于Metadata里定义的key。',
'type' => 'string',
'required' => false,
'example' => 'title',
],
],
[
'name' => 'EnableGraph',
'in' => 'query',
'schema' => [
'description' => '是否开启构建知识图谱。默认值:false。'."\n"
."\n"
.'> 使用该参数前,实例必须升级到开启图引擎的版本。(公测期间请提工单升级版本)',
'type' => 'boolean',
'required' => false,
'example' => 'true',
],
],
[
'name' => 'LLMModel',
'in' => 'query',
'schema' => [
'description' => 'LLM模型名称。取值说明:'."\n"
.'- knowledge-extract-standard:默认值。'."\n"
.'- knowledge-extract-mini'."\n"
.'> 仅当开启构建知识图谱时,该参数生效。',
'type' => 'string',
'required' => false,
'example' => 'knowledge-extract-standard',
],
],
[
'name' => 'Language',
'in' => 'query',
'schema' => [
'description' => '构建知识图谱使用的语言。取值说明:'."\n"
.'- Simplified Chinese: 简体中文。默认值。'."\n"
.'- English:英语。'."\n"
.'> 仅当开启构建知识图谱时,该参数生效。',
'type' => 'string',
'required' => false,
'example' => 'Simplified Chinese',
],
],
[
'name' => 'EntityTypes',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '实体类型列表。'."\n"
."\n"
.'> 当开启构建知识图谱时,该参数必传。',
'type' => 'array',
'items' => [
'description' => '实体类型。',
'type' => 'string',
'required' => false,
'example' => '地点',
],
'required' => false,
],
],
[
'name' => 'RelationshipTypes',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '关系边类型列表。'."\n"
."\n"
.'> 当开启构建知识图谱时,该参数必传。',
'type' => 'array',
'items' => [
'description' => '关系边类型。',
'type' => 'string',
'required' => false,
'example' => '发生',
],
'required' => false,
],
],
[
'name' => 'SupportSparse',
'in' => 'query',
'schema' => [
'description' => '是否支持稀疏向量。默认值:false。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
],
],
[
'name' => 'SparseVectorIndexConfig',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '稀疏向量索引配置。如果传入,则创建稀疏向量索引。',
'type' => 'object',
'properties' => [
'HnswM' => [
'description' => 'HNSW算法中的最大邻居数。接口会根据向量维度自动设置此值,一般不需要手动设置。'."\n"
."\n"
.'> 取值范围:'."\n"
.'>- AnalyticDB PostgreSQL 6.0版实例:1~1000。'."\n"
.'>- AnalyticDB PostgreSQL 7.0版实例:2~100,默认值16。'."\n"
."\n"
.'> 建议根据向量维度来设置:'."\n"
.'>- 小于等于384:16'."\n"
.'>- 大于384小于等于768:32'."\n"
.'>- 大于768小于等于1024:64'."\n"
.'>- 大于1024:128',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '64',
],
'HnswEfConstruction' => [
'description' => 'HNSW算法构建索引时的候选集大小。取值范围:4~1000,默认值64。'."\n"
."\n"
.'> 仅AnalyticDB PostgreSQL 7.0版实例需要传该值,且取值需要>= 2*HNSW_M。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '128',
],
],
'required' => false,
],
],
[
'name' => 'SparseRetrievalFields',
'in' => 'query',
'schema' => [
'description' => '用于构建稀疏向量的metadata字段,多个字段用英文逗号(,)分隔,且字段必须属于 Metadata 里定义的 key。',
'type' => 'string',
'required' => false,
'example' => 'title,abstract',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'successs',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"successs\\"\\n}","type":"json"}]',
'title' => '创建文档库',
],
'ListDocumentCollections' => [
'summary' => '查询文档库列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[CreateNamespace](~~2401495~~)接口创建命名空间,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为[CreateNamespace](~~2401495~~)接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Status' => [
'description' => '创建状态,取值说明:'."\n"
.'- **success**:成功'."\n"
.'- **fail**:失败',
'type' => 'string',
'example' => 'success',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Count' => [
'description' => '总条数。',
'type' => 'integer',
'format' => 'int32',
'example' => '10',
],
'Items' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'CollectionList' => [
'description' => '文档库列表。',
'type' => 'array',
'items' => [
'description' => '文档库信息。',
'type' => 'object',
'properties' => [
'CollectionName' => [
'description' => '文档库名称。',
'type' => 'string',
'example' => 'document',
],
'EmbeddingModel' => [
'description' => '向量化算法。',
'type' => 'string',
'example' => 'text-embeddding-v1',
],
'Dimension' => [
'description' => '向量维度。',
'type' => 'integer',
'format' => 'int32',
'example' => '1536',
],
'FullTextRetrievalFields' => [
'description' => '用于全文检索的字段,多个字段用英文逗号(,)分隔。',
'type' => 'string',
'example' => 'title',
],
'Metadata' => [
'description' => '元数据。',
'type' => 'string',
'example' => '{\'page\': \'int\', \'title\': \'text\'}',
],
'Parser' => [
'description' => '用于全文检索的分词器。',
'type' => 'string',
'example' => 'zh_cn',
],
'Metrics' => [
'description' => '向量相似度算法。',
'type' => 'string',
'example' => 'cosine',
],
'SupportSparse' => [
'description' => '是否支持稀疏向量。默认值:false。',
'type' => 'boolean',
'example' => 'true',
],
'SparseRetrievalFields' => [
'description' => '用于构建稀疏向量的metadata字段,多个字段用英文逗号(,)分隔。',
'type' => 'string',
'example' => 'title,abstract',
],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Status\\": \\"success\\",\\n \\"Message\\": \\"success\\",\\n \\"Count\\": 10,\\n \\"Items\\": {\\n \\"CollectionList\\": [\\n {\\n \\"CollectionName\\": \\"document\\",\\n \\"EmbeddingModel\\": \\"text-embeddding-v1\\",\\n \\"Dimension\\": 1536,\\n \\"FullTextRetrievalFields\\": \\"title\\",\\n \\"Metadata\\": \\"{\'page\': \'int\', \'title\': \'text\'}\\",\\n \\"Parser\\": \\"zh_cn\\",\\n \\"Metrics\\": \\"cosine\\",\\n \\"SupportSparse\\": true,\\n \\"SparseRetrievalFields\\": \\"title,abstract\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '查询文档库列表',
],
'DeleteDocumentCollection' => [
'summary' => '删除文档库。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[CreateNamespace](~~2401495~~)接口创建,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '要删除的文档库名称。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为[CreateNamespace](~~2401495~~)接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => '状态,取值说明:'."\n"
.'- **success**:成功。'."\n"
.'- **fail**:失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '删除文档库',
],
'EnableCollectionGraphRAG' => [
'summary' => '知识库开启构建知识图谱',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-beijing',
],
],
[
'name' => 'ManagerAccount',
'in' => 'query',
'schema' => [
'description' => '具有rds_superuser权限的管理账号名称。'."\n"
."\n"
.'> 您可以调用[CreateAccount](~~2361789~~)接口创建账号。',
'type' => 'string',
'required' => true,
'example' => 'testaccount',
],
],
[
'name' => 'ManagerAccountPassword',
'in' => 'query',
'schema' => [
'description' => '管理账号密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过CreateNamespace接口创建,通过ListNamespaces接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为[CreateNamespace](~~2401495~~)接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '文档库名称。'."\n"
."\n"
.'> 由[CreateDocumentCollection](~~2618448~~)接口创建。您可以调用[ListDocumentCollections](~~2618452~~)接口查看已经创建的文档库。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'LLMModel',
'in' => 'query',
'schema' => [
'description' => 'LLM模型名称。'."\n"
."\n"
.'> 取值范围'."\n"
.'> - knowledge-extract-standard:默认值。'."\n"
.'> - knowledge-extract-mini'."\n"
."\n"
.'> 仅当开启构建知识图谱时,该参数生效。',
'type' => 'string',
'required' => false,
'example' => 'knowledge-extract-standard',
],
],
[
'name' => 'Language',
'in' => 'query',
'schema' => [
'description' => '构建知识图谱使用的语言。取值说明:'."\n"
.'- Simplified Chinese: 简体中文。默认值。'."\n"
.'- English:英语。'."\n"
."\n"
.'> 仅当开启构建知识图谱时,该参数生效。',
'type' => 'string',
'required' => false,
'example' => 'Simplified Chinese',
],
],
[
'name' => 'EntityTypes',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '实体类型列表。'."\n"
."\n"
.'> 当开启构建知识图谱时,该参数必传。',
'type' => 'array',
'items' => [
'description' => '实体类型。',
'type' => 'string',
'required' => true,
'example' => '地点',
],
'required' => true,
],
],
[
'name' => 'RelationshipTypes',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '关系边类型列表。'."\n"
."\n"
.'> 当开启构建知识图谱时,该参数必传。',
'type' => 'array',
'items' => [
'description' => '关系边类型。',
'type' => 'string',
'required' => true,
'example' => '发生',
],
'required' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => '状态,取值说明:'."\n"
.'- **success**:成功。'."\n"
.'- **fail**:失败。',
'type' => 'string',
'example' => 'success',
],
'JobId' => [
'description' => '任务ID,用于后续使用`GetGraphRAGJob`查看任务状态。',
'type' => 'string',
'example' => '231460f8-75dc-405e-a669-0c5204887e91',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"JobId\\": \\"231460f8-75dc-405e-a669-0c5204887e91\\"\\n}","type":"json"}]',
'title' => '知识库开启构建知识图谱',
],
'UpsertChunks' => [
'summary' => '将切分后的文档列表向量化并上传到文档库。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
.'> 本值为[CreateNamespace](~~2401495~~)接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[CreateNamespace](~~2401495~~)接口创建,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '文档库名称。'."\n"
."\n"
.'> 由[CreateDocumentCollection](~~2618448~~)接口创建。您可以调用[ListDocumentCollections](~~2618452~~)接口查看已经创建的文档库。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'FileName',
'in' => 'query',
'schema' => [
'description' => '文件名。'."\n"
."\n"
.'> 指定文件名不为空时,则会根据入参ShouldReplaceFile的取值,决定是否覆盖上传此文件名对应的数据;'."\n"
.'为空时,则直接将chunks数据追加上传到文档库中。',
'type' => 'string',
'required' => false,
'example' => 'mydoc.txt',
],
],
[
'name' => 'ShouldReplaceFile',
'in' => 'query',
'schema' => [
'description' => '在指定 FileName 入参的基础上,该入参控制是否覆盖上传此文件名对应的数据。'."\n"
."\n"
.'如果 ShouldReplaceFile = true,则会在删除该文件名对应的所有数据后,再插入新数据。'."\n"
."\n"
.'如果 ShouldReplaceFile = false,则不会在删除该文件名对应的数据,而是根据具体的TextChunks入参,决定chunk的插入和更新。'."\n"
."\n"
.'该参数默认值为true。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
'default' => 'true',
],
],
[
'name' => 'AllowInsertWithFilter',
'in' => 'query',
'schema' => [
'description' => '在指定 TextChunks下 Filter 入参的基础上,该入参控制是否支持在指定Filter参数的情况下插入数据。'."\n"
."\n"
.'如果 AllowInsertWithFilter = true,则当Filter未匹配到任何数据时,会执行插入操作'."\n"
."\n"
.'如果 AllowInsertWithFilter = false,则当Filter未匹配到任何数据时,不会执行任何操作'."\n"
."\n"
.'该参数默认值为true。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
'default' => 'true',
],
],
[
'name' => 'TextChunks',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => '切分后的文档列表。',
'type' => 'array',
'items' => [
'description' => '单个文档对象。',
'type' => 'object',
'properties' => [
'Filter' => [
'description' => '要更新的数据的过滤条件,格式为SQL的WHERE格式。',
'type' => 'string',
'required' => false,
'example' => 'title = \'seagull\'',
],
'Content' => [
'description' => '文档内容。',
'type' => 'string',
'required' => true,
'example' => '云原生数据仓库AnalyticDB PostgreSQL版提供简单、快速、经济高效的PB级云端数据仓库解决方案。',
],
'Metadata' => [
'description' => '元数据。',
'type' => 'object',
'required' => false,
'example' => '{"title":"test"}',
],
'Id' => [
'description' => '向量数据的唯一ID。',
'type' => 'string',
'required' => false,
'example' => '273e3fc7-8f56-4167-a1bb-d35d2f3b9043',
],
],
'required' => false,
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => 'API执行状态,取值说明:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'EmbeddingTokens' => [
'description' => '向量化时使用的token数。'."\n"
."\n"
.'> token是指将输入的文本分割成的最小单位。token可以是一个单词、一个词组、一个标点符号、一个字符等。',
'type' => 'string',
'example' => '100',
],
'JobId' => [
'description' => '任务ID,用于后续使用`GetGraphRAGJob`查看任务状态。'."\n"
."\n"
.'> 仅当知识库开启构建知识图谱时返回该参数。',
'type' => 'string',
'example' => '231460f8-75dc-405e-a669-0c5204887e91',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\",\\n \\"EmbeddingTokens\\": \\"100\\",\\n \\"JobId\\": \\"231460f8-75dc-405e-a669-0c5204887e91\\"\\n}","type":"json"}]',
'title' => '上传切分后的文档',
'description' => '文档的向量化算法为创建知识库CreateDocumentCollection接口指定的算法。',
],
'UploadDocumentAsync' => [
'summary' => '异步上传文档。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '启用了向量引擎优化加速的实例ID。您可以调用[DescribeDBInstances](~~86911~~) API来查看目标区域中所有AnalyticDB PostgreSQL实例的详细信息,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'Collection',
'in' => 'formData',
'schema' => [
'description' => '文档库的名称。'."\n"
.'>由[CreateDocumentCollection](~~2618448~~) API创建. 您可以调用[ListDocumentCollections](~~2618452~~) API来查看已创建的文档库。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'Namespace',
'in' => 'formData',
'schema' => [
'description' => '命名空间,默认为public。您可以通过CreateNamespace接口创建一个命名空间,并通过ListNamespaces接口查看命名空间列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'NamespacePassword',
'in' => 'formData',
'schema' => [
'description' => '对应于命名空间的密码。该值由CreateNamespace接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例的区域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'FileName',
'in' => 'formData',
'schema' => [
'description' => '文档的文件名。'."\n"
."\n"
.'>* 文件名中需要添加扩展名。例如:.json、.md 和 .pdf。'."\n"
.'>* 支持的图像文件扩展名包括:.bmp、.jpg、.jpeg、.png 和 .tiff。'."\n"
.'>* 您可以使用压缩包上传图像。压缩包的文件名必须包含扩展名。支持的压缩包扩展名包括:.tar、.gz 和 .zip。',
'type' => 'string',
'required' => true,
'example' => 'mydoc.txt',
],
],
[
'name' => 'FileUrl',
'in' => 'formData',
'schema' => [
'description' => '公开访问文档的URL。'."\n"
.'> 建议使用SDK调用此接口,SDK提供了一个名为UploadDocumentAsyncAdvance的方法,可以直接上传本地文件。'."\n"
.'如果是图像归档URL,当前归档中的图像数量不应超过100个'."\n"
."\n"
.'>'."\n"
.'multimodal-embedding-v1上传图片大小上限为 3MB'."\n"
.'>',
'type' => 'string',
'required' => true,
'example' => 'https://xx/mydoc.txt',
'isFileTransferUrl' => true,
],
],
[
'name' => 'Metadata',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => '元数据。此参数的值必须与调用CreateDocumentCollection操作时指定的Metadata参数相同。',
'type' => 'object',
'required' => false,
'additionalProperties' => [
'type' => 'any',
'description' => '元数据信息,需和创建文档库(CreateDocumentCollection)时指定的Metadata字段一致。',
'example' => '{"title":"mytitle","page":1}',
],
],
],
[
'name' => 'ChunkSize',
'in' => 'formData',
'schema' => [
'description' => '处理大数据的策略:当数据被分割成较小的部分时,每块的大小。最大值为2048。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '250',
],
],
[
'name' => 'ChunkOverlap',
'in' => 'formData',
'schema' => [
'description' => '连续块之间重叠的数据大小。此参数的最大值不能大于ChunkSize参数的值。'."\n"
.'> 该参数用于防止由于数据截断而导致的上下文丢失。例如,当您上传长文本时,可以在连续的块之间保留特定的重叠文本内容,以便更好地理解上下文。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '50',
],
],
[
'name' => 'Separators',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => '用于分割大量数据的分隔符。'."\n"
.'> * 这是一个重要的参数,决定了数据分块的效果。此参数与由TextSplitterName参数指定的分隔器相关。'."\n"
.'>* 在大多数情况下,您不需要指定此参数。服务器会根据TextSplitterName参数的值来分配分隔符。',
'type' => 'array',
'items' => [
'description' => '分隔符。',
'type' => 'string',
'required' => false,
'example' => '.',
],
'required' => false,
],
],
[
'name' => 'DryRun',
'in' => 'formData',
'schema' => [
'description' => '指定是否仅执行文档理解和分块,而不进行向量化和存储。默认值为false。'."\n"
."\n"
.'> 您可以将此参数设置为true,检查分块效果,然后根据需要进行优化。',
'type' => 'boolean',
'required' => false,
'example' => 'false',
'default' => 'false',
],
],
[
'name' => 'ZhTitleEnhance',
'in' => 'formData',
'schema' => [
'description' => '指定是否启用标题增强。'."\n"
.'>您可以确定标题文本,在元数据中标记该文本,然后将该文本与上一级标题结合,以实现文本增强。',
'type' => 'boolean',
'required' => false,
'example' => 'false',
],
],
[
'name' => 'TextSplitterName',
'in' => 'formData',
'schema' => [
'description' => '分隔器的名称。有效值包括:'."\n"
.'* **ChineseRecursiveTextSplitter**:继承自RecursiveCharacterTextSplitter, 默认使用`["\\n\\n","\\n", "。|!|?", "\\.\\s|\\!\\s|\\?\\s", ";|;\\s", ",|,\\s"]` 为分隔符,并使用正则表达式来匹配文本。'."\n"
.'* **RecursiveCharacterTextSplitter**: 默认使用`["\\n\\n", "\\n", " ", ""]` 作为分隔符。该分隔器支持分割如C++, Go, Java, JS, PHP, Proto, Python, RST, Ruby, Rust, Scala, Swift, Markdown, LaTeX, HTML, Sol, 和C Sharp等语言的代码.'."\n"
.'* **SpacyTextSplitter**: 默认使用`\\n\\n` 作为分隔符,并使用spaCy的en_core_web_sm模型。该分隔器可以获得更好的分割效果。'."\n"
.'* **MarkdownHeaderTextSplitter**: 以[("#", "head1"), ("##", "head2"), ("###", "head3"), ("####", "head4")格式分割文本。该分隔器适用于Markdown文本。'."\n"
.'* **LLMSplitter**: 使用LLM对文本进行切分,默认模型使用qwen3-8b。目前该分隔器仅在选用ADBPGLoader时生效。',
'type' => 'string',
'required' => false,
'example' => 'ChineseRecursiveTextSplitter',
],
],
[
'name' => 'DocumentLoaderName',
'in' => 'formData',
'schema' => [
'description' => '文档加载器的名称。如果您不指定此参数,系统会根据文件扩展名自动按以下顺序选择相应的文档加载器。有效值包括:'."\n"
.'* UnstructuredHTMLLoader:.html'."\n"
.'* UnstructuredMarkdownLoader:.md'."\n"
.'* PyMuPDFLoader:.pdf'."\n"
.'* PyPDFLoader:.pdf'."\n"
.'* RapidOCRPDFLoader:.pdf'."\n"
.'* PDFWithImageRefLoader:.pdf (with the text-image association feature)'."\n"
.'* JSONLoader:.json'."\n"
.'* CSVLoader:.csv'."\n"
.'* RapidOCRLoader:.png、.jpg、.jpeg和.bmp'."\n"
.'* UnstructuredFileLoader: .eml、.msg、.rst、.txt、.docx、.epub、.odt、.pptx和.tsv'."\n"
.'* ADBPGLoader(收费,前3000页免费):.pdf、.doc、.docx、.ppt、.pptx、.xls、.xlsx、.xlsm、.csv、.txt、.jpg、.jpeg、.png、.bmp、.gif、.md、.html、.epub、.mobi和.rtf',
'type' => 'string',
'required' => false,
'example' => 'PyMuPDFLoader',
],
],
[
'name' => 'VlEnhance',
'in' => 'formData',
'schema' => [
'description' => '指定是否开启复杂文档的VL增强内容识别。默认值为false。'."\n"
."\n"
.'> '."\n"
.'> - 针对排版及格式较为混乱的复杂文档,建议开启VL增强内容识别。'."\n"
.'> - 开启VL增强内容识别后,文档处理时长较长'."\n"
.'> - 开启VL增强内容识别后,文档内的图片暂不支持存储及召回。',
'type' => 'boolean',
'required' => false,
'example' => 'false',
],
],
[
'name' => 'SplitterModel',
'in' => 'formData',
'schema' => [
'description' => '在DocumentLoaderName选定ADBPGLoader,且TextSplitterName选用LLMSplitter时,可指定切分模型。默认值为qwen3-8b。'."\n"
.'> '."\n"
.'> 当前支持的切分模型:'."\n"
.'> qwq-plus,qwq-plus-latest,'."\n"
.'> qwen-max,qwen-max-latest,'."\n"
.'> qwen-plus,qwen-plus-latest,'."\n"
.'> qwen-turbo,qwen-turbo-latest,'."\n"
.'> qwen3-235b-a22b,qwen3-32b,qwen3-30b-a3b,'."\n"
.'> qwen3-14b,qwen3-8b,qwen3-4b,qwen3-1.7b,qwen3-0.6b,'."\n"
.'> qwq-32b'."\n"
.'> qwen2.5-14b-instruct-1m,qwen2.5-7b-instruct-1m'."\n"
.'> qwen2.5-72b-instruct,qwen2.5-32b-instruct,'."\n"
.'> qwen2.5-14b-instruct,qwen2.5-7b-instruct,'."\n"
.'> qwen2.5-3b-instruct,qwen2.5-1.5b-instruct,qwen2.5-0.5b-instruct',
'type' => 'string',
'required' => false,
'example' => 'qwen3-8b',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => '创建状态,值描述:success:成功。fail:失败。',
'type' => 'string',
'example' => 'success',
],
'JobId' => [
'description' => '任务ID,用于后续检查任务状态或取消任务。',
'type' => 'string',
'example' => '231460f8-75dc-405e-a669-0c5204887e91',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'asynchronous',
'callback' => 'gpdb::2016-05-03::GetUploadDocumentJob',
'callbackInterval' => 2000,
'maxCallbackTimes' => 1000,
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"JobId\\": \\"231460f8-75dc-405e-a669-0c5204887e91\\"\\n}","type":"json"}]',
'title' => '异步上传文档',
'description' => '服务器根据文件扩展名加载并分割文档,使用在调用CreateDocumentCollection操作时指定的嵌入模型进行向量化处理,然后将文档写入指定的文档集合。此操作支持多种格式的文本和图像的多模态嵌入。'."\n"
."\n"
.'相关操作:'."\n"
."\n"
.'- 您可以调用GetUploadDocumentJob操作来查询文档上传作业的进度和结果。'."\n"
.'- 您可以调用CancelUploadDocumentJob操作来取消一个文档上传作业。'."\n"
."\n"
.'> - 在提交文档上传请求后,该请求将被排队等待处理。在资源访问管理(RAM)用户或阿里云账号下,最多可以处理20个处于“待处理”和“运行中”状态的文档。'."\n"
.'>- 一个文本文档最多可以被分割成100,000个片段。'."\n"
.'>- 如果文档集合使用了OnePeace模型,则每个RAM用户或阿里云账号最多可以上传并查询10,000张图片。',
],
'GetUploadDocumentJob' => [
'summary' => '通过JobId获取异步上传文档的任务的进度和结果。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '开启了向量引擎优化的实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Namespace',
'in' => 'formData',
'schema' => [
'description' => '命名空间,用于租户隔离,默认为public。'."\n"
."\n"
.'> 可以通过[CreateNamespace](~~2401495~~)创建,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'Collection',
'in' => 'formData',
'schema' => [
'description' => '文档库名称。'."\n"
."\n"
.'> 由[CreateDocumentCollection](~~2618448~~)接口创建。您可以调用[ListDocumentCollections](~~2618452~~)接口查看已经创建的文档库。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'NamespacePassword',
'in' => 'formData',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为CreateNamespace接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'JobId',
'in' => 'formData',
'schema' => [
'description' => '上传文档的任务ID,由`UploadDocumentAsync`接口获得。',
'type' => 'string',
'required' => true,
'example' => 'bf8f7bc4-9276-44f7-9c22-1d06edc8dfd1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => '此接口状态,取值说明:'."\n"
.'- **success**:成功。'."\n"
.'- **fail**:失败。',
'type' => 'string',
'example' => 'success',
],
'Job' => [
'description' => '上传文档的任务的详细信息。',
'type' => 'object',
'properties' => [
'Id' => [
'description' => 'Job ID。',
'type' => 'string',
'example' => '231460f8-75dc-405e-a669-0c5204887e91',
],
'Completed' => [
'description' => '操作是否完成。',
'type' => 'boolean',
'example' => 'false',
],
'CreateTime' => [
'description' => '任务创建时间。',
'type' => 'string',
'example' => '2024-01-08 16:52:04.864664',
],
'UpdateTime' => [
'description' => '任务更新时间。',
'type' => 'string',
'example' => '2024-01-08 16:53:04.864664',
],
'Status' => [
'description' => '任务状态。取值说明:'."\n"
.'- Success:成功。'."\n"
.'- Failed:失败,失败原因可查看Error字段。'."\n"
.'- Cancelling:正在取消中。'."\n"
.'- Cancelled:已取消。'."\n"
.'- Start:开始。'."\n"
.'- Running:执行中。'."\n"
.'- Pending:等待中。',
'type' => 'string',
'example' => 'Running',
],
'Error' => [
'description' => '当前操作异常或者失败时的错误信息。',
'type' => 'string',
'example' => 'Failed to connect database.',
],
'Progress' => [
'description' => '上传进度,此数值为进度百分比,值为100时表示完成。',
'type' => 'integer',
'format' => 'int32',
'example' => '20',
],
'ErrorCode' => [
'description' => '错误码。',
'type' => 'string',
'example' => 'InternalError',
],
],
],
'ChunkResult' => [
'description' => '切分结果。',
'type' => 'object',
'properties' => [
'ChunkFileUrl' => [
'description' => '切分后的文件链接,有效期为2h。文件格式为JSONL,每一行的格式为`{"page_content":"*****", "metadata": {"**":"***","**":"***"}`',
'type' => 'string',
'example' => 'http://xxx/test.jsonl',
],
'PlainChunkFileUrl' => [
'description' => '切分后的不带metadata的文件链接,有效期为2h。文件格式为纯文本,每一行为一条切分块。此文件可方便的用于embedding。',
'type' => 'string',
'example' => 'http://xxx/test.txt',
],
'DocumentLoaderResultFileUrl' => [
'description' => 'ADBPGLoader文档解析的markdown结果文件,有效期为2h。',
'type' => 'string',
'example' => 'http://oss.xxx/adbpg_loader_result.md',
],
],
],
'Usage' => [
'description' => '文档理解或Embedding消耗的token或条数。',
'type' => 'object',
'properties' => [
'EmbeddingTokens' => [
'description' => '向量化时使用的token数。'."\n"
."\n"
.'> token是指将输入的文本分割成的最小单位;token可以是一个单词、一个词组、一个标点符号、一个字符等。',
'type' => 'integer',
'format' => 'int32',
'example' => '475',
],
'EmbeddingEntries' => [
'description' => '向量化时使用的条目数。',
'type' => 'integer',
'format' => 'int32',
'example' => '10',
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"Job\\": {\\n \\"Id\\": \\"231460f8-75dc-405e-a669-0c5204887e91\\",\\n \\"Completed\\": false,\\n \\"CreateTime\\": \\"2024-01-08 16:52:04.864664\\",\\n \\"UpdateTime\\": \\"2024-01-08 16:53:04.864664\\",\\n \\"Status\\": \\"Running\\",\\n \\"Error\\": \\"Failed to connect database.\\",\\n \\"Progress\\": 20,\\n \\"ErrorCode\\": \\"InternalError\\"\\n },\\n \\"ChunkResult\\": {\\n \\"ChunkFileUrl\\": \\"http://xxx/test.jsonl\\",\\n \\"PlainChunkFileUrl\\": \\"http://xxx/test.txt\\",\\n \\"DocumentLoaderResultFileUrl\\": \\"http://oss.xxx/adbpg_loader_result.md\\"\\n },\\n \\"Usage\\": {\\n \\"EmbeddingTokens\\": 475,\\n \\"EmbeddingEntries\\": 10\\n }\\n}","type":"json"}]',
'title' => '获取上传文档任务',
'description' => '此接口为UploadDocumentAsync的相关接口。可通过UploadDocumentAsync创建一个上传任务,并得到一个JobId,然后通过此接口查看Job的执行信息。'."\n"
."\n"
.'> 使用建议'."\n"
.'> - 按照文档复杂度和切分后的向量条数评估超时,一般不超过2小时。',
],
'CancelUploadDocumentJob' => [
'summary' => '通过JobId取消异步上传文档的任务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '已经开启向量引擎优化实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Namespace',
'in' => 'formData',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过CreateNamespace接口创建,通过ListNamespaces接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'Collection',
'in' => 'formData',
'schema' => [
'description' => '文档库名称。'."\n"
."\n"
.'> 由[CreateDocumentCollection](~~2618448~~)接口创建。您可以调用[ListDocumentCollections](~~2618452~~)接口查看已经创建的文档库。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在Region ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'NamespacePassword',
'in' => 'formData',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为CreateNamespace接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'JobId',
'in' => 'formData',
'schema' => [
'description' => '上传文档的任务ID,由`UploadDocumentAsync`接口获得。',
'type' => 'string',
'required' => true,
'example' => '231460f8-75dc-405e-a669-0c5204887e91',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '取消上传文档任务',
'description' => '此接口为UploadDocumentAsync的相关接口。用于取消上传任务。'."\n"
."\n"
.'> 当任务已经处理成功、失败、已取消时,不能再次调用取消接口。调用取消接口仅中断上传任务,已经写的数据,需要用户自行或者调用DeleteCollectionData接口删除,或者再次使用相同FileName调用上传覆盖。',
],
'GetGraphRAGJob' => [
'summary' => '获取构建知识图谱任务',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为[CreateNamespace](~~2401495~~)接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '文档库名称。'."\n"
."\n"
.'> 由[CreateDocumentCollection](~~2618448~~)接口创建。您可以调用[ListDocumentCollections](~~2618452~~)接口查看已经创建的文档库。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'JobId',
'in' => 'query',
'schema' => [
'description' => '任务ID。',
'type' => 'string',
'required' => true,
'example' => '231460f8-75dc-405e-a669-0c5204887e91',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => '状态,取值说明:'."\n"
.'- **success**:成功。'."\n"
.'- **fail**:失败。',
'type' => 'string',
'example' => 'success',
],
'Job' => [
'description' => '构建知识图谱的任务的详细信息。',
'type' => 'object',
'properties' => [
'Id' => [
'description' => '任务ID。',
'type' => 'string',
'example' => '231460f8-75dc-405e-a669-0c5204887e91',
],
'Completed' => [
'description' => '操作是否完成。',
'type' => 'boolean',
'example' => 'false',
],
'CreateTime' => [
'description' => '任务创建时间。',
'type' => 'string',
'example' => '2024-01-08 16:52:04.864664',
],
'UpdateTime' => [
'description' => '任务更新时间。',
'type' => 'string',
'example' => '2024-01-08 16:53:04.864664',
],
'Status' => [
'description' => '任务状态,取值说明:'."\n"
.'- **Success**:成功。'."\n"
.'- **Failed**:失败,失败原因可查看 Error 字段。'."\n"
.'- **Running**:执行中。'."\n"
.'- **Pending**:等待中。',
'type' => 'string',
'example' => 'Running',
],
'Error' => [
'description' => '当前操作异常或者失败时的错误信息。',
'type' => 'string',
'example' => 'Failed to connect database.',
],
'Progress' => [
'description' => '上传进度,此数值为进度百分比,值为100时表示完成。',
'type' => 'integer',
'format' => 'int32',
'example' => '20',
],
],
],
'Usage' => [
'description' => '文档理解或Embedding消耗的token或条数。',
'type' => 'object',
'properties' => [
'EmbeddingTokens' => [
'description' => '向量化时使用的token数。'."\n"
."\n"
.'> token是指将输入的文本分割成的最小单位;token可以是一个单词、一个词组、一个标点符号、一个字符等。',
'type' => 'integer',
'format' => 'int32',
'example' => '475',
],
'LLMInputTokens' => [
'description' => '大模型输入使用的token数。',
'type' => 'integer',
'format' => 'int32',
'example' => '600',
],
'LLMOutputTokens' => [
'description' => '大模型输出使用的token数。',
'type' => 'integer',
'format' => 'int32',
'example' => '125',
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"Job\\": {\\n \\"Id\\": \\"231460f8-75dc-405e-a669-0c5204887e91\\",\\n \\"Completed\\": false,\\n \\"CreateTime\\": \\"2024-01-08 16:52:04.864664\\",\\n \\"UpdateTime\\": \\"2024-01-08 16:53:04.864664\\",\\n \\"Status\\": \\"Running\\",\\n \\"Error\\": \\"Failed to connect database.\\",\\n \\"Progress\\": 20\\n },\\n \\"Usage\\": {\\n \\"EmbeddingTokens\\": 475,\\n \\"LLMInputTokens\\": 600,\\n \\"LLMOutputTokens\\": 125\\n }\\n}","type":"json"}]',
'title' => '获取构建知识图谱任务',
],
'QueryKnowledgeBasesContent' => [
'summary' => '用自然语句从多个指定文档库检索向量和元数据,合并多路召回结果后返回。',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '197792',
'abilityTreeNodes' => [
'FEATUREgpdb4XJLZD',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-beijing',
],
],
[
'name' => 'Content',
'in' => 'query',
'schema' => [
'description' => '用于检索的文本内容。',
'type' => 'string',
'required' => true,
'example' => 'ADBPG是什么?',
],
],
[
'name' => 'MergeMethod',
'in' => 'query',
'schema' => [
'description' => '多知识库合并的方法,默认为RRF,可选项:'."\n"
.'- RRF'."\n"
.'- Weight',
'type' => 'string',
'required' => false,
'example' => 'RRF',
],
],
[
'name' => 'MergeMethodArgs',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '各个SourceCollection的合并方法的参数。',
'type' => 'object',
'properties' => [
'Rrf' => [
'description' => '指定MergeMethod为RRF时,可配置的参数。',
'type' => 'object',
'properties' => [
'K' => [
'description' => '指定计算分数的算法的1/(k+rank_i)中的 k 常数,范围大于 1 的正整数。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '60',
],
],
'required' => false,
],
'Weight' => [
'description' => '指定MergeMethod为Weight时,可配置的参数。',
'type' => 'object',
'properties' => [
'Weights' => [
'description' => '各个SourceCollection的权重数组。',
'type' => 'array',
'items' => [
'description' => '各个SourceCollection的权重。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '0.5',
],
'required' => false,
],
],
'required' => false,
],
],
'required' => false,
],
],
[
'name' => 'RerankFactor',
'in' => 'query',
'schema' => [
'description' => '重排因子。当该值不为空时,会对向量检索结果再做一次重排。取值范围:1 - 当文档切分稀疏时,重排效率慢。'."\n"
.'> - 建议重排个数(TopK*Factor(向上取整))不超过50。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '2',
],
],
[
'name' => 'SourceCollection',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '要检索的多个Collection信息。',
'type' => 'array',
'items' => [
'description' => '知识库',
'type' => 'object',
'properties' => [
'Collection' => [
'description' => '文档库名称。'."\n"
."\n"
.'> 由[CreateDocumentCollection](~~2618448~~)接口创建。您可以调用[ListDocumentCollections](~~2618452~~)接口查看已经创建的文档库。',
'type' => 'string',
'required' => true,
'example' => 'knowledge22',
],
'Namespace' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您可以通过[CreateNamespace](~~2401495~~)接口创建,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'ns_cloud_index',
],
'NamespacePassword' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为[CreateNamespace](~~2401495~~)接口指定。',
'type' => 'string',
'required' => true,
'example' => 'ns_password',
],
'QueryParams' => [
'description' => '要更新的数据的过滤条件,格式为SQL的WHERE格式。',
'type' => 'object',
'properties' => [
'Filter' => [
'description' => '要查询的数据的过滤条件,格式为SQL的WHERE格式。是一个返回布尔值(真或假)的表达式,条件可以是简单的比较运算符,如等于(=)、不等于(<>或!=)、大于(>), 小于(<)、大于等于(>=)、小于等于(<=),也可以是逻辑运算符(AND, OR, NOT)组合的更复杂的表达式,以及使用IN、BETWEEN、LIKE等关键字的条件。'."\n"
."\n"
.'> '."\n"
.'> - 详细语法可参考:https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-where/',
'type' => 'string',
'required' => false,
'example' => 'id = \'llm-52tvykqt6u67iw73_j6ovptwjk7_file_6ce3da1f7e69495d9f491f2180c86973_11967297\'',
],
'GraphEnhance' => [
'description' => '是否开启知识图谱增强。默认值:false。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
],
'GraphSearchArgs' => [
'description' => '返回top数量的实体和关系边。默认值:60。',
'type' => 'object',
'properties' => [
'GraphTopK' => [
'description' => '返回top数量的实体和关系边。默认值:60。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '60',
],
],
'required' => false,
],
'HybridSearch' => [
'description' => '多路召回算法,默认为空(即直接将稠密向量和全文的分数比较并排序)。'."\n"
."\n"
.'可选值:'."\n"
."\n"
.'- RRF:倒数排序融合(Reciprocal rank fusion),有一个参数k控制融合效果,详见HybridSearchArgs配置;'."\n"
.'- Weight:比重排序,采用参数控制向量和全文的分数比重,然后再排序,参数详见 HybridSearchArgs 配置;'."\n"
.'- Cascaded:先全文检索再在其基础上进行向量检索;',
'type' => 'string',
'required' => false,
'example' => 'Cascaded',
],
'HybridSearchArgs' => [
'description' => '多路召回的算法参数。目前支持RRF和Weight两种。HybridPathsSetting可以指定召回稠密向量(dense)、稀疏向量(sparse)和全文检索(fulltext),如果值为空,默认召回稠密向量(dense)和全文检索(fulltext)。'."\n"
."\n"
.'- RRF:指定计算分数的算法的`1/(k+rank_i)`中的k常数,范围大于1的正整数,格式为:'."\n"
.'```'."\n"
.'{'."\n"
.' "HybridPathsSetting": {'."\n"
.' "paths": "dense,fulltext"'."\n"
.' },'."\n"
.' "RRF": {'."\n"
.' "k": 60'."\n"
.' }'."\n"
.'}'."\n"
.'```'."\n"
."\n"
.'- Weight: '."\n"
.' - 双路召回(不指定HybridPathsSetting,仅指定 alpha):'."\n"
.' - 计算公式:alpha * dense_score + (1-alpha) * fulltext_score,参数 alpha 表示稠密向量和全文的检索分数比重,范围为 0~1,其中 0 表示只全文,1 表示只稠密向量:'."\n"
.'```'."\n"
.'{ '."\n"
.' "Weight": {'."\n"
.' "alpha": 0.5'."\n"
.' }'."\n"
.'}'."\n"
.'```'."\n"
.' - 三路召回模式:'."\n"
.' - 计算公式:normalized_dense * dense_score + normalized_sparse * sparse_score + normalized_fulltext * fulltext_score。其中dense、sparse、fulltext 分别代表稠密向量、稀疏向量、全文检索的权重,取值范围大于等于 0。系统会自动将权重归一化到 0~1(即 normalized_x = x / (dense + sparse + fulltext))。'."\n"
.'```'."\n"
.'{'."\n"
.' "HybridPathsSetting": {'."\n"
.' "paths": "dense,sparse,fulltext"'."\n"
.' },'."\n"
.' "Weight": {'."\n"
.' "dense": 0.5,'."\n"
.' "sparse": 0.3,'."\n"
.' "fulltext": 0.2'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'type' => 'object',
'required' => false,
'additionalProperties' => [
'type' => 'any',
'description' => '参数配置值。',
'example' => '{ '."\n"
.' "RRF": {'."\n"
.' "k": 60'."\n"
.' }'."\n"
.'}'."\n",
],
],
'Metrics' => [
'description' => '向量构建索引时的方法。取值说明:'."\n"
.'- l2:欧氏距离。'."\n"
.'- ip:点积(内积)距离。'."\n"
.'- cosine:余弦相似度。',
'type' => 'string',
'required' => false,
'example' => 'cosine',
],
'RecallWindow' => [
'description' => '召回窗口。当该值不为空时,增加返回检索结果的上下文。格式为2个元素的数组:List,其中-10<=A<=0,0<=B<=10。'."\n"
.'> - 推荐当文档切分过碎、检索可能会丢失上下文信息时使用该参数。'."\n"
.'> - 重排优先窗口化,即先rerank,再窗口化处理。',
'type' => 'array',
'items' => [
'description' => '召回窗口范围值。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '[0,0]',
],
'required' => false,
],
'RerankFactor' => [
'description' => '重排因子。当该值不为空时,会对向量检索结果再做一次重排。取值范围:1 - 当文档切分稀疏时,重排效率慢。'."\n"
.'> - 建议重排个数(TopK*Factor(向上取整))不超过50。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '2.0',
],
'TopK' => [
'description' => '设置返回top结果数量。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '776',
],
'UseFullTextRetrieval' => [
'description' => '是否使用全文检索(双路召回)。默认为false,仅采用向量检索。',
'type' => 'boolean',
'required' => false,
'example' => 'false',
],
'OrderBy' => [
'description' => '默认为空,表示排序的依据字段。'."\n"
."\n"
.'字段必须属于 metadata 或表里的默认字段比如 id,格式支持:'."\n"
."\n"
.'单个字段,如 chunk_id;'."\n"
.'多个字段,用逗号连接,如 block_id, chunk_id;'."\n"
.'支持反序,如: block_id DESC, chunk_id DESC;',
'type' => 'string',
'required' => false,
'example' => 'file_id,sort_num',
],
'Offset' => [
'description' => '偏移量,用于分页查询',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '20',
],
],
'required' => false,
],
],
'required' => false,
],
'required' => true,
],
],
[
'name' => 'TopK',
'in' => 'query',
'schema' => [
'description' => '经过多路召回合并后,设置返回top结果数量。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '10',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'Matches' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'MatchList' => [
'description' => '单条记录。',
'type' => 'array',
'items' => [
'description' => '单条记录。',
'type' => 'object',
'properties' => [
'Id' => [
'description' => '向量数据的唯一Id。',
'type' => 'string',
'example' => 'doca-1234',
],
'Content' => [
'description' => '文本内容。',
'type' => 'string',
'example' => '云原生数据仓库AnalyticDB PostgreSQL版提供简单、快速、经济高效的PB级云端数据仓库解决方案。',
],
'Metadata' => [
'description' => '元数据Map。',
'type' => 'object',
'additionalProperties' => [
'type' => 'string',
'example' => '{\\"pic_id\\":\\"text\\",\\"pic_name\\":\\"text\\",\\"pic_url\\":\\"text\\"}',
'description' => '元数据Map值。',
],
],
'FileName' => [
'description' => '文件名。',
'type' => 'string',
'example' => 'my_doc.txt',
],
'Score' => [
'description' => '此条数据的相似度分数,其分数算法和创建索引时指定的算法(l2/ip/cosine)相关。',
'type' => 'number',
'format' => 'double',
'example' => '0.12345',
],
'RetrievalSource' => [
'description' => '检索结果的来源。1表示向量检索,2表示全文检索,3表示双路召回。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'LoaderMetadata' => [
'description' => '文档加载器加载时的元信息',
'type' => 'string',
'example' => '{"page_pos": 1}',
],
'FileURL' => [
'description' => '查询结果图片的公网URL地址,有效时长默认为2小时。'."\n"
."\n"
.'可通过入参 UrlExpiration 自行指定有效时长',
'type' => 'string',
'example' => 'https://xxx-cn-beijing.aliyuncs.com/image/test.png',
],
'RerankScore' => [
'description' => '重排分数。',
'type' => 'number',
'format' => 'double',
'example' => '6.2345',
],
],
],
],
],
],
'EmbeddingTokens' => [
'description' => '向量化时使用的token数。'."\n"
."\n"
.'> token是指将输入的文本分割成的最小单位;token可以是一个单词、一个词组、一个标点符号、一个字符等。',
'type' => 'string',
'example' => '100',
],
'Usage' => [
'description' => '本次查询的资源使用量',
'type' => 'object',
'properties' => [
'EmbeddingTokens' => [
'description' => '向量化时使用的token数。'."\n"
."\n"
.'> token是指将输入的文本分割成的最小单位;token可以是一个单词、一个词组、一个标点符号、一个字符等。',
'type' => 'string',
'example' => '475',
],
'EmbeddingEntries' => [
'description' => '向量化时使用的条目数。'."\n"
."\n"
.'> 条目是指对文字、图片做向量化处理时的处理数目,如对文字做一次处理,条目数是1,对图片做一次处理是2。',
'type' => 'string',
'example' => '10',
],
],
],
'Entities' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'entities' => [
'description' => '实体详情。',
'type' => 'array',
'items' => [
'description' => '实体详情。',
'type' => 'object',
'properties' => [
'Id' => [
'description' => '实体Id。',
'type' => 'string',
'example' => '1',
],
'Entity' => [
'description' => '实体名称。',
'type' => 'string',
'example' => 'Dr. Wang',
],
'Type' => [
'description' => '实体类型。',
'type' => 'string',
'example' => '人物',
],
'Description' => [
'description' => '实体描述。',
'type' => 'string',
'example' => 'A former advisor at DeepMind.',
],
'FileName' => [
'description' => '文件名。',
'type' => 'string',
'example' => 'my_doc.txt',
],
],
],
],
],
],
'Relations' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'relations' => [
'description' => '关系边详情。',
'type' => 'array',
'items' => [
'description' => '关系边详情。',
'type' => 'object',
'properties' => [
'Id' => [
'description' => '关系边Id。',
'type' => 'string',
'example' => '1',
],
'SourceEntity' => [
'description' => '源实体。',
'type' => 'string',
'example' => 'DeepMind前顾问',
],
'TargetEntity' => [
'description' => '目标实体。',
'type' => 'string',
'example' => 'Dr. Wang',
],
'Description' => [
'description' => '关系边描述。',
'type' => 'string',
'example' => 'Dr. Wang previously served as an advisor at DeepMind.',
],
'FileName' => [
'description' => '文件名。',
'type' => 'string',
'example' => 'my_doc.txt'."\n",
],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"Matches\\": {\\n \\"MatchList\\": [\\n {\\n \\"Id\\": \\"doca-1234\\",\\n \\"Content\\": \\"云原生数据仓库AnalyticDB PostgreSQL版提供简单、快速、经济高效的PB级云端数据仓库解决方案。\\",\\n \\"Metadata\\": {\\n \\"key\\": \\"{\\\\\\\\\\\\\\"pic_id\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"pic_name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"pic_url\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\"}\\"\\n },\\n \\"FileName\\": \\"my_doc.txt\\",\\n \\"Score\\": 0.12345,\\n \\"RetrievalSource\\": 1,\\n \\"LoaderMetadata\\": \\"{\\\\\\"page_pos\\\\\\": 1}\\",\\n \\"FileURL\\": \\"https://xxx-cn-beijing.aliyuncs.com/image/test.png\\",\\n \\"RerankScore\\": 6.2345\\n }\\n ]\\n },\\n \\"EmbeddingTokens\\": \\"100\\",\\n \\"Usage\\": {\\n \\"EmbeddingTokens\\": \\"475\\",\\n \\"EmbeddingEntries\\": \\"10\\"\\n },\\n \\"Entities\\": {\\n \\"entities\\": [\\n {\\n \\"Id\\": \\"1\\",\\n \\"Entity\\": \\"Dr. Wang\\",\\n \\"Type\\": \\"人物\\",\\n \\"Description\\": \\"A former advisor at DeepMind.\\",\\n \\"FileName\\": \\"my_doc.txt\\"\\n }\\n ]\\n },\\n \\"Relations\\": {\\n \\"relations\\": [\\n {\\n \\"Id\\": \\"1\\",\\n \\"SourceEntity\\": \\"DeepMind前顾问\\",\\n \\"TargetEntity\\": \\"Dr. Wang\\",\\n \\"Description\\": \\"Dr. Wang previously served as an advisor at DeepMind.\\",\\n \\"FileName\\": \\"my_doc.txt\\\\n\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '查询多个文档库内容',
],
'QueryContent' => [
'summary' => '用自然语句从指定文档库检索向量和元数据。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '197792',
'abilityTreeNodes' => [
'FEATUREgpdb4XJLZD',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[CreateNamespace](~~2401495~~)接口创建,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '文档库名称。'."\n"
."\n"
.'> 由[CreateDocumentCollection](~~2618448~~)接口创建。您可以调用[ListDocumentCollections](~~2618452~~)接口查看已经创建的文档库。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为[CreateNamespace](~~2401495~~)接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Content',
'in' => 'formData',
'schema' => [
'description' => '用于检索的文本内容。',
'type' => 'string',
'required' => false,
'example' => 'ADBPG是什么?',
],
],
[
'name' => 'Filter',
'in' => 'query',
'schema' => [
'description' => '要查询的数据的过滤条件,格式为SQL的WHERE格式。是一个返回布尔值(真或假)的表达式,条件可以是简单的比较运算符,如等于(=)、不等于(<>或!=)、大于(>), 小于(<)、大于等于(>=)、小于等于(<=),也可以是逻辑运算符(AND, OR, NOT)组合的更复杂的表达式,以及使用IN、BETWEEN、LIKE等关键字的条件。'."\n"
."\n"
.'> '."\n"
.'> - 详细语法可参考:https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-where/',
'type' => 'string',
'required' => false,
'example' => 'title = \'test\' AND name like \'test%\'',
],
],
[
'name' => 'RecallWindow',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '召回窗口。当该值不为空时,增加返回检索结果的上下文。格式为2个元素的数组:List,其中-10<=A<=0,0<=B<=10。'."\n"
.'> - 推荐当文档切分过碎、检索可能会丢失上下文信息时使用该参数。'."\n"
.'> - 重排优先窗口化,即先rerank,再窗口化处理。',
'type' => 'array',
'items' => [
'description' => '召回窗口大小。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '[-5, 5]',
],
'required' => false,
],
],
[
'name' => 'TopK',
'in' => 'query',
'schema' => [
'description' => '返回top数量的结果。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'maximum' => '2147483647',
'minimum' => '1',
'example' => '10',
],
],
[
'name' => 'RerankFactor',
'in' => 'query',
'schema' => [
'description' => '重排因子。当该值不为空时,会对向量检索结果再做一次重排。取值范围:1 - 当文档切分稀疏时,重排效率慢。'."\n"
.'> - 建议重排个数(TopK*Factor(向上取整))不超过50。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '2',
],
],
[
'name' => 'UseFullTextRetrieval',
'in' => 'query',
'schema' => [
'description' => '(参数废弃)是否使用全文检索(双路召回)。默认为false,仅采用向量检索。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
'default' => 'false',
],
],
[
'name' => 'Metrics',
'in' => 'query',
'schema' => [
'description' => '检索时的相似度算法。此值为空时则采用创建知识库时指定的算法,建议如无特殊需求不需设置。'."\n"
."\n"
.'> 取值说明:'."\n"
.'> - **l2**:欧氏距离。'."\n"
.'> - **ip**:点积(内积)距离。'."\n"
.'> - **cosine**:余弦相似度。',
'type' => 'string',
'required' => false,
'example' => 'cosine',
],
],
[
'name' => 'FileName',
'in' => 'query',
'schema' => [
'description' => '以图搜图场景中,待搜索的图片源文件名。'."\n"
."\n"
.'> 图片文件必须带有文件后缀,当前支持的图片后缀:bmp、jpg、jpeg、png、 tiff。',
'type' => 'string',
'required' => false,
'example' => 'test.jpg',
],
],
[
'name' => 'FileUrl',
'in' => 'query',
'schema' => [
'description' => '以图搜图场景中,公网可访问的图片文件URL地址。'."\n"
."\n"
.'> 图片文件必须带有文件后缀,当前支持的图片后缀:bmp、jpg、jpeg、png、tiff。',
'type' => 'string',
'required' => false,
'example' => 'https://xx/myImage.jpg'."\n",
'isFileTransferUrl' => true,
],
],
[
'name' => 'IncludeVector',
'in' => 'query',
'schema' => [
'description' => '是否返回向量。默认为false。'."\n"
.'> - **false**:不返回向量。'."\n"
.'> - **true**:返回向量。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
],
],
[
'name' => 'HybridSearch',
'in' => 'query',
'schema' => [
'description' => '多路召回算法,默认为空(即直接将稠密向量和全文的分数比较并排序)。'."\n"
."\n"
.'可选值:'."\n"
."\n"
.'- RRF:倒数排序融合(Reciprocal rank fusion),有一个参数k控制融合效果,详见HybridSearchArgs配置;'."\n"
.'- Weight:比重排序,采用参数控制向量和全文的分数比重,然后再排序,参数详见 HybridSearchArgs 配置;'."\n"
.'- Cascaded:先全文检索再在其基础上进行向量检索;',
'type' => 'string',
'required' => false,
'example' => 'RRF',
],
],
[
'name' => 'HybridSearchArgs',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '多路召回的算法参数。目前支持RRF和Weight两种。HybridPathsSetting可以指定召回稠密向量(dense)、稀疏向量(sparse)和全文检索(fulltext),如果值为空,默认召回稠密向量(dense)和全文检索(fulltext)。'."\n"
."\n"
.'- RRF:指定计算分数的算法的`1/(k+rank_i)`中的k常数,范围大于1的正整数,格式为:'."\n"
.'```'."\n"
.'{'."\n"
.' "HybridPathsSetting": {'."\n"
.' "paths": "dense,fulltext"'."\n"
.' },'."\n"
.' "RRF": {'."\n"
.' "k": 60'."\n"
.' }'."\n"
.'}'."\n"
.'```'."\n"
."\n"
.'- Weight: '."\n"
.' - 双路召回(不指定HybridPathsSetting,仅指定 alpha):'."\n"
.' - 计算公式:alpha * dense_score + (1-alpha) * fulltext_score,参数 alpha 表示稠密向量和全文的检索分数比重,范围为 0~1,其中 0 表示只全文,1 表示只稠密向量:'."\n"
.'```'."\n"
.'{ '."\n"
.' "Weight": {'."\n"
.' "alpha": 0.5'."\n"
.' }'."\n"
.'}'."\n"
.'```'."\n"
.' - 三路召回模式:'."\n"
.' - 计算公式:normalized_dense * dense_score + normalized_sparse * sparse_score + normalized_fulltext * fulltext_score。其中dense、sparse、fulltext 分别代表稠密向量、稀疏向量、全文检索的权重,取值范围大于等于 0。系统会自动将权重归一化到 0~1(即 normalized_x = x / (dense + sparse + fulltext))。'."\n"
.'```'."\n"
.'{'."\n"
.' "HybridPathsSetting": {'."\n"
.' "paths": "dense,sparse,fulltext"'."\n"
.' },'."\n"
.' "Weight": {'."\n"
.' "dense": 0.5,'."\n"
.' "sparse": 0.3,'."\n"
.' "fulltext": 0.2'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'type' => 'object',
'required' => false,
'additionalProperties' => [
'type' => 'object',
'additionalProperties' => [
'type' => 'any',
'example' => '{'."\n"
.' "HybridPathsSetting": {'."\n"
.' "paths": "dense,fulltext"'."\n"
.' },'."\n"
.' "RRF": {'."\n"
.' "k": 60'."\n"
.' }'."\n"
.'}',
'description' => '参数值。',
],
'description' => '多路召回的参数名。',
],
],
],
[
'name' => 'IncludeMetadataFields',
'in' => 'query',
'schema' => [
'description' => '默认为空,表示要返回的metadata字段,多个字段用逗号分隔。',
'type' => 'string',
'required' => false,
'example' => 'title,page',
],
],
[
'name' => 'IncludeFileUrl',
'in' => 'query',
'schema' => [
'description' => '是否同步返回文档的链接地址,默认不返回。',
'type' => 'boolean',
'required' => false,
'example' => 'false',
],
],
[
'name' => 'UrlExpiration',
'in' => 'query',
'schema' => [
'description' => '返回图片URL的有效期。'."\n"
."\n"
.'> 取值说明'."\n"
.'> - 支持以秒(s)和日(d)为单位。例如300s代表链接有效期为300秒,60d代表链接有效期为60天。'."\n"
.'> - 取值范围在60s ~ 365d之间。'."\n"
.'> - 默认值:7200s,即2小时',
'type' => 'string',
'required' => false,
'example' => '7200s',
],
],
[
'name' => 'GraphEnhance',
'in' => 'query',
'schema' => [
'description' => '是否开启知识图谱增强。默认值:false。',
'type' => 'boolean',
'required' => false,
'example' => 'false',
],
],
[
'name' => 'GraphSearchArgs',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '知识图谱检索参数。',
'type' => 'object',
'properties' => [
'GraphTopK' => [
'description' => '返回top数量的实体和关系边。默认值:60。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '60',
],
],
'required' => false,
],
],
[
'name' => 'OrderBy',
'in' => 'query',
'schema' => [
'title' => '默认为空,表示排序的依据字段。'."\n"
."\n"
.'字段必须属于 metadata 或表里的默认字段比如 id,格式支持:'."\n"
."\n"
.'单个字段,如 chunk_id;'."\n"
.'多个字段,用逗号连接,如 block_id, chunk_id;'."\n"
.'支持反序,如: block_id DESC, chunk_id DESC;',
'description' => '默认为空,表示排序的依据字段。'."\n"
."\n"
.'字段必须属于 metadata 或表里的默认字段比如 id,格式支持:'."\n"
."\n"
.'单个字段,如 chunk_id;'."\n"
.'多个字段,用逗号连接,如 block_id, chunk_id;'."\n"
.'支持反序,如: block_id DESC, chunk_id DESC;',
'type' => 'string',
'required' => false,
'example' => 'created_at',
],
],
[
'name' => 'Offset',
'in' => 'query',
'schema' => [
'title' => '偏移量,用于分页查询',
'description' => '偏移量,用于分页查询',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '0',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => '状态,取值如下:'."\n"
."\n"
.'- **success**:成功。'."\n"
.'- **fail**:失败。',
'type' => 'string',
'example' => 'success',
],
'Matches' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'MatchList' => [
'description' => '匹配到的列表。',
'type' => 'array',
'items' => [
'description' => '单条记录。',
'type' => 'object',
'properties' => [
'Id' => [
'description' => '向量数据的唯一Id。',
'type' => 'string',
'example' => 'doca-1234',
],
'Content' => [
'description' => '文本内容。',
'type' => 'string',
'example' => '云原生数据仓库AnalyticDB PostgreSQL版提供简单、快速、经济高效的PB级云端数据仓库解决方案。',
],
'Metadata' => [
'description' => '元数据Map。',
'type' => 'object',
'additionalProperties' => [
'type' => 'string',
'example' => '{"title":"test"}',
'description' => '元数据。',
],
],
'Vector' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'VectorList' => [
'description' => '向量数据List。',
'type' => 'array',
'items' => [
'description' => '向量数据。',
'type' => 'number',
'format' => 'double',
'example' => '[1.2123,-0.12314,...]',
],
],
],
],
'FileName' => [
'description' => '文件名。',
'type' => 'string',
'example' => 'my_doc.txt',
],
'Score' => [
'description' => '此条数据的相似度分数,其分数算法和创建索引时指定的算法(l2/ip/cosine)相关。',
'type' => 'number',
'format' => 'double',
'example' => '0.12345',
],
'RetrievalSource' => [
'description' => '检索结果的来源。1表示向量检索,2表示全文检索,3表示双路召回。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'LoaderMetadata' => [
'description' => '文档加载器加载时的元信息。',
'type' => 'string',
'example' => '{"page_pos": 1}',
],
'FileURL' => [
'description' => '查询结果图片的公网URL地址,有效时长默认为2小时。'."\n"
."\n"
.'可通过入参 UrlExpiration 自行指定有效时长',
'type' => 'string',
'example' => 'https://xxx-cn-beijing.aliyuncs.com/image/test.png',
],
'RerankScore' => [
'description' => '重排分数。',
'type' => 'number',
'format' => 'double',
'example' => '6.2345',
],
],
],
],
],
],
'WindowMatches' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'windowMatches' => [
'description' => '窗口化匹配到的列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'WindowMatch' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'windowMatch' => [
'description' => '单个top窗口化匹配到的列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Id' => [
'description' => '向量数据的唯一ID。',
'type' => 'string',
'example' => 'doca-2345',
],
'Content' => [
'description' => '文本内容。',
'type' => 'string',
'example' => '云原生数据仓库AnalyticDB PostgreSQL版是一种大规模并行处理(MPP)数据仓库服务,可提供海量数据在线分析服务。',
],
'Metadata' => [
'description' => '元数据Map。',
'type' => 'object',
'additionalProperties' => [
'type' => 'string',
'description' => '元数据。',
'example' => '{"title":"test"}',
],
],
'FileName' => [
'description' => '文件名。',
'type' => 'string',
'example' => 'my_doc.txt',
],
'LoaderMetadata' => [
'description' => '文档加载器加载时的元信息。',
'type' => 'string',
'example' => '{"page_pos": 2}',
],
],
],
],
],
],
],
],
],
],
],
'EmbeddingTokens' => [
'description' => '向量化时使用的token数。'."\n"
."\n"
.'> token是指将输入的文本分割成的最小单位;token可以是一个单词、一个词组、一个标点符号、一个字符等。',
'type' => 'string',
'example' => '100',
],
'Usage' => [
'description' => '本次查询的资源使用量',
'type' => 'object',
'properties' => [
'EmbeddingTokens' => [
'description' => '向量化时使用的token数。'."\n"
."\n"
.'> token是指将输入的文本分割成的最小单位;token可以是一个单词、一个词组、一个标点符号、一个字符等。',
'type' => 'string',
'example' => '100',
],
'EmbeddingEntries' => [
'description' => '向量化时使用的条目数。'."\n"
."\n"
.'> 条目是指对文字、图片做向量化处理时的处理数目,如对文字做一次处理,条目数是1,对图片做一次处理是2。',
'type' => 'string',
'example' => '10',
],
],
],
'Entities' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'entities' => [
'description' => '实体列表。',
'type' => 'array',
'items' => [
'description' => '实体详情。',
'type' => 'object',
'properties' => [
'Id' => [
'description' => '实体Id。',
'type' => 'string',
'example' => '1',
],
'Entity' => [
'description' => '实体名称。',
'type' => 'string',
'example' => 'Dr. Wang',
],
'Type' => [
'description' => '实体类型。',
'type' => 'string',
'example' => '人物',
],
'Description' => [
'description' => '实体描述。',
'type' => 'string',
'example' => 'A former advisor at DeepMind.',
],
'FileName' => [
'description' => '文件名。',
'type' => 'string',
'example' => 'my_doc.txt',
],
],
],
],
],
],
'Relations' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'relations' => [
'description' => '关系边列表。',
'type' => 'array',
'items' => [
'description' => '关系边详情。',
'type' => 'object',
'properties' => [
'Id' => [
'description' => '关系边Id。',
'type' => 'string',
'example' => '1',
],
'SourceEntity' => [
'description' => '源实体。',
'type' => 'string',
'example' => 'DeepMind前顾问',
],
'TargetEntity' => [
'description' => '目标实体。',
'type' => 'string',
'example' => 'Dr. Wang',
],
'Description' => [
'description' => '关系边描述。',
'type' => 'string',
'example' => 'Dr. Wang previously served as an advisor at DeepMind.',
],
'FileName' => [
'description' => '文件名。',
'type' => 'string',
'example' => 'my_doc.txt'."\n",
],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"Matches\\": {\\n \\"MatchList\\": [\\n {\\n \\"Id\\": \\"doca-1234\\",\\n \\"Content\\": \\"云原生数据仓库AnalyticDB PostgreSQL版提供简单、快速、经济高效的PB级云端数据仓库解决方案。\\",\\n \\"Metadata\\": {\\n \\"key\\": \\"{\\\\\\"title\\\\\\":\\\\\\"test\\\\\\"}\\"\\n },\\n \\"Vector\\": {\\n \\"VectorList\\": [\\n 0\\n ]\\n },\\n \\"FileName\\": \\"my_doc.txt\\",\\n \\"Score\\": 0.12345,\\n \\"RetrievalSource\\": 1,\\n \\"LoaderMetadata\\": \\"{\\\\\\"page_pos\\\\\\": 1}\\",\\n \\"FileURL\\": \\"https://xxx-cn-beijing.aliyuncs.com/image/test.png\\",\\n \\"RerankScore\\": 6.2345\\n }\\n ]\\n },\\n \\"WindowMatches\\": {\\n \\"windowMatches\\": [\\n {\\n \\"WindowMatch\\": {\\n \\"windowMatch\\": [\\n {\\n \\"Id\\": \\"doca-2345\\",\\n \\"Content\\": \\"云原生数据仓库AnalyticDB PostgreSQL版是一种大规模并行处理(MPP)数据仓库服务,可提供海量数据在线分析服务。\\",\\n \\"Metadata\\": {\\n \\"key\\": \\"{\\\\\\"title\\\\\\":\\\\\\"test\\\\\\"}\\"\\n },\\n \\"FileName\\": \\"my_doc.txt\\",\\n \\"LoaderMetadata\\": \\"{\\\\\\"page_pos\\\\\\": 2}\\"\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"EmbeddingTokens\\": \\"100\\",\\n \\"Usage\\": {\\n \\"EmbeddingTokens\\": \\"100\\",\\n \\"EmbeddingEntries\\": \\"10\\"\\n },\\n \\"Entities\\": {\\n \\"entities\\": [\\n {\\n \\"Id\\": \\"1\\",\\n \\"Entity\\": \\"Dr. Wang\\",\\n \\"Type\\": \\"人物\\",\\n \\"Description\\": \\"A former advisor at DeepMind.\\",\\n \\"FileName\\": \\"my_doc.txt\\"\\n }\\n ]\\n },\\n \\"Relations\\": {\\n \\"relations\\": [\\n {\\n \\"Id\\": \\"1\\",\\n \\"SourceEntity\\": \\"DeepMind前顾问\\",\\n \\"TargetEntity\\": \\"Dr. Wang\\",\\n \\"Description\\": \\"Dr. Wang previously served as an advisor at DeepMind.\\",\\n \\"FileName\\": \\"my_doc.txt\\\\n\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '查询文档内容',
],
'ChatWithKnowledgeBaseStream' => [
'summary' => '通过结合知识库和大模型,提供智能问答服务。流式接口,通过sse或java异步SDK调用。',
'description' => '该 API 允许用户通过指定的知识库集合与大模型进行交互,以获取基于知识库内容的答案。支持配置多种参数来定制化请求,包括但不限于数据库实例 ID、知识检索参数、模型推理参数等。此外,还提供了默认的系统提示词模板,并允许用户自定义系统提示。'."\n"
."\n"
.'- DBInstanceId:必填项,用于指定数据库实例 ID。'."\n"
.'- KnowledgeParams:可选项,包含知识检索相关的参数,如检索内容、合并策略等。'."\n"
.'- ModelParams:必填项,包含模型推理相关的参数,如消息列表、使用的模型名称等。'."\n"
.'- PromptTemplate:可选项,用于自定义系统提示词模板。',
'path' => '/',
'methods' => [
'post',
],
'schemes' => [
'https',
'sse',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdb4XJLZD',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'title' => '实例所在的地域ID',
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'KnowledgeParams',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '知识检索参数对象,不指定时,仅chat。',
'type' => 'object',
'properties' => [
'MergeMethod' => [
'description' => '多知识库合并的方法,默认为RRF,可选项:'."\n"
.'- RRF'."\n"
.'- Weight',
'type' => 'string',
'required' => false,
'example' => '"RRF"',
],
'MergeMethodArgs' => [
'description' => '多知识库融合的参数。',
'type' => 'object',
'properties' => [
'Rrf' => [
'description' => '指定MergeMethod为RRF时,可配置的参数。',
'type' => 'object',
'properties' => [
'K' => [
'description' => '指定计算分数的算法的1/(k+rank_i)中的 k 常数,范围大于 1 的正整数。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '60',
],
],
'required' => false,
],
'Weight' => [
'description' => '指定MergeMethod为Weight时,可配置的参数。',
'type' => 'object',
'properties' => [
'Weights' => [
'description' => '各个SourceCollection的权重数组。',
'type' => 'array',
'items' => [
'description' => '各个SourceCollection的权重。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '0.01',
],
'required' => false,
],
],
'required' => false,
],
],
'required' => false,
],
'RerankFactor' => [
'description' => '重排因子。当该值不为空时,会对向量检索结果再做一次重排。取值范围:1 - 当文档切分稀疏时,重排效率慢。'."\n"
.'> - 建议重排个数(TopK*Factor(向上取整))不超过50。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '5.0',
],
'SourceCollection' => [
'description' => '知识库',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Collection' => [
'description' => '待召回的集合名。',
'type' => 'string',
'required' => true,
'example' => 'cloud_index_adb_50943_prod',
],
'Namespace' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您可以通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'ddstar_vector',
],
'NamespacePassword' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为CreateNamespace接口指定。',
'type' => 'string',
'required' => true,
'example' => 'namespacePassword',
],
'QueryParams' => [
'description' => '与该知识库检索相关的参数。',
'type' => 'object',
'properties' => [
'Filter' => [
'description' => '要更新的数据的过滤条件,格式为SQL的WHERE格式。',
'type' => 'string',
'required' => false,
'example' => 'method_id=\'e41695f0-2851-40ac-b21d-dd337b60d71c\'',
],
'GraphEnhance' => [
'description' => '是否开启知识图谱增强。默认值:false。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
],
'GraphSearchArgs' => [
'description' => '知识图谱检索参数。',
'type' => 'object',
'properties' => [
'GraphTopK' => [
'description' => '返回top数量的实体和关系边。默认值:60。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '60',
],
],
'required' => false,
],
'HybridSearch' => [
'description' => '双路召回算法,默认为空(即直接将向量和全文的分数比较并排序)。'."\n"
."\n"
.'可选值:'."\n"
."\n"
.'- RRF:倒数排序融合(Reciprocal rank fusion),有一个参数k控制融合效果,详见HybridSearchArgs配置;'."\n"
.'- Weight:比重排序,采用一个参数alpha控制向量和全文的分数比重,然后再排序,参数详见HybridSearchArgs配置;'."\n"
.'- Cascaded:先全文检索再在其基础上进行向量检索;',
'type' => 'string',
'required' => false,
'example' => 'Cascaded',
],
'HybridSearchArgs' => [
'description' => '双路召回的算法参数。目前支持RRF和Weight两种:'."\n"
."\n"
.'- RRF:指定计算分数的算法的`1/(k+rank_i)`中的k常数,范围大于1的正整数,格式为:'."\n"
.'```'."\n"
.'{ '."\n"
.' "RRF": {'."\n"
.' "k": 60'."\n"
.' }'."\n"
.'}'."\n"
.'```'."\n"
."\n"
.'- Weight: 计算公式`alpha * vector_score + (1-alpha) * text_score`,参数alpha表示向量和全文的检索分数比重,范围为0~1,其中0表示只全文,1表示只向量:'."\n"
.'```'."\n"
.'{ '."\n"
.' "Weight": {'."\n"
.' "alpha": 0.5'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'type' => 'object',
'required' => false,
'additionalProperties' => [
'type' => 'any',
],
],
'Metrics' => [
'description' => '向量构建索引时的方法。取值说明:'."\n"
.'- l2:欧氏距离。'."\n"
.'- ip:点积(内积)距离。'."\n"
.'- cosine:余弦相似度。',
'type' => 'string',
'required' => false,
'example' => 'cosine',
],
'RecallWindow' => [
'description' => '召回窗口。当该值不为空时,增加返回检索结果的上下文。格式为2个元素的数组:List,其中-10<=A<=0,0<=B<=10。'."\n"
.'> - 推荐当文档切分过碎、检索可能会丢失上下文信息时使用该参数。'."\n"
.'> - 重排优先窗口化,即先rerank,再窗口化处理。',
'type' => 'array',
'items' => [
'description' => '召回窗口。当该值不为空时,增加返回检索结果的上下文。格式为2个元素的数组:List,其中-10<=A<=0,0<=B<=10。'."\n"
.'> - 推荐当文档切分过碎、检索可能会丢失上下文信息时使用该参数。'."\n"
.'> - 重排优先窗口化,即先rerank,再窗口化处理。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '[-1,1]',
],
'required' => false,
],
'RerankFactor' => [
'description' => '重排因子。当该值不为空时,会对向量检索结果再做一次重排。取值范围:1 - 当文档切分稀疏时,重排效率慢。'."\n"
.'> - 建议重排个数(TopK*Factor(向上取整))不超过50。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '2.0',
],
'TopK' => [
'description' => '设置返回top结果数量。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '101',
],
'UseFullTextRetrieval' => [
'description' => '是否使用全文检索(双路召回)。默认为false,仅采用向量检索。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
],
],
'required' => false,
],
],
'required' => false,
],
'required' => true,
],
'TopK' => [
'description' => '多向量集合召回合并后,设置返回top结果数量。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '10',
],
],
'required' => false,
],
],
[
'name' => 'PromptParams',
'in' => 'query',
'schema' => [
'description' => '系统提示词模板,需要包括{{ text_chunks }},{{ user_system_prompt }},{{ graph_entities }},{{ graph_relations }},不指定时,该部分不生效。',
'type' => 'string',
'required' => false,
'example' => '"参考以下知识回答问题:{{ text_chunks }}"'."\n",
],
],
[
'name' => 'ModelParams',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '大语言模型LLM调用参数对象。',
'type' => 'object',
'properties' => [
'MaxTokens' => [
'description' => '生成最大 token 数',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '8192',
],
'Messages' => [
'description' => '消息列表',
'type' => 'array',
'items' => [
'description' => '消息列表',
'type' => 'object',
'properties' => [
'Content' => [
'description' => '消息内容。',
'type' => 'string',
'required' => true,
'example' => '你是一个有帮助的助手。'."\n",
],
'Role' => [
'description' => '消息角色,可选项:'."\n"
."\n"
.'- system'."\n"
.'- user'."\n"
.'- assistant',
'type' => 'string',
'required' => true,
'example' => 'user',
],
],
'required' => true,
],
'required' => true,
],
'Model' => [
'description' => '使用的大模型名称。可选项参考:[百炼帮助文档](https://help.aliyun.com/zh/model-studio/compatibility-of-openai-with-dashscope?spm=openapi-amp.newDocPublishment.0.0.257c281fH8TtM8&scm=20140722.H_2833609._.OR_help-T_cn~zh-V_1#eadfc13038jd5)',
'type' => 'string',
'required' => true,
'example' => 'qwen-plus',
],
'N' => [
'description' => '生成候选回复数量。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '1',
],
'PresencePenalty' => [
'description' => '存在惩罚系数(-2.0 ~ 2.0)',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '1.0',
],
'Seed' => [
'description' => '随机种子。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '42',
],
'Stop' => [
'description' => '停止词列表。',
'type' => 'array',
'items' => [
'description' => '停止词。',
'type' => 'string',
'required' => false,
'example' => '"\\n"',
],
'required' => false,
],
'Temperature' => [
'description' => '采样温度(0~2)',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '0.6',
],
'Tools' => [
'description' => '工具列表',
'type' => 'array',
'items' => [
'description' => '工具详情',
'type' => 'object',
'properties' => [
'Function' => [
'description' => '函数信息。',
'type' => 'object',
'properties' => [
'Description' => [
'description' => '函数工具描述。',
'type' => 'string',
'required' => false,
'example' => '获取天气。'."\n",
],
'Name' => [
'description' => '函数工具名称。',
'type' => 'string',
'required' => false,
'example' => 'get_weather',
],
'Parameters' => [
'description' => '函数参数 JSON Schema',
'type' => 'any',
'required' => false,
'example' => '{"type": "object", ...}'."\n",
],
],
'required' => false,
],
],
'required' => false,
],
'required' => false,
],
'TopP' => [
'description' => '核采样概率阈值(0~1)',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '0.9'."\n",
],
],
'required' => true,
],
],
[
'name' => 'IncludeKnowledgeBaseResults',
'in' => 'query',
'schema' => [
'description' => '是否返回召回结果,默认false',
'type' => 'boolean',
'required' => false,
'example' => 'false',
],
],
],
'responses' => [
200 => [
'description' => '查询成功',
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'MultiCollectionRecallResult' => [
'description' => '多知识库召回信息。',
'type' => 'object',
'properties' => [
'Entities' => [
'description' => '实体详情。',
'type' => 'array',
'items' => [
'description' => '实体详情。',
'type' => 'string',
'example' => '{\'entities\': []}',
],
],
'Matches' => [
'description' => '召回项。',
'type' => 'array',
'items' => [
'description' => '召回项。',
'type' => 'object',
'properties' => [
'Content' => [
'description' => '文档内容。',
'type' => 'string',
'example' => 'ADBPG向量数据库。'."\n",
],
'FileName' => [
'description' => '文件名。',
'type' => 'string',
'example' => 'a14b0221-e3f2-4cf2-96cd-b3c293510770.jpg',
],
'FileURL' => [
'description' => '查询结果图片的公网URL地址,有效时长默认为2小时。'."\n"
."\n"
.'可通过入参 UrlExpiration 自行指定有效时长',
'type' => 'string',
'example' => 'http://dailyshort-sh.oss-cn-shanghai.aliyuncs.com/vod-8efba5/f06147795c6c71f080605420848d0302/0ca34d5743a84bf7c68f489a60715dac-ld.mp4',
],
'Id' => [
'description' => '此条向量数据的唯一ID。'."\n"
."\n"
.'> 如果为空,则由数据库uuidgen自动生成。如果不为空,且和数据库里已有的ID冲突,则会使用API的数据更新数据库里的值。',
'type' => 'string',
'example' => '273e3fc7-8f56-4167-a1bb-d35d2f3b9043',
],
'LoaderMetadata' => [
'description' => '文档加载器加载时的元信息',
'type' => 'any',
'example' => '{"page":1}'."\n",
],
'Metadata' => [
'description' => '元数据',
'type' => 'object',
'additionalProperties' => [
'type' => 'any',
],
],
'RerankScore' => [
'description' => '重排分数。',
'type' => 'number',
'format' => 'double',
'example' => '0.12',
],
'RetrievalSource' => [
'description' => '检索结果的来源。1表示向量检索,2表示全文检索,3表示双路召回。',
'type' => 'integer',
'format' => 'int64',
'example' => '0.12',
],
'Score' => [
'description' => '此条数据的相似度分数,其分数算法和创建索引时指定的算法`(l2/ip/cosine)`相关。',
'type' => 'number',
'format' => 'double',
'example' => '10',
],
'Vector' => [
'description' => '向量数据。',
'type' => 'array',
'items' => [
'description' => '向量数据。',
'type' => 'number',
'format' => 'double',
'example' => '[]',
],
],
],
],
],
'Relations' => [
'description' => '关系名。',
'type' => 'array',
'items' => [
'description' => '关系边详情。',
'type' => 'string',
'example' => '{\'relations\': []}',
],
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'Tokens' => [
'description' => '消耗的tokens数。',
'type' => 'integer',
'format' => 'int64',
'example' => '42',
],
'Usage' => [
'description' => '文档理解或Embedding消耗的token或条数。',
'type' => 'object',
'properties' => [
'EmbeddingTokens' => [
'description' => '向量化时使用的token数。'."\n"
."\n"
.'> token是指将输入的文本分割成的最小单位。token可以是一个单词、一个词组、一个标点符号、一个字符等。',
'type' => 'integer',
'format' => 'int64',
'example' => '158',
],
],
],
],
],
'ChatCompletion' => [
'description' => '模型响应。',
'type' => 'object',
'properties' => [
'Choices' => [
'description' => '实时生成的文本内容',
'type' => 'array',
'items' => [
'description' => '实时生成的文本内容',
'type' => 'object',
'properties' => [
'FinishReason' => [
'description' => '停止原因。',
'type' => 'string',
'example' => 'finish',
],
'Index' => [
'description' => '回复序号。',
'type' => 'integer',
'format' => 'int64',
'example' => '0',
],
'Message' => [
'description' => '大模型回复响应。',
'type' => 'object',
'properties' => [
'Content' => [
'description' => '文档内容。',
'type' => 'string',
'example' => '杭州的天气是晴天。'."\n",
],
'Role' => [
'description' => '消息角色:'."\n"
."\n"
.'- system'."\n"
.'- user'."\n"
.'- assistant',
'type' => 'string',
'example' => 'user',
],
'ToolCalls' => [
'description' => '工具调用响应。',
'type' => 'array',
'items' => [
'description' => '工具调用响应。',
'type' => 'object',
'properties' => [
'Id' => [
'description' => 'ID。',
'type' => 'string',
'example' => '"chatcmpl-c1bebafa-cc48-44e2-88c6-1a3572952f8e"'."\n",
],
'Function' => [
'description' => '调用的函数信息。',
'type' => 'object',
'properties' => [
'Arguments' => [
'description' => '调用的函数参数。',
'type' => 'string',
'example' => '{"city":"hangzhou"}'."\n",
],
'Name' => [
'description' => '调用的函数名。',
'type' => 'string',
'example' => '"get_weather"'."\n",
],
],
],
'Index' => [
'description' => '此工具在请求参数Input里的序号,从0开始。',
'type' => 'integer',
'format' => 'int64',
'example' => '1',
],
],
],
],
'ReasoningContent' => [
'title' => '模型思维链内容',
'description' => '模型思维链内容。',
'type' => 'string',
'example' => '逻辑推导过程',
],
],
],
],
],
],
'Created' => [
'description' => '创建时间',
'type' => 'integer',
'format' => 'int64',
'example' => '1758529748',
],
'Id' => [
'description' => '响应ID。',
'type' => 'string',
'example' => '273e3fc7-8f56-4167-a1bb-d35d2f3b9043'."\n",
],
'Model' => [
'description' => '使用的模型名称。',
'type' => 'string',
'example' => 'qwen-plus'."\n",
],
'Usage' => [
'description' => '大模型输出使用的token数。',
'type' => 'object',
'properties' => [
'CompletionTokens' => [
'description' => '生成内容消耗的 token 数。',
'type' => 'integer',
'format' => 'int64',
'example' => '42',
],
'PromptTokens' => [
'description' => '输入 prompt 消耗的 token 数。',
'type' => 'integer',
'format' => 'int64',
'example' => '42',
],
'PromptTokensDetails' => [
'description' => 'promptToken详情。',
'type' => 'object',
'properties' => [
'CachedTokens' => [
'description' => '缓存命中的 token 数量。',
'type' => 'integer',
'format' => 'int64',
'example' => '24',
],
],
],
'TotalTokens' => [
'description' => '总token数量。',
'type' => 'integer',
'format' => 'int64',
'example' => '42',
],
],
],
],
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => '状态,取值说明:'."\n"
.'- **success**:成功。'."\n"
.'- **fail**:失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"MultiCollectionRecallResult\\": {\\n \\"Entities\\": [\\n \\"{\'entities\': []}\\"\\n ],\\n \\"Matches\\": [\\n {\\n \\"Content\\": \\"ADBPG向量数据库。\\\\n\\",\\n \\"FileName\\": \\"a14b0221-e3f2-4cf2-96cd-b3c293510770.jpg\\",\\n \\"FileURL\\": \\"http://dailyshort-sh.oss-cn-shanghai.aliyuncs.com/vod-8efba5/f06147795c6c71f080605420848d0302/0ca34d5743a84bf7c68f489a60715dac-ld.mp4\\",\\n \\"Id\\": \\"273e3fc7-8f56-4167-a1bb-d35d2f3b9043\\",\\n \\"LoaderMetadata\\": \\"{\\\\\\"page\\\\\\":1}\\\\n\\",\\n \\"Metadata\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"RerankScore\\": 0.12,\\n \\"RetrievalSource\\": 0.12,\\n \\"Score\\": 10,\\n \\"Vector\\": [\\n 0\\n ]\\n }\\n ],\\n \\"Relations\\": [\\n \\"{\'relations\': []}\\"\\n ],\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Status\\": \\"success\\",\\n \\"Tokens\\": 42,\\n \\"Usage\\": {\\n \\"EmbeddingTokens\\": 158\\n }\\n },\\n \\"ChatCompletion\\": {\\n \\"Choices\\": [\\n {\\n \\"FinishReason\\": \\"finish\\",\\n \\"Index\\": 0,\\n \\"Message\\": {\\n \\"Content\\": \\"杭州的天气是晴天。\\\\n\\",\\n \\"Role\\": \\"user\\",\\n \\"ToolCalls\\": [\\n {\\n \\"Id\\": \\"\\\\\\"chatcmpl-c1bebafa-cc48-44e2-88c6-1a3572952f8e\\\\\\"\\\\n\\",\\n \\"Function\\": {\\n \\"Arguments\\": \\"{\\\\\\"city\\\\\\":\\\\\\"hangzhou\\\\\\"}\\\\n\\",\\n \\"Name\\": \\"\\\\\\"get_weather\\\\\\"\\\\n\\"\\n },\\n \\"Index\\": 1\\n }\\n ],\\n \\"ReasoningContent\\": \\"逻辑推导过程\\"\\n }\\n }\\n ],\\n \\"Created\\": 1758529748,\\n \\"Id\\": \\"273e3fc7-8f56-4167-a1bb-d35d2f3b9043\\\\n\\",\\n \\"Model\\": \\"qwen-plus\\\\n\\",\\n \\"Usage\\": {\\n \\"CompletionTokens\\": 42,\\n \\"PromptTokens\\": 42,\\n \\"PromptTokensDetails\\": {\\n \\"CachedTokens\\": 24\\n },\\n \\"TotalTokens\\": 42\\n }\\n },\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '基于知识库的聊天API-流式接口',
],
'ChatWithKnowledgeBase' => [
'summary' => '通过结合知识库和大模型,提供智能问答服务。',
'description' => '该 API 允许用户通过指定的知识库集合与大模型进行交互,以获取基于知识库内容的答案。支持配置多种参数来定制化请求,包括但不限于数据库实例 ID、知识检索参数、模型推理参数等。此外,还提供了默认的系统提示词模板,并允许用户自定义系统提示。'."\n"
."\n"
.'- **DBInstanceId**:必填项,用于指定数据库实例 ID。'."\n"
.'- **KnowledgeParams**:可选项,包含知识检索相关的参数,如检索内容、合并策略等。'."\n"
.'- **ModelParams**:必填项,包含模型推理相关的参数,如消息列表、使用的模型名称等。'."\n"
.'- **PromptTemplate**:可选项,用于自定义系统提示词模板。',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdb4XJLZD',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
.'> 您可以调用[DescribeDBInstances](~~196830~~)接口查看目标地域下所有实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'title' => '实例所在的地域ID',
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'KnowledgeParams',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '知识检索参数对象,不指定时,仅chat。',
'type' => 'object',
'properties' => [
'MergeMethod' => [
'description' => '多知识库合并的方法,默认为RRF,可选项:'."\n"
.'- RRF'."\n"
.'- Weight',
'type' => 'string',
'required' => false,
'example' => '"RRF"',
],
'MergeMethodArgs' => [
'description' => '多知识库融合的参数。',
'type' => 'object',
'properties' => [
'Rrf' => [
'description' => '指定MergeMethod为RRF时,可配置的参数。',
'type' => 'object',
'properties' => [
'K' => [
'description' => '指定计算分数的算法的1/(k+rank_i)中的 k 常数,范围大于 1 的正整数。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '60',
],
],
'required' => false,
],
'Weight' => [
'description' => '指定MergeMethod为Weight时,可配置的参数。',
'type' => 'object',
'properties' => [
'Weights' => [
'description' => '各个SourceCollection的权重数组。',
'type' => 'array',
'items' => [
'description' => '各个SourceCollection的权重。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '0.01',
],
'required' => false,
],
],
'required' => false,
],
],
'required' => false,
],
'RerankFactor' => [
'description' => '重排因子。当该值不为空时,会对向量检索结果再做一次重排。取值范围:1 - 当文档切分稀疏时,重排效率慢。'."\n"
.'> - 建议重排个数(TopK*Factor(向上取整))不超过50。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '1.0001',
],
'SourceCollection' => [
'description' => '知识库',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Collection' => [
'description' => '待召回的集合名。',
'type' => 'string',
'required' => true,
'example' => 'adbpg_document_collection',
],
'Namespace' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[CreateNamespace](~~2401495~~)接口创建,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'dukang',
],
'NamespacePassword' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为CreateNamespace接口指定。',
'type' => 'string',
'required' => true,
'example' => 'namespacePasswd',
],
'QueryParams' => [
'description' => '与该知识库检索相关的参数。',
'type' => 'object',
'properties' => [
'Filter' => [
'description' => '要更新的数据的过滤条件,格式为SQL的WHERE格式。',
'type' => 'string',
'required' => false,
'example' => 'id = \'llm-t87l87fxuhn56woc_8anu8j2d3f_file_e74635e2cc314e838543e724f6b3b1f2_10658020\'',
],
'GraphEnhance' => [
'description' => '是否开启知识图谱增强。默认值:false。',
'type' => 'boolean',
'required' => false,
'example' => 'false',
],
'GraphSearchArgs' => [
'description' => '返回top数量的实体和关系边。默认值:60。',
'type' => 'object',
'properties' => [
'GraphTopK' => [
'description' => '返回top数量的实体和关系边。默认值:60。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '60',
],
],
'required' => false,
],
'HybridSearch' => [
'description' => '多路召回算法,默认为空(即直接将稠密向量和全文的分数比较并排序)。'."\n"
."\n"
.'可选值:'."\n"
."\n"
.'- RRF:倒数排序融合(Reciprocal rank fusion),有一个参数k控制融合效果,详见HybridSearchArgs配置;'."\n"
.'- Weight:比重排序,采用参数控制向量和全文的分数比重,然后再排序,参数详见 HybridSearchArgs 配置;'."\n"
.'- Cascaded:先全文检索再在其基础上进行向量检索;',
'type' => 'string',
'required' => false,
'example' => 'RRF',
],
'HybridSearchArgs' => [
'description' => '多路召回的算法参数。目前支持RRF和Weight两种。HybridPathsSetting可以指定召回稠密向量(dense)、稀疏向量(sparse)和全文检索(fulltext),如果值为空,默认召回稠密向量(dense)和全文检索(fulltext)。'."\n"
."\n"
.'- RRF:指定计算分数的算法的`1/(k+rank_i)`中的k常数,范围大于1的正整数,格式为:'."\n"
.'```'."\n"
.'{'."\n"
.' "HybridPathsSetting": {'."\n"
.' "paths": "dense,fulltext"'."\n"
.' },'."\n"
.' "RRF": {'."\n"
.' "k": 60'."\n"
.' }'."\n"
.'}'."\n"
.'```'."\n"
."\n"
.'- Weight: '."\n"
.' - 双路召回(不指定HybridPathsSetting,仅指定 alpha):'."\n"
.' - 计算公式:alpha * dense_score + (1-alpha) * fulltext_score,参数 alpha 表示稠密向量和全文的检索分数比重,范围为 0~1,其中 0 表示只全文,1 表示只稠密向量:'."\n"
.'```'."\n"
.'{ '."\n"
.' "Weight": {'."\n"
.' "alpha": 0.5'."\n"
.' }'."\n"
.'}'."\n"
.'```'."\n"
.' - 三路召回模式:'."\n"
.' - 计算公式:normalized_dense * dense_score + normalized_sparse * sparse_score + normalized_fulltext * fulltext_score。其中dense、sparse、fulltext 分别代表稠密向量、稀疏向量、全文检索的权重,取值范围大于等于 0。系统会自动将权重归一化到 0~1(即 normalized_x = x / (dense + sparse + fulltext))。'."\n"
.'```'."\n"
.'{'."\n"
.' "HybridPathsSetting": {'."\n"
.' "paths": "dense,sparse,fulltext"'."\n"
.' },'."\n"
.' "Weight": {'."\n"
.' "dense": 0.5,'."\n"
.' "sparse": 0.3,'."\n"
.' "fulltext": 0.2'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'type' => 'object',
'required' => false,
'additionalProperties' => [
'type' => 'any',
'description' => '参数配置值。',
],
],
'Metrics' => [
'description' => '向量构建索引时的方法。取值说明:'."\n"
.'- l2:欧氏距离。'."\n"
.'- ip:点积(内积)距离。'."\n"
.'- cosine:余弦相似度。',
'type' => 'string',
'required' => false,
'example' => 'cosine',
],
'RecallWindow' => [
'description' => '召回窗口。当该值不为空时,增加返回检索结果的上下文。格式为2个元素的数组:List,其中-10<=A<=0,0<=B<=10。'."\n"
.'> - 推荐当文档切分过碎、检索可能会丢失上下文信息时使用该参数。'."\n"
.'> - 重排优先窗口化,即先rerank,再窗口化处理。',
'type' => 'array',
'items' => [
'description' => '召回窗口。当该值不为空时,增加返回检索结果的上下文。格式为2个元素的数组:List,其中-10<=A<=0,0<=B<=10。'."\n"
.'> - 推荐当文档切分过碎、检索可能会丢失上下文信息时使用该参数。'."\n"
.'> - 重排优先窗口化,即先rerank,再窗口化处理。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '[-1,1]',
],
'required' => false,
],
'RerankFactor' => [
'description' => '重排因子。当该值不为空时,会对向量检索结果再做一次重排。取值范围:1 - 当文档切分稀疏时,重排效率慢。'."\n"
.'> - 建议重排个数(TopK*Factor(向上取整))不超过50。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '1.5',
],
'TopK' => [
'description' => '设置返回top结果数量。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '10',
],
'UseFullTextRetrieval' => [
'description' => '是否使用全文检索(双路召回)。默认为false,仅采用向量检索。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
],
],
'required' => false,
],
],
'required' => false,
],
'required' => true,
],
'TopK' => [
'description' => '多向量集合召回合并后,设置返回top结果数量。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '10',
],
],
'required' => false,
],
],
[
'name' => 'PromptParams',
'in' => 'query',
'schema' => [
'description' => '系统提示词模板,需要包括{{ text_chunks }},{{ user_system_prompt }},{{ graph_entities }},{{ graph_relations }},不指定时,该部分不生效。',
'type' => 'string',
'required' => false,
'example' => '"参考以下知识回答问题:{{ text_chunks }}"',
],
],
[
'name' => 'ModelParams',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '大语言模型LLM调用参数对象。',
'type' => 'object',
'properties' => [
'MaxTokens' => [
'description' => '生成最大 token 数',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '8192',
],
'Messages' => [
'description' => '消息列表',
'type' => 'array',
'items' => [
'description' => '消息列表',
'type' => 'object',
'properties' => [
'Content' => [
'description' => '消息内容。',
'type' => 'string',
'required' => true,
'example' => '你是一个有帮助的助手。',
],
'Role' => [
'description' => '消息角色,可选项:'."\n"
.'- system'."\n"
.'- user'."\n"
.'- assistant',
'type' => 'string',
'required' => true,
'example' => 'user',
],
],
'required' => true,
],
'required' => true,
],
'Model' => [
'description' => '使用的大模型名称。可选项参考:[百炼帮助文档](https://help.aliyun.com/zh/model-studio/compatibility-of-openai-with-dashscope?spm=a2c4g.11186623.help-menu-2400256.d_2_10_0.45b5516eZIciC8&scm=20140722.H_2833609._.OR_help-T_cn~zh-V_1#eadfc13038jd5)',
'type' => 'string',
'required' => true,
'example' => 'qwen-plus',
],
'N' => [
'description' => '生成候选回复数量。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '1',
],
'PresencePenalty' => [
'description' => '存在惩罚系数(-2.0 ~ 2.0)',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '1.0',
],
'Seed' => [
'description' => '随机种子。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '42',
],
'Stop' => [
'description' => '停止词列表。',
'type' => 'array',
'items' => [
'description' => '停止词。',
'type' => 'string',
'required' => false,
'example' => '"\\n"',
],
'required' => false,
],
'Temperature' => [
'description' => '采样温度(0~2)',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '0.6',
],
'Tools' => [
'description' => '工具列表',
'type' => 'array',
'items' => [
'description' => '工具详情',
'type' => 'object',
'properties' => [
'Function' => [
'description' => '函数信息。',
'type' => 'object',
'properties' => [
'Description' => [
'description' => '函数工具描述。',
'type' => 'string',
'required' => false,
'example' => '获取天气。',
],
'Name' => [
'description' => '函数工具名称。',
'type' => 'string',
'required' => false,
'example' => 'get_weather',
],
'Parameters' => [
'description' => '函数参数 JSON Schema',
'type' => 'any',
'required' => false,
'example' => '{"type": "object", ...}',
],
],
'required' => false,
],
],
'required' => false,
],
'required' => false,
],
'TopP' => [
'description' => '核采样概率阈值(0~1)',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '0.9',
],
],
'required' => true,
],
],
[
'name' => 'IncludeKnowledgeBaseResults',
'in' => 'query',
'schema' => [
'description' => '是否返回召回结果,默认false',
'type' => 'boolean',
'required' => false,
'example' => 'false',
],
],
],
'responses' => [
200 => [
'description' => '查询成功',
'schema' => [
'title' => 'Schema of Response',
'description' => '响应体。',
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'MultiCollectionRecallResult' => [
'description' => '多知识库召回信息。',
'type' => 'object',
'properties' => [
'Entities' => [
'description' => '实体详情。',
'type' => 'array',
'items' => [
'description' => '实体类型。',
'type' => 'string',
'example' => '{\'entities\': []}',
],
],
'Matches' => [
'title' => '匹配项',
'description' => '召回项。',
'type' => 'array',
'items' => [
'description' => '召回项。',
'type' => 'object',
'properties' => [
'Content' => [
'description' => '文档内容。',
'type' => 'string',
'example' => 'ADBPG向量数据库。',
],
'FileName' => [
'description' => '文件名。',
'type' => 'string',
'example' => 'process_info_19b9df4dc9ad4bf2b30eb2faa4a9a987.txt',
],
'FileURL' => [
'description' => '查询结果图片的公网URL地址,有效时长默认为2小时。'."\n"
."\n"
.'可通过入参 UrlExpiration 自行指定有效时长',
'type' => 'string',
'example' => 'http://viapi-customer-pop.oss-cn-shanghai.aliyuncs.com/b4d8_207196811002111319_570c0e199f03428f812ab21fcc00dd6a',
],
'Id' => [
'description' => '向量数据的唯一ID。',
'type' => 'string',
'example' => '273e3fc7-8f56-4167-a1bb-d35d2f3b9043',
],
'LoaderMetadata' => [
'description' => '文档加载器加载时的元信息。',
'type' => 'any',
'example' => '{"page":1}',
],
'Metadata' => [
'description' => '元数据。',
'type' => 'object',
'additionalProperties' => [
'title' => '元数据信息',
'description' => '元数据信息',
'type' => 'any',
],
],
'RerankScore' => [
'description' => '重排分数。',
'type' => 'number',
'format' => 'double',
'example' => '0.1',
],
'RetrievalSource' => [
'description' => '检索结果的来源。1表示向量检索,2表示全文检索,3表示双路召回。',
'type' => 'integer',
'format' => 'int64',
'example' => '3',
],
'Score' => [
'description' => '此条数据的相似度分数,其分数算法和创建索引时指定的算法`(l2/ip/cosine)`相关。',
'type' => 'number',
'format' => 'double',
'example' => '12',
],
'Vector' => [
'description' => '向量数据。',
'type' => 'array',
'items' => [
'description' => '向量数据。',
'type' => 'number',
'format' => 'double',
'example' => '[]',
],
],
],
],
],
'Relations' => [
'description' => '文件名。',
'type' => 'array',
'items' => [
'description' => '关系边详情。',
'type' => 'string',
'example' => '{\'relations\': []}',
],
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '6B9E3255-4543-5B3B-9E00-6490CA64742B',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'Tokens' => [
'description' => '消耗的tokens数。',
'type' => 'integer',
'format' => 'int64',
'example' => '42',
],
'Usage' => [
'description' => '文档理解或Embedding消耗的token或条数。',
'type' => 'object',
'properties' => [
'EmbeddingTokens' => [
'description' => '向量化时使用的token数。'."\n"
."\n"
.'> token是指将输入的文本分割成的最小单位。token可以是一个单词、一个词组、一个标点符号、一个字符等。',
'type' => 'integer',
'format' => 'int64',
'example' => '21',
],
],
],
],
],
'ChatCompletion' => [
'description' => '模型响应。',
'type' => 'object',
'properties' => [
'Choices' => [
'description' => '实时生成的文本内容',
'type' => 'array',
'items' => [
'description' => '角色标识',
'type' => 'object',
'properties' => [
'FinishReason' => [
'description' => '停止原因。',
'type' => 'string',
'example' => 'finish',
],
'Index' => [
'description' => '回复序号。',
'type' => 'integer',
'format' => 'int64',
'example' => '0',
],
'Message' => [
'description' => '大模型回复响应。',
'type' => 'object',
'properties' => [
'Content' => [
'description' => '文档内容。',
'type' => 'string',
'example' => '杭州的天气是晴天。',
],
'Role' => [
'description' => '消息角色:'."\n"
.'- system'."\n"
.'- user'."\n"
.'- assistant',
'type' => 'string',
'example' => 'user',
],
'ToolCalls' => [
'description' => '工具调用响应。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Id' => [
'description' => 'ID。',
'type' => 'string',
'example' => '"chatcmpl-c1bebafa-cc48-44e2-88c6-1a3572952f8e"',
],
'Function' => [
'description' => '调用的函数信息。',
'type' => 'object',
'properties' => [
'Arguments' => [
'description' => '调用的函数参数。',
'type' => 'string',
'example' => '{"city":"hangzhou"}',
],
'Name' => [
'description' => '调用的函数名。',
'type' => 'string',
'example' => '"get_weather"',
],
],
],
'Index' => [
'description' => '工具调用序号。',
'type' => 'integer',
'format' => 'int64',
'example' => '1',
],
],
],
],
'ReasoningContent' => [
'title' => '模型思维内容',
'description' => '模型思维内容。',
'type' => 'string',
'example' => '逻辑推理过程',
],
],
],
],
],
],
'Created' => [
'description' => '创建时间。',
'type' => 'integer',
'format' => 'int64',
'example' => '1758529748',
],
'Id' => [
'description' => '响应ID。',
'type' => 'string',
'example' => '273e3fc7-8f56-4167-a1bb-d35d2f3b9043',
],
'Model' => [
'description' => '使用的模型名称。',
'type' => 'string',
'example' => 'qwen-plus',
],
'Usage' => [
'description' => '大模型输出使用的token数。',
'type' => 'object',
'properties' => [
'CompletionTokens' => [
'description' => '生成内容消耗的 token 数。',
'type' => 'integer',
'format' => 'int64',
'example' => '42',
],
'PromptTokens' => [
'description' => '输入 prompt 消耗的 token 数。',
'type' => 'integer',
'format' => 'int64',
'example' => '42',
],
'PromptTokensDetails' => [
'description' => 'promptToken详情。',
'type' => 'object',
'properties' => [
'CachedTokens' => [
'description' => '缓存命中的 token 数量。',
'type' => 'integer',
'format' => 'int64',
'example' => '24',
],
],
],
'TotalTokens' => [
'description' => '总token数量。',
'type' => 'integer',
'format' => 'int64',
'example' => '42',
],
],
],
],
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => '状态,取值说明:'."\n"
.'- **success**:成功。'."\n"
.'- **fail**:失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"MultiCollectionRecallResult\\": {\\n \\"Entities\\": [\\n \\"{\'entities\': []}\\"\\n ],\\n \\"Matches\\": [\\n {\\n \\"Content\\": \\"ADBPG向量数据库。\\",\\n \\"FileName\\": \\"process_info_19b9df4dc9ad4bf2b30eb2faa4a9a987.txt\\",\\n \\"FileURL\\": \\"http://viapi-customer-pop.oss-cn-shanghai.aliyuncs.com/b4d8_207196811002111319_570c0e199f03428f812ab21fcc00dd6a\\",\\n \\"Id\\": \\"273e3fc7-8f56-4167-a1bb-d35d2f3b9043\\",\\n \\"LoaderMetadata\\": \\"{\\\\\\"page\\\\\\":1}\\",\\n \\"Metadata\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"RerankScore\\": 0.1,\\n \\"RetrievalSource\\": 3,\\n \\"Score\\": 12,\\n \\"Vector\\": [\\n 0\\n ]\\n }\\n ],\\n \\"Relations\\": [\\n \\"{\'relations\': []}\\"\\n ],\\n \\"RequestId\\": \\"6B9E3255-4543-5B3B-9E00-6490CA64742B\\",\\n \\"Status\\": \\"success\\",\\n \\"Tokens\\": 42,\\n \\"Usage\\": {\\n \\"EmbeddingTokens\\": 21\\n }\\n },\\n \\"ChatCompletion\\": {\\n \\"Choices\\": [\\n {\\n \\"FinishReason\\": \\"finish\\",\\n \\"Index\\": 0,\\n \\"Message\\": {\\n \\"Content\\": \\"杭州的天气是晴天。\\",\\n \\"Role\\": \\"user\\",\\n \\"ToolCalls\\": [\\n {\\n \\"Id\\": \\"\\\\\\"chatcmpl-c1bebafa-cc48-44e2-88c6-1a3572952f8e\\\\\\"\\",\\n \\"Function\\": {\\n \\"Arguments\\": \\"{\\\\\\"city\\\\\\":\\\\\\"hangzhou\\\\\\"}\\",\\n \\"Name\\": \\"\\\\\\"get_weather\\\\\\"\\"\\n },\\n \\"Index\\": 1\\n }\\n ],\\n \\"ReasoningContent\\": \\"逻辑推理过程\\"\\n }\\n }\\n ],\\n \\"Created\\": 1758529748,\\n \\"Id\\": \\"273e3fc7-8f56-4167-a1bb-d35d2f3b9043\\",\\n \\"Model\\": \\"qwen-plus\\",\\n \\"Usage\\": {\\n \\"CompletionTokens\\": 42,\\n \\"PromptTokens\\": 42,\\n \\"PromptTokensDetails\\": {\\n \\"CachedTokens\\": 24\\n },\\n \\"TotalTokens\\": 42\\n }\\n },\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '基于知识库的聊天API',
],
'ListDocuments' => [
'summary' => '查询文档库中的文档列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '193514',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[CreateNamespace](~~2401495~~)接口创建,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '文档库名称。'."\n"
."\n"
.'> 由[CreateDocumentCollection](~~2618448~~)接口创建。您可以调用[ListDocumentCollections](~~2618452~~)接口查看已经创建的文档库。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为[CreateNamespace](~~2401495~~)接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'MaxResults',
'in' => 'query',
'schema' => [
'description' => '分页时返回的最多文档数,范围在1~100之间。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '100',
],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => [
'description' => '分页查询时,下一个查询开始Token。',
'type' => 'string',
'required' => false,
'example' => 'caeba0bbb2be03f84eb48b699f0a4883',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => 'API执行状态,取值说明:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'Items' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'DocumentList' => [
'description' => '文档列表。',
'type' => 'array',
'items' => [
'description' => '文档列表对象。',
'type' => 'object',
'properties' => [
'FileName' => [
'description' => '文件名。',
'type' => 'string',
'example' => 'music.txt',
],
'Source' => [
'description' => '文档来源。',
'type' => 'string',
'example' => 'OSS',
],
],
],
],
],
],
'NextToken' => [
'description' => '分页查询时,下一个查询开始Token。为空时表示此数据是最后一页的数据。',
'type' => 'string',
'example' => 'caeba0bbb2be03f84eb48b699f0a4883',
],
'Count' => [
'description' => '总条数。',
'type' => 'integer',
'format' => 'int32',
'example' => '3',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\",\\n \\"Items\\": {\\n \\"DocumentList\\": [\\n {\\n \\"FileName\\": \\"music.txt\\",\\n \\"Source\\": \\"OSS\\"\\n }\\n ]\\n },\\n \\"NextToken\\": \\"caeba0bbb2be03f84eb48b699f0a4883\\",\\n \\"Count\\": 3\\n}","type":"json"}]',
'title' => '查询文档列表',
],
'DescribeDocument' => [
'summary' => '查看文档详细信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198056',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[CreateNamespace](~~2401495~~)接口创建,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为[CreateNamespace](~~2401495~~)接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '文档库名称。'."\n"
."\n"
.'> 由[CreateDocumentCollection](~~2618448~~)接口创建。您可以调用[ListDocumentCollections](~~2618452~~)接口查看已经创建的文档库。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在 Region ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'FileName',
'in' => 'query',
'schema' => [
'description' => '文档名。'."\n"
."\n"
.'> 可以通过[ListDocuments](~~2618453~~)接口查看文档列表。',
'type' => 'string',
'required' => true,
'example' => 'music.txt',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'FileName' => [
'description' => '文件名。',
'type' => 'string',
'example' => 'music.txt',
],
'FileExt' => [
'description' => '文件扩展名。',
'type' => 'string',
'example' => 'txt',
],
'FileVersion' => [
'description' => '文档版本。每次更新上传同一文档时,此值会+1。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'FileMtime' => [
'description' => '文档最新修改时间。',
'type' => 'string',
'example' => '2023-11-01 10:01:01.123456',
],
'Source' => [
'description' => '文档来源。',
'type' => 'string',
'example' => 'OSS'."\n",
],
'DocumentLoader' => [
'description' => '文档加载器名称。',
'type' => 'string',
'example' => 'RapidOCRPDFLoader',
],
'TextSplitter' => [
'description' => '文档切分器名称。',
'type' => 'string',
'example' => 'ChineseRecursiveTextSplitter',
],
'FileSize' => [
'description' => '文件大小,单位为字节。',
'type' => 'integer',
'format' => 'int64',
'example' => '10000',
],
'FileMd5' => [
'description' => '文件MD5值。',
'type' => 'string',
'example' => 'b8078c9591413550f8963e37e24abcea',
],
'DocsCount' => [
'description' => '文档被切分的数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '100',
],
'FileUrl' => [
'description' => '文档的下载地址,有效期为2h。',
'type' => 'string',
'example' => 'http://oss.xxx/music.txt',
],
'PlainChunkFileUrl' => [
'description' => '被切分后的纯文本(不带Metadata)下载地址,每行是一个chunk,有效期为2h。',
'type' => 'string',
'example' => 'http://oss.xxx/music_plain_chunk.txt',
],
'ChunkFileUrl' => [
'description' => '切分后的文件链接,有效期为2h。文件格式为JSONL,每一行的格式为`{"page_content":"*****", "metadata": {"**":"***","**":"***"}`',
'type' => 'string',
'example' => 'http://oss.xxx/music_chunk.jsonl',
],
'DocumentLoaderResultFileUrl' => [
'description' => 'ADBPGLoader文档解析的markdown结果文件,有效期为2h。',
'type' => 'string',
'example' => 'http://oss.xxx/adbpg_loader_result.md',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"FileName\\": \\"music.txt\\",\\n \\"FileExt\\": \\"txt\\",\\n \\"FileVersion\\": 1,\\n \\"FileMtime\\": \\"2023-11-01 10:01:01.123456\\",\\n \\"Source\\": \\"OSS\\\\n\\",\\n \\"DocumentLoader\\": \\"RapidOCRPDFLoader\\",\\n \\"TextSplitter\\": \\"ChineseRecursiveTextSplitter\\",\\n \\"FileSize\\": 10000,\\n \\"FileMd5\\": \\"b8078c9591413550f8963e37e24abcea\\",\\n \\"DocsCount\\": 100,\\n \\"FileUrl\\": \\"http://oss.xxx/music.txt\\",\\n \\"PlainChunkFileUrl\\": \\"http://oss.xxx/music_plain_chunk.txt\\",\\n \\"ChunkFileUrl\\": \\"http://oss.xxx/music_chunk.jsonl\\",\\n \\"DocumentLoaderResultFileUrl\\": \\"http://oss.xxx/adbpg_loader_result.md\\"\\n}","type":"json"}]',
'title' => '查看文档详细信息',
],
'DeleteDocument' => [
'summary' => '删除文档库中的文档。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[CreateNamespace](~~2401495~~)接口创建,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '文档库名称。'."\n"
."\n\n"
.'> 由[CreateDocumentCollection](~~2618448~~)接口创建。您可以调用[ListDocumentCollections](~~2618452~~)接口查看已经创建的文档库。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在Region ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为[CreateNamespace](~~2401495~~)接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'FileName',
'in' => 'query',
'schema' => [
'description' => '文件名。'."\n"
."\n"
.'> 上传过的文件名称,您可以通过[ListDocuments](~~2618453~~)接口查询文件列表。',
'type' => 'string',
'required' => true,
'example' => 'music.txt',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => '创建状态,取值说明:'."\n"
.'- **success**:成功'."\n"
.'- **fail**:失败',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '删除文档',
],
'UpsertCollectionData' => [
'summary' => '上传向量数据到指定的向量集中。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '182775',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-bp152460513z****',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 可以通过[CreateCollection](~~2401497~~)创建,并通过[ListCollections](~~2401503~~)查看列表。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,用于租户隔离,默认为public。'."\n"
."\n"
.'> 可以通过[CreateNamespace](~~2401495~~)创建,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Rows',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => '向量数据列表。',
'type' => 'array',
'items' => [
'description' => '单条向量数据信息。',
'type' => 'object',
'properties' => [
'Id' => [
'description' => '此条向量数据的唯一ID。'."\n"
."\n"
.'> 如果为空,则由数据库uuidgen自动生成。如果不为空,且和数据库里已有的ID冲突,则会使用API的数据更新数据库里的值。',
'type' => 'string',
'required' => false,
'example' => '854c6949-411c-4b47-aec4-e324735f9574',
],
'Metadata' => [
'description' => '此条向量数据对应的元信息。其中key需和[CreateCollection](~~2401497~~)接口定义的Metadata的key一致。',
'type' => 'object',
'required' => false,
'additionalProperties' => [
'type' => 'string',
'example' => '{"title":"test title", "content": "test content"}',
'description' => '向量元数据。',
],
],
'Vector' => [
'description' => '向量数据列表,长度和[CreateCollection](~~2401497~~)接口的维度一致。',
'type' => 'array',
'items' => [
'description' => '向量数据。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '[1.0123,-0.1234]',
],
'required' => true,
],
'SparseVector' => [
'description' => '稀疏向量数据列表。',
'type' => 'object',
'properties' => [
'Indices' => [
'description' => '下标数组。'."\n"
.'> 列表大小不能超过4000。',
'type' => 'array',
'items' => [
'description' => '下标值。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '1',
],
'required' => false,
],
'Values' => [
'description' => '稀疏向量数组。',
'type' => 'array',
'items' => [
'description' => '稀疏向量数据。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '1.2345',
],
'required' => false,
],
],
'required' => false,
],
],
'required' => false,
],
'required' => false,
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '信息',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => '上传状态,取值说明:'."\n"
.'- **success**:成功'."\n"
.'- **fail**:失败',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '上传向量数据',
'description' => '>'."\n"
."\n"
.'**SDK于2023-11-8日升级,从最大512KB数据请求量升级到10MB。**'."\n"
.'请使用最新版SDK或不低于此版本:'."\n"
."\n"
.'- Java:1.2.1 '."\n"
.'- Go:v3.3.1 '."\n"
.'- Python:3.3.1'."\n"
.'>',
],
'UpsertCollectionDataAsync' => [
'summary' => '使用本地文件或公网可免密访问的文件链接异步上传向量数据,最大支持200MB。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '208253',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在 Region ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Namespace',
'in' => 'formData',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过CreateNamespace接口创建,通过ListNamespaces接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'Collection',
'in' => 'formData',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'NamespacePassword',
'in' => 'formData',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为CreateNamespace接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'FileUrl',
'in' => 'formData',
'schema' => [
'description' => '公网可访问的向量数据文件URL地址。'."\n"
."\n"
.'> '."\n"
.'> - 文件内容格式为JSONL,即每一行是一个特定格式的JSON数据,代表一组向量数据。'."\n"
.'> - 单行的数据结构为`{String Id; Map Metadata; List Vector; Object SparseVector}`, 如`{"Id":"myid", "Metadata": {"my_meta_key": "my_meta_value"}, "Vector": [1.234, -0.123], "SparseVector": {"Indices": [100, 200, 300], "Values": [0.1, 0.2, 0.3]}}`。'."\n"
.'> - 建议使用SDK调用此接口,SDK帮封装了UpsertCollectionDataAsyncAdvance方法可直接上传本地文件作为数据源。',
'type' => 'string',
'required' => true,
'example' => 'https://xx/vectors.jsonl',
'isFileTransferUrl' => true,
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'JobId' => [
'description' => '任务ID,用于后续查看任务状态或者取消任务。',
'type' => 'string',
'example' => '231460f8-75dc-405e-a669-0c5204887e91',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'asynchronous',
'callback' => 'gpdb::2016-05-03::GetUpsertCollectionDataJob',
'callbackInterval' => 5000,
'maxCallbackTimes' => 360,
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"JobId\\": \\"231460f8-75dc-405e-a669-0c5204887e91\\"\\n}","type":"json"}]',
'title' => '异步上传向量数据',
'description' => '此接口为`UpsertCollectionData`对应的异步接口。`UpsertCollectionData`接口的请求最大只支持10MB,此接口最大支持200MB。'."\n"
."\n"
.'> 相关接口'."\n"
.'> - 通过GetUpsertCollectionDataJob接口查看上传进度和结果。'."\n"
.'> - 通过CancelUpsertCollectionDataJob接口取消上传任务。'."\n"
."\n"
.'>对于同一个Collection目前只允许串行上传数据任务,不允许并发上传。>',
],
'GetUpsertCollectionDataJob' => [
'summary' => '通过JobId获取异步上传向量数据的任务的进度和结果。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '208254',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在Region ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'Collection',
'in' => 'formData',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'Namespace',
'in' => 'formData',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过CreateNamespace接口创建,通过ListNamespaces接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'NamespacePassword',
'in' => 'formData',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为CreateNamespace接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'JobId',
'in' => 'formData',
'schema' => [
'description' => '上传向量数据的任务ID,由`UpsertCollectionDataAsync`接口获得。',
'type' => 'string',
'required' => true,
'example' => '231460f8-75dc-405e-a669-0c5204887e91',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Status' => [
'description' => '此接口状态,取值说明:'."\n"
.'- **success**:成功。'."\n"
.'- **fail**:失败。',
'type' => 'string',
'example' => 'success',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Job' => [
'description' => '上传向量数据的任务的详细信息。',
'type' => 'object',
'properties' => [
'Id' => [
'description' => 'Job ID。',
'type' => 'string',
'example' => '231460f8-75dc-405e-a669-0c5204887e91',
],
'Completed' => [
'description' => '操作是否完成。',
'type' => 'boolean',
'example' => 'false',
],
'CreateTime' => [
'description' => '任务创建时间。',
'type' => 'string',
'example' => '2024-01-08 16:52:04.864664',
],
'UpdateTime' => [
'description' => '任务更新时间。',
'type' => 'string',
'example' => '2024-01-08 16:53:04.864664',
],
'Status' => [
'description' => '任务状态。'."\n"
."\n"
.'> 取值说明:'."\n"
.'> - Success:成功;'."\n"
.'> - Failed:失败,失败原因可查看Error字段;'."\n"
.'> - Cancelling:正在取消中;'."\n"
.'> - Cancelled:已取消;'."\n"
.'> - Start:开始;'."\n"
.'> - Running:执行中;',
'type' => 'string',
'example' => 'Success',
],
'Error' => [
'description' => '当前操作异常或者失败时的错误信息。',
'type' => 'string',
'example' => 'Failed to connect database.',
],
'Progress' => [
'description' => '上传进度,此数值为已经上传的数据的条数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1600',
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Status\\": \\"success\\",\\n \\"Message\\": \\"success\\",\\n \\"Job\\": {\\n \\"Id\\": \\"231460f8-75dc-405e-a669-0c5204887e91\\",\\n \\"Completed\\": false,\\n \\"CreateTime\\": \\"2024-01-08 16:52:04.864664\\",\\n \\"UpdateTime\\": \\"2024-01-08 16:53:04.864664\\",\\n \\"Status\\": \\"Success\\",\\n \\"Error\\": \\"Failed to connect database.\\",\\n \\"Progress\\": 1600\\n }\\n}","type":"json"}]',
'title' => '获取异步上传向量数据任务',
'description' => '此接口为`UpsertCollectionDataAsync`的相关接口。可通过`UpsertCollectionDataAsync`创建一个上传任务,并得到一个JobId,然后通过此接口查看Job的执行信息。'."\n"
."\n"
.'> 使用建议:可按照1000条向量数据需要1s的时间初步预估上传任务的耗时,然后每5s查询一次任务进度。超时建议设置为去掉初步评估的时间消耗后30min。',
],
'CancelUpsertCollectionDataJob' => [
'summary' => '通过JobId取消异步上传向量数据的任务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '208255',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Namespace',
'in' => 'formData',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过CreateNamespace接口创建,通过ListNamespaces接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'Collection',
'in' => 'formData',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在Region ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'NamespacePassword',
'in' => 'formData',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为CreateNamespace接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'JobId',
'in' => 'formData',
'schema' => [
'description' => '上传向量数据的任务ID,由`UpsertCollectionDataAsync`接口获得。',
'type' => 'string',
'required' => true,
'example' => 'bf8f7bc4-9276-44f7-9c22-1d06edc8dfd1',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => '取消调用的状态,取值说明:'."\n"
.'- **success**:成功'."\n"
.'- **fail**:失败',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '取消异步上传向量数据任务',
'description' => '此接口为`UpsertCollectionDataAsync`的相关接口。用于取消上传任务。'."\n"
."\n\n"
.'> 当任务已经处理成功、失败、已取消时,不能再次调用取消接口。调用取消接口仅中断上传任务,已经写的数据,需要用户自行或者调用DeleteCollectionData接口删除。',
],
'QueryCollectionData' => [
'summary' => '召回向量数据。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '182778',
'abilityTreeNodes' => [
'FEATUREgpdbIPPRRA',
],
'autoTest' => false,
'notSupportAutoTestReason' => '数据类API,自动化测试中,无法通过RAM验证(POP仅会返回200)',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您可以通过[ListNamespaces](~~2401502~~)查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Content',
'in' => 'query',
'schema' => [
'description' => '用于全文检索的内容。即此值为空时,仅使用向量检索;不为空时,使用向量和全文双路检索。'."\n"
."\n"
.'> 和Vector参数不能同时为空。',
'type' => 'string',
'required' => false,
'example' => 'hello_world',
],
],
[
'name' => 'Filter',
'in' => 'formData',
'schema' => [
'description' => '要查询的数据的过滤条件,格式为SQL的WHERE格式。是一个返回布尔值(真或假)的表达式,条件可以是简单的比较运算符,如等于(=)、不等于(<>或!=)、大于(>), 小于(<)、大于等于(>=)、小于等于(<=),也可以是逻辑运算符(AND, OR, NOT)组合的更复杂的表达式,以及使用IN、BETWEEN、LIKE等关键字的条件。'."\n"
."\n"
.'> '."\n"
.'> - 详细语法可参考:https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-where/',
'type' => 'string',
'required' => false,
'example' => 'pipeline_id=\'1yhpmo0rbn\' AND (spu=\'10025667796135\' AND dept_id=\'226\')',
],
],
[
'name' => 'TopK',
'in' => 'query',
'schema' => [
'description' => '设置返回top结果数量。',
'type' => 'integer',
'format' => 'int64',
'required' => true,
'minimum' => '0',
'example' => '10',
],
],
[
'name' => 'Vector',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '向量数据,长度和[CreateCollection](~~2401497~~)接口的维度一致。'."\n"
.'> '."\n"
.'> - 当 SparseVector 为空时,只返回稠密向量检索结果。'."\n"
.'> - 当 Vector和SparseVector 均为空时,只返回全文检索结果。',
'type' => 'array',
'items' => [
'description' => '向量数据。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '1.234',
],
'required' => false,
],
],
[
'name' => 'SparseVector',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '稀疏向量数据列表。',
'type' => 'object',
'properties' => [
'Indices' => [
'description' => '下标数组。'."\n"
.'> 列表大小不能超过4000。',
'type' => 'array',
'items' => [
'description' => '下标值。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '1',
],
'required' => false,
],
'Values' => [
'description' => '稀疏向量数组。',
'type' => 'array',
'items' => [
'description' => '稀疏向量数据。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '1.2345',
],
'required' => false,
],
],
'required' => false,
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'Metrics',
'in' => 'query',
'schema' => [
'description' => '检索时的相似度算法。取值说明:'."\n"
.'- **l2**:欧氏距离。'."\n"
.'- **ip**:点积(内积)距离。'."\n"
.'- **cosine**:余弦相似度。'."\n"
."\n"
.'> 此值为空时,则使用构建索引时指定的算法。',
'type' => 'string',
'required' => false,
'example' => 'cosine',
'enum' => [
'ip',
'l2',
'cosine',
],
],
],
[
'name' => 'IncludeValues',
'in' => 'query',
'schema' => [
'description' => '是否返回向量数据。取值说明:'."\n"
.'- **true**:返回向量数据。'."\n"
.'- **false**:不返回向量数据,用于全文检索场景。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
'default' => 'true',
],
],
[
'name' => 'HybridSearch',
'in' => 'query',
'schema' => [
'description' => '双路召回算法,默认为空(即直接将向量和全文的分数比较并排序)。'."\n"
."\n"
.'可选值:'."\n"
."\n"
.'- RRF:倒数排序融合(Reciprocal rank fusion),有一个参数k控制融合效果,详见HybridSearchArgs配置;'."\n"
.'- Weight:比重排序,采用一个参数alpha控制向量和全文的分数比重,然后再排序,参数详见HybridSearchArgs配置;'."\n"
.'- Cascaded:先全文检索再在其基础上进行向量检索;',
'type' => 'string',
'required' => false,
'example' => 'RRF',
],
],
[
'name' => 'HybridSearchArgs',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '双路召回的算法参数。目前支持RRF和Weight两种:'."\n"
."\n"
.'- RRF:指定计算分数的算法的`1/(k+rank_i)`中的k常数,范围大于1的正整数,格式为:'."\n"
.'```'."\n"
.'{ '."\n"
.' "RRF": {'."\n"
.' "k": 60'."\n"
.' }'."\n"
.'}'."\n"
.'```'."\n"
."\n"
.'- Weight: 计算公式`alpha * vector_score + (1-alpha) * text_score`,参数alpha表示向量和全文的检索分数比重,范围为0~1,其中0表示只全文,1表示只向量:'."\n"
.'```'."\n"
.'{ '."\n"
.' "Weight": {'."\n"
.' "alpha": 0.5'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'type' => 'object',
'required' => false,
'additionalProperties' => [
'type' => 'object',
'additionalProperties' => [
'type' => 'any',
],
],
],
],
[
'name' => 'OrderBy',
'in' => 'query',
'schema' => [
'description' => '默认为空,表示排序的依据字段。不支持双路召回场景。'."\n"
."\n"
.'字段必须属于metadata或表里的默认字段比如id,格式支持:'."\n"
.'- 单个字段,如chunk_id;'."\n"
.'- 多个字段,用逗号连接,如block_id, chunk_id;'."\n"
.'- 支持反序,如: block_id DESC, chunk_id DESC;',
'type' => 'string',
'required' => false,
'example' => 'chunk_id',
],
],
[
'name' => 'Offset',
'in' => 'query',
'schema' => [
'description' => '默认为空,表示分页查询时的检索起点。不支持双路召回场景。'."\n"
."\n"
.'范围必须>=0。当此值不为空时,会返回Total表示总的命中数。此参数配合TopK使用,比如要分页20检索chunk_id 0~44的chunks,则要请求3次:'."\n"
.'- Offset=0,TopK=20返回chunk_id 0~19'."\n"
.'- Offset=20,TopK=20返回chunk_id 20~39'."\n"
.'- Offset=30,TopK=20返回chunk_id 40~44',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '0',
],
],
[
'name' => 'IncludeMetadataFields',
'in' => 'query',
'schema' => [
'description' => '默认为空,表示要返回的metadata字段,多个字段用逗号分隔。',
'type' => 'string',
'required' => false,
'example' => 'title,content',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
[
'name' => 'RelationalTableFilter',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '使用另外一张关系表实现向量数据过滤(类似Join的功能)。'."\n"
."\n"
.'> 关系表的数据可以通过设置IncludeMetadataFields参数返回。比如rds_table_name.id表示返回关系表的id字段。',
'type' => 'object',
'properties' => [
'CollectionMetadataField' => [
'description' => '向量集的Metadata字段,用来和向量表的字段关联。',
'type' => 'string',
'required' => false,
'example' => 'doc_id',
],
'TableField' => [
'description' => '关系表的字段,用来和向量集的Metadata的字段做关联。',
'type' => 'string',
'required' => false,
'example' => 'id',
],
'TableName' => [
'description' => '关系表的名称。',
'type' => 'string',
'required' => false,
'example' => 'my_rds_table',
],
'Condition' => [
'description' => '关系表的过滤条件。',
'type' => 'string',
'required' => false,
'example' => 'tags @> ARRAY[\'art\']',
],
],
'required' => false,
],
],
[
'name' => 'IncludeSparseValues',
'in' => 'query',
'schema' => [
'type' => 'boolean',
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '召回结果。',
'type' => 'object',
'properties' => [
'Matches' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'match' => [
'description' => '数据列表。',
'type' => 'array',
'items' => [
'description' => '单条记录。',
'type' => 'object',
'properties' => [
'Id' => [
'description' => '向量数据的唯一ID。',
'type' => 'string',
'example' => 'doca-1234',
],
'Metadata' => [
'description' => '元数据。',
'type' => 'object',
'additionalProperties' => [
'type' => 'string',
'example' => '{"title":"test title", "content": "test content"}',
'description' => '元数据内容。',
],
],
'Values' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'value' => [
'description' => '向量数据列表。',
'type' => 'array',
'items' => [
'description' => '向量数据。',
'type' => 'number',
'format' => 'double',
'example' => '1.234',
],
],
],
],
'Score' => [
'description' => '此条数据的相似度分数,其分数算法和创建索引时指定的算法`(l2/ip/cosine)`相关。',
'type' => 'number',
'format' => 'double',
'example' => '0.12345',
],
'SparseValues' => [
'title' => '稀疏向量返回体',
'description' => '稀疏向量返回体',
'type' => 'object',
'properties' => [
'Indices' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Indice' => [
'title' => '稀疏向量索引数组',
'description' => '稀疏向量索引数组',
'type' => 'array',
'items' => [
'title' => '稀疏向量索引值',
'description' => '稀疏向量索引值',
'type' => 'integer',
'format' => 'int32',
],
],
],
],
'Values' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Value' => [
'title' => '稀疏向量值数组',
'description' => '稀疏向量值数组',
'type' => 'array',
'items' => [
'title' => '稀疏向量值',
'description' => '稀疏向量值',
'type' => 'number',
'format' => 'float',
],
],
],
],
],
],
'MetadataV2' => [
'description' => '元数据。值与Metadata一致,元素类型区别于Metadata,用于在SDK端透出任意类型。',
'type' => 'object',
'additionalProperties' => [
'type' => 'any',
'example' => '{\'array_field\': [15.5, 25.5, 35.5], \'float_field\': 128.45, \'long_field\': 123456789017, \'bool_field\': False, \'json_field\': \'{"key1":"value1","num":999.0}\', \'char_array_field\': \'[c, h, a, r, s, 5]\', \'int_field\': 128, \'source\': 0, \'double_field\': 12350.6789, \'string_field\': \'test_string_5\'}',
'description' => '该字段可容纳多种数据类型,由 SDK 按以下规则进行反序列化。'."\n"
."\n"
.'> **反序列化规则**'."\n"
."\n"
.'| ADBPG数据类型 | Java SDK反序列化类型 | Python SDK反序列化类型'."\n"
.'| ---- | ---- | ----|'."\n"
.'| 整数(integer, bigint) | Long | int|'."\n"
.'| 浮点数(real, double precision) | Double | float|'."\n"
.'| 布尔值(boolean)| Boolean | bool|'."\n"
.'| 字符串(text, character varying)| String | str|'."\n"
.'| 数组(如 int[], text[])|ArrayList\\(T 类型按本表规则映射)| list|'."\n"
.'|json|String|String',
],
],
],
],
],
],
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Status' => [
'description' => '状态,取值说明:'."\n"
.'- **success**:成功。'."\n"
.'- **fail**:失败。',
'type' => 'string',
'example' => 'success',
],
'Message' => [
'description' => '请求失败时的详细信息。',
'type' => 'string',
'example' => '0.1234',
],
'Total' => [
'description' => '当请求Offset不为0时才返回,返回值为该检索条件的命中总数。',
'type' => 'integer',
'format' => 'int32',
'example' => '100',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Matches\\": {\\n \\"match\\": [\\n {\\n \\"Id\\": \\"doca-1234\\",\\n \\"Metadata\\": {\\n \\"key\\": \\"{\\\\\\"title\\\\\\":\\\\\\"test title\\\\\\", \\\\\\"content\\\\\\": \\\\\\"test content\\\\\\"}\\"\\n },\\n \\"Values\\": {\\n \\"value\\": [\\n 1.234\\n ]\\n },\\n \\"Score\\": 0.12345,\\n \\"SparseValues\\": {\\n \\"Indices\\": {\\n \\"Indice\\": [\\n 0\\n ]\\n },\\n \\"Values\\": {\\n \\"Value\\": [\\n 0\\n ]\\n }\\n },\\n \\"MetadataV2\\": {\\n \\"key\\": \\"{\'array_field\': [15.5, 25.5, 35.5], \'float_field\': 128.45, \'long_field\': 123456789017, \'bool_field\': False, \'json_field\': \'{\\\\\\"key1\\\\\\":\\\\\\"value1\\\\\\",\\\\\\"num\\\\\\":999.0}\', \'char_array_field\': \'[c, h, a, r, s, 5]\', \'int_field\': 128, \'source\': 0, \'double_field\': 12350.6789, \'string_field\': \'test_string_5\'}\\"\\n }\\n }\\n ]\\n },\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Status\\": \\"success\\",\\n \\"Message\\": \\"0.1234\\",\\n \\"Total\\": 100\\n}","type":"json"}]',
'title' => '召回向量数据',
],
'UpdateCollectionDataMetadata' => [
'summary' => '更新向量数据中的Metadata数据。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '190731',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-j788ghhjjxxxx',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您可以通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Filter',
'in' => 'query',
'schema' => [
'description' => '要更新的数据的过滤条件,格式为SQL的WHERE格式。此字段不能和Ids字段同时为空。',
'type' => 'string',
'required' => false,
'example' => 'business_value = \'chat_file_1\'',
],
],
[
'name' => 'Ids',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '要更新的数据的Id列表,即上传数据时指定的Row.Id。此字段不能和Filter字段同时为空。',
'type' => 'array',
'items' => [
'description' => '更新的数据的ID。',
'type' => 'string',
'required' => false,
'example' => 'AC-2642a8744eba4c5eb7d7595d08306d15',
],
'required' => false,
],
],
[
'name' => 'Metadata',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '需要更新的数据,为MAP格式的JSON字符串。其中key是字段名,value是新的数据取值。',
'type' => 'object',
'required' => true,
'additionalProperties' => [
'type' => 'any',
'description' => '元数据值。',
'example' => 'new title',
],
'example' => '{'."\n"
.' "title": "new title",'."\n"
.' "content": "new content"'."\n"
.'}',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '请求失败时的详细信息。',
'type' => 'string',
'example' => 'failed to connect database, detailMsg: getConnection fail::SQL State: 28P01, Error Code: 0, Error Message: FATAL: password',
],
'Status' => [
'description' => '状态,取值如下:'."\n"
."\n"
.'- **success**:成功。'."\n"
.'- **fail**:失败。',
'type' => 'string',
'example' => 'success',
],
'AppliedRows' => [
'description' => '生效的条目。',
'type' => 'integer',
'format' => 'int64',
'example' => '10',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"failed to connect database, detailMsg: getConnection fail::SQL State: 28P01, Error Code: 0, Error Message: FATAL: password\\",\\n \\"Status\\": \\"success\\",\\n \\"AppliedRows\\": 10\\n}","type":"json"}]',
'title' => '更新向量数据中的Metadata值',
],
'DeleteCollectionData' => [
'summary' => '删除向量数据集。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '184987',
'abilityTreeNodes' => [
'FEATUREgpdbLNL7EM',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'CollectionData',
'in' => 'query',
'schema' => [
'description' => '要删除的数据字段和值。为字典格式的JSON字符串,其中key为字段名,value为要删除的数据值列表。',
'type' => 'string',
'required' => false,
'example' => '{"title":["a","b"]}',
],
],
[
'name' => 'CollectionDataFilter',
'in' => 'query',
'schema' => [
'description' => '要删除的数据过滤条件。格式为SQL WHERE语法。',
'type' => 'string',
'required' => false,
'example' => 'a < 10',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'example' => 'gp-ws-*****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'AppliedRows' => [
'description' => '生效的条目。',
'type' => 'integer',
'format' => 'int64',
'example' => '10',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\",\\n \\"AppliedRows\\": 10\\n}","type":"json"}]',
'title' => '删除向量数据集',
],
'CreateVectorIndex' => [
'summary' => '创建向量集的索引。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbIPPRRA',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
.'> 您可以[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'Dimension',
'in' => 'query',
'schema' => [
'description' => '向量维度。'."\n"
."\n"
.'> - 稠密向量必传该参数。'."\n"
.'> - 此值需和上传向量[UpsertCollectionData](~~2401493~~)接口的向量数据Rows. Vector长度一致。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1024',
],
],
[
'name' => 'ManagerAccount',
'in' => 'query',
'schema' => [
'description' => '具有rds_superuser权限的管理账户名称。'."\n"
."\n"
.'> 您可以通过控制台->账号管理来创建账号,或者通过[CreateAccount](~~2361789~~)接口创建。',
'type' => 'string',
'required' => true,
'example' => 'testaccount',
],
],
[
'name' => 'ManagerAccountPassword',
'in' => 'query',
'schema' => [
'description' => '管理账户密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Metrics',
'in' => 'query',
'schema' => [
'description' => '向量构建索引时的方法。取值说明:'."\n"
.'- l2:欧氏距离。'."\n"
.'- ip:点积(内积)距离。'."\n"
.'- cosine:余弦相似度。'."\n"
."\n"
.'> 稀疏向量只支持ip。',
'type' => 'string',
'required' => false,
'example' => 'cosine',
'enum' => [
'ip',
'l2',
'cosine',
],
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'PqEnable',
'in' => 'query',
'schema' => [
'description' => '索引是否开启PQ(Product quantization)算法加速,数据量大于50w时建议开启。取值说明:'."\n"
.'- 0:关闭。'."\n"
.'- 1:开启(默认)。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
'enum' => [
'0',
'1',
],
],
],
[
'name' => 'HnswM',
'in' => 'query',
'schema' => [
'description' => 'HNSW算法中的最大邻居数。接口会根据向量维度自动设置此值,一般不需要手动设置。'."\n"
."\n"
.'> 取值范围:'."\n"
.'>- AnalyticDB PostgreSQL 6.0版实例:1~1000。'."\n"
.'>- AnalyticDB PostgreSQL 7.0版实例:2~100,默认值16。'."\n"
."\n"
.'> 建议根据向量维度来设置:'."\n"
.'> - 小于等于384:16'."\n"
.'> - 大于384小于等于768:32'."\n"
.'> - 大于768小于等于1024:64'."\n"
.'> - 大于1024:128',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'maximum' => '1000',
'minimum' => '1',
'example' => '64',
],
],
[
'name' => 'HnswEfConstruction',
'in' => 'query',
'schema' => [
'description' => 'HNSW算法构建索引时的候选集大小。取值范围:4~1000,默认值64。'."\n"
."\n"
.'> 仅AnalyticDB PostgreSQL 7.0版实例需要传该值,且取值需要>= 2*HNSW_M。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '128',
],
],
[
'name' => 'ExternalStorage',
'in' => 'query',
'schema' => [
'description' => '是否使用mmap构建HNSW索引,默认为0。如果数据不需要删除,且对上传数据的速度性能有要求时,建议设置为1。'."\n"
."\n"
.'取值说明:'."\n"
.'- 0:默认采用段页式存储构建索引,这种模式可以使用PostgreSQL中的shared_buffer做缓存,支持删除和更新等操作。'."\n"
.'- 1:该索引会采用mmap构建索引,该模式不支持删除更新等操作。'."\n"
."\n"
.'>仅6.0版本支持参数ExternalStorage。7.0版本暂不支持。>',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '0',
'enum' => [
'0',
'1',
],
],
],
[
'name' => 'Type',
'in' => 'query',
'schema' => [
'description' => '向量类型。取值说明:'."\n"
.'- Dense(默认值):稠密向量。'."\n"
.'- Sparse:稀疏向量。',
'type' => 'string',
'required' => false,
'example' => 'Dense',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => 'API执行状态,取值说明:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '创建向量索引',
],
'DeleteVectorIndex' => [
'summary' => '删除向量索引。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbIPPRRA',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp152460513z****',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'document',
],
],
[
'name' => 'ManagerAccount',
'in' => 'query',
'schema' => [
'description' => '具有rds_superuser权限的管理账号名称。'."\n"
."\n"
.'> 您可以通过控制台的**账号管理**创建账号,或者通过[CreateAccount](~~2361789~~)接口创建。',
'type' => 'string',
'required' => true,
'example' => 'testaccount',
],
],
[
'name' => 'ManagerAccountPassword',
'in' => 'query',
'schema' => [
'description' => '管理账号密码。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间,默认为public。'."\n"
."\n"
.'> 您可以通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => false,
'example' => 'mynamespace',
'default' => 'public',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'Type',
'in' => 'query',
'schema' => [
'description' => '向量类型。取值说明:'."\n"
.'- Dense(默认值):稠密向量。'."\n"
.'- Sparse:稀疏向量。',
'type' => 'string',
'required' => false,
'example' => 'Dense',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '删除向量索引',
],
'CreateIndex' => [
'summary' => '创建索引。'."\n"
."\n"
.'说明:'."\n"
.'1. 只支持创建标量索引。'."\n"
.'2. 创建索引期间禁写表。'."\n"
.'3. 在单表数据量大的情况下创建索引,过程中会占用实例CPU、IO资源,如果影响实例可用性请调用CancelCreateIndexJob取消创建索引。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbIPPRRA',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'enumValueTitles' => [],
'example' => 'gp-ws-*****',
'enum' => [
'ip',
'l2',
'cosine',
],
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您可以通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'mynamespace',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为CreateNamespace接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'testcollection',
],
],
[
'name' => 'IndexName',
'in' => 'query',
'schema' => [
'description' => '索引名称。',
'type' => 'string',
'required' => false,
'example' => 'testindex',
],
],
[
'name' => 'IndexField',
'in' => 'query',
'schema' => [
'description' => '索引字段,仅支持单个字段,且字段必须属于 Metadata 里定义的 key。',
'type' => 'string',
'required' => false,
'example' => 'title',
],
],
[
'name' => 'IndexConfig',
'in' => 'query',
'schema' => [
'description' => '索引参数。如果不传,默认创建b-tree索引。'."\n"
."\n"
.'> '."\n"
.'>- b-tree:参数fillFactor,取值范围为10~100,默认值为90。'."\n"
.'>- gin: 参数fastUpdate,取值范围为true或false,默认值为true。',
'type' => 'string',
'required' => false,
'example' => '{"b-tree":{"fillFactor":90}} 或者 {"gin":{"fastUpdate":false}}',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'Successfully create job',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'JobId' => [
'description' => '任务ID,用于后续查看任务状态或者取消任务。',
'type' => 'string',
'example' => '231460f8-75dc-405e-a669-0c5204887e91',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"Successfully create job\\",\\n \\"Status\\": \\"success\\",\\n \\"JobId\\": \\"231460f8-75dc-405e-a669-0c5204887e91\\"\\n}","type":"json"}]',
'title' => '创建索引',
],
'DescribeCreateIndexJob' => [
'summary' => '获取创建索引任务',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbIPPRRA',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'enumValueTitles' => [],
'example' => 'gp-ws-*****',
'enum' => [
'ip',
'l2',
'cosine',
],
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您可以通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'mynamespace',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为[CreateNamespace](~~2401495~~)接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'testcollection'."\n",
],
],
[
'name' => 'JobId',
'in' => 'query',
'schema' => [
'description' => '创建索引的任务ID,由`CreateIndex`接口获得。',
'type' => 'string',
'required' => true,
'example' => '231460f8-75dc-405e-a669-0c5204887e91',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'Job' => [
'description' => '创建索引的任务的详细信息。',
'type' => 'object',
'properties' => [
'Id' => [
'description' => 'Job ID。',
'type' => 'string',
'example' => '231460f8-75dc-405e-a669-0c5204887e91',
],
'Completed' => [
'description' => '操作是否完成。',
'type' => 'boolean',
'example' => 'false',
],
'CreateTime' => [
'description' => '任务创建时间。',
'type' => 'string',
'example' => '2024-01-08 16:52:04.864664',
],
'UpdateTime' => [
'description' => '任务更新时间。',
'type' => 'string',
'example' => '2024-01-08 16:53:04.864664',
],
'Status' => [
'description' => '任务状态。取值说明:'."\n"
.'- **Success**:成功。'."\n"
.'- **Failed**:失败,失败原因可查看 Error 字段。'."\n"
.'- **Cancelled**:已取消。'."\n"
.'- **Running**:执行中。',
'type' => 'string',
'example' => 'Running',
],
'Error' => [
'description' => '当前操作异常或者失败时的错误信息。',
'type' => 'string',
'example' => 'Failed to connect database.',
],
'Progress' => [
'description' => '创建进度,此数值为进度百分比,值为 100 时表示完成。'."\n"
."\n"
.'>- 仅 AnalyticDB PostgreSQL 7.0 版实例支持进度更新。',
'type' => 'integer',
'format' => 'int32',
'example' => '20',
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"Job\\": {\\n \\"Id\\": \\"231460f8-75dc-405e-a669-0c5204887e91\\",\\n \\"Completed\\": false,\\n \\"CreateTime\\": \\"2024-01-08 16:52:04.864664\\",\\n \\"UpdateTime\\": \\"2024-01-08 16:53:04.864664\\",\\n \\"Status\\": \\"Running\\",\\n \\"Error\\": \\"Failed to connect database.\\",\\n \\"Progress\\": 20\\n }\\n}","type":"json"}]',
'title' => '获取创建索引任务',
],
'CancelCreateIndexJob' => [
'summary' => '取消创建索引任务',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbIPPRRA',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
.'> 您可以调用[DescribeDBInstances](~~196830~~)接口查看目标地域下所有实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'enumValueTitles' => [],
'example' => 'gp-ws-*****',
'enum' => [
'ip',
'l2',
'cosine',
],
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您可以通过[CreateNamespace](~~2401495~~)接口创建,通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'mynamespace',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为CreateNamespace接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'testcollection',
],
],
[
'name' => 'JobId',
'in' => 'query',
'schema' => [
'description' => '创建索引的任务ID,由`CreateIndex`接口获得。',
'type' => 'string',
'required' => true,
'example' => '231460f8-75dc-405e-a669-0c5204887e91',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '取消创建索引任务',
],
'DeleteIndex' => [
'summary' => '删除索引',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbIPPRRA',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'enumValueTitles' => [],
'example' => 'gp-ws-*****',
'enum' => [
'ip',
'l2',
'cosine',
],
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您通过[ListNamespaces](~~2401502~~)查看列表。',
'type' => 'string',
'required' => true,
'example' => 'mynamespace',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为[CreateNamespace](~~2401495~~)接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'testcollection',
],
],
[
'name' => 'IndexName',
'in' => 'query',
'schema' => [
'description' => '索引名称。',
'type' => 'string',
'required' => true,
'example' => 'testindex',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
."\n"
.'- **fail**:执行失败。'."\n"
.'- **success**:执行成功。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\"\\n}","type":"json"}]',
'title' => '删除索引',
],
'ListIndices' => [
'summary' => '获取索引列表',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbIPPRRA',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'enumValueTitles' => [],
'example' => 'gp-ws-*****',
'enum' => [
'ip',
'l2',
'cosine',
],
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您可以通过[ListNamespaces](~~2401502~~)查看列表。',
'type' => 'string',
'required' => true,
'example' => 'mynamespace',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为[CreateNamespace](~~2401495~~)接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
.'> 您可以[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'testcollection',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => 'Request ID.',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'Indices' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Indices' => [
'description' => '索引列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Namespace' => [
'description' => '命名空间。',
'type' => 'string',
'example' => 'mynamespace',
],
'Collection' => [
'description' => '集合名。',
'type' => 'string',
'example' => 'testcollection',
],
'IndexName' => [
'description' => '索引名称。',
'type' => 'string',
'example' => 'testindex',
],
'IndexDef' => [
'description' => '索引的定义。',
'type' => 'string',
'example' => 'CREATE INDEX testindex ON mynamespace. testcollection',
],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"Indices\\": {\\n \\"Indices\\": [\\n {\\n \\"Namespace\\": \\"mynamespace\\",\\n \\"Collection\\": \\"testcollection\\",\\n \\"IndexName\\": \\"testindex\\",\\n \\"IndexDef\\": \\"CREATE INDEX testindex ON mynamespace. testcollection\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '获取索引列表',
],
'DescribeIndex' => [
'summary' => '获取索引详情',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbIPPRRA',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'WorkspaceId',
'in' => 'query',
'schema' => [
'description' => '多数据库实例组成的Workspace的Id。此参数和DBInstanceId参数不能同时为空,当和DBInstanceId同时指定时以此参数为准。',
'type' => 'string',
'required' => false,
'enumValueTitles' => [],
'example' => 'gp-ws-*****',
'enum' => [
'ip',
'l2',
'cosine',
],
],
],
[
'name' => 'Namespace',
'in' => 'query',
'schema' => [
'description' => '命名空间。'."\n"
."\n"
.'> 您通过[ListNamespaces](~~2401502~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'mynamespace',
],
],
[
'name' => 'NamespacePassword',
'in' => 'query',
'schema' => [
'description' => '命名空间对应的密码。'."\n"
."\n"
.'> 本值为[CreateNamespace](~~2401495~~)接口指定。',
'type' => 'string',
'required' => true,
'example' => 'testpassword',
],
],
[
'name' => 'Collection',
'in' => 'query',
'schema' => [
'description' => '集合名。'."\n"
."\n"
.'> 您可以通过[ListCollections](~~2401503~~)接口查看列表。',
'type' => 'string',
'required' => true,
'example' => 'testcollection',
],
],
[
'name' => 'IndexName',
'in' => 'query',
'schema' => [
'description' => '索引名称。',
'type' => 'string',
'required' => true,
'example' => 'testindex',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
."\n"
.'- **false**:执行失败。'."\n"
.'- **true**:执行成功。',
'type' => 'string',
'example' => 'success',
],
'Namespace' => [
'description' => '命名空间。',
'type' => 'string',
'example' => 'mynamespace',
],
'Collection' => [
'description' => '集合名。',
'type' => 'string',
'example' => 'testcollection',
],
'IndexName' => [
'description' => '索引名称。',
'type' => 'string',
'example' => 'testindex',
],
'IndexDef' => [
'description' => '索引的定义。',
'type' => 'string',
'example' => 'CREATE INDEX testindex ON mynamespace. testcollection',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"Namespace\\": \\"mynamespace\\",\\n \\"Collection\\": \\"testcollection\\",\\n \\"IndexName\\": \\"testindex\\",\\n \\"IndexDef\\": \\"CREATE INDEX testindex ON mynamespace. testcollection\\"\\n}","type":"json"}]',
'title' => '获取索引详情',
],
'TextEmbedding' => [
'summary' => '通过模型对文本文档进行向量化。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '241092',
'abilityTreeNodes' => [
'FEATUREgpdb95T353',
],
'autoTest' => false,
'notSupportAutoTestReason' => '数据类API,自动化测试中,无法通过RAM验证(POP仅会返回200)',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'Model',
'in' => 'formData',
'schema' => [
'description' => '向量模型,目前支持:'."\n"
.'- text-embedding-v1:1536 维'."\n"
.'- text-embedding-v2:1536 维'."\n"
.'- text-embedding-v3(默认值):1024 维、768 维、512 维'."\n"
.'- text2vec(不推荐):1024 维'."\n"
.'- m3e-base(不推荐):768 维'."\n"
.'- m3e-small(不推荐):512 维',
'type' => 'string',
'required' => false,
'example' => 'text-embedding-v3',
],
],
[
'name' => 'Input',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => '要向量化的文本内容列表,列表长度不能超过100。',
'type' => 'array',
'items' => [
'description' => '要向量化的文本内容。长度不能超过2048tokens。',
'type' => 'string',
'required' => false,
'example' => 'ADBPG是什么?',
],
'required' => true,
'docRequired' => true,
],
],
[
'name' => 'Dimension',
'in' => 'query',
'schema' => [
'description' => '向量维度。默认值是向量化算法支持的维度。'."\n"
."\n"
.'> '."\n"
.'> - text-embedding-v3支持1024 维、768 维、512 维,默认值为1024。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1024',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '信息详情。',
'type' => 'string',
'example' => 'Successful',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'TextTokens' => [
'description' => '消耗的tokens总数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1000',
],
'Results' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Results' => [
'description' => '向量结果列表。',
'type' => 'array',
'items' => [
'description' => '结果详情。',
'type' => 'object',
'properties' => [
'Embedding' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Embedding' => [
'description' => '向量值列表。',
'type' => 'array',
'items' => [
'description' => '向量值。',
'type' => 'number',
'format' => 'double',
'example' => '0.1234',
],
],
],
],
'Index' => [
'description' => '此向量在请求参数Input里的序号,从0开始。',
'type' => 'integer',
'format' => 'int32',
'example' => '0',
],
],
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Status\\": \\"success\\",\\n \\"TextTokens\\": 1000,\\n \\"Results\\": {\\n \\"Results\\": [\\n {\\n \\"Embedding\\": {\\n \\"Embedding\\": [\\n 0.1234\\n ]\\n },\\n \\"Index\\": 0\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '文本向量化',
],
'Rerank' => [
'summary' => 'Rerank能够解决向量检索和全文检索结果排序不精准的问题,通过语义理解对召回数据重新打分排序,显著提升结果的相关性与准确性。'."\n"
.'AnalyticDB for PostgreSQL版支持调用Rerank模型对检索结果做重排,但不提供模型。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '241092',
'abilityTreeNodes' => [
'FEATUREgpdb95T353',
],
'autoTest' => false,
'notSupportAutoTestReason' => '数据类API,自动化测试中,无法通过RAM验证(POP仅会返回200)',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在Region ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'Query',
'in' => 'formData',
'schema' => [
'description' => 'Rerank对应的查询语句。',
'type' => 'string',
'required' => false,
'docRequired' => true,
'example' => 'ADBPG是什么',
],
],
[
'name' => 'Documents',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => '要重新排序的文档列表。',
'type' => 'array',
'items' => [
'description' => '单条文档内容。',
'type' => 'string',
'required' => false,
'example' => 'ADBPG是阿里云OLAP数据库。',
],
'required' => false,
'docRequired' => true,
],
],
[
'name' => 'Model',
'in' => 'formData',
'schema' => [
'description' => 'Rerank模型,目前支持'."\n"
.'- bge-reranker-v2-m3:(默认值),性能较好,单条推理支持8192tokens,超出会被切分,效果可能下降。'."\n"
.'- bge-reranker-v2-minicpm-layerwise:效果相比v2-m3更优,单条推理支持2048tokens,超出会被切分,效果可能下降。',
'type' => 'string',
'required' => false,
'example' => 'bge-reranker-v2-m3',
],
],
[
'name' => 'TopK',
'in' => 'formData',
'schema' => [
'description' => '要返回的最相关文档的数量。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '3',
],
],
[
'name' => 'ReturnDocuments',
'in' => 'formData',
'schema' => [
'description' => '为false时,不返回Documents文本,仅仅返回文档排序的索引及rerank得分。',
'type' => 'boolean',
'required' => false,
'example' => 'false',
],
],
[
'name' => 'MaxChunksPerDoc',
'in' => 'formData',
'schema' => [
'description' => '超出模型窗口时,允许将文本切分的最大块数:'."\n"
.'- bge-reranker-v2-m3:默认值是10。'."\n"
.'- bge-reranker-v2-minicpm-layerwise:默认值是5:'."\n"
."\n"
.'> 切分举例'."\n"
.'> - 如果使用bge-reranker-v2-minicpm-layerwise模型,则最大单推理窗口为2048tokens,此时如果query是48tokens,单个document参数内容为9000tokens,则会被分为:1-2000为第一个,2001-4000为第二个,以此类推,并且切分个数超过MaxChunksPerDoc后,后面的语句会被丢弃。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '10',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '接口返回详细信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值说明:'."\n"
.'- **success**:执行成功。'."\n"
.'- **fail**:执行失败。',
'type' => 'string',
'example' => 'success',
],
'Tokens' => [
'description' => '消耗的tokens数。',
'type' => 'integer',
'format' => 'int32',
'example' => '100',
],
'Results' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Results' => [
'description' => 'Rerank结果。',
'type' => 'array',
'items' => [
'description' => '结果详情。',
'type' => 'object',
'properties' => [
'Document' => [
'description' => '重排序的文档信息。',
'type' => 'string',
'example' => 'ADBPG是阿里云OLAP数据库。',
],
'Index' => [
'description' => '此文档在请求参数Documents里的序号,从0开始。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'RelevanceScore' => [
'description' => 'Rerank相似度分数。',
'type' => 'number',
'format' => 'float',
'example' => '2.31412',
],
],
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"Tokens\\": 100,\\n \\"Results\\": {\\n \\"Results\\": [\\n {\\n \\"Document\\": \\"ADBPG是阿里云OLAP数据库。\\",\\n \\"Index\\": 1,\\n \\"RelevanceScore\\": 2.31412\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '精排',
],
'DescribeZonesPrivateRAGService' => [
'summary' => '获取私有RAG服务可部署可用区。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'ZoneIds' => [
'description' => '可用区列表。',
'type' => 'array',
'items' => [
'description' => '可用区ID。',
'type' => 'string',
'example' => 'cn-hangzhou-j',
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"ZoneIds\\": [\\n \\"cn-hangzhou-j\\"\\n ]\\n}","type":"json"}]',
'title' => '获取私有RAG服务可部署可用区',
],
'DeployPrivateRAGService' => [
'summary' => '部署私有RAG服务',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL版实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'ZoneId',
'in' => 'query',
'schema' => [
'description' => '可用区ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的可用区ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou-j',
],
],
[
'name' => 'VSwitchId',
'in' => 'query',
'schema' => [
'description' => 'vSwitch ID。'."\n"
."\n"
.'> - **vSwitch**所在可用区必须与**ZoneId**保持一致。',
'type' => 'string',
'required' => true,
'example' => 'vsw-bp1cpq8mr64paltkb****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '部署私有RAG服务',
'description' => '1. 部署私有RAG服务前,请先创建初始账号。'."\n"
.'2. 私有RAG服务支持向量接口,调用时请配置CA证书。',
],
'DescribePrivateRAGService' => [
'summary' => '获取私有RAG服务详情。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdb4XJLZD',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'CaCert' => [
'description' => 'CA证书信息。返回OSS链接,有效期2h。CA证书。',
'type' => 'string',
'example' => 'https://oss-xxx',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"CaCert\\": \\"https://oss-xxx\\"\\n}","type":"json"}]',
'title' => '获取私有RAG服务详情',
],
'DeletePrivateRAGService' => [
'summary' => '删除私有RAG服务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbCI2SPS',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '删除私有RAG服务',
],
'ListStreamingDataSources' => [
'summary' => '查询所有实时服务数据源。',
'methods' => [
'post',
'get',
'put',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
'FEATUREgpdbO4XFZ3',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '30',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:**1**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'TotalRecordCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '2',
],
'PageNumber' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'DataSourceItems' => [
'description' => '返回的数据源列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'DataSourceId' => [
'description' => '数据源ID。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'DataSourceName' => [
'description' => '数据源名称',
'type' => 'string',
'example' => 'test-kafka',
],
'DataSourceType' => [
'description' => '数据源类型,取值:'."\n"
.' - kafka',
'type' => 'string',
'example' => 'kafka',
],
'DataSourceConfig' => [
'description' => '数据源配置',
'type' => 'string',
'example' => '{"brokers":"broker0:9091,broker1:9091","topic":"topic"}',
],
'DataSourceDescription' => [
'description' => '数据源描述。',
'type' => 'string',
'example' => 'test-kafka',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2019-09-08T16:00:00Z',
],
'ModifyTime' => [
'description' => '最后修改时间。',
'type' => 'string',
'example' => '2019-09-08T17:00:00Z',
],
'Status' => [
'description' => '服务状态,取值如下:'."\n"
."\n"
.'- 初始化中 init'."\n"
."\n"
.'- 运行中 running'."\n"
."\n"
.'- 异常 exception',
'type' => 'string',
'example' => 'running',
],
'ServiceId' => [
'description' => '服务ID。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'ErrorMessage' => [
'description' => '服务状态信息,例如异常情况,则显示异常原因。正常Running状态下空值。',
'type' => 'string',
'example' => '""',
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"TotalRecordCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"DataSourceItems\\": [\\n {\\n \\"DataSourceId\\": 1,\\n \\"DataSourceName\\": \\"test-kafka\\",\\n \\"DataSourceType\\": \\"kafka\\",\\n \\"DataSourceConfig\\": \\"{\\\\\\"brokers\\\\\\":\\\\\\"broker0:9091,broker1:9091\\\\\\",\\\\\\"topic\\\\\\":\\\\\\"topic\\\\\\"}\\",\\n \\"DataSourceDescription\\": \\"test-kafka\\",\\n \\"CreateTime\\": \\"2019-09-08T16:00:00Z\\",\\n \\"ModifyTime\\": \\"2019-09-08T17:00:00Z\\",\\n \\"Status\\": \\"running\\",\\n \\"ServiceId\\": 1,\\n \\"ErrorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => '查询所有实时服务数据源',
],
'DeleteStreamingDataSource' => [
'summary' => '删除实时数据源。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
'FEATUREgpdbO4XFZ3',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => '数据源ID。',
'type' => 'integer',
'format' => 'int32',
'required' => true,
'example' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","type":"json"}]',
'title' => '删除实时数据源',
],
'ModifyStreamingDataSource' => [
'summary' => '修改实时数据服务数据源。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
'FEATUREgpdbO4XFZ3',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'DataSourceDescription',
'in' => 'query',
'schema' => [
'description' => '数据源描述。',
'type' => 'string',
'required' => false,
'example' => 'test-kafka',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
.'> 您可以调用[DescribeDBInstances](~~196830~~)接口查看目标地域下所有实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-k2j36a3172b102593',
],
],
[
'name' => 'DataSourceConfig',
'in' => 'query',
'schema' => [
'description' => '数据源配置信息。',
'type' => 'string',
'required' => false,
'example' => '{"brokers":"broker0:9091,broker1:9091","topic":"topic"}',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => '数据源ID。',
'type' => 'string',
'required' => true,
'example' => '57',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID,标识这次请求,如果出现问题,可以通过RequestId找到这次请求的相关记录来进行排错。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '修改实时数据服务数据源',
],
'CreateStreamingDataSource' => [
'summary' => '创建实时数据源。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以通过[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'DataSourceName',
'in' => 'query',
'schema' => [
'description' => '数据源名称。',
'type' => 'string',
'required' => true,
'example' => 'test-kafka',
],
],
[
'name' => 'DataSourceType',
'in' => 'query',
'schema' => [
'description' => '数据源类型。取值:'."\n"
.' - kafka',
'type' => 'string',
'required' => true,
'example' => 'kafka',
],
],
[
'name' => 'DataSourceDescription',
'in' => 'query',
'schema' => [
'description' => '数据源描述。',
'type' => 'string',
'required' => false,
'example' => 'test-kafka',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'CreateExternalDataSource',
],
],
[
'name' => 'DataSourceConfig',
'in' => 'query',
'schema' => [
'description' => '数据源配置信息。',
'type' => 'string',
'required' => true,
'example' => '{"broker_list":"broker0:9091,broker1:9091","topic":"topic"}',
],
],
[
'name' => 'ServiceId',
'in' => 'query',
'schema' => [
'description' => '实时数据服务ID。',
'type' => 'integer',
'format' => 'int32',
'required' => true,
'example' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'DataSourceId' => [
'description' => '数据源ID。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DataSourceId\\": 1,\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","type":"json"}]',
'title' => '创建实时数据源',
],
'DescribeStreamingDataSource' => [
'summary' => '查询实时数据源。',
'methods' => [
'post',
'get',
'put',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => '数据源ID。',
'type' => 'integer',
'format' => 'int32',
'required' => true,
'example' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'DataSourceId' => [
'description' => '数据源ID。',
'type' => 'string',
'example' => '1',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'DataSourceName' => [
'description' => '数据源名称。',
'type' => 'string',
'example' => 'test-kafka',
],
'DataSourceDescription' => [
'description' => '数据源描述。',
'type' => 'string',
'example' => 'test-kafka',
],
'Status' => [
'description' => '服务状态:'."\n"
."\n"
.'- 初始化中init'."\n"
."\n"
.'- 运行中 running'."\n"
."\n"
.'- 异常 exception',
'type' => 'string',
'example' => 'running',
],
'ErrorMessage' => [
'description' => '服务状态信息,例如异常情况,则显示异常原因。正常Running状态下空值。',
'type' => 'string',
'example' => '""',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2019-09-08T16:00:00Z',
],
'DataSourceConfig' => [
'description' => '数据源配置信息。',
'type' => 'string',
'example' => '{"brokers":"broker0:9091,broker1:9091","topic":"topic"}',
],
'ServiceId' => [
'description' => '外部数据服务ID。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'DataSourceType' => [
'description' => '数据源类型,取值:'."\n"
.' - kafka',
'type' => 'string',
'example' => 'kafka',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DataSourceId\\": \\"1\\",\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"DataSourceName\\": \\"test-kafka\\",\\n \\"DataSourceDescription\\": \\"test-kafka\\",\\n \\"Status\\": \\"running\\",\\n \\"ErrorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"CreateTime\\": \\"2019-09-08T16:00:00Z\\",\\n \\"DataSourceConfig\\": \\"{\\\\\\"brokers\\\\\\":\\\\\\"broker0:9091,broker1:9091\\\\\\",\\\\\\"topic\\\\\\":\\\\\\"topic\\\\\\"}\\",\\n \\"ServiceId\\": 1,\\n \\"DataSourceType\\": \\"kafka\\"\\n}","type":"json"}]',
'title' => '查询实时数据源',
],
'ListStreamingDataServices' => [
'summary' => 'Create External Data Source Configuration.',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198700',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
'FEATUREgpdbO4XFZ3',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => 'Region ID',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => 'Instance ID.',
'type' => 'string',
'required' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => 'Page number, greater than 0 and not exceeding the maximum value of Integer, default value: **1**.',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => 'Number of records per page, with the following values:'."\n"
.'- 30 (default)'."\n"
.'- 50'."\n"
.'- 100',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '50',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => 'Request ID.',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'ServiceItems' => [
'description' => 'Returns real-time data service items',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ServiceId' => [
'description' => 'Service ID.',
'type' => 'string',
'example' => '1',
],
'ServiceType' => [
'description' => 'Service type, with the following value:'."\n"
."\n"
.'- **adbpgss**',
'type' => 'string',
'example' => 'adbpgss',
],
'ServiceName' => [
'description' => 'Service name.',
'type' => 'string',
'example' => 'test-adbpgss',
],
'ServiceDescription' => [
'description' => 'Service description.',
'type' => 'string',
'example' => 'test-adbpgss',
],
'ServiceSpec' => [
'description' => 'Service specification (in CU).',
'type' => 'string',
'example' => '8',
],
'Status' => [
'description' => 'Service status, with the following values:'."\n"
."\n"
.'- Init: Initializing'."\n"
."\n"
.'- Running: In operation'."\n"
."\n"
.'- Exception: Abnormal'."\n"
."\n"
.'- Paused: Suspended',
'type' => 'string',
'example' => 'Running',
],
'ServiceIp' => [
'description' => 'Service IP.',
'type' => 'string',
'example' => '192.168.0.1',
],
'ServicePort' => [
'description' => 'Service port.',
'type' => 'string',
'example' => '5432',
],
'CreateTime' => [
'description' => 'Creation time.',
'type' => 'string',
'example' => '2019-09-08T16:00:00Z',
],
'ModifyTime' => [
'description' => 'Last modified time',
'type' => 'string',
'example' => '2019-09-08T17:00:00Z',
],
'ServiceManaged' => [
'description' => 'Whether it is a managed service.',
'type' => 'boolean',
'example' => 'true',
],
'ServiceOwnerId' => [
'description' => 'Service owner ID.',
'type' => 'string',
'example' => '123',
],
],
],
],
'TotalRecordCount' => [
'description' => 'Total record count.',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"ServiceItems\\": [\\n {\\n \\"ServiceId\\": \\"1\\",\\n \\"ServiceType\\": \\"adbpgss\\",\\n \\"ServiceName\\": \\"test-adbpgss\\",\\n \\"ServiceDescription\\": \\"test-adbpgss\\",\\n \\"ServiceSpec\\": \\"8\\",\\n \\"Status\\": \\"Running\\",\\n \\"ServiceIp\\": \\"192.168.0.1\\",\\n \\"ServicePort\\": \\"5432\\",\\n \\"CreateTime\\": \\"2019-09-08T16:00:00Z\\",\\n \\"ModifyTime\\": \\"2019-09-08T17:00:00Z\\",\\n \\"ServiceManaged\\": true,\\n \\"ServiceOwnerId\\": \\"123\\"\\n }\\n ],\\n \\"TotalRecordCount\\": 1\\n}","type":"json"}]',
'title' => 'Query All Real-time Data Services',
],
'CreateStreamingDataService' => [
'summary' => '创建实时数据服务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198231',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
'FEATUREgpdbO4XFZ3',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => 'The region ID.'."\n"
."\n"
.'> You can call the [DescribeRegions](~~86912~~) operation to query the most recent region list.'."\n",
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'ServiceName',
'in' => 'query',
'schema' => [
'description' => '服务名称',
'type' => 'string',
'required' => true,
'example' => 'test-adbpgss',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID',
'type' => 'string',
'required' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
[
'name' => 'ServiceSpec',
'in' => 'query',
'schema' => [
'description' => '服务规格',
'type' => 'string',
'required' => true,
'example' => '2',
],
],
[
'name' => 'ServiceDescription',
'in' => 'query',
'schema' => [
'description' => '服务描述',
'type' => 'string',
'required' => false,
'example' => 'test-adbpgss',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'ServiceId' => [
'description' => 'The real-time data service ID.'."\n",
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"ServiceId\\": 1\\n}","type":"json"}]',
'title' => '创建实时数据服务',
],
'ModifyStreamingDataService' => [
'summary' => '修改实时数据服务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198244',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
'FEATUREgpdbO4XFZ3',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
.'> 您可以调用[DescribeDBInstances](~~196830~~)接口查看目标地域下所有实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
[
'name' => 'ServiceSpec',
'in' => 'query',
'schema' => [
'description' => '服务规格(单位CU),取值如下:'."\n"
."\n"
.'- 2'."\n"
."\n"
.'- 4'."\n"
."\n"
.'- 8'."\n"
."\n"
.'- 16',
'type' => 'string',
'required' => true,
'example' => '2',
],
],
[
'name' => 'ServiceId',
'in' => 'query',
'schema' => [
'description' => '服务ID。',
'type' => 'string',
'required' => true,
'example' => '1',
],
],
[
'name' => 'ServiceDescription',
'in' => 'query',
'schema' => [
'description' => '服务描述。',
'type' => 'string',
'required' => false,
'example' => 'test-adbpgss',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","type":"json"}]',
'title' => '修改实时数据服务',
],
'DescribeStreamingDataService' => [
'summary' => '查询实时数据服务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198256',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
'FEATUREgpdbO4XFZ3',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'ServiceId',
'in' => 'query',
'schema' => [
'description' => '服务ID',
'type' => 'string',
'required' => true,
'example' => '1',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID.',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'ServiceId' => [
'description' => '服务ID。',
'type' => 'string',
'example' => '1',
],
'ServiceName' => [
'description' => '服务对应名称',
'type' => 'string',
'example' => 'test-adbpgss',
],
'ServiceDescription' => [
'description' => '服务描述。',
'type' => 'string',
'example' => 'test-adbpgss',
],
'ServiceSpec' => [
'description' => '服务规格。',
'type' => 'string',
'example' => '2',
],
'Status' => [
'description' => '服务状态,取值:'."\n"
."\n"
.'- Init:初始化中'."\n"
."\n"
.'- Running:运行中'."\n"
."\n"
.'- Exception:异常'."\n"
."\n"
.'- Paused:暂停',
'type' => 'string',
'example' => 'Running',
],
'ServiceIp' => [
'description' => '服务IP。',
'type' => 'string',
'example' => '192.168.0.1',
],
'ServicePort' => [
'description' => '服务端端口号',
'type' => 'integer',
'format' => 'int32',
'example' => '5432',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2019-09-08T16:00:00Z',
],
'ModifyTime' => [
'description' => '最后修改时间。',
'type' => 'string',
'example' => '2019-09-08T17:00:00Z',
],
'ServiceManaged' => [
'description' => '服务是否被产品托管',
'type' => 'boolean',
'example' => 'False',
],
'ServiceOwnerId' => [
'description' => '托管的产品服务账号ID',
'type' => 'string',
'example' => '123456',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"ServiceId\\": \\"1\\",\\n \\"ServiceName\\": \\"test-adbpgss\\",\\n \\"ServiceDescription\\": \\"test-adbpgss\\",\\n \\"ServiceSpec\\": \\"2\\",\\n \\"Status\\": \\"Running\\",\\n \\"ServiceIp\\": \\"192.168.0.1\\",\\n \\"ServicePort\\": 5432,\\n \\"CreateTime\\": \\"2019-09-08T16:00:00Z\\",\\n \\"ModifyTime\\": \\"2019-09-08T17:00:00Z\\",\\n \\"ServiceManaged\\": true,\\n \\"ServiceOwnerId\\": \\"123456\\"\\n}","type":"json"}]',
'title' => '查询实时数据服务',
],
'DeleteStreamingDataService' => [
'summary' => '删除实时数据服务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198248',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
'FEATUREgpdbO4XFZ3',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'ServiceId',
'in' => 'query',
'schema' => [
'description' => '服务ID。',
'type' => 'string',
'required' => true,
'example' => '1',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **false**:执行失败。'."\n"
.'- **true**:执行成功。',
'type' => 'boolean',
'example' => 'true'."\n",
],
'ErrorMessage' => [
'description' => '错误信息。'."\n"
."\n"
.'只会在**Status**参数返回值为**false**时返回该参数。',
'type' => 'string',
'example' => 'This external service cannot be deleted because it is still used by other data source.',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"Status\\": true,\\n \\"ErrorMessage\\": \\"This external service cannot be deleted because it is still used by other data source.\\"\\n}","type":"json"}]',
'title' => '删除实数数据服务',
],
'ModifyStreamingJob' => [
'summary' => '修改实时数据同步任务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'JobId',
'in' => 'query',
'schema' => [
'description' => '任务ID。',
'type' => 'integer',
'format' => 'int64',
'required' => true,
'example' => '1',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID',
'type' => 'string',
'required' => true,
'example' => 'ModifyStreamingJob',
],
],
[
'name' => 'JobDescription',
'in' => 'query',
'schema' => [
'description' => '任务描述。',
'type' => 'string',
'required' => false,
'example' => 'test-job',
],
],
[
'name' => 'SrcColumns',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '源端数据字段列表。',
'type' => 'array',
'items' => [
'description' => '源端数据字段键值。',
'type' => 'string',
'required' => false,
'example' => 'src_column_1',
],
'required' => false,
],
],
[
'name' => 'DestColumns',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '目标数据表映射字段列表。',
'type' => 'array',
'items' => [
'description' => '目标表里面的映射字段键值。',
'type' => 'string',
'required' => false,
'example' => 'dest_column_1',
],
'required' => false,
],
],
[
'name' => 'Account',
'in' => 'query',
'schema' => [
'description' => '账号名称。',
'type' => 'string',
'required' => false,
'example' => 'test-account',
],
],
[
'name' => 'Password',
'in' => 'query',
'schema' => [
'description' => '密码。',
'type' => 'string',
'required' => false,
'example' => 'pwd123',
],
],
[
'name' => 'DestDatabase',
'in' => 'query',
'schema' => [
'description' => '目标数据库名称。',
'type' => 'string',
'required' => false,
'example' => 'dest-db',
],
],
[
'name' => 'DestSchema',
'in' => 'query',
'schema' => [
'description' => '目标schema。',
'type' => 'string',
'required' => false,
'example' => 'dest-schema',
],
],
[
'name' => 'DestTable',
'in' => 'query',
'schema' => [
'description' => '目标表名称。',
'type' => 'string',
'required' => false,
'example' => 'dest-table',
],
],
[
'name' => 'WriteMode',
'in' => 'query',
'schema' => [
'description' => '写入模式。',
'type' => 'string',
'required' => false,
'enumValueTitles' => [
'MERGE' => 'MERGE',
'INSERT' => 'INSERT',
'UPDATE' => 'UPDATE',
],
'example' => 'INSERT/UPDATE/MERGE',
'enum' => [
'insert',
'update',
'merge',
],
],
],
[
'name' => 'TryRun',
'in' => 'query',
'schema' => [
'description' => '是否测试实时任务,取值:'."\n"
."\n"
.'- true'."\n"
.'- false'."\n"
."\n"
.'默认值:false。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
'default' => 'false',
],
],
[
'name' => 'JobConfig',
'in' => 'query',
'schema' => [
'description' => '任务配置文件,专业模式必填。',
'type' => 'string',
'required' => false,
'example' => 'DATABASE: adbpgss_test'."\n"
.'USER: adbpgss_test'."\n"
.'PASSWORD: adbpgssTest'."\n"
.'HOST: gp-xxx-master.gpdb.rds-aliyun-pre.rds.aliyuncs.com'."\n"
.'PORT: 5432'."\n"
.'KAFKA:'."\n"
.' INPUT:'."\n"
.' SOURCE:'."\n"
.' BROKERS: broker1:9092,broker2:9092,broker3:9092'."\n"
.' TOPIC: testtopic'."\n"
.' FALLBACK_OFFSET: earliest'."\n"
.' KEY:'."\n"
.' COLUMNS:'."\n"
.' - NAME: customer_id'."\n"
.' TYPE: int'."\n"
.' FORMAT: delimited'."\n"
.' DELIMITED_OPTION:'."\n"
.' DELIMITER: \'|\''."\n"
.' VALUE:'."\n"
.' COLUMNS:'."\n"
.' - TYPE: integer'."\n"
.' NAME: l_orderkey'."\n"
.' - TYPE: integer'."\n"
.' NAME: l_partkey'."\n"
.' - TYPE: integer'."\n"
.' NAME: l_suppkey'."\n"
.' - TYPE: integer'."\n"
.' NAME: l_linenumber'."\n"
.' - TYPE: decimal'."\n"
.' NAME: l_quantity'."\n"
.' - TYPE: decimal'."\n"
.' NAME: l_extendedprice'."\n"
.' - TYPE: decimal'."\n"
.' NAME: l_discount'."\n"
.' - TYPE: decimal'."\n"
.' NAME: l_tax'."\n"
.' - TYPE: char'."\n"
.' NAME: l_returnflag'."\n"
.' - TYPE: char'."\n"
.' NAME: l_linestatus'."\n"
.' - TYPE: date'."\n"
.' NAME: l_shipdate'."\n"
.' - TYPE: date'."\n"
.' NAME: l_commitdate'."\n"
.' - TYPE: date'."\n"
.' NAME: l_receiptdate'."\n"
.' - TYPE: text'."\n"
.' NAME: l_shipinstruct'."\n"
.' - TYPE: text'."\n"
.' NAME: l_shipmode'."\n"
.' - TYPE: text'."\n"
.' NAME: l_comment'."\n"
.' FORMAT: delimited'."\n"
.' DELIMITED_OPTION:'."\n"
.' DELIMITER: \'|\''."\n"
.' ERROR_LIMIT: 10'."\n"
.' OUTPUT:'."\n"
.' SCHEMA: adbpgss_test'."\n"
.' TABLE: write_with_insert_plaintext'."\n"
.' MODE: MERGE'."\n"
.' MATCH_COLUMNS:'."\n"
.' - l_orderkey'."\n"
.' - l_partkey'."\n"
.' - l_suppkey'."\n"
.' UPDATE_COLUMNS:'."\n"
.' - l_linenumber'."\n"
.' - l_quantity'."\n"
.' - l_extendedprice'."\n"
.' - l_discount'."\n"
.' - l_tax'."\n"
.' - l_returnflag'."\n"
.' - l_linestatus'."\n"
.' - l_shipdate'."\n"
.' - l_commitdate'."\n"
.' - l_receiptdate'."\n"
.' - l_shipinstruct'."\n"
.' - l_shipmode'."\n"
.' - l_comment'."\n"
.' MAPPING:'."\n"
.' - EXPRESSION: l_orderkey'."\n"
.' NAME: l_orderkey'."\n"
.' - EXPRESSION: l_partkey'."\n"
.' NAME: l_partkey'."\n"
.' - EXPRESSION: l_suppkey'."\n"
.' NAME: l_suppkey'."\n"
.' - EXPRESSION: l_linenumber'."\n"
.' NAME: l_linenumber'."\n"
.' - EXPRESSION: l_quantity'."\n"
.' NAME: l_quantity'."\n"
.' - EXPRESSION: l_extendedprice'."\n"
.' NAME: l_extendedprice'."\n"
.' - EXPRESSION: l_discount'."\n"
.' NAME: l_discount'."\n"
.' - EXPRESSION: l_tax'."\n"
.' NAME: l_tax'."\n"
.' - EXPRESSION: l_returnflag'."\n"
.' NAME: l_returnflag'."\n"
.' - EXPRESSION: l_linestatus'."\n"
.' NAME: l_linestatus'."\n"
.' - EXPRESSION: l_shipdate'."\n"
.' NAME: l_shipdate'."\n"
.' - EXPRESSION: l_commitdate'."\n"
.' NAME: l_commitdate'."\n"
.' - EXPRESSION: l_receiptdate'."\n"
.' NAME: l_receiptdate'."\n"
.' - EXPRESSION: l_shipinstruct'."\n"
.' NAME: l_shipinstruct'."\n"
.' - EXPRESSION: l_shipmode'."\n"
.' NAME: l_shipmode'."\n"
.' - EXPRESSION: l_comment'."\n"
.' NAME: l_comment'."\n"
.' COMMIT:'."\n"
.' MAX_ROW: 1000'."\n"
.' MINIMAL_INTERVAL: 1000'."\n"
.' CONSISTENCY: ATLEAST'."\n"
.' POLL:'."\n"
.' BATCHSIZE: 1000'."\n"
.' TIMEOUT: 1000'."\n"
.' PROPERTIES:'."\n"
.' group.id: testgroup',
],
],
[
'name' => 'GroupName',
'in' => 'query',
'schema' => [
'description' => 'kafka分组名称',
'type' => 'string',
'required' => false,
'example' => 'group_name',
],
],
[
'name' => 'FallbackOffset',
'in' => 'query',
'schema' => [
'description' => 'FallbackOffset 回退点位,回退偏移量'."\n"
."\n"
.'- FallbackOffset参数定义了当consumer没有请求需要消费的位点或者请求的消费的位点超出当前kafka集群的记录的位点信息的时候的行为。可以选择从earliest(最新)或者latest(最晚)位点开始消费。',
'type' => 'string',
'required' => false,
'enumValueTitles' => [
'EARLIEST' => 'EARLIEST',
'LATEST' => 'LATEST',
],
'example' => 'EARLIEST / LATEST',
'enum' => [
'earliest',
'latest',
],
],
],
[
'name' => 'Consistency',
'in' => 'query',
'schema' => [
'description' => '投递保证。',
'type' => 'string',
'required' => false,
'example' => 'ATLEAST / EXACTLY',
'enum' => [
'ATLEAST',
'EXACTLY',
],
],
],
[
'name' => 'ErrorLimitCount',
'in' => 'query',
'schema' => [
'description' => 'kafka中的数据与adbpg目标表不匹配造时会造成写入失败,此值为允许错误行的行数,超出后会造成任务失败。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '5',
],
],
[
'name' => 'MatchColumns',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '匹配列,通常为目标表的所有主键列,此配置内所有列的值相同即视为两行数据为重复数据。',
'type' => 'array',
'items' => [
'description' => '匹配字段键值。',
'type' => 'string',
'required' => false,
'example' => 'column_1',
],
'required' => false,
],
],
[
'name' => 'UpdateColumns',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '更新列,通常为目标表的所有非主键列,当通过MatchColumns确定数据重复时,通过更新UpdateColumns列的值,产生使新数据覆盖旧数据的效果。',
'type' => 'array',
'items' => [
'description' => '更新字段键值。',
'type' => 'string',
'required' => false,
'example' => 'column_1',
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","type":"json"}]',
'title' => '修改实时数据同步任务',
],
'DescribeStreamingJob' => [
'summary' => '查询实时数据同步服务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbO4XFZ3',
'FEATUREgpdbGXMEN1',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'JobId',
'in' => 'query',
'schema' => [
'description' => '任务ID。',
'type' => 'integer',
'format' => 'int32',
'required' => true,
'example' => '1',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'JobId' => [
'description' => '任务ID。',
'type' => 'string',
'example' => '1',
],
'JobName' => [
'description' => '任务名称。',
'type' => 'string',
'example' => 'test-job',
],
'JobDescription' => [
'description' => '任务描述。',
'type' => 'string',
'example' => 'test_job',
],
'DataSourceId' => [
'description' => '数据源ID。',
'type' => 'string',
'example' => '2',
],
'SrcColumns' => [
'description' => '源端字段列表。',
'type' => 'array',
'items' => [
'description' => '源端数据字段键值。',
'type' => 'string',
'example' => 'src_column_1',
],
],
'DestColumns' => [
'description' => '目标数据表映射字段列表。',
'type' => 'array',
'items' => [
'description' => '目标表里面的映射字段键值。',
'type' => 'string',
'example' => 'dest_column_1',
],
],
'MatchColumns' => [
'description' => '匹配列,通常为目标表的所有主键列,此配置内所有列的值相同即视为两行数据为重复数据。',
'type' => 'array',
'items' => [
'description' => '匹配字段键值。',
'type' => 'string',
'example' => 'column_1',
],
],
'UpdateColumns' => [
'description' => '更新列,通常为目标表的所有非主键列,当通过MatchColumns确定数据重复时,通过更新UpdateColumns列的值,产生使新数据覆盖旧数据的效果。',
'type' => 'array',
'items' => [
'description' => '更新字段键值。',
'type' => 'string',
'example' => 'column_1',
],
],
'Account' => [
'description' => '目标数据库账号。',
'type' => 'string',
'example' => 'test-account',
],
'Password' => [
'description' => '目标数据库密码。',
'type' => 'string',
'example' => 'pwd123',
],
'DestDatabase' => [
'description' => '目标数据库名称。',
'type' => 'string',
'example' => 'dest-db',
],
'DestSchema' => [
'description' => '目标命名空间。',
'type' => 'string',
'example' => 'dest-schema',
],
'DestTable' => [
'description' => '目标表名称。',
'type' => 'string',
'example' => 'dest-table',
],
'WriteMode' => [
'description' => '写入模式。',
'type' => 'string',
'example' => 'INSERT/UPDATE/MERGE',
],
'Mode' => [
'description' => '配置模式'."\n"
.'1. basic模式需要指定一些配置字段'."\n"
.'1. professional支持提交yaml文件',
'type' => 'string',
'example' => 'basic/professional',
],
'JobConfig' => [
'description' => '任务配置文件。',
'type' => 'string',
'example' => 'DATABASE: adbpgss_test'."\n"
.'USER: adbpgss_test'."\n"
.'PASSWORD: adbpgssTest'."\n"
.'HOST: gp-xxx-master.gpdb.rds-aliyun-pre.rds.aliyuncs.com'."\n"
.'PORT: 5432'."\n"
.'KAFKA:'."\n"
.' INPUT:'."\n"
.' SOURCE:'."\n"
.' BROKERS: broker1:9092,broker2:9092,broker3:9092'."\n"
.' TOPIC: testtopic'."\n"
.' FALLBACK_OFFSET: earliest'."\n"
.' KEY:'."\n"
.' COLUMNS:'."\n"
.' - NAME: customer_id'."\n"
.' TYPE: int'."\n"
.' FORMAT: delimited'."\n"
.' DELIMITED_OPTION:'."\n"
.' DELIMITER: \'|\''."\n"
.' VALUE:'."\n"
.' COLUMNS:'."\n"
.' - TYPE: integer'."\n"
.' NAME: l_orderkey'."\n"
.' - TYPE: integer'."\n"
.' NAME: l_partkey'."\n"
.' - TYPE: integer'."\n"
.' NAME: l_suppkey'."\n"
.' - TYPE: integer'."\n"
.' NAME: l_linenumber'."\n"
.' - TYPE: decimal'."\n"
.' NAME: l_quantity'."\n"
.' - TYPE: decimal'."\n"
.' NAME: l_extendedprice'."\n"
.' - TYPE: decimal'."\n"
.' NAME: l_discount'."\n"
.' - TYPE: decimal'."\n"
.' NAME: l_tax'."\n"
.' - TYPE: char'."\n"
.' NAME: l_returnflag'."\n"
.' - TYPE: char'."\n"
.' NAME: l_linestatus'."\n"
.' - TYPE: date'."\n"
.' NAME: l_shipdate'."\n"
.' - TYPE: date'."\n"
.' NAME: l_commitdate'."\n"
.' - TYPE: date'."\n"
.' NAME: l_receiptdate'."\n"
.' - TYPE: text'."\n"
.' NAME: l_shipinstruct'."\n"
.' - TYPE: text'."\n"
.' NAME: l_shipmode'."\n"
.' - TYPE: text'."\n"
.' NAME: l_comment'."\n"
.' FORMAT: delimited'."\n"
.' DELIMITED_OPTION:'."\n"
.' DELIMITER: \'|\''."\n"
.' ERROR_LIMIT: 10'."\n"
.' OUTPUT:'."\n"
.' SCHEMA: adbpgss_test'."\n"
.' TABLE: write_with_insert_plaintext'."\n"
.' MODE: MERGE'."\n"
.' MATCH_COLUMNS:'."\n"
.' - l_orderkey'."\n"
.' - l_partkey'."\n"
.' - l_suppkey'."\n"
.' UPDATE_COLUMNS:'."\n"
.' - l_linenumber'."\n"
.' - l_quantity'."\n"
.' - l_extendedprice'."\n"
.' - l_discount'."\n"
.' - l_tax'."\n"
.' - l_returnflag'."\n"
.' - l_linestatus'."\n"
.' - l_shipdate'."\n"
.' - l_commitdate'."\n"
.' - l_receiptdate'."\n"
.' - l_shipinstruct'."\n"
.' - l_shipmode'."\n"
.' - l_comment'."\n"
.' MAPPING:'."\n"
.' - EXPRESSION: l_orderkey'."\n"
.' NAME: l_orderkey'."\n"
.' - EXPRESSION: l_partkey'."\n"
.' NAME: l_partkey'."\n"
.' - EXPRESSION: l_suppkey'."\n"
.' NAME: l_suppkey'."\n"
.' - EXPRESSION: l_linenumber'."\n"
.' NAME: l_linenumber'."\n"
.' - EXPRESSION: l_quantity'."\n"
.' NAME: l_quantity'."\n"
.' - EXPRESSION: l_extendedprice'."\n"
.' NAME: l_extendedprice'."\n"
.' - EXPRESSION: l_discount'."\n"
.' NAME: l_discount'."\n"
.' - EXPRESSION: l_tax'."\n"
.' NAME: l_tax'."\n"
.' - EXPRESSION: l_returnflag'."\n"
.' NAME: l_returnflag'."\n"
.' - EXPRESSION: l_linestatus'."\n"
.' NAME: l_linestatus'."\n"
.' - EXPRESSION: l_shipdate'."\n"
.' NAME: l_shipdate'."\n"
.' - EXPRESSION: l_commitdate'."\n"
.' NAME: l_commitdate'."\n"
.' - EXPRESSION: l_receiptdate'."\n"
.' NAME: l_receiptdate'."\n"
.' - EXPRESSION: l_shipinstruct'."\n"
.' NAME: l_shipinstruct'."\n"
.' - EXPRESSION: l_shipmode'."\n"
.' NAME: l_shipmode'."\n"
.' - EXPRESSION: l_comment'."\n"
.' NAME: l_comment'."\n"
.' COMMIT:'."\n"
.' MAX_ROW: 1000'."\n"
.' MINIMAL_INTERVAL: 1000'."\n"
.' CONSISTENCY: ATLEAST'."\n"
.' POLL:'."\n"
.' BATCHSIZE: 1000'."\n"
.' TIMEOUT: 1000'."\n"
.' PROPERTIES:'."\n"
.' group.id: testgroup',
],
'Status' => [
'description' => '服务状态,取值:'."\n"
."\n"
.'- Init:初始化中'."\n"
."\n"
.'- Running:运行中'."\n"
."\n"
.'- Exception:异常'."\n"
."\n"
.'- Paused:暂停',
'type' => 'string',
'example' => 'Running',
],
'ErrorMessage' => [
'description' => '服务状态信息,例如异常情况,则显示异常原因。正常Running状态下空值。',
'type' => 'string',
'example' => '""',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'format' => 'iso8601_normal',
'example' => '2019-09-08T16:00:00Z',
],
'ModifyTime' => [
'description' => '最后修改时间。',
'type' => 'string',
'format' => 'iso8601_normal',
'example' => '2019-09-08T17:00:00Z',
],
'GroupName' => [
'description' => 'kafka分组名称',
'type' => 'string',
'example' => 'test_group',
],
'Consistency' => [
'description' => '投递保证。',
'type' => 'string',
'example' => 'ATLEAST / EXACTLY',
],
'ErrorLimitCount' => [
'description' => 'kafka中的数据与adbpg目标表不匹配造时会造成写入失败,此值为允许错误行的行数,超出后会造成任务失败。',
'type' => 'integer',
'format' => 'int32',
'example' => '5',
],
'FallbackOffset' => [
'description' => 'FallbackOffset 回退点位,回退偏移量'."\n"
."\n"
.'- FallbackOffset参数定义了当consumer没有请求需要消费的位点或者请求的消费的位点超出当前kafka集群的记录的位点信息的时候的行为。可以选择从earliest(最新)或者latest(最晚)位点开始消费。',
'type' => 'string',
'example' => 'EARLIEST / LATEST',
],
'DataSourceName' => [
'description' => '数据源名称。',
'type' => 'string',
'example' => 'test_kafka',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"JobId\\": \\"1\\",\\n \\"JobName\\": \\"test-job\\",\\n \\"JobDescription\\": \\"test_job\\",\\n \\"DataSourceId\\": \\"2\\",\\n \\"SrcColumns\\": [\\n \\"src_column_1\\"\\n ],\\n \\"DestColumns\\": [\\n \\"dest_column_1\\"\\n ],\\n \\"MatchColumns\\": [\\n \\"column_1\\"\\n ],\\n \\"UpdateColumns\\": [\\n \\"column_1\\"\\n ],\\n \\"Account\\": \\"test-account\\",\\n \\"Password\\": \\"pwd123\\",\\n \\"DestDatabase\\": \\"dest-db\\",\\n \\"DestSchema\\": \\"dest-schema\\",\\n \\"DestTable\\": \\"dest-table\\",\\n \\"WriteMode\\": \\"INSERT/UPDATE/MERGE\\",\\n \\"Mode\\": \\"basic/professional\\",\\n \\"JobConfig\\": \\"DATABASE: adbpgss_test\\\\nUSER: adbpgss_test\\\\nPASSWORD: adbpgssTest\\\\nHOST: gp-xxx-master.gpdb.rds-aliyun-pre.rds.aliyuncs.com\\\\nPORT: 5432\\\\nKAFKA:\\\\n INPUT:\\\\n SOURCE:\\\\n BROKERS: broker1:9092,broker2:9092,broker3:9092\\\\n TOPIC: testtopic\\\\n FALLBACK_OFFSET: earliest\\\\n KEY:\\\\n COLUMNS:\\\\n - NAME: customer_id\\\\n TYPE: int\\\\n FORMAT: delimited\\\\n DELIMITED_OPTION:\\\\n DELIMITER: \'|\'\\\\n VALUE:\\\\n COLUMNS:\\\\n - TYPE: integer\\\\n NAME: l_orderkey\\\\n - TYPE: integer\\\\n NAME: l_partkey\\\\n - TYPE: integer\\\\n NAME: l_suppkey\\\\n - TYPE: integer\\\\n NAME: l_linenumber\\\\n - TYPE: decimal\\\\n NAME: l_quantity\\\\n - TYPE: decimal\\\\n NAME: l_extendedprice\\\\n - TYPE: decimal\\\\n NAME: l_discount\\\\n - TYPE: decimal\\\\n NAME: l_tax\\\\n - TYPE: char\\\\n NAME: l_returnflag\\\\n - TYPE: char\\\\n NAME: l_linestatus\\\\n - TYPE: date\\\\n NAME: l_shipdate\\\\n - TYPE: date\\\\n NAME: l_commitdate\\\\n - TYPE: date\\\\n NAME: l_receiptdate\\\\n - TYPE: text\\\\n NAME: l_shipinstruct\\\\n - TYPE: text\\\\n NAME: l_shipmode\\\\n - TYPE: text\\\\n NAME: l_comment\\\\n FORMAT: delimited\\\\n DELIMITED_OPTION:\\\\n DELIMITER: \'|\'\\\\n ERROR_LIMIT: 10\\\\n OUTPUT:\\\\n SCHEMA: adbpgss_test\\\\n TABLE: write_with_insert_plaintext\\\\n MODE: MERGE\\\\n MATCH_COLUMNS:\\\\n - l_orderkey\\\\n - l_partkey\\\\n - l_suppkey\\\\n UPDATE_COLUMNS:\\\\n - l_linenumber\\\\n - l_quantity\\\\n - l_extendedprice\\\\n - l_discount\\\\n - l_tax\\\\n - l_returnflag\\\\n - l_linestatus\\\\n - l_shipdate\\\\n - l_commitdate\\\\n - l_receiptdate\\\\n - l_shipinstruct\\\\n - l_shipmode\\\\n - l_comment\\\\n MAPPING:\\\\n - EXPRESSION: l_orderkey\\\\n NAME: l_orderkey\\\\n - EXPRESSION: l_partkey\\\\n NAME: l_partkey\\\\n - EXPRESSION: l_suppkey\\\\n NAME: l_suppkey\\\\n - EXPRESSION: l_linenumber\\\\n NAME: l_linenumber\\\\n - EXPRESSION: l_quantity\\\\n NAME: l_quantity\\\\n - EXPRESSION: l_extendedprice\\\\n NAME: l_extendedprice\\\\n - EXPRESSION: l_discount\\\\n NAME: l_discount\\\\n - EXPRESSION: l_tax\\\\n NAME: l_tax\\\\n - EXPRESSION: l_returnflag\\\\n NAME: l_returnflag\\\\n - EXPRESSION: l_linestatus\\\\n NAME: l_linestatus\\\\n - EXPRESSION: l_shipdate\\\\n NAME: l_shipdate\\\\n - EXPRESSION: l_commitdate\\\\n NAME: l_commitdate\\\\n - EXPRESSION: l_receiptdate\\\\n NAME: l_receiptdate\\\\n - EXPRESSION: l_shipinstruct\\\\n NAME: l_shipinstruct\\\\n - EXPRESSION: l_shipmode\\\\n NAME: l_shipmode\\\\n - EXPRESSION: l_comment\\\\n NAME: l_comment\\\\n COMMIT:\\\\n MAX_ROW: 1000\\\\n MINIMAL_INTERVAL: 1000\\\\n CONSISTENCY: ATLEAST\\\\n POLL:\\\\n BATCHSIZE: 1000\\\\n TIMEOUT: 1000\\\\n PROPERTIES:\\\\n group.id: testgroup\\",\\n \\"Status\\": \\"Running\\",\\n \\"ErrorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"CreateTime\\": \\"2019-09-08T16:00:00Z\\",\\n \\"ModifyTime\\": \\"2019-09-08T17:00:00Z\\",\\n \\"GroupName\\": \\"test_group\\",\\n \\"Consistency\\": \\"ATLEAST / EXACTLY\\",\\n \\"ErrorLimitCount\\": 5,\\n \\"FallbackOffset\\": \\"EARLIEST / LATEST\\",\\n \\"DataSourceName\\": \\"test_kafka\\"\\n}","type":"json"}]',
'title' => '查询实时数据同步任务',
],
'CreateStreamingJob' => [
'summary' => '创建实时数据同步任务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => '数据源ID。',
'type' => 'string',
'required' => true,
'example' => '1',
],
],
[
'name' => 'JobDescription',
'in' => 'query',
'schema' => [
'description' => '任务描述。',
'type' => 'string',
'required' => false,
'example' => 'test-job',
],
],
[
'name' => 'JobName',
'in' => 'query',
'schema' => [
'description' => '任务名称。',
'type' => 'string',
'required' => true,
'example' => 'test-job',
],
],
[
'name' => 'Mode',
'in' => 'query',
'schema' => [
'description' => '配置模式'."\n"
.'1. basic模式需要指定一些配置字段'."\n"
.'1. professional支持提交yaml文件',
'type' => 'string',
'required' => false,
'enumValueTitles' => [],
'example' => 'basic / professional',
'enum' => [
'basic',
'professional',
],
],
],
[
'name' => 'SrcColumns',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '源端数据字段列表。',
'type' => 'array',
'items' => [
'description' => '源端数据字段键值。',
'type' => 'string',
'required' => false,
'example' => 'src_column_1',
],
'required' => false,
],
],
[
'name' => 'DestColumns',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '目标数据表映射字段列表。',
'type' => 'array',
'items' => [
'description' => '目标表里面的映射字段键值。',
'type' => 'string',
'required' => false,
'example' => 'dest_column_1',
],
'required' => false,
],
],
[
'name' => 'Account',
'in' => 'query',
'schema' => [
'description' => '目标数据库账号。',
'type' => 'string',
'required' => false,
'example' => 'test-account',
],
],
[
'name' => 'Password',
'in' => 'query',
'schema' => [
'description' => '目标数据库密码。',
'type' => 'string',
'required' => false,
'example' => 'pwd123',
],
],
[
'name' => 'DestDatabase',
'in' => 'query',
'schema' => [
'description' => '目标数据库名称。',
'type' => 'string',
'required' => false,
'example' => 'dest-db',
],
],
[
'name' => 'DestSchema',
'in' => 'query',
'schema' => [
'description' => '目标命名空间。',
'type' => 'string',
'required' => false,
'example' => 'dest-schema',
],
],
[
'name' => 'DestTable',
'in' => 'query',
'schema' => [
'description' => '目标表名称。',
'type' => 'string',
'required' => false,
'example' => 'dest-table',
],
],
[
'name' => 'WriteMode',
'in' => 'query',
'schema' => [
'description' => '写入模式。',
'type' => 'string',
'required' => false,
'enumValueTitles' => [
'MERGE' => 'MERGE',
'INSERT' => 'INSERT',
'UPDATE' => 'UPDATE',
],
'example' => 'INSERT/UPDATE/MERGE',
'enum' => [
'insert',
'update',
'merge',
],
],
],
[
'name' => 'TryRun',
'in' => 'query',
'schema' => [
'description' => '是否测试实时任务,取值:'."\n"
."\n"
.'- true'."\n"
."\n"
.'- false'."\n"
."\n"
.'默认值:false。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
'default' => 'false',
],
],
[
'name' => 'JobConfig',
'in' => 'query',
'schema' => [
'description' => '任务配置文件,专业模式必填。',
'type' => 'string',
'required' => false,
'example' => 'DATABASE: adbpgss_test'."\n"
.'USER: adbpgss_test'."\n"
.'PASSWORD: adbpgssTest'."\n"
.'HOST: gp-xxx-master.gpdb.rds-aliyun-pre.rds.aliyuncs.com'."\n"
.'PORT: 5432'."\n"
.'KAFKA:'."\n"
.' INPUT:'."\n"
.' SOURCE:'."\n"
.' BROKERS: broker1:9092,broker2:9092,broker3:9092'."\n"
.' TOPIC: testtopic'."\n"
.' FALLBACK_OFFSET: earliest'."\n"
.' KEY:'."\n"
.' COLUMNS:'."\n"
.' - NAME: customer_id'."\n"
.' TYPE: int'."\n"
.' FORMAT: delimited'."\n"
.' DELIMITED_OPTION:'."\n"
.' DELIMITER: \'|\''."\n"
.' VALUE:'."\n"
.' COLUMNS:'."\n"
.' - TYPE: integer'."\n"
.' NAME: l_orderkey'."\n"
.' - TYPE: integer'."\n"
.' NAME: l_partkey'."\n"
.' - TYPE: integer'."\n"
.' NAME: l_suppkey'."\n"
.' - TYPE: integer'."\n"
.' NAME: l_linenumber'."\n"
.' - TYPE: decimal'."\n"
.' NAME: l_quantity'."\n"
.' - TYPE: decimal'."\n"
.' NAME: l_extendedprice'."\n"
.' - TYPE: decimal'."\n"
.' NAME: l_discount'."\n"
.' - TYPE: decimal'."\n"
.' NAME: l_tax'."\n"
.' - TYPE: char'."\n"
.' NAME: l_returnflag'."\n"
.' - TYPE: char'."\n"
.' NAME: l_linestatus'."\n"
.' - TYPE: date'."\n"
.' NAME: l_shipdate'."\n"
.' - TYPE: date'."\n"
.' NAME: l_commitdate'."\n"
.' - TYPE: date'."\n"
.' NAME: l_receiptdate'."\n"
.' - TYPE: text'."\n"
.' NAME: l_shipinstruct'."\n"
.' - TYPE: text'."\n"
.' NAME: l_shipmode'."\n"
.' - TYPE: text'."\n"
.' NAME: l_comment'."\n"
.' FORMAT: delimited'."\n"
.' DELIMITED_OPTION:'."\n"
.' DELIMITER: \'|\''."\n"
.' ERROR_LIMIT: 10'."\n"
.' OUTPUT:'."\n"
.' SCHEMA: adbpgss_test'."\n"
.' TABLE: write_with_insert_plaintext'."\n"
.' MODE: MERGE'."\n"
.' MATCH_COLUMNS:'."\n"
.' - l_orderkey'."\n"
.' - l_partkey'."\n"
.' - l_suppkey'."\n"
.' UPDATE_COLUMNS:'."\n"
.' - l_linenumber'."\n"
.' - l_quantity'."\n"
.' - l_extendedprice'."\n"
.' - l_discount'."\n"
.' - l_tax'."\n"
.' - l_returnflag'."\n"
.' - l_linestatus'."\n"
.' - l_shipdate'."\n"
.' - l_commitdate'."\n"
.' - l_receiptdate'."\n"
.' - l_shipinstruct'."\n"
.' - l_shipmode'."\n"
.' - l_comment'."\n"
.' MAPPING:'."\n"
.' - EXPRESSION: l_orderkey'."\n"
.' NAME: l_orderkey'."\n"
.' - EXPRESSION: l_partkey'."\n"
.' NAME: l_partkey'."\n"
.' - EXPRESSION: l_suppkey'."\n"
.' NAME: l_suppkey'."\n"
.' - EXPRESSION: l_linenumber'."\n"
.' NAME: l_linenumber'."\n"
.' - EXPRESSION: l_quantity'."\n"
.' NAME: l_quantity'."\n"
.' - EXPRESSION: l_extendedprice'."\n"
.' NAME: l_extendedprice'."\n"
.' - EXPRESSION: l_discount'."\n"
.' NAME: l_discount'."\n"
.' - EXPRESSION: l_tax'."\n"
.' NAME: l_tax'."\n"
.' - EXPRESSION: l_returnflag'."\n"
.' NAME: l_returnflag'."\n"
.' - EXPRESSION: l_linestatus'."\n"
.' NAME: l_linestatus'."\n"
.' - EXPRESSION: l_shipdate'."\n"
.' NAME: l_shipdate'."\n"
.' - EXPRESSION: l_commitdate'."\n"
.' NAME: l_commitdate'."\n"
.' - EXPRESSION: l_receiptdate'."\n"
.' NAME: l_receiptdate'."\n"
.' - EXPRESSION: l_shipinstruct'."\n"
.' NAME: l_shipinstruct'."\n"
.' - EXPRESSION: l_shipmode'."\n"
.' NAME: l_shipmode'."\n"
.' - EXPRESSION: l_comment'."\n"
.' NAME: l_comment'."\n"
.' COMMIT:'."\n"
.' MAX_ROW: 1000'."\n"
.' MINIMAL_INTERVAL: 1000'."\n"
.' CONSISTENCY: ATLEAST'."\n"
.' POLL:'."\n"
.' BATCHSIZE: 1000'."\n"
.' TIMEOUT: 1000'."\n"
.' PROPERTIES:'."\n"
.' group.id: testgroup'."\n",
],
],
[
'name' => 'GroupName',
'in' => 'query',
'schema' => [
'description' => 'kafka分组名称',
'type' => 'string',
'required' => false,
'example' => 'group_name。',
],
],
[
'name' => 'FallbackOffset',
'in' => 'query',
'schema' => [
'description' => 'FallbackOffset 回退点位,回退偏移量'."\n"
."\n"
.'- FallbackOffset参数定义了当consumer没有请求需要消费的位点或者请求的消费的位点超出当前kafka集群的记录的位点信息的时候的行为。可以选择从earliest(最新)或者latest(最晚)位点开始消费。',
'type' => 'string',
'required' => false,
'enumValueTitles' => [
'EARLIEST' => 'EARLIEST',
'LATEST' => 'LATEST',
],
'example' => 'EARLIEST / LATEST',
'enum' => [
'earliest',
'latest',
],
],
],
[
'name' => 'MatchColumns',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '匹配列,通常为目标表的所有主键列,此配置内所有列的值相同即视为两行数据为重复数据。',
'type' => 'array',
'items' => [
'description' => '匹配字段键值。',
'type' => 'string',
'required' => false,
'example' => 'column_1',
],
'required' => false,
],
],
[
'name' => 'UpdateColumns',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '更新列,通常为目标表的所有非主键列,当通过MatchColumns确定数据重复时,通过更新UpdateColumns列的值,产生使新数据覆盖旧数据的效果。',
'type' => 'array',
'items' => [
'description' => '更新字段键值。',
'type' => 'string',
'required' => false,
'example' => 'column_1',
],
'required' => false,
],
],
[
'name' => 'ErrorLimitCount',
'in' => 'query',
'schema' => [
'description' => 'kafka中的数据与adbpg目标表不匹配造时会造成写入失败,此值为允许错误行的行数,超出后会造成任务失败。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '5',
],
],
[
'name' => 'Consistency',
'in' => 'query',
'schema' => [
'description' => '投递保证。',
'type' => 'string',
'required' => false,
'example' => 'ATLEAST / EXACTLY',
'enum' => [
'ATLEAST',
'EXACTLY',
],
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'JobId' => [
'description' => '任务ID。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"JobId\\": 1,\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","type":"json"}]',
'title' => '创建实时数据同步任务',
],
'DeleteStreamingJob' => [
'summary' => '删除实时数据同步任务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
'FEATUREgpdbO4XFZ3',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'JobId',
'in' => 'query',
'schema' => [
'description' => '任务ID。',
'type' => 'integer',
'format' => 'int32',
'required' => true,
'example' => '1',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","type":"json"}]',
'title' => '删除实时数据同步任务',
],
'ListStreamingJobs' => [
'summary' => '查询所有实时数据同步任务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
'FEATUREgpdbO4XFZ3',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:30。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => 'kafka',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:1。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'PageNumber' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageRecordCount' => [
'description' => '当前页记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '2',
],
'TotalRecordCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '2',
],
'JobItems' => [
'description' => '返回的任务列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'JobId' => [
'description' => '任务ID。',
'type' => 'string',
'example' => '1',
],
'JobName' => [
'description' => '任务名称。',
'type' => 'string',
'example' => 'test-job',
],
'DataSourceId' => [
'description' => '数据源ID。',
'type' => 'string',
'example' => '58',
],
'JobDescription' => [
'description' => '任务描述。',
'type' => 'string',
'example' => 'test job',
],
'SrcColumns' => [
'description' => '源端数据字段列表。',
'type' => 'array',
'items' => [
'description' => '源端数据字段键值。',
'type' => 'string',
'example' => 'src_column_1',
],
],
'DestColumns' => [
'description' => '目标数据表映射字段列表。',
'type' => 'array',
'items' => [
'description' => '目标表里面的映射字段键值。',
'type' => 'string',
'example' => 'dest_column_1',
],
],
'MatchColumns' => [
'description' => '匹配列,通常为目标表的所有主键列,此配置内所有列的值相同即视为两行数据为重复数据。',
'type' => 'array',
'items' => [
'description' => '匹配字段键值。',
'type' => 'string',
'example' => 'column_1',
],
],
'UpdateColumns' => [
'description' => '更新列,通常为目标表的所有非主键列,当通过MatchColumns确定数据重复时,通过更新UpdateColumns列的值,产生使新数据覆盖旧数据的效果。',
'type' => 'array',
'items' => [
'description' => '更新字段键值。',
'type' => 'string',
'example' => 'column_1',
],
],
'Account' => [
'description' => '账号名称。',
'type' => 'string',
'example' => 'test-account',
],
'Password' => [
'description' => '密码。',
'type' => 'string',
'example' => 'pwd123',
],
'DestDatabase' => [
'description' => '目标数据库名称。',
'type' => 'string',
'example' => 'dest-db',
],
'DestSchema' => [
'description' => '目标命名空间。',
'type' => 'string',
'example' => 'dest-schema',
],
'DestTable' => [
'description' => '目标表名称。',
'type' => 'string',
'example' => 'dest-table',
],
'WriteMode' => [
'description' => '写入模式。',
'type' => 'string',
'example' => 'INSERT/UPDATE/MERGE',
],
'Mode' => [
'description' => '配置模式'."\n"
.'1. basic模式需要指定一些配置字段'."\n"
.'1. professional支持提交yaml文件',
'type' => 'string',
'example' => 'basic / professional',
],
'ErrorMessage' => [
'description' => '错误信息。'."\n"
."\n"
.'只会在**Status**参数返回值为**false**时返回该参数。',
'type' => 'string',
'example' => '""',
],
'Status' => [
'description' => '服务状态,取值:'."\n"
."\n"
.'- Init:初始化中'."\n"
."\n"
.'- Running:运行中'."\n"
."\n"
.'- Exception:异常'."\n"
."\n"
.'- Paused:暂停',
'type' => 'string',
'example' => 'Running',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2019-09-08T16:00:00Z',
],
'ModifyTime' => [
'description' => '最后修改时间。',
'type' => 'string',
'example' => '2019-09-08T17:00:00Z',
],
'FallbackOffset' => [
'description' => 'FallbackOffset 回退点位,回退偏移量'."\n"
."\n"
.'- FallbackOffset参数定义了当consumer没有请求需要消费的位点或者请求的消费的位点超出当前kafka集群的记录的位点信息的时候的行为。可以选择从earliest(最新)或者latest(最晚)位点开始消费。',
'type' => 'string',
'example' => 'EARLIEST / LATEST',
],
'Consistency' => [
'description' => '投递保证。',
'type' => 'string',
'example' => 'ATLEAST / EXACTLY',
],
'DataSourceName' => [
'description' => '数据源名称。',
'type' => 'string',
'example' => 'test-kafka',
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"PageNumber\\": 1,\\n \\"PageRecordCount\\": 2,\\n \\"TotalRecordCount\\": 2,\\n \\"JobItems\\": [\\n {\\n \\"JobId\\": \\"1\\",\\n \\"JobName\\": \\"test-job\\",\\n \\"DataSourceId\\": \\"58\\",\\n \\"JobDescription\\": \\"test job\\",\\n \\"SrcColumns\\": [\\n \\"src_column_1\\"\\n ],\\n \\"DestColumns\\": [\\n \\"dest_column_1\\"\\n ],\\n \\"MatchColumns\\": [\\n \\"column_1\\"\\n ],\\n \\"UpdateColumns\\": [\\n \\"column_1\\"\\n ],\\n \\"Account\\": \\"test-account\\",\\n \\"Password\\": \\"pwd123\\",\\n \\"DestDatabase\\": \\"dest-db\\",\\n \\"DestSchema\\": \\"dest-schema\\",\\n \\"DestTable\\": \\"dest-table\\",\\n \\"WriteMode\\": \\"INSERT/UPDATE/MERGE\\",\\n \\"Mode\\": \\"basic / professional\\",\\n \\"ErrorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Status\\": \\"Running\\",\\n \\"CreateTime\\": \\"2019-09-08T16:00:00Z\\",\\n \\"ModifyTime\\": \\"2019-09-08T17:00:00Z\\",\\n \\"FallbackOffset\\": \\"EARLIEST / LATEST\\",\\n \\"Consistency\\": \\"ATLEAST / EXACTLY\\",\\n \\"DataSourceName\\": \\"test-kafka\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => '查询所有实时数据同步任务',
],
'ListDatabaseExtensions' => [
'summary' => '列举出实例中安装的所有插件。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '239997',
'abilityTreeNodes' => [
'FEATUREgpdbQ0N7UN',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'DatabaseName',
'in' => 'query',
'schema' => [
'description' => '数据库名称,限制如下:'."\n"
.'- 只能包含字母,数字和下划线。'."\n"
.'- 必须以字母开头。'."\n"
.'- 长度不能超过63个字符.',
'type' => 'string',
'required' => true,
'example' => 'test01',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Extensions' => [
'description' => '插件列表。',
'type' => 'array',
'items' => [
'description' => '插件。',
'type' => 'object',
'properties' => [
'ExtensionName' => [
'description' => '插件名称。',
'type' => 'string',
'example' => 'zhparser',
],
'Status' => [
'description' => '插件状态。',
'type' => 'string',
'example' => 'installed',
],
'Description' => [
'description' => '插件描述。',
'type' => 'string',
'example' => 'zhparser',
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Extensions\\": [\\n {\\n \\"ExtensionName\\": \\"zhparser\\",\\n \\"Status\\": \\"installed\\",\\n \\"Description\\": \\"zhparser\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => '列举实例插件',
],
'DescribeExtension' => [
'summary' => '该API用于描述插件信息。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '239995',
'abilityTreeNodes' => [
'FEATUREgpdbQ0N7UN',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'DatabaseName',
'in' => 'query',
'schema' => [
'description' => '数据库名称。'."\n"
."\n"
.'- 只能包含字母,数字和下划线。'."\n"
."\n"
.'- 必须以字母开头。'."\n"
."\n"
.'- 长度不能超过63 个字符。',
'type' => 'string',
'required' => true,
'example' => 'test01',
],
],
[
'name' => 'ExtensionName',
'in' => 'query',
'schema' => [
'description' => '插件名称。',
'type' => 'string',
'required' => true,
'example' => 'zhparser',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'ExtensionName' => [
'description' => '插件名称。',
'type' => 'string',
'example' => 'zhparser',
],
'Status' => [
'description' => '插件状态。',
'type' => 'string',
'example' => 'installed',
],
'Description' => [
'description' => '插件描述。',
'type' => 'string',
'example' => 'zhparser',
],
'ExtensionId' => [
'description' => '插件ID。',
'type' => 'string',
'example' => '37',
],
'CurrentVersion' => [
'description' => '当前版本。',
'type' => 'string',
'example' => '2.1',
],
'LatestVersion' => [
'description' => '最新版本。',
'type' => 'string',
'example' => '2.1',
],
'IsInstallNeedRestart' => [
'description' => '插件安装是否需要重启实例。',
'type' => 'boolean',
'example' => 'False',
],
'IsLatestVersion' => [
'description' => '是否为最新版本插件。',
'type' => 'boolean',
'example' => 'True',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"ExtensionName\\": \\"zhparser\\",\\n \\"Status\\": \\"installed\\",\\n \\"Description\\": \\"zhparser\\",\\n \\"ExtensionId\\": \\"37\\",\\n \\"CurrentVersion\\": \\"2.1\\",\\n \\"LatestVersion\\": \\"2.1\\",\\n \\"IsInstallNeedRestart\\": true,\\n \\"IsLatestVersion\\": true\\n}","type":"json"}]',
'title' => '描述插件信息',
],
'UpgradeExtensions' => [
'summary' => '插件升级。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '214907',
'abilityTreeNodes' => [
'FEATUREgpdbQ0N7UN',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'>您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Extensions',
'in' => 'query',
'schema' => [
'description' => '需要升级的插件,多个插件间使用英文逗号(,)分隔。',
'type' => 'string',
'required' => true,
'example' => 'citext,dblink',
],
],
[
'name' => 'DatabaseName',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => false,
'example' => 'test01',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '插件升级',
],
'ListInstanceExtensions' => [
'summary' => '获取插件列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '214901',
'abilityTreeNodes' => [
'FEATUREgpdbQ0N7UN',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在Region ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '30',
],
],
[
'name' => 'Extension',
'in' => 'query',
'schema' => [
'description' => '插件名称',
'type' => 'string',
'required' => false,
'example' => 'citext',
],
],
[
'name' => 'InstallStatus',
'in' => 'query',
'schema' => [
'description' => '插件安装状态,取值说明:'."\n"
."\n"
.'- installed:已安装'."\n"
.'- installing:安装中'."\n"
.'- uninstalled:未安装',
'type' => 'string',
'required' => false,
'example' => 'installed',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '7565770E-7C45-462D-BA4A-8A5396F2CAD1',
],
'TotalRecordCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageNumber' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageRecordCount' => [
'description' => '当前页记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '20',
],
'Items' => [
'description' => '插件项目',
'type' => 'array',
'items' => [
'description' => '插件项目',
'type' => 'object',
'properties' => [
'ExtensionId' => [
'description' => '插件id',
'type' => 'string',
'example' => '1',
],
'Name' => [
'description' => '插件名称',
'type' => 'string',
'example' => 'citext',
],
'InstalledDatabases' => [
'description' => '已安装数据库',
'type' => 'string',
'example' => 'test',
],
'CurrentVersion' => [
'description' => '当前版本',
'type' => 'string',
'example' => '1.0',
],
'LatestVersion' => [
'description' => '最新版本',
'type' => 'string',
'example' => '1.1',
],
'Status' => [
'description' => '插件状态',
'type' => 'string',
'example' => 'installed',
],
'Description' => [
'description' => '插件描述',
'type' => 'string',
'example' => 'citext usage',
],
'IsInstallNeedRestart' => [
'description' => '插件安装是否需要重启实例',
'type' => 'boolean',
'example' => 'false',
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7565770E-7C45-462D-BA4A-8A5396F2CAD1\\",\\n \\"TotalRecordCount\\": 1,\\n \\"PageNumber\\": 1,\\n \\"PageRecordCount\\": 20,\\n \\"Items\\": [\\n {\\n \\"ExtensionId\\": \\"1\\",\\n \\"Name\\": \\"citext\\",\\n \\"InstalledDatabases\\": \\"test\\",\\n \\"CurrentVersion\\": \\"1.0\\",\\n \\"LatestVersion\\": \\"1.1\\",\\n \\"Status\\": \\"installed\\",\\n \\"Description\\": \\"citext usage\\",\\n \\"IsInstallNeedRestart\\": false\\n }\\n ]\\n}","type":"json"}]',
'title' => '获取插件列表',
],
'CreateExtensions' => [
'summary' => '安装插件。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '214905',
'abilityTreeNodes' => [
'FEATUREgpdbQ0N7UN',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Extensions',
'in' => 'query',
'schema' => [
'description' => '需要安装的插件,多个插件间使用英文逗号(,)分隔。',
'type' => 'string',
'required' => true,
'example' => 'citext, dblink',
],
],
[
'name' => 'DBNames',
'in' => 'query',
'schema' => [
'description' => '实例数据库名。',
'type' => 'string',
'required' => true,
'example' => 'demo1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Extensions' => [
'description' => '需要安装的插件,多个插件间使用英文逗号(,)分隔。',
'type' => 'string',
'example' => 'citext, dblink',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Extensions\\": \\"citext, dblink\\",\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '安装插件',
],
'DeleteExtension' => [
'summary' => '卸载插件。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '214908',
'abilityTreeNodes' => [
'FEATUREgpdbQ0N7UN',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'Extension',
'in' => 'query',
'schema' => [
'description' => '插件名称',
'type' => 'string',
'required' => true,
'example' => 'citext',
],
],
[
'name' => 'DBNames',
'in' => 'query',
'schema' => [
'description' => '实例数据库名。',
'type' => 'string',
'required' => true,
'example' => 'demo1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '卸载插件',
],
'DescribeExternalDataService' => [
'summary' => '获取外部数据服务详情。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'ServiceId',
'in' => 'query',
'schema' => [
'description' => '服务ID。',
'type' => 'string',
'required' => true,
'example' => '1',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'ServiceId' => [
'description' => '服务ID。',
'type' => 'string',
'example' => '1',
],
'ServiceName' => [
'description' => '服务名称。',
'type' => 'string',
'example' => 'test-pxf',
],
'ServiceDescription' => [
'description' => '服务描述。',
'type' => 'string',
'example' => 'pxf test',
],
'ServiceSpec' => [
'description' => '服务规格(单位CU)。',
'type' => 'string',
'example' => '8',
],
'Status' => [
'description' => '服务状态,取值:'."\n"
."\n"
.'- Init:初始化中'."\n"
."\n"
.'- Running:运行中'."\n"
."\n"
.'- Exception:异常'."\n"
."\n"
.'- Paused:暂停',
'type' => 'string',
'example' => 'Running',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2019-09-08T16:00:00Z',
],
'ModifyTime' => [
'description' => '最后修改时间。',
'type' => 'string',
'example' => '2019-09-08T17:00:00Z',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"ServiceId\\": \\"1\\",\\n \\"ServiceName\\": \\"test-pxf\\",\\n \\"ServiceDescription\\": \\"pxf test\\",\\n \\"ServiceSpec\\": \\"8\\",\\n \\"Status\\": \\"Running\\",\\n \\"CreateTime\\": \\"2019-09-08T16:00:00Z\\",\\n \\"ModifyTime\\": \\"2019-09-08T17:00:00Z\\"\\n}","type":"json"}]',
'title' => '获取外部数据服务详情',
],
'DeleteExternalDataService' => [
'summary' => '删除外部数据服务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'ServiceId',
'in' => 'query',
'schema' => [
'description' => '服务ID。',
'type' => 'string',
'required' => true,
'example' => '1',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","type":"json"}]',
'title' => '删除外部数据服务',
],
'ListExternalDataServices' => [
'summary' => '获取外部数据服务列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID,您可通过接口[DescribeRegions](~~86912~~)查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:1。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '50',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'TotalRecordCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '2',
],
'PageNumber' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'ServiceItems' => [
'description' => '列表项',
'type' => 'array',
'items' => [
'description' => '列表项',
'type' => 'object',
'properties' => [
'ServiceId' => [
'description' => '服务ID。',
'type' => 'string',
'example' => '1',
],
'ServiceType' => [
'description' => '服务类型,取值:'."\n"
."\n"
.'- pxf',
'type' => 'string',
'enumValueTitles' => [
'pxf' => 'pxf',
],
'example' => 'pxf',
],
'ServiceName' => [
'description' => '服务名称。',
'type' => 'string',
'example' => 'test-pxf',
],
'ServiceDescription' => [
'description' => '服务描述。',
'type' => 'string',
'example' => 'test-pxf',
],
'ServiceSpec' => [
'description' => '服务规格(单位CU)。',
'type' => 'string',
'example' => '8',
],
'Status' => [
'description' => '服务状态,取值:'."\n"
."\n"
.'- Init:初始化中'."\n"
."\n"
.'- Running:运行中'."\n"
."\n"
.'- Exception:异常'."\n"
."\n"
.'- Paused:暂停',
'type' => 'string',
'example' => 'Running',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2019-09-08T16:00:00Z',
],
'ModifyTime' => [
'description' => '最后修改时间。',
'type' => 'string',
'example' => '2019-09-08T17:00:00Z',
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"TotalRecordCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"ServiceItems\\": [\\n {\\n \\"ServiceId\\": \\"1\\",\\n \\"ServiceType\\": \\"pxf\\",\\n \\"ServiceName\\": \\"test-pxf\\",\\n \\"ServiceDescription\\": \\"test-pxf\\",\\n \\"ServiceSpec\\": \\"8\\",\\n \\"Status\\": \\"Running\\",\\n \\"CreateTime\\": \\"2019-09-08T16:00:00Z\\",\\n \\"ModifyTime\\": \\"2019-09-08T17:00:00Z\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => '获取外部数据服务列表',
],
'CreateExternalDataService' => [
'summary' => '创建外部数据服务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID,您可以通过[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'ServiceName',
'in' => 'query',
'schema' => [
'description' => '服务名称。',
'type' => 'string',
'required' => true,
'example' => 'test-adbpgss',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
[
'name' => 'ServiceSpec',
'in' => 'query',
'schema' => [
'description' => '服务规格(单位CU),取值:'."\n"
."\n"
.'- 8',
'type' => 'string',
'required' => true,
'example' => '8',
],
],
[
'name' => 'ServiceDescription',
'in' => 'query',
'schema' => [
'description' => '服务描述。',
'type' => 'string',
'required' => false,
'example' => 'pxf test',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'ServiceId' => [
'description' => '服务ID。',
'type' => 'integer',
'format' => 'int32',
'example' => '100',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"ServiceId\\": 100\\n}","type":"json"}]',
'title' => '创建外部数据服务',
],
'ModifyExternalDataService' => [
'summary' => '修改外部数据服务。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbGXMEN1',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp10g78o9807yv9h3',
],
],
[
'name' => 'ServiceSpec',
'in' => 'query',
'schema' => [
'description' => '服务规格(单位CU),取值:'."\n"
."\n"
.'- 8',
'type' => 'string',
'required' => true,
'example' => '8',
],
],
[
'name' => 'ServiceId',
'in' => 'query',
'schema' => [
'description' => '服务ID。',
'type' => 'string',
'required' => true,
'example' => '1',
],
],
[
'name' => 'ServiceDescription',
'in' => 'query',
'schema' => [
'description' => '服务描述。',
'type' => 'string',
'required' => false,
'example' => 'pxf test',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","type":"json"}]',
'title' => '修改外部数据服务',
],
'DescribeHadoopClustersInSameNet' => [
'summary' => '获取同VPC的EMR集群实例。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-beijing',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'Clusters' => [
'type' => 'array',
'items' => [
'description' => 'emr实例列表。',
'type' => 'string',
'example' => 'c-xxx,c-yyy',
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"Clusters\\": [\\n \\"c-xxx,c-yyy\\"\\n ]\\n}","type":"json"}]',
'title' => '获取同VPC的EMR集群实例',
],
'DescribeHadoopConfigs' => [
'summary' => '获取Hadoop集群配置信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxx',
],
],
[
'name' => 'EmrInstanceId',
'in' => 'query',
'schema' => [
'description' => 'EMR实例ID。',
'type' => 'string',
'required' => true,
'example' => 'c-xxx',
],
],
[
'name' => 'ConfigName',
'in' => 'query',
'schema' => [
'description' => '配置文件名称:'."\n"
."\n"
.'- hdfs-site:hdfs-site.xml文件'."\n"
."\n"
.'- core-site:core-site.xml文件'."\n"
."\n"
.'- yarn-site:yarn-site.xml文件'."\n"
."\n"
.'- mapred-site:mapred-site.xml文件'."\n"
."\n"
.'- hive-site:hive-site.xml文件',
'type' => 'string',
'required' => true,
'example' => 'hdfs-site',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'ConfigName' => [
'description' => '配置文件名称:'."\n"
."\n"
.'- hdfs-site'."\n"
."\n"
.'- core-site'."\n"
."\n"
.'- yarn-site'."\n"
."\n"
.'- mapred-site'."\n"
."\n"
.'- hive-site',
'type' => 'string',
'example' => 'hdfs-site',
],
'ConfigValue' => [
'description' => '配置值',
'type' => 'string',
'example' => ''."\n"
.''."\n"
.' '."\n"
.' hive.exec.reducers.bytes.per.reducer'."\n"
.' 256000000'."\n"
.' '."\n"
.' '."\n"
.' hive.stats.column.autogather'."\n"
.' false'."\n"
.' '."\n"
.'',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"ConfigName\\": \\"hdfs-site\\",\\n \\"ConfigValue\\": \\"\\\\n\\\\n \\\\n hive.exec.reducers.bytes.per.reducer\\\\n 256000000\\\\n \\\\n \\\\n hive.stats.column.autogather\\\\n false\\\\n \\\\n\\"\\n}","type":"json"}]',
'title' => '获取Hadoop集群配置信息',
],
'CreateHadoopDataSource' => [
'summary' => '创建hadoop数据源配置。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DataSourceName',
'in' => 'query',
'schema' => [
'description' => '服务名称。',
'type' => 'string',
'required' => false,
'example' => 'hdfs_pxf',
],
],
[
'name' => 'DataSourceDescription',
'in' => 'query',
'schema' => [
'description' => '服务描述。',
'type' => 'string',
'required' => false,
'example' => 'pxf for hdfs data source',
],
],
[
'name' => 'DataSourceType',
'in' => 'query',
'schema' => [
'description' => '开通Hadoop外部表类型,取值'."\n"
."\n"
.'- HDFS '."\n"
."\n"
.'- Hive',
'type' => 'string',
'required' => false,
'example' => 'HDFS',
],
],
[
'name' => 'HadoopCreateType',
'in' => 'query',
'schema' => [
'description' => '外部服务类型:'."\n"
."\n"
.'- emr'."\n"
."\n"
.'- hadoop: 自建hadoop',
'type' => 'string',
'required' => false,
'example' => 'emr',
],
],
[
'name' => 'HadoopHostsAddress',
'in' => 'query',
'schema' => [
'description' => 'Hadoop集群源节点在/etc/hosts文件中的地址和hostname。',
'type' => 'string',
'required' => false,
'example' => '192.168.220.128 master-1-1.c-xxx.cn-shanghai.emr.aliyuncs.com'."\n"
.'192.168.220.129 core-1-1.c-xxx.cn-shanghai.emr.aliyuncs.com'."\n"
.'192.168.220.130 core-1-2.c-xxx.cn-shanghai.emr.aliyuncs.com',
],
],
[
'name' => 'HadoopCoreConf',
'in' => 'query',
'schema' => [
'description' => 'Hadoop core-site.xml文件内容字符串。',
'type' => 'string',
'required' => false,
'example' => ''."\n"
.''."\n"
.''."\n"
.' '."\n"
.' hadoop.http.authentication.kerberos.keytab'."\n"
.' /etc/emr/hadoop-conf/http.keytab'."\n"
.' '."\n"
.' '."\n"
.' fs.oss.idle.timeout.millisecond'."\n"
.' 30000'."\n"
.' '."\n"
.' '."\n"
.' fs.oss.download.thread.concurrency'."\n"
.' 32'."\n"
.' '."\n"
.'',
],
],
[
'name' => 'HDFSConf',
'in' => 'query',
'schema' => [
'description' => 'Hadoop hdfs-site.xml文件内容字符串。在选择开通HDFS外表时,该字段必填。',
'type' => 'string',
'required' => false,
'example' => ''."\n"
.''."\n"
.''."\n"
.' '."\n"
.' dfs.datanode.cache.revocation.timeout.ms'."\n"
.' 900000'."\n"
.' '."\n"
.' '."\n"
.' dfs.namenode.resource.check.interval'."\n"
.' 5000'."\n"
.' '."\n"
.'',
],
],
[
'name' => 'HiveConf',
'in' => 'query',
'schema' => [
'description' => 'Hadoop hive-site.xml文件内容字符串。在选择开通HIVE外表时,该字段必填。',
'type' => 'string',
'required' => false,
'example' => ''."\n"
.''."\n"
.''."\n"
.' '."\n"
.' hive.exec.reducers.bytes.per.reducer'."\n"
.' 256000000'."\n"
.' '."\n"
.' '."\n"
.' hive.stats.column.autogather'."\n"
.' false'."\n"
.' '."\n"
.'',
],
],
[
'name' => 'YarnConf',
'in' => 'query',
'schema' => [
'description' => 'Hadoop yarn-site.xml文件内容字符串。在选择开通HDFS外表时,该字段必填。',
'type' => 'string',
'required' => false,
'example' => ''."\n"
.''."\n"
.''."\n"
.' '."\n"
.' yarn.nodemanager.linux-container-executor.nonsecure-mode.local-user'."\n"
.' hadoop'."\n"
.' '."\n"
.' '."\n"
.' yarn.scheduler.fair.dynamic.max.assign'."\n"
.' true'."\n"
.' '."\n"
.''."\n",
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxx',
],
],
[
'name' => 'MapReduceConf',
'in' => 'query',
'schema' => [
'description' => 'Hadoop mapred-site.xml文件内容字符串。在选择开通HDFS外表时,该字段必填。',
'type' => 'string',
'required' => false,
'example' => 'xxxxxx',
],
],
[
'name' => 'EmrInstanceId',
'in' => 'query',
'schema' => [
'description' => 'HadoopCreateType=Emr时,此字段值为emr实例id。',
'type' => 'string',
'required' => false,
'example' => 'c-1234567',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'DataSourceId' => [
'description' => '数据源ID。',
'type' => 'integer',
'format' => 'int32',
'example' => '123',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '2C125605-266F-41CA-8AC5-3A643D4F42C5',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DataSourceId\\": 123,\\n \\"RequestId\\": \\"2C125605-266F-41CA-8AC5-3A643D4F42C5\\"\\n}","type":"json"}]',
'title' => '创建hadoop外部数据源',
],
'DescribeHadoopDataSource' => [
'summary' => '获取hadoop数据源配置信息。',
'methods' => [
'post',
'get',
'put',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198686',
'abilityTreeNodes' => [
'FEATUREgpdbOGW4DR',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'gp-xxx',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => '服务ID。',
'type' => 'string',
'required' => false,
'example' => '123',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~2361846~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'DataSourceId' => [
'description' => '数据源ID。',
'type' => 'string',
'example' => '123',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'DataSourceName' => [
'description' => '服务名称。',
'type' => 'string',
'example' => 'hdfs_pxf',
],
'DataSourceDescription' => [
'description' => '服务描述,最大长度为256字符。',
'type' => 'string',
'example' => 'pxf for hdfs data source',
],
'DataSourceStatus' => [
'description' => '服务状态位,取值:'."\n"
."\n"
.'- 初始化中 Init'."\n"
."\n"
.'- 运行中 Running'."\n"
."\n"
.'- 异常 Exception',
'type' => 'string',
'example' => 'Running',
],
'DataSourceDir' => [
'description' => '服务目录,在该目录下保留有Hadoop相关的配置文件。',
'type' => 'string',
'example' => 'HadoopDir',
],
'StatusMessage' => [
'description' => '服务状态信息,例如异常情况,则显示异常原因。正常Running状态下空值。',
'type' => 'string',
'example' => '""',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2019-09-08T16:00:00Z',
],
'DataSourceType' => [
'description' => '数据源类型',
'type' => 'string',
'example' => 'hive',
],
'HadoopCreateType' => [
'description' => '外部服务创建类型:'."\n"
."\n"
.'- emr'."\n"
."\n"
.'- selfCreate',
'type' => 'string',
'example' => 'emr',
],
'HadoopHostsAddress' => [
'description' => 'Hadoop集群源节点在/etc/hosts文件中的地址和hostname。',
'type' => 'string',
'example' => '127.0.0.1 localhost',
],
'HadoopCoreConf' => [
'description' => 'Hadoop core-site.xml文件内容。',
'type' => 'string',
'example' => ''."\n"
.''."\n"
.''."\n"
.' '."\n"
.' hadoop.http.authentication.kerberos.keytab'."\n"
.' /etc/emr/hadoop-conf/http.keytab'."\n"
.' '."\n"
.' '."\n"
.' fs.oss.idle.timeout.millisecond'."\n"
.' 30000'."\n"
.' '."\n"
.' '."\n"
.' fs.oss.download.thread.concurrency'."\n"
.' 32'."\n"
.' '."\n"
.'',
],
'HDFSConf' => [
'description' => 'Hadoop hdfs-site.xml文件内容。',
'type' => 'string',
'example' => ''."\n"
.''."\n"
.''."\n"
.' '."\n"
.' dfs.datanode.cache.revocation.timeout.ms'."\n"
.' 900000'."\n"
.' '."\n"
.' '."\n"
.' dfs.namenode.resource.check.interval'."\n"
.' 5000'."\n"
.' '."\n"
.'',
],
'HiveConf' => [
'description' => 'Hadoop hive-site.xml文件内容。',
'type' => 'string',
'example' => ''."\n"
.''."\n"
.''."\n"
.' '."\n"
.' hive.exec.reducers.bytes.per.reducer'."\n"
.' 256000000'."\n"
.' '."\n"
.' '."\n"
.' hive.stats.column.autogather'."\n"
.' false'."\n"
.' '."\n"
.'',
],
'YarnConf' => [
'description' => 'Hadoop yarn-site.xml文件内容。',
'type' => 'string',
'example' => ''."\n"
.''."\n"
.''."\n"
.' '."\n"
.' yarn.nodemanager.linux-container-executor.nonsecure-mode.local-user'."\n"
.' hadoop'."\n"
.' '."\n"
.' '."\n"
.' yarn.scheduler.fair.dynamic.max.assign'."\n"
.' true'."\n"
.' '."\n"
.'',
],
'MapReduceConf' => [
'description' => 'hadoop mapred-site.xml文件内容。',
'type' => 'string',
'example' => ''."\n"
.''."\n"
.''."\n"
.' '."\n"
.' mapreduce.map.speculative'."\n"
.' true'."\n"
.' '."\n"
.' '."\n"
.' mapreduce.jobhistory.keytab'."\n"
.' '."\n"
.' '."\n"
.'',
],
'EmrInstanceId' => [
'description' => 'emr实例id。',
'type' => 'string',
'example' => 'c-1234567',
],
'ModifyTime' => [
'description' => '最后修改时间。',
'type' => 'string',
'example' => '2024-09-28T02:18:39Z',
],
'ExternalDataServiceId' => [
'description' => '外部数据服务id。',
'type' => 'string',
'example' => '2952',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DataSourceId\\": \\"123\\",\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"DataSourceName\\": \\"hdfs_pxf\\",\\n \\"DataSourceDescription\\": \\"pxf for hdfs data source\\",\\n \\"DataSourceStatus\\": \\"Running\\",\\n \\"DataSourceDir\\": \\"HadoopDir\\",\\n \\"StatusMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"CreateTime\\": \\"2019-09-08T16:00:00Z\\",\\n \\"DataSourceType\\": \\"hive\\",\\n \\"HadoopCreateType\\": \\"emr\\",\\n \\"HadoopHostsAddress\\": \\"127.0.0.1 localhost\\",\\n \\"HadoopCoreConf\\": \\"\\\\n\\\\n\\\\n \\\\n hadoop.http.authentication.kerberos.keytab\\\\n /etc/emr/hadoop-conf/http.keytab\\\\n \\\\n \\\\n fs.oss.idle.timeout.millisecond\\\\n 30000\\\\n \\\\n \\\\n fs.oss.download.thread.concurrency\\\\n 32\\\\n \\\\n\\",\\n \\"HDFSConf\\": \\"\\\\n\\\\n\\\\n \\\\n dfs.datanode.cache.revocation.timeout.ms\\\\n 900000\\\\n \\\\n \\\\n dfs.namenode.resource.check.interval\\\\n 5000\\\\n \\\\n\\",\\n \\"HiveConf\\": \\"\\\\n\\\\n\\\\n \\\\n hive.exec.reducers.bytes.per.reducer\\\\n 256000000\\\\n \\\\n \\\\n hive.stats.column.autogather\\\\n false\\\\n \\\\n\\",\\n \\"YarnConf\\": \\"\\\\n\\\\n\\\\n \\\\n yarn.nodemanager.linux-container-executor.nonsecure-mode.local-user\\\\n hadoop\\\\n \\\\n \\\\n yarn.scheduler.fair.dynamic.max.assign\\\\n true\\\\n \\\\n\\",\\n \\"MapReduceConf\\": \\"\\\\n\\\\n\\\\n \\\\n mapreduce.map.speculative\\\\n true\\\\n \\\\n \\\\n mapreduce.jobhistory.keytab\\\\n \\\\n \\\\n\\",\\n \\"EmrInstanceId\\": \\"c-1234567\\",\\n \\"ModifyTime\\": \\"2024-09-28T02:18:39Z\\",\\n \\"ExternalDataServiceId\\": \\"2952\\"\\n}","type":"json"}]',
'title' => '获取hadoop数据源详情',
],
'ModifyHadoopDataSource' => [
'summary' => '修改hadoop数据源配置。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxx',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => '数据源ID。',
'type' => 'string',
'required' => false,
'example' => '123',
],
],
[
'name' => 'DataSourceDescription',
'in' => 'query',
'schema' => [
'description' => '服务描述,长度最长为256字符。',
'type' => 'string',
'required' => false,
'example' => 'pxf for hdfs data source',
],
],
[
'name' => 'DataSourceType',
'in' => 'query',
'schema' => [
'description' => '数据源类型,取值:'."\n"
."\n"
.'- mysql/postgresql'."\n"
."\n"
.'- hdfs/hive',
'type' => 'string',
'required' => false,
'example' => 'mysql',
],
],
[
'name' => 'HadoopCreateType',
'in' => 'query',
'schema' => [
'description' => '外部服务创建类型:'."\n"
."\n"
.'- emr:emr实例'."\n"
."\n"
.'- selfCreate:自建',
'type' => 'string',
'required' => false,
'example' => 'emr',
],
],
[
'name' => 'HadoopHostsAddress',
'in' => 'query',
'schema' => [
'description' => 'Hadoop集群源节点在/etc/hosts文件中的地址和hostname。',
'type' => 'string',
'required' => false,
'example' => '192.168.220.128 master-1-1.c-0edfee2cccaecc75.cn-shanghai.emr.aliyuncs.com'."\n"
.'192.168.220.129 core-1-1.c-0edfee2cccaecc75.cn-shanghai.emr.aliyuncs.com'."\n"
.'192.168.220.130 core-1-2.c-0edfee2cccaecc75.cn-shanghai.emr.aliyuncs.com',
],
],
[
'name' => 'HadoopCoreConf',
'in' => 'query',
'schema' => [
'description' => 'Hadoop core-site.xml文件内容',
'type' => 'string',
'required' => false,
'example' => ''."\n"
.''."\n"
.''."\n"
.' '."\n"
.' hadoop.http.authentication.kerberos.keytab'."\n"
.' /etc/emr/hadoop-conf/http.keytab'."\n"
.' '."\n"
.' '."\n"
.' fs.oss.idle.timeout.millisecond'."\n"
.' 30000'."\n"
.' '."\n"
.' '."\n"
.' fs.oss.download.thread.concurrency'."\n"
.' 32'."\n"
.' '."\n"
.''."\n",
],
],
[
'name' => 'HDFSConf',
'in' => 'query',
'schema' => [
'description' => 'Hadoop hdfs-site.xml文件内容。在选择开通HDFS外表时,该字段必填。',
'type' => 'string',
'required' => false,
'example' => ''."\n"
.''."\n"
.''."\n"
.' '."\n"
.' dfs.datanode.cache.revocation.timeout.ms'."\n"
.' 900000'."\n"
.' '."\n"
.' '."\n"
.' dfs.namenode.resource.check.interval'."\n"
.' 5000'."\n"
.' '."\n"
.'',
],
],
[
'name' => 'HiveConf',
'in' => 'query',
'schema' => [
'description' => 'Hadoop hive-site.xml文件内容。在选择开通HIVE外表时,该字段必填。',
'type' => 'string',
'required' => false,
'example' => ''."\n"
.''."\n"
.''."\n"
.' '."\n"
.' hive.exec.reducers.bytes.per.reducer'."\n"
.' 256000000'."\n"
.' '."\n"
.' '."\n"
.' hive.stats.column.autogather'."\n"
.' false'."\n"
.' '."\n"
.'',
],
],
[
'name' => 'YarnConf',
'in' => 'query',
'schema' => [
'description' => 'Hadoop yarn-site.xml文件内容。在选择开通HDFS外表时,该字段必填。',
'type' => 'string',
'required' => false,
'example' => ''."\n"
.''."\n"
.''."\n"
.' '."\n"
.' yarn.nodemanager.linux-container-executor.nonsecure-mode.local-user'."\n"
.' hadoop'."\n"
.' '."\n"
.' '."\n"
.' yarn.scheduler.fair.dynamic.max.assign'."\n"
.' true'."\n"
.' '."\n"
.'',
],
],
[
'name' => 'MapReduceConf',
'in' => 'query',
'schema' => [
'description' => 'Hadoop mapred-site.xml文件内容。在选择开通HDFS外表时,该字段必填。',
'type' => 'string',
'required' => false,
'example' => ''."\n"
.''."\n"
.''."\n"
.' '."\n"
.' mapreduce.map.speculative'."\n"
.' true'."\n"
.' '."\n"
.' '."\n"
.' mapreduce.jobhistory.keytab'."\n"
.' '."\n"
.' '."\n"
.'',
],
],
[
'name' => 'EmrInstanceId',
'in' => 'query',
'schema' => [
'description' => 'HadoopCreateType=Emr时,此字段值为emr实例id。',
'type' => 'string',
'required' => false,
'example' => 'c-1234567',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '2C125605-266F-41CA-8AC5-3A643D4F42C5',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2C125605-266F-41CA-8AC5-3A643D4F42C5\\"\\n}","type":"json"}]',
'title' => '修改hadoop数据源配置',
],
'CheckHadoopDataSource' => [
'summary' => '检查hadoop数据源配置。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxx',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => '数据源id',
'type' => 'string',
'required' => true,
'example' => '123',
],
],
[
'name' => 'CheckDir',
'in' => 'query',
'schema' => [
'description' => '待校验的hadoop路径。',
'type' => 'string',
'required' => true,
'example' => 'tmp',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => [
'description' => '服务返回信息:服务不可用时返回报错信息,可用时返回为""。',
'type' => 'string',
'example' => 'serivce unavaliable',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'Status' => [
'description' => '服务状态:'."\n"
."\n"
.'- 可用:Running'."\n"
."\n"
.'- 不可用:Failed',
'type' => 'string',
'example' => 'Running',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Message\\": \\"serivce unavaliable\\",\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"Status\\": \\"Running\\"\\n}","type":"json"}]',
'title' => '检查hadoop数据源配置',
],
'DeleteHadoopDataSource' => [
'summary' => '删除hadoop外部数据源。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxx',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => '数据源id',
'type' => 'string',
'required' => true,
'example' => '123',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","type":"json"}]',
'title' => '删除hadoop外部数据源',
],
'CheckHadoopNetConnection' => [
'summary' => '检测hadoop外部数据源网络联通性。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198701',
'abilityTreeNodes' => [
'FEATUREgpdbOGW4DR',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxx',
],
],
[
'name' => 'EmrInstanceId',
'in' => 'query',
'schema' => [
'description' => 'emr实例ID。',
'type' => 'string',
'required' => false,
'example' => 'c-xxx',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => '1. DataSourceId和EmrInstanceId必须指定一项作为输入,否则报错。'."\n"
.'2. 如果上述2个参数均指定,则优先使用EmrInstanceId入参。'."\n"
.'3. 如果DataSourceId所指定的数据源,为自建Hadoop集群,则直接报错。',
'type' => 'string',
'required' => false,
'example' => '126',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ConnectionMessage' => [
'description' => '返回信息:连接不通时返回报错信息,否则返回为""。',
'type' => 'string',
'example' => 'connection timeout',
],
'ConnectionStatus' => [
'description' => '连接状态:'."\n"
."\n"
.'- 网络联通:Success'."\n"
."\n"
.'- 网络不通:Failed',
'type' => 'string',
'example' => 'Success',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ConnectionMessage\\": \\"connection timeout\\",\\n \\"ConnectionStatus\\": \\"Success\\",\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","type":"json"}]',
'title' => '检测hadoop外部数据源网络联通性',
],
'CreateJDBCDataSource' => [
'summary' => '创建JDBC数据源。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在 Region ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DataSourceName',
'in' => 'query',
'schema' => [
'description' => '服务名称。',
'type' => 'string',
'required' => false,
'example' => 'jdbc_pxf',
],
],
[
'name' => 'DataSourceDescription',
'in' => 'query',
'schema' => [
'description' => '数据源描述。',
'type' => 'string',
'required' => false,
'example' => 'test',
],
],
[
'name' => 'DataSourceType',
'in' => 'query',
'schema' => [
'description' => '数据库类型:'."\n"
."\n"
.'- mysql'."\n"
."\n"
.'- postgresql'."\n"
."\n"
.'- sqlserver',
'type' => 'string',
'required' => false,
'example' => 'mysql',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxx',
],
],
[
'name' => 'JDBCConnectionString',
'in' => 'query',
'schema' => [
'description' => 'JDBC连接串。',
'type' => 'string',
'required' => false,
'example' => 'jdbc:mysql://rm-xxx.mysql.rds.aliyuncs.com:3306/testadmin',
],
],
[
'name' => 'JDBCUserName',
'in' => 'query',
'schema' => [
'description' => '用户名。',
'type' => 'string',
'required' => false,
'example' => 'testuser',
],
],
[
'name' => 'JDBCPassword',
'in' => 'query',
'schema' => [
'description' => '用户密码。',
'type' => 'string',
'required' => false,
'example' => 'testpasswd',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'DataSourceId' => [
'description' => '数据源ID。',
'type' => 'string',
'example' => '123',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '2C125605-266F-41CA-8AC5-3A643D4F42C5',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DataSourceId\\": \\"123\\",\\n \\"RequestId\\": \\"2C125605-266F-41CA-8AC5-3A643D4F42C5\\"\\n}","type":"json"}]',
'title' => '创建JDBC数据源',
],
'ModifyJDBCDataSource' => [
'summary' => '修改JDBC数据源配置。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-shanghai',
],
],
[
'name' => 'DataSourceDescription',
'in' => 'query',
'schema' => [
'description' => '数据源描述。',
'type' => 'string',
'required' => false,
'example' => 'test',
],
],
[
'name' => 'DataSourceType',
'in' => 'query',
'schema' => [
'description' => '数据库类型:'."\n"
."\n"
.'- mysql'."\n"
."\n"
.'- postgresql'."\n"
."\n"
.'- sqlserver',
'type' => 'string',
'required' => false,
'example' => 'mysql',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxx',
],
],
[
'name' => 'JDBCConnectionString',
'in' => 'query',
'schema' => [
'description' => 'JDBC连接串。',
'type' => 'string',
'required' => false,
'example' => 'jdbc:mysql://rm-xxx.mysql.rds.aliyuncs.com:3306/testadmin',
],
],
[
'name' => 'JDBCUserName',
'in' => 'query',
'schema' => [
'description' => '用户名。',
'type' => 'string',
'required' => false,
'example' => 'testuser',
],
],
[
'name' => 'JDBCPassword',
'in' => 'query',
'schema' => [
'description' => '用户密码。',
'type' => 'string',
'required' => false,
'example' => 'testpasswd',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => '数据源ID。',
'type' => 'string',
'required' => true,
'example' => '123',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '2C125605-266F-41CA-8AC5-3A643D4F42C5',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2C125605-266F-41CA-8AC5-3A643D4F42C5\\"\\n}","type":"json"}]',
'title' => '修改JDBC数据源配置',
],
'CheckJDBCSourceNetConnection' => [
'summary' => '检查jdbc连接串网络连通性。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198716',
'abilityTreeNodes' => [
'FEATUREgpdbOGW4DR',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxx',
],
],
[
'name' => 'JdbcConnectionString',
'in' => 'query',
'schema' => [
'description' => 'jdbc连接串。',
'type' => 'string',
'required' => false,
'example' => 'jdbc:mysql://rm-xxx.mysql.rds.aliyuncs.com:3306/testadmin',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => 'DataSourceId和JdbcConnectionString必须指定一项作为输入,否则报错。如果上述2个参数均指定,则优先使用JdbcConnectionString入参。',
'type' => 'string',
'required' => false,
'example' => '123',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ConnectionMessage' => [
'description' => '返回信息:连接不通时返回报错信息,否则返回为""。',
'type' => 'string',
'example' => 'connection timeout',
],
'ConnectionStatus' => [
'description' => '服务状态:'."\n"
."\n"
.'- 网络联通:Success'."\n"
."\n"
.'- 网络不通:Failed',
'type' => 'string',
'example' => 'Success',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ConnectionMessage\\": \\"connection timeout\\",\\n \\"ConnectionStatus\\": \\"Success\\",\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","type":"json"}]',
'title' => '检查JDBC连接串网络连通性',
],
'DescribeJDBCDataSource' => [
'summary' => '获取jdbc数据源配置信息。',
'methods' => [
'post',
'get',
'put',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198713',
'abilityTreeNodes' => [
'FEATUREgpdbOGW4DR',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'gp-xxx',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => '数据源id',
'type' => 'string',
'required' => true,
'example' => '123',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'DataSourceId' => [
'description' => '服务Id。',
'type' => 'string',
'example' => '123',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'DataSourceName' => [
'description' => '服务名称。',
'type' => 'string',
'example' => 'hdfs_pxf',
],
'DataSourceDescription' => [
'description' => '服务描述,最大长度为256字符。',
'type' => 'string',
'example' => 'mysql data source config',
],
'DataSourceStatus' => [
'description' => '服务状态位,取值:'."\n"
."\n"
.'- 初始化中 Init'."\n"
."\n"
.'- 运行中 Running'."\n"
."\n"
.'- 异常 Exception',
'type' => 'string',
'example' => 'Running',
],
'StatusMessage' => [
'description' => '服务状态信息,例如异常情况,则显示异常原因。正常Running状态下空值。',
'type' => 'string',
'example' => '""',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2019-09-08T16:00:00Z',
],
'DataSourceType' => [
'description' => '数据源类型。',
'type' => 'string',
'example' => 'mysql',
],
'JDBCConnectionString' => [
'description' => 'JDBC连接串。',
'type' => 'string',
'example' => 'jdbc:mysql://rm-xxx.mysql.rds.aliyuncs.com:3306/testadmin',
],
'JDBCUserName' => [
'description' => '用户名。',
'type' => 'string',
'example' => 'testuser',
],
'JDBCPassword' => [
'description' => '密码。',
'type' => 'string',
'example' => 'testpasswd',
],
'ModifyTime' => [
'description' => '最后修改时间。',
'type' => 'string',
'example' => '2024-09-04T02:27:55Z',
],
'ExternalDataServiceId' => [
'description' => '外部数据服务id。',
'type' => 'string',
'example' => '2989',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DataSourceId\\": \\"123\\",\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"DataSourceName\\": \\"hdfs_pxf\\",\\n \\"DataSourceDescription\\": \\"mysql data source config\\",\\n \\"DataSourceStatus\\": \\"Running\\",\\n \\"StatusMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"CreateTime\\": \\"2019-09-08T16:00:00Z\\",\\n \\"DataSourceType\\": \\"mysql\\",\\n \\"JDBCConnectionString\\": \\"jdbc:mysql://rm-xxx.mysql.rds.aliyuncs.com:3306/testadmin\\",\\n \\"JDBCUserName\\": \\"testuser\\",\\n \\"JDBCPassword\\": \\"testpasswd\\",\\n \\"ModifyTime\\": \\"2024-09-04T02:27:55Z\\",\\n \\"ExternalDataServiceId\\": \\"2989\\"\\n}","type":"json"}]',
'title' => '获取JDBC数据源配置信息',
],
'DeleteJDBCDataSource' => [
'summary' => '删除jdbc数据源。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxx',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => '数据源id',
'type' => 'string',
'required' => true,
'example' => '123',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","type":"json"}]',
'title' => '删除JDBC数据源配置',
],
'ListExternalDataSources' => [
'summary' => '获取数据源列表。',
'methods' => [
'post',
'get',
'put',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'gp-xxxxxxx',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:30。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '50',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:**1**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-shanghai',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'BBE00C04-A3E8-4114-881D-0480A72CB92E',
],
'TotalRecordCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '2',
],
'PageNumber' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'Items' => [
'description' => 'Hadoop外部表服务列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'DataSourceId' => [
'description' => '服务ID。',
'type' => 'integer',
'format' => 'int32',
'example' => '123',
],
'DataSourceName' => [
'description' => '服务名称。',
'type' => 'string',
'example' => 'hdfs_pxf',
],
'DataSourceType' => [
'description' => '数据源类型。',
'type' => 'string',
'enumValueTitles' => [
'hive' => 'hive',
'postgresql' => 'postgresql',
'hdfs' => 'hdfs',
'mysql' => 'mysql',
'sqlServer' => 'sqlServer',
],
'example' => 'hdfs',
],
'DataSourceDescription' => [
'description' => '数据源描述。',
'type' => 'string',
'example' => 'test',
],
'CreateTime' => [
'description' => '创建时间。',
'type' => 'string',
'example' => '2019-09-08T16:00:00Z',
],
'ModifyTime' => [
'description' => '最后修改时间。',
'type' => 'string',
'example' => '2019-10-08T16:00:00Z',
],
'DataSourceStatus' => [
'description' => '服务状态位,取值:'."\n"
."\n"
.'- 初始化中 Init'."\n"
."\n"
.'- 运行中 Running'."\n"
."\n"
.'- 异常 Exception',
'type' => 'string',
'example' => 'Running',
],
'StatusMessage' => [
'description' => '服务状态信息,例如异常情况,则显示异常原因。正常Running状态下空值。',
'type' => 'string',
'example' => '""',
],
'DataSourceDir' => [
'description' => '服务目录,在该目录下保留有Hadoop相关的配置文件。',
'type' => 'string',
'example' => 'HadoopDir',
],
'ExternalDataServiceId' => [
'description' => '外部数据服务id',
'type' => 'integer',
'format' => 'int32',
'example' => '123',
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"BBE00C04-A3E8-4114-881D-0480A72CB92E\\",\\n \\"TotalRecordCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"Items\\": [\\n {\\n \\"DataSourceId\\": 123,\\n \\"DataSourceName\\": \\"hdfs_pxf\\",\\n \\"DataSourceType\\": \\"hdfs\\",\\n \\"DataSourceDescription\\": \\"test\\",\\n \\"CreateTime\\": \\"2019-09-08T16:00:00Z\\",\\n \\"ModifyTime\\": \\"2019-10-08T16:00:00Z\\",\\n \\"DataSourceStatus\\": \\"Running\\",\\n \\"StatusMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"DataSourceDir\\": \\"HadoopDir\\",\\n \\"ExternalDataServiceId\\": 123\\n }\\n ]\\n}","type":"json"}]',
'title' => '获取数据源列表',
],
'CreateDBInstance' => [
'summary' => '创建AnalyticDB PostgreSQL版实例。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '8415',
'abilityTreeNodes' => [
'FEATUREgpdbAXSDJ9',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'ZoneId',
'in' => 'query',
'schema' => [
'description' => '可用区ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的可用区ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou-i',
],
],
[
'name' => 'EngineVersion',
'in' => 'query',
'schema' => [
'description' => '引擎版本,取值如下:'."\n"
.'- **6.0**:6.0版。'."\n"
.'- **7.0**:7.0版。',
'type' => 'string',
'required' => true,
'example' => '6.0',
],
],
[
'name' => 'Engine',
'in' => 'query',
'schema' => [
'description' => '数据库引擎,取值为**gpdb**。',
'type' => 'string',
'required' => true,
'example' => 'gpdb',
],
],
[
'name' => 'DBInstanceClass',
'in' => 'query',
'schema' => [
'description' => '实例规格,详细说明请参见DBInstanceClass参数补充说明。'."\n"
."\n"
.'> 创建存储预留模式实例必须传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'gpdb.group.segsdx1',
],
],
[
'name' => 'DBInstanceGroupCount',
'in' => 'query',
'schema' => [
'description' => '计算组数量。取值为:2、4、8、12、16、24、32、64、96、128。'."\n"
."\n"
.'> 创建存储预留模式实例必须传入该参数。',
'type' => 'string',
'required' => false,
'example' => '2',
],
],
[
'name' => 'DBInstanceDescription',
'in' => 'query',
'schema' => [
'description' => '实例描述。',
'type' => 'string',
'required' => false,
'example' => 'test',
],
],
[
'name' => 'SecurityIPList',
'in' => 'query',
'schema' => [
'description' => 'IP白名单。'."\n"
."\n"
.'127.0.0.1表示禁止任何外部IP访问,您可以在实例创建完成后调用[ModifySecurityIps](~~86928~~)接口修改IP白名单。',
'type' => 'string',
'required' => false,
'example' => '127.0.0.1',
'default' => '127.0.0.1',
],
],
[
'name' => 'PayType',
'in' => 'query',
'schema' => [
'description' => '计费类型,取值如下:'."\n"
."\n"
.'- **Postpaid**:按量付费'."\n"
.'- **Prepaid**:包年包月'."\n"
."\n"
.'> - 如果不填,则会默认为按量付费。'."\n"
.'> - 包年包月计费模式下,一次性购买一年及以上时长时会有一定优惠,建议您按需选择计费类型。',
'type' => 'string',
'required' => false,
'example' => 'Prepaid',
'default' => 'Postpaid',
],
],
[
'name' => 'Period',
'in' => 'query',
'schema' => [
'description' => '购买资源的时长单位。取值如下:'."\n"
.'- **Month**:月'."\n"
.'- **Year**:年'."\n"
."\n"
.'> 创建包年包月计费类型的实例时必须传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'Month',
],
],
[
'name' => 'UsedTime',
'in' => 'query',
'schema' => [
'description' => '购买资源的时长。取值如下:'."\n"
.'- 当**Period**为**Month**时,取值为1~9。'."\n"
.'- 当**Period**为**Year**时,取值为1~3。'."\n"
."\n"
.'> 创建包年包月计费类型的实例时必须传入该参数。',
'type' => 'string',
'required' => false,
'example' => '1',
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => [
'description' => '幂等性校验。更多信息,请参见[如何保证幂等性](~~327176~~)。',
'type' => 'string',
'required' => false,
'example' => '0c593ea1-3bea-11e9-b96b-88**********',
],
],
[
'name' => 'InstanceNetworkType',
'in' => 'query',
'schema' => [
'description' => '实例网络类型,取值为**VPC**。'."\n"
."\n"
.'> - 公共云仅支持VPC网络。'."\n"
.'> - 如果不填,则默认为VPC类型。',
'type' => 'string',
'required' => false,
'example' => 'VPC',
],
],
[
'name' => 'VPCId',
'in' => 'query',
'schema' => [
'description' => 'VPC ID。'."\n"
."\n"
.'> - **VPCId**必填。'."\n"
.'> - **VPC**所在地域必须与**RegionId**保持一致。',
'type' => 'string',
'required' => false,
'example' => 'vpc-bp19ame5m1r3oejns****',
],
],
[
'name' => 'VSwitchId',
'in' => 'query',
'schema' => [
'description' => 'vSwitch ID。'."\n"
."\n"
.'> - **vSwitchId**必填。'."\n"
.'> - **vSwitch**所在可用区必须与**ZoneId**保持一致。',
'type' => 'string',
'required' => false,
'example' => 'vsw-bp1cpq8mr64paltkb****',
],
],
[
'name' => 'PrivateIpAddress',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'SegStorageType',
'in' => 'query',
'schema' => [
'description' => '磁盘存储类型,目前仅支持ESSD云盘,取值为:**cloud_essd**。'."\n"
."\n"
.'> 创建存储弹性模式实例必须传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'cloud_essd',
],
],
[
'name' => 'SegDiskPerformanceLevel',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => [
'description' => 'ESSD云盘的性能级别,取值如下:'."\n"
."\n"
.'- **pl0**:PL0级别。'."\n"
.'- **pl1**:PL1级别。'."\n"
.'- **pl2**:PL2级别。'."\n"
."\n"
.'> - 仅磁盘存储类型为ESSD云盘时,该参数生效。'."\n"
.'> - 如果不填,则默认为PL1级别。',
'type' => 'string',
'required' => false,
'example' => 'pl1',
'default' => 'pl1',
'enum' => [
'pl0',
'pl1',
'pl2',
],
],
],
[
'name' => 'InstanceSpec',
'in' => 'query',
'schema' => [
'description' => '计算节点规格。'."\n"
."\n"
.'存储弹性模式高可用版取值如下:'."\n"
.'- **2C16G**'."\n"
.'- **4C32G**'."\n"
.'- **16C128G**'."\n"
."\n"
.'存储弹性模式基础版取值如下:'."\n"
.'- **2C8G**'."\n"
.'- **4C16G**:'."\n"
.'- **8C32G**:'."\n"
.'- **16C64G**'."\n"
."\n"
.'Serverless模式取值如下:'."\n"
.'- **4C16G**'."\n"
.'- **8C32G**'."\n"
."\n"
.'> 创建存储弹性模式实例和Serverless模式实例必须传入该参数。',
'type' => 'string',
'required' => false,
'example' => '2C16G',
],
],
[
'name' => 'SegNodeNum',
'in' => 'query',
'schema' => [
'description' => '计算节点个数,取值说明:'."\n"
."\n"
.'- 存储弹性模式高可用版取值范围为4~512,取值需为4的倍数。'."\n"
.'- 存储弹性模式基础版取值范围为2~512,取值需为2的倍数。'."\n"
.'- Serverless模式取值范围为2~512,取值需为2的倍数。'."\n"
."\n"
.'> 创建存储弹性模式实例和Serverless模式实例必须传入该参数。',
'type' => 'string',
'required' => false,
'example' => '4',
],
],
[
'name' => 'MasterNodeNum',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'DBInstanceMode',
'in' => 'query',
'schema' => [
'description' => '实例资源类型,取值说明:'."\n"
."\n"
.'- **StorageElastic**:存储弹性模式。'."\n"
.'- **Serverless**:Serverless模式。'."\n"
.'- **Classic**:存储预留模式。'."\n"
."\n"
.'> 该参数必填。',
'type' => 'string',
'required' => true,
'example' => 'StorageElastic',
],
],
[
'name' => 'StorageType',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'DBInstanceCategory',
'in' => 'query',
'schema' => [
'description' => '实例系列。取值说明:'."\n"
."\n"
.'- **HighAvailability**:高可用版。'."\n"
.'- **Basic**:基础版。'."\n"
."\n"
.'> 创建存储弹性模式实例必须传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'HighAvailability',
],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '实例所在的企业资源组ID。',
'type' => 'string',
'required' => false,
'example' => 'rg-bp67acfmxazb4p****',
],
],
[
'name' => 'StorageSize',
'in' => 'query',
'schema' => [
'description' => '存储空间大小,单位GB,取值范围为50~800050~6000'."\n"
.'。'."\n"
."\n"
.'> 创建存储弹性模式实例必须传入该参数。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '200',
],
],
[
'name' => 'CreateSampleData',
'in' => 'query',
'schema' => [
'description' => '是否在实例创建完成后,加载样本数据集,取值如下:'."\n"
."\n"
.'- **true**:加载样本数据集。'."\n"
.'- **false**:不加载样本数据集。'."\n"
."\n"
.'> 如果不填,则默认为不加载样本数据集。',
'type' => 'boolean',
'required' => false,
'example' => 'false',
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => '第N个标签。N的取值范围:1~20。',
'type' => 'array',
'items' => [
'description' => '第N个标签。N的取值范围:1~20。',
'type' => 'object',
'properties' => [
'Key' => [
'description' => '标签键。限制如下:'."\n"
."\n"
.'- 不允许为空字符串。'."\n"
.'- 最多支持128个字符。'."\n"
.'- 不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。',
'type' => 'string',
'required' => false,
'example' => 'TestKey',
],
'Value' => [
'description' => '标签值。限制如下:'."\n"
."\n"
.'- 可以为空字符串。'."\n"
.'- 最多支持128个字符。'."\n"
.'- 不能以`acs:`开头,不能包含`http://`或者`https://`。',
'type' => 'string',
'required' => false,
'example' => 'TestValue',
],
],
'required' => false,
],
'required' => false,
'maxItems' => 21,
],
],
[
'name' => 'ServerlessResource',
'in' => 'query',
'schema' => [
'description' => '计算资源阈值。取值范围8~32,步长为8,单位为ACU。默认值为32。'."\n"
."\n"
.'> 仅Serverless自动调度模式实例需传入该参数。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '32',
],
],
[
'name' => 'IdleTime',
'in' => 'query',
'schema' => [
'description' => '空闲释放等待时长。即当无业务流量的时长达到指定时长后,实例转为空闲状态。单位为秒,最小值为60,默认值为600。'."\n"
."\n"
.'> 仅Serverless自动调度模式实例需传入该参数。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '600',
],
],
[
'name' => 'ServerlessMode',
'in' => 'query',
'schema' => [
'description' => 'Serverless实例的模式,取值如下:'."\n"
."\n"
.'- **Manual**:手动调度,为默认值。'."\n"
.'- **Auto**:自动调度。'."\n"
."\n"
.'> - 仅Serverless模式实例需传入该参数。'."\n"
.'> - 云原生数据仓库 AnalyticDB PostgreSQL 版Serverless自动调度模式正在邀测中。如需使用,请您[提交工单](https://smartservice.console.aliyun.com/service/create-ticket?product=rds)申请邀测资格。',
'type' => 'string',
'required' => false,
'example' => 'Auto',
],
],
[
'name' => 'EncryptionType',
'in' => 'query',
'schema' => [
'description' => '加密类型,取值说明:'."\n"
."\n"
.'- **NULL**:不启用加密(默认值)。'."\n"
.'- **CloudDisk**:开通云盘加密,并通过**EncryptionKey**参数指定密钥。'."\n"
."\n"
.'> 当前云盘加密开启后无法关闭。',
'type' => 'string',
'required' => false,
'example' => 'CloudDisk',
],
],
[
'name' => 'EncryptionKey',
'in' => 'query',
'schema' => [
'description' => '密钥ID。'."\n"
."\n"
.'> 如果参数**EncryptionType**的值为**CloudDisk**则需要通过该参数指定同地域内的加密密钥ID,否则为空。',
'type' => 'string',
'required' => false,
'example' => '0d2470df-da7b-4786-b981-88888888****',
],
],
[
'name' => 'VectorConfigurationStatus',
'in' => 'query',
'schema' => [
'description' => '是否开启向量引擎优化。取值说明:'."\n"
.'- **enabled**:开启向量引擎优化。'."\n"
.'- **disabled**(默认):不开启向量引擎优化。'."\n"
."\n"
.'> - 对于主流分析场景、数仓场景、实时数仓等场景,建议**不开启**向量引擎优化。'."\n"
.'> - 对于使用向量分析引擎用于AIGC、向量检索等场景用户,建议**开启**向量引擎优化。',
'type' => 'string',
'required' => false,
'example' => 'enabled',
],
],
[
'name' => 'MasterCU',
'in' => 'query',
'schema' => [
'description' => 'Master资源,取值如下: '."\n"
.'- 2 CU '."\n"
.'- 4 CU '."\n"
.'- 8 CU '."\n"
.'- 16 CU '."\n"
.'- 32 CU '."\n"
.'> 8CU以上的master资源会产生费用。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '8 CU',
],
],
[
'name' => 'SrcDbInstanceName',
'in' => 'query',
'schema' => [
'description' => '克隆源实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-bp***************',
],
],
[
'name' => 'BackupId',
'in' => 'query',
'schema' => [
'description' => '备份集ID。'."\n"
."\n"
.'> 您可以调用[DescribeDataBackups](~~210093~~)查看目标实例下所有备份集的备份集ID。',
'type' => 'string',
'required' => false,
'example' => '1111111111',
],
],
[
'name' => 'EnableSSL',
'in' => 'query',
'schema' => [
'description' => '是否开启SSL加密。取值说明:'."\n"
.'- **true**:开启SSL加密。'."\n"
.'- **false**(默认):不开SSL加密。',
'type' => 'boolean',
'required' => false,
'example' => 'false',
'default' => 'false',
],
],
[
'name' => 'ProdType',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => [
'description' => '产品类型。取值说明:'."\n"
.'- **standard**:标准版。'."\n"
.'- **cost-effective**:经济版。'."\n"
."\n"
.'> 如果不填,则会默认为标准版。',
'type' => 'string',
'required' => false,
'example' => 'standard',
],
],
[
'name' => 'DeployMode',
'in' => 'query',
'schema' => [
'description' => '部署模式。取值说明:'."\n"
.'- multiple:多可用区部署。'."\n"
.'- single:单可用区部署。'."\n"
."\n"
.'> '."\n"
.'> - 如果不填,则会默认为单可用区部署。'."\n"
.'> - 当前仅支持单可用区部署。',
'type' => 'string',
'required' => false,
'example' => 'single',
],
],
[
'name' => 'StandbyZoneId',
'in' => 'query',
'schema' => [
'description' => '备可用区ID。'."\n"
."\n"
.'> '."\n"
.'> - 仅多可用区部署时需传入该参数。'."\n"
.'> - 您可以调用[DescribeRegions](~~86912~~)接口查看可用的可用区ID。'."\n"
.'> - 备可用区ID必须与主可用区ID不一致。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou-j',
],
],
[
'name' => 'StandbyVSwitchId',
'in' => 'query',
'schema' => [
'description' => '备可用区VSwitch ID。'."\n"
."\n"
.'> '."\n"
.'> - 仅多可用区部署时需传入该参数。'."\n"
.'> - 备可用区VSwitch ID所在可用区必须与StandbyZoneId保持一致。',
'type' => 'string',
'required' => false,
'example' => 'vsw-bp1cpq8mr64paltkb****',
],
],
[
'name' => 'MasterAISpec',
'in' => 'query',
'schema' => [
'description' => '如果您需要将 Master 节点变更为 MasterAI 节点,请指定该参数。'."\n"
.'> - 该参数与 MasterCU 不能同时指定。'."\n"
.'> - 仅部分地域和可用区均支持将 Master 节点变更为 MasterAI 节点。'."\n"
.'> - 仅 AnalyticDB PostgreSQL 7.0 版的基础版实例支持 MasterAI 节点。'."\n"
.'> - 您可以在 Master 节点变配的售卖页面上查询该参数的所有可能取值。',
'type' => 'string',
'required' => false,
'example' => 'ADB.AIMedium.2',
],
],
[
'name' => 'AINodeSpecInfos',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'AINodeNum' => [
'type' => 'string',
'required' => false,
],
'AINodeSpec' => [
'type' => 'string',
'required' => false,
],
],
'required' => false,
],
'required' => false,
'maxItems' => 100,
],
],
[
'name' => 'CacheStorageSize',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => [
'type' => 'string',
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '5414A4E5-4C36-4461-95FC-************',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
'Port' => [
'description' => '该参数已废弃,故不会返回参数值。'."\n"
."\n"
.'您可以通过[DescribeDBInstanceAttribute](~~86910~~)接口查看实例的端口号。',
'type' => 'string',
'example' => '3432',
],
'ConnectionString' => [
'description' => '该参数已废弃,故不会返回参数值。'."\n"
."\n"
.'您可以通过[DescribeDBInstanceAttribute](~~86910~~)接口查看实例的连接地址。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****.gpdb.rds.aliyuncs.com',
],
'OrderId' => [
'description' => '订单编号。',
'type' => 'string',
'example' => '111111111111',
],
],
],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"5414A4E5-4C36-4461-95FC-************\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\",\\n \\"Port\\": \\"3432\\",\\n \\"ConnectionString\\": \\"gp-bp12ga6v69h86****.gpdb.rds.aliyuncs.com\\",\\n \\"OrderId\\": \\"111111111111\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 5414A4E5-4C36-4461-95FC-************\\n gp-bp***************\\n 111111111111\\n","errorExample":""}]',
'title' => '创建实例',
'description' => '请确保在使用该接口前,已充分了解AnalyticDB PostgreSQL版产品的[收费方式](~~35406~~)和[价格](https://www.aliyun.com/price/product#/gpdb/detail/GreenplumPost)[价格](https://www.alibabacloud.com/zh/product/hybriddb-postgresql/pricing)。',
'requestParamsDescription' => '### DBInstanceClass参数补充说明'."\n"
.'目前,AnalyticDB for PostgreSQL支持如下两种实例规格:'."\n"
."\n"
.'- 高性能:规格名称以gpdb.group.segsdx开始,特点是可以提供更好的I/O能力,带来更高的性能。'."\n"
.'- 高容量:规格名称以gpdb.group.seghdx开始,特点是可以提供更大、更实惠的空间,满足更高的存储需求。'."\n"
."\n"
.'因此,在选择实例规格时,建议您根据需要的存储空间和计算能力进行选择。'."\n"
."\n"
.'同时,AnalyticDB for PostgreSQL支持基于OSS的外部表扩展,并可通过gzip实现外部存储上的数据压缩,不需要参与实时计算的数据可以存放到外部存储以进一步节省存储成本。'."\n"
."\n"
.'**高性能实例的规格信息**如下表所示:'."\n"
.''."\n"
.' '."\n"
.' '."\n"
.' 【高性能】规格 | '."\n"
.' CPU | '."\n"
.' 内存 | '."\n"
.' 存储空间
| '."\n"
.'
'."\n"
.' '."\n"
.' gpdb.group.segsdx1 | '."\n"
.' 1 Core | '."\n"
.' 8 GB | '."\n"
.' 80 GB SSD | '."\n"
.'
'."\n"
.' '."\n"
.' gpdb.group.segsdx2 | '."\n"
.' 2 Cores | '."\n"
.' 16 GB | '."\n"
.' 160 GB SSD | '."\n"
.'
'."\n"
.' '."\n"
.' gpdb.group.segsdx16 | '."\n"
.' 16 Cores | '."\n"
.' 128 GB | '."\n"
.' 1.28 TB SSD | '."\n"
.'
'."\n"
.' '."\n"
.' '."\n"
.' '."\n"
.' '."\n"
.' '."\n"
.' '."\n"
.' '."\n"
.'
'."\n"
."\n"
.'**高容量型实例的规格信息**如下表所示:'."\n"
.''."\n"
.' '."\n"
.' '."\n"
.' 【高容量】规格 | '."\n"
.' CPU | '."\n"
.' 内存 | '."\n"
.' 存储空间
| '."\n"
.'
'."\n"
.' '."\n"
.' gpdb.group.seghdx4 | '."\n"
.' 4 Cores | '."\n"
.' 32 GB | '."\n"
.' 2 TB HDD | '."\n"
.'
'."\n"
.' '."\n"
.' gpdb.group.seghdx36 | '."\n"
.' 36 Cores | '."\n"
.' 288 GB | '."\n"
.' 18 TB HDD | '."\n"
.'
'."\n"
.' '."\n"
.' '."\n"
.' '."\n"
.' '."\n"
.' '."\n"
.' '."\n"
.' '."\n"
.'
',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DeleteDBInstance' => [
'summary' => '释放按量付费的AnalyticDB PostgreSQL版实例。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbFNYD3H',
],
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => [
'description' => '幂等性校验。更多信息,请参见[如何保证幂等性](~~327176~~)。',
'type' => 'string',
'required' => false,
'example' => '0c593ea1-3bea-11e9-b96b-88**********',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp***************',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '65BDA532-28AF-4122-AA39-B3**********',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"65BDA532-28AF-4122-AA39-B3**********\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 65BDA532-28AF-4122-AA39-B3**********\\n","errorExample":""}]',
'title' => '释放按量付费实例',
'description' => '- 包年包月实例不支持手动释放,实例到期后会自动释放。'."\n"
.'- 只有运行状态为**运行中**的按量付费实例支持通过本接口释放。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ModifyDBInstanceDescription' => [
'summary' => '修改AnalyticDB PostgreSQL版实例的备注。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNTP4BF',
],
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'DBInstanceDescription',
'in' => 'query',
'schema' => [
'description' => '实例备注信息。'."\n"
."\n"
.'长度为2~256个字符,不能以http:// 或者https:// 开头。',
'type' => 'string',
'required' => true,
'example' => 'test',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '107BE202-D1A2-479E-98E0-A8**********',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"107BE202-D1A2-479E-98E0-A8**********\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 107BE202-D1A2-479E-98E0-A8**********\\n","errorExample":""}]',
'title' => '修改实例备注',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ModifyDBInstanceMaintainTime' => [
'summary' => '修改AnalyticDB PostgreSQL版实例的可维护时间。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNTP4BF',
],
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp***************',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '可维护的开始时间。格式:HH:mmZ(UTC时间)。',
'type' => 'string',
'required' => true,
'example' => '02:00Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '可维护的结束时间,需要大于开始时间。格式:HH:mmZ(UTC时间)。',
'type' => 'string',
'required' => true,
'example' => '03:00Z',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'CA9A34C8-AC95-413B-AC6A-CE**********',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CA9A34C8-AC95-413B-AC6A-CE**********\\"\\n}","errorExample":""},{"type":"xml","example":"\\n CA9A34C8-AC95-413B-AC6A-CE**********\\n","errorExample":""}]',
'title' => '修改实例可运维时间',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ModifyDBInstanceResourceGroup' => [
'summary' => '将AnalyticDB PostgreSQL版实例移动到指定资源组。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbGDXMO2',
],
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '**该参数已废弃**。实例当前所属的资源组ID。如何获取资源组ID,请参见[查看资源组基本信息](~~151181~~)。',
'type' => 'string',
'required' => false,
'example' => 'rg-bp67acfmxazb4p****',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'NewResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '目标资源组ID。如何获取资源组ID,请参见[查看资源组基本信息](~~151181~~)。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'rg-bp67acfmxazb4b****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '65BDA532-28AF-4122-AA39-B382721EEE64',
],
],
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'Instance.FailedUpdateResourceGroup',
'errorMessage' => 'Failed to update resource group.',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"65BDA532-28AF-4122-AA39-B382721EEE64\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 65BDA532-28AF-4122-AA39-B382721EEE64\\n","errorExample":""}]',
'title' => '修改实例所属资源组',
'description' => '通过资源管理服务,您可以按照业务需要搭建合适的资源组织关系,使用目录、资源夹、账号以及资源组,分层次地组织和管理您的云资源。详情请参见[什么是资源管理](~~94475~~)。',
],
'ModifyVectorConfiguration' => [
'summary' => '修改实例向量引擎优化配置。',
'methods' => [
'get',
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbIPPRRA',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。'."\n",
'type' => 'string',
'required' => false,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'VectorConfigurationStatus',
'in' => 'query',
'schema' => [
'description' => '是开开启向量引擎优化配置。取值如下:'."\n"
."\n"
.'- **enabled**:开启向量引擎优化。'."\n"
.'- **disabled**:不开启向量引擎优化。'."\n"
."\n"
.'> - 对于主流分析场景、数仓场景、实时数仓等场景,建议**不开启**向量引擎优化。'."\n"
.'- 对于使用向量分析引擎用于AIGC、向量检索等场景用户,建议**开启**向量引擎优化。'."\n",
'type' => 'string',
'required' => false,
'enumValueTitles' => [
'disabled' => '不开启',
'enabled' => '开启',
],
'example' => 'enabled',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '107BE202-D1A2-479E-98E0-A8**********',
],
'Status' => [
'description' => 'API执行状态。取值如下:'."\n"
."\n"
.'- **true**:执行成功。'."\n"
.'- **false**:执行失败。',
'type' => 'boolean',
'enumValueTitles' => [
'true' => '修改成功',
'false' => '修改失败',
],
'example' => 'true',
],
'ErrorMessage' => [
'description' => '错误信息。'."\n"
."\n"
.'只会在API执行失败时返回该参数。',
'type' => 'string',
'example' => 'Failed to modify vector configuration.',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"107BE202-D1A2-479E-98E0-A8**********\\",\\n \\"Status\\": true,\\n \\"ErrorMessage\\": \\"Failed to modify vector configuration.\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 107BE202-D1A2-479E-98E0-A8**********\\n true\\n gp-bp12ga6v69h86****\\n","errorExample":""}]',
'title' => '修改实例向量引擎优化配置',
],
'PauseInstance' => [
'summary' => '暂停AnalyticDB PostgreSQL版实例。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => [
'FEATUREgpdb84D3HZ',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回参数列表。',
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '34b32a0a-08ef-4a87-b6be-cdd9********',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **false**:执行失败。'."\n"
.'- **true**:执行成功。',
'type' => 'boolean',
'example' => 'true',
],
'ErrorMessage' => [
'description' => '错误信息。'."\n"
."\n"
.'只会在**Status**参数返回值为**false**时返回该参数。',
'type' => 'string',
'example' => '*******',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"34b32a0a-08ef-4a87-b6be-cdd9********\\",\\n \\"Status\\": true,\\n \\"ErrorMessage\\": \\"*******\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 34b32a0a-08ef-4a87-b6be-cdd9********\\n true\\n gp-bp12ga6v69h86****\\n","errorExample":""}]',
'title' => '暂停实例',
'description' => '- 实例付费类型需为按量付费类型。'."\n"
.'- 仅支持Serverless手动调度模式和存储弹性模式实例'."\n"
.'- 仅支持暂停运行状态为**运行中**的AnalyticDB PostgreSQL版实例。'."\n"
."\n"
.'> 请确保在使用该接口前,已充分了解AnalyticDB PostgreSQL版产品的[收费方式](~~35406~~)和[价格](https://www.aliyun.com/price/product#/gpdb/detail/GreenplumPost)[价格](https://www.alibabacloud.com/zh/product/hybriddb-postgresql/pricing)。',
],
'RebalanceDBInstance' => [
'summary' => '对AnalyticDB PostgreSQL版实例进行部署平衡。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdb7UXCRB',
],
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => [
'description' => '幂等性校验。更多信息,请参见[如何保证幂等性](~~327176~~)。',
'type' => 'string',
'required' => false,
'example' => '0c593ea1-3bea-11e9-b96b-88**********',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp***************',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '5414A4E5-4C36-4461-95FC-************',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"5414A4E5-4C36-4461-95FC-************\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 5414A4E5-4C36-4461-95FC-************\\n","errorExample":""}]',
'title' => '实例部署平衡',
],
'RestartDBInstance' => [
'summary' => '重启AnalyticDB PostgreSQL版实例。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdb7UXCRB',
],
],
'parameters' => [
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => [
'description' => '幂等性校验。更多信息,请参见[如何保证幂等性](~~327176~~)。',
'type' => 'string',
'required' => false,
'example' => '0c593ea1-3bea-11e9-b96b-88**********',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'A7356493-7141-4393-8951-CDA8AB5D67EC',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"A7356493-7141-4393-8951-CDA8AB5D67EC\\"\\n}","errorExample":""},{"type":"xml","example":"\\r\\n A7356493-7141-4393-8951-CDA8AB5D67EC\\r\\n","errorExample":""}]',
'title' => '重启实例',
'description' => '重启过程一般耗时3到30分钟,在重启过程中实例无法对外提供服务,请您在业务低谷期进行操作。当实例重启结束,实例状态将变为运行中,此时您可以正常访问实例。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ResumeInstance' => [
'summary' => '启动AnalyticDB PostgreSQL版实例。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => [
'FEATUREgpdb84D3HZ',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '34b32a0a-08ef-4a87-b6be-cdd9********',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
."\n"
.'- **false**:执行失败。'."\n"
.'- **true**:执行成功。',
'type' => 'boolean',
'example' => 'true',
],
'ErrorMessage' => [
'description' => '错误信息。'."\n"
."\n"
.'只会在**Status**参数返回值为**false**时返回该参数。',
'type' => 'string',
'example' => '******',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"34b32a0a-08ef-4a87-b6be-cdd9********\\",\\n \\"Status\\": true,\\n \\"ErrorMessage\\": \\"******\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 34b32a0a-08ef-4a87-b6be-cdd9********\\n true\\n gp-bp12ga6v69h86****\\n","errorExample":""}]',
'title' => '启动实例',
'description' => '- 实例付费类型需为按量付费。'."\n"
.'- 仅支持Serverless手动调度模式和存储弹性模式实例。'."\n"
.'- 仅支持启动运行状态为**已暂停**的AnalyticDB PostgreSQL版实例。'."\n"
."\n"
.'> 请确保在使用该接口前,已充分了解AnalyticDB PostgreSQL版产品的[收费方式](~~35406~~)和[价格](https://www.aliyun.com/price/product#/gpdb/detail/GreenplumPost)[价格](https://www.alibabacloud.com/zh/product/hybriddb-postgresql/pricing)。',
],
'UpgradeDBVersion' => [
'summary' => '为指定AnalyticDB PostgreSQL版实例升级内核小版本。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNN784S',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-wz9kmr708m155j***',
],
],
[
'name' => 'MinorVersion',
'in' => 'query',
'schema' => [
'description' => '小版本。',
'type' => 'string',
'required' => false,
'example' => '6.3.6.1-202112012048',
],
],
[
'name' => 'MajorVersion',
'in' => 'query',
'schema' => [
'description' => '此参数已废弃,无需填写。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'SwitchTimeMode',
'in' => 'query',
'schema' => [
'description' => '此参数已废弃,无需填写。',
'type' => 'string',
'required' => false,
'example' => 'null',
'default' => 'Postpaid',
],
],
[
'name' => 'SwitchTime',
'in' => 'query',
'schema' => [
'description' => '此参数已废弃,无需填写。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'TaskId' => [
'description' => '任务ID。',
'type' => 'string',
'example' => '101450956',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '25C11EE5-B7E8-481A-A07C-BD619971A570',
],
'DBInstanceId' => [
'description' => '此参数已废弃,无返回参数值。',
'type' => 'string',
'example' => 'null',
],
'DBInstanceName' => [
'description' => '实例名称。',
'type' => 'string',
'example' => 'gp-wz9kmr708m155j***',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"TaskId\\": \\"101450956\\",\\n \\"RequestId\\": \\"25C11EE5-B7E8-481A-A07C-BD619971A570\\",\\n \\"DBInstanceId\\": \\"null\\",\\n \\"DBInstanceName\\": \\"gp-wz9kmr708m155j***\\"\\n}","errorExample":""},{"type":"xml","example":"101450956\\n25C11EE5-B7E8-481A-A07C-BD619971A570\\ngp-wz9kmr708m155j***\\ngp-wz9kmr708m155j***","errorExample":""}]',
'title' => '升级内核小版本',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ModifyDBInstanceDeploymentMode' => [
'summary' => '修改实例部署模式。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '244977',
'abilityTreeNodes' => [
'FEATUREgpdb4JECI2',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'DeployMode',
'in' => 'query',
'schema' => [
'description' => '部署模式。取值说明:'."\n"
.'- multiple:多可用区部署。'."\n"
.'- single:单可用区部署。',
'type' => 'string',
'required' => true,
'example' => 'multiple',
],
],
[
'name' => 'StandbyZoneId',
'in' => 'query',
'schema' => [
'description' => '备可用区ID。'."\n"
."\n"
.'> '."\n"
.'> - 仅多可用区部署时需传入该参数。'."\n"
.'> - 您可以调用[DescribeRegions](~~86912~~)接口查看可用的可用区ID。'."\n"
.'> - 备可用区ID必须与主可用区ID不一致。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou-j',
],
],
[
'name' => 'StandbyVSwitchId',
'in' => 'query',
'schema' => [
'description' => '备可用区VSwitch ID。'."\n"
."\n"
.'> '."\n"
.'> - 仅多可用区部署时需传入该参数。'."\n"
.'> - 备可用区VSwitch ID所在可用区必须与StandbyZoneId保持一致。',
'type' => 'string',
'required' => false,
'example' => 'vsw-bp1cpq8mr64paltkb****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '修改实例部署模式',
],
'DescribeDataReDistributeInfo' => [
'summary' => '查询存储弹性模式6.0版实例在节点扩缩容过程中,数据重分布的进度。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbY0U80Q',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'DataReDistributeInfo' => [
'description' => '数据重分布任务信息。',
'type' => 'object',
'properties' => [
'Type' => [
'description' => '执行类型。固定为**immediate**,表示立即执行。',
'type' => 'string',
'example' => 'immediate',
],
'StartTime' => [
'description' => '暂不支持该参数。',
'type' => 'string',
'example' => 'null',
],
'Progress' => [
'description' => '数据重分布进度,单位为%。',
'type' => 'integer',
'format' => 'int64',
'example' => '33',
],
'RemainTime' => [
'description' => '数据重分布预计剩余时间。',
'type' => 'string',
'example' => '00:01:28',
],
'Message' => [
'description' => '运行信息,如果出错会显示出错的详细信息。',
'type' => 'string',
'example' => 'redistributing',
],
'Status' => [
'description' => '数据重分布的状态。',
'type' => 'string',
'example' => 'RUNNING',
],
],
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '04836A02-ADC9-1AA7-AC36-DE5E048BF505',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"DataReDistributeInfo\\": {\\n \\"Type\\": \\"immediate\\",\\n \\"StartTime\\": \\"null\\",\\n \\"Progress\\": 33,\\n \\"RemainTime\\": \\"00:01:28\\",\\n \\"Message\\": \\"redistributing\\",\\n \\"Status\\": \\"RUNNING\\"\\n },\\n \\"RequestId\\": \\"04836A02-ADC9-1AA7-AC36-DE5E048BF505\\"\\n}","errorExample":""},{"type":"xml","example":"\\n \\n immediate\\n \\n 00:01:28\\n redistributing\\n RUNNING\\n \\n 04836A02-ADC9-1AA7-AC36-DE5E048BF505\\n","errorExample":""}]',
'title' => '查询数据重分布进度',
],
'ModifyDBInstanceConfig' => [
'summary' => '修改AnalyticDB PostgreSQL版Serverless自动调度模式实例的计算资源阈值和空闲释放等待时长。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNTP4BF',
],
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '实例当前所属的资源组ID。如何获取资源组ID,请参见[查看资源组基本信息](~~151181~~)。',
'type' => 'string',
'required' => false,
'example' => 'rg-bp67acfmxazb4p****',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'DBInstanceDescription',
'in' => 'query',
'schema' => [
'description' => '实例描述。',
'type' => 'string',
'required' => false,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'ServerlessResource',
'in' => 'query',
'schema' => [
'description' => '计算资源阈值。取值范围为8~32,单位为ACU。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '32',
],
],
[
'name' => 'IdleTime',
'in' => 'query',
'schema' => [
'description' => '空闲释放等待时长。即当无业务流量的时长达到指定时长后,实例转为空闲状态。单位为秒,最小值为60,默认值为600。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '600',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '34B32A0A-08EF-4A87-B6BE-CDD9F56FC3AD',
],
'ErrorMessage' => [
'description' => '错误信息,仅调用失败时返回。',
'type' => 'string',
'example' => '\'error message\'',
],
'DbInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
'Status' => [
'description' => '修改状态,返回信息如下:'."\n"
."\n"
.'- **0**:修改失败。'."\n"
.'- **1**:修改成功。',
'type' => 'boolean',
'example' => '1',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"34B32A0A-08EF-4A87-B6BE-CDD9F56FC3AD\\",\\n \\"ErrorMessage\\": \\"\'error message\'\\",\\n \\"DbInstanceId\\": \\"gp-bp12ga6v69h86****\\",\\n \\"Status\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 34B32A0A-08EF-4A87-B6BE-CDD9F56FC3AD\\n gp-bp12ga6v69h86****\\n 1\\n","errorExample":""}]',
'title' => '修改计算资源阈值',
],
'UpgradeDBInstance' => [
'summary' => '变更AnalyticDB PostgreSQL版实例的规格。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => [
'FEATUREgpdbY9VVTW',
],
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '实例当前所属的资源组ID。如何获取资源组ID,请参见[查看资源组基本信息](~~151181~~)。',
'type' => 'string',
'required' => false,
'example' => 'rg-bp67acfmxazb4p****',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceClass',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'DBInstanceGroupCount',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-rj***************',
],
],
[
'name' => 'PayType',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
'default' => 'Postpaid',
],
],
[
'name' => 'MasterNodeNum',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'SegNodeNum',
'in' => 'query',
'schema' => [
'description' => 'Segment节点数量。不同实例资源类型和实例系列支持的节点数量不同,具体情况如下:'."\n"
."\n"
.'- 存储弹性模式高可用版:取值范围为4~512个,步长为4。'."\n"
.'- 存储弹性模式高性能版:取值范围为2~512个,步长为2。'."\n"
.'- Serverless手动调度模式:取值范围为2~512个,步长为2。',
'type' => 'string',
'required' => false,
'example' => '2',
],
],
[
'name' => 'InstanceSpec',
'in' => 'query',
'schema' => [
'description' => 'Segment节点规格。支持的节点规格,请参见[规格及选型](~~35406~~)。'."\n"
."\n"
.'> 该参数仅支持存储弹性模式实例。',
'type' => 'string',
'required' => false,
'example' => '4C16G',
],
],
[
'name' => 'StorageSize',
'in' => 'query',
'schema' => [
'description' => 'Segment节点存储空间的大小,单位为GB。存储容量范围为50 GB~80006000'."\n"
.' GB,步长为50。'."\n"
."\n"
.'> 该参数仅支持存储弹性模式实例。',
'type' => 'string',
'required' => false,
'example' => '100',
],
],
[
'name' => 'SegDiskPerformanceLevel',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => [
'description' => '磁盘的性能级别PL(Performance Level),取值说明:'."\n"
."\n"
.'- **pl0**:PL0级别。'."\n"
.'- **pl1**:PL1级别。'."\n"
.'- **pl2**:PL2级别。',
'type' => 'string',
'required' => false,
'example' => 'pl1',
'enum' => [
'pl0',
'pl1',
'pl2',
],
],
],
[
'name' => 'SegStorageType',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => [
'description' => '变更后的磁盘存储类型,目前仅支持变更为ESSD云盘,取值为**cloud_essd**。',
'type' => 'string',
'required' => false,
'example' => 'cloud_essd',
'enum' => [
'cloud_essd',
'cloud_efficiency',
],
],
],
[
'name' => 'UpgradeType',
'in' => 'query',
'schema' => [
'description' => '实例规格变更类型,取值说明:'."\n"
."\n"
.'- **0**(默认):变更Segment节点数量。SegNodeNum为必填参数,其他参数不生效。'."\n"
.'- **1**:变更Segment节点规格和存储空间大小。InstanceSpec为必填参数,StorageSize为选填参数,且必须大于等于当前实例存储空间。'."\n"
.'- **2**:变更Master节点数量。MasterNodeNum为必填参数,其他参数不生效。'."\n"
.'- **3**:变更磁盘存储类型和性能级别。SegDiskPerformanceLevel和SegStorageType为必填参数,其他参数不生效。'."\n"
."\n"
.'> - 不同的实例资源类型对计算节点变配的支持程度不一样,具体信息,请参见[注意事项](~~50956~~)。'."\n"
.'- 选择对应的变更类型后,仅对应的参数生效,其他参数不会生效。例如,**UpgradeType**参数为0的情况下,如果同时传入了变更Segment节点数量和Master节点数量的参数,仅变更Segment节点数量的参数会生效。'."\n"
.'- 仅中国站支持变更Master节点数量。'."\n"
.'- 仅支持将磁盘存储类型从高效云盘变更为ESSD云盘。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '0',
],
],
[
'name' => 'ServerlessResource',
'in' => 'query',
'schema' => [
'type' => 'string',
'required' => false,
],
],
[
'name' => 'CacheStorageSize',
'in' => 'query',
'schema' => [
'type' => 'string',
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '25C11EE5-B7E8-481A-A07C-BD**********',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-rj***************',
],
'OrderId' => [
'description' => '订单ID。',
'type' => 'string',
'example' => '*********',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"25C11EE5-B7E8-481A-A07C-BD**********\\",\\n \\"DBInstanceId\\": \\"gp-rj***************\\",\\n \\"OrderId\\": \\"*********\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 25C11EE5-B7E8-481A-A07C-BD**********\\n gp-rj***************\\n *********\\n","errorExample":""}]',
'title' => '变更实例规格',
'description' => '本接口不支持变更存储预留模式实例。'."\n"
."\n"
.'请确保在使用该接口前,已充分了解AnalyticDB PostgreSQL版产品的[收费方式](~~35406~~)和[价格](https://www.aliyun.com/price/product#/gpdb/detail/GreenplumPost)[价格](https://www.alibabacloud.com/zh/product/hybriddb-postgresql/pricing)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'PauseDataRedistribute' => [
'summary' => '暂停数据重分布。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '214941',
'abilityTreeNodes' => [
'FEATUREgpdbGMSZYK',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '暂停数据重分布',
],
'ResumeDataRedistribute' => [
'summary' => '恢复数据重分布。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '214945',
'abilityTreeNodes' => [
'FEATUREgpdbGMSZYK',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '恢复数据重分布',
],
'DescribeDBClusterNode' => [
'summary' => '查询AnalyticDB PostgreSQL版实例中的节点信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNOW7XI',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp***************',
],
],
[
'name' => 'NodeType',
'in' => 'query',
'schema' => [
'description' => '节点类型。取值说明:'."\n"
."\n"
.'- **master**:Master节点。'."\n"
.'- **segment**:Segment节点。'."\n"
."\n"
.'> 如果不传入该参数,则返回所有节点的监控信息。',
'type' => 'string',
'required' => false,
'example' => 'master',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Nodes' => [
'description' => '节点列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Name' => [
'description' => '节点名称。',
'type' => 'string',
'example' => 'master-10*******',
],
],
],
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '87E44B48-B306-4AD3-A63B-C8**********',
],
'DBClusterId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp***************',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Nodes\\": [\\n {\\n \\"Name\\": \\"master-10*******\\"\\n }\\n ],\\n \\"RequestId\\": \\"87E44B48-B306-4AD3-A63B-C8**********\\",\\n \\"DBClusterId\\": \\"gp-bp***************\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 87E44B48-B306-4AD3-A63B-C8**********\\n gp-bp***************\\n \\n master-10*******\\n \\n","errorExample":""}]',
'title' => '查询节点信息',
'description' => '## 使用说明'."\n"
.'本接口用于查看存储弹性模式和Serverless版本的AnalyticDB PostgreSQL版实例的Master节点或Segment节点信息。'."\n"
."\n"
.'## QPS限制'."\n"
.'本接口的单用户QPS限制默认为1000次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。'."\n"
."\n"
.'本文档中的QPS仅为默认参考值,准确信息请参见[API速率配额列表](https://quotas.console.aliyun.com/flow-control-products/gpdb/quotas)。',
],
'DescribeDBInstanceAttribute' => [
'summary' => '查询AnalyticDB PostgreSQL版实例详情。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '8421',
'abilityTreeNodes' => [
'FEATUREgpdbUY8DE6',
],
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp13ue79qk8y1****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Items' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'DBInstanceAttribute' => [
'description' => '实例详情列表。',
'type' => 'array',
'items' => [
'description' => '详情。',
'type' => 'object',
'properties' => [
'AvailabilityValue' => [
'description' => '查询当前实例可用性状态,单位:百分比(%)。'."\n"
."\n"
.'> 该参数仅适用存储预留模式的实例。',
'type' => 'string',
'example' => '100.0%',
],
'ConnectionMode' => [
'description' => '访问模式,取值说明:'."\n"
."\n"
.'- **Performance**:标准访问模式。'."\n"
.'- **Safty**:高安全访问模式。'."\n"
.'- **LVS**:LVS链路模式。',
'type' => 'string',
'example' => 'LVS',
],
'ConnectionString' => [
'description' => '实例连接地址。',
'type' => 'string',
'example' => 'gp-bp13ue79qk8y1****-master.gpdb.rds.aliyuncs.com',
],
'CoreVersion' => [
'description' => '内核小版本号。',
'type' => 'string',
'example' => 'mm.v6.3.10.1-202207141918',
],
'CpuCores' => [
'description' => '计算节点CPU核数,单位Core。',
'type' => 'integer',
'format' => 'int32',
'example' => '2',
],
'CpuCoresPerNode' => [
'description' => '单节点的CPU核数。'."\n"
."\n"
.'> 该参数仅适用存储预留模式的实例。',
'type' => 'integer',
'format' => 'int32',
'example' => '0',
],
'CreationTime' => [
'description' => '实例创建时间。',
'type' => 'string',
'example' => '2022-08-11T09:16:26Z',
],
'DBInstanceCategory' => [
'description' => '实例系列,取值说明:'."\n"
."\n"
.'- **Basic**:基础版。'."\n"
.'- **HighAvailability**:高可用版。',
'type' => 'string',
'example' => 'HighAvailability',
],
'DBInstanceClass' => [
'description' => '实例规格。'."\n"
."\n"
.'> 该参数仅适用存储预留模式的实例。',
'type' => 'string',
'example' => 'gpdb.group.segsdx1',
],
'DBInstanceClassType' => [
'description' => '实例规格族,取值说明:'."\n"
."\n"
.'- **s**:共享型。'."\n"
.'- **x**:通用型。'."\n"
.'- **d**:独享套餐。'."\n"
.'- **h**:独占物理机。',
'type' => 'string',
'example' => 'x',
],
'DBInstanceCpuCores' => [
'description' => 'CPU核数。',
'type' => 'integer',
'format' => 'int32',
'example' => '2',
],
'DBInstanceDescription' => [
'description' => '实例描述。',
'type' => 'string',
'example' => 'gp-bp13ue79qk8y1****',
],
'DBInstanceDiskMBPS' => [
'description' => '计算组最大的BPS(磁盘吞吐量),单位:Mbps。'."\n"
."\n"
.'> 该参数仅适用存储预留模式的实例。',
'type' => 'integer',
'format' => 'int64',
'example' => '0',
],
'DBInstanceGroupCount' => [
'description' => '计算组数量。'."\n"
."\n"
.'> 该参数仅适用存储预留模式的实例。',
'type' => 'string',
'example' => '0',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp13ue79qk8y1****',
],
'DBInstanceMemory' => [
'description' => '计算节点的内存。'."\n"
."\n"
.'> 存储预留模式的单位为MB;Serverless和存储弹性模式单位为GB。',
'type' => 'integer',
'format' => 'int64',
'example' => '16',
],
'DBInstanceMode' => [
'description' => '实例资源类型,取值说明:'."\n"
."\n"
.'- **Serverless**:Serverless模式。'."\n"
.'- **StorageElastic**:存储弹性模式。'."\n"
.'- **Classic**:存储预留模式。',
'type' => 'string',
'example' => 'StorageElastic',
],
'DBInstanceNetType' => [
'description' => '该参数已废弃,不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
'DBInstanceStatus' => [
'description' => '实例状态,详细说明请参见DBInstanceStatus参数补充说明。',
'type' => 'string',
'example' => 'Running',
],
'DBInstanceStorage' => [
'description' => '单个副本的最大存储空间,单位:GB。',
'type' => 'integer',
'format' => 'int64',
'example' => '50',
],
'DeployMode' => [
'description' => '部署模式',
'type' => 'string',
'example' => 'single',
],
'EncryptionKey' => [
'description' => '加密密钥。'."\n"
."\n"
.'> 仅开启云盘加密的实例会返回该参数。',
'type' => 'string',
'example' => '0d2470df-da7b-4786-b981-************',
],
'EncryptionType' => [
'description' => '加密类型,取值说明:'."\n"
."\n"
.'- **CloudDisk**:云盘加密。'."\n"
."\n"
.'> 仅云盘加密的实例会返回该参数。',
'type' => 'string',
'example' => 'CloudDisk',
],
'Engine' => [
'description' => '数据库引擎。',
'type' => 'string',
'example' => 'gpdb',
],
'EngineVersion' => [
'description' => '数据库版本。',
'type' => 'string',
'example' => '6.0',
],
'ExpireTime' => [
'description' => '实例到期时间(UTC时间)。'."\n"
."\n"
.'> 按量付费实例的到期时间为`2999-09-08T16:00:00Z`。',
'type' => 'string',
'example' => '2999-09-08T16:00:00Z',
],
'HostType' => [
'description' => '计算组机器类型,取值说明:'."\n"
.'- **0**:SSD'."\n"
.'- **1**:HDD'."\n"
."\n"
.'> 该参数仅适用存储预留模式的实例。',
'type' => 'string',
'example' => '0',
],
'IdleTime' => [
'description' => '空闲释放等待时长。单位为秒。'."\n"
."\n"
.'> 仅Serverless自动调度模式实例返回该参数。',
'type' => 'integer',
'format' => 'int32',
'example' => '600',
],
'InstanceNetworkType' => [
'description' => '实例网络类型,取值说明:'."\n"
."\n"
.'- **Classic**:经典网络。'."\n"
.'- **VPC**:VPC网络。',
'type' => 'string',
'example' => 'VPC',
],
'LockMode' => [
'description' => '锁定方式,取值说明:'."\n"
."\n"
.'- **Unlock**:正常 。'."\n"
.'- **ManualLock**:手动触发锁定。'."\n"
.'- **LockByExpiration**:实例过期自动锁定。'."\n"
.'- **LockByRestoration**:实例回滚前的自动锁定。'."\n"
.'- **LockByDiskQuota**:实例空间满自动锁定。',
'type' => 'string',
'example' => 'Unlock',
],
'LockReason' => [
'description' => '该参数已废弃,故不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
'MaintainEndTime' => [
'description' => '可维护结束时间。',
'type' => 'string',
'example' => '22:00Z',
],
'MaintainStartTime' => [
'description' => '可维护开始时间。',
'type' => 'string',
'example' => '18:00Z',
],
'MasterCU' => [
'description' => 'Master资源。',
'type' => 'integer',
'format' => 'int32',
'example' => '4',
],
'MasterNodeNum' => [
'description' => 'Master节点数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'MaxConnections' => [
'description' => '实例的最大并发连接数。'."\n"
."\n"
.'> 该参数仅适用存储预留模式的实例。',
'type' => 'integer',
'format' => 'int32',
'example' => '500',
],
'MemoryPerNode' => [
'description' => '单副本的内存大小,单位请参见**MemoryUnit**参数。'."\n"
."\n"
.'> 该参数仅适用存储预留模式的实例。',
'type' => 'integer',
'format' => 'int32',
'example' => '0',
],
'MemorySize' => [
'description' => '计算节点内存大小。'."\n"
."\n"
.'> 存储预留模式的单位为MB;Serverless和存储弹性模式单位为GB。',
'type' => 'integer',
'format' => 'int64',
'example' => '16',
],
'MemoryUnit' => [
'description' => '内存单位。'."\n"
."\n"
.'> 该参数仅适用存储预留模式的实例。',
'type' => 'string',
'example' => 'GB',
],
'MinorVersion' => [
'description' => '内核小版本。',
'type' => 'string',
'example' => '6.3.10.1-202207141918',
],
'PayType' => [
'description' => '计费类型,取值说明:'."\n"
."\n"
.'- **Postpaid**:按量付费。'."\n"
.'- **Prepaid**:包年包月。',
'type' => 'string',
'example' => 'Postpaid',
],
'Port' => [
'description' => '实例的端口号。',
'type' => 'string',
'example' => '5432',
],
'ProdType' => [
'description' => '产品类型',
'type' => 'string',
'example' => 'standard',
'enum' => [
'standard',
'cost-effective',
],
],
'ReadDelayTime' => [
'description' => '该参数已废弃,故不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
'RegionId' => [
'description' => '地域ID。',
'type' => 'string',
'example' => 'cn-hangzhou',
],
'ResourceGroupId' => [
'description' => '实例所在的资源组ID。',
'type' => 'string',
'example' => 'rg-bp67acfmxazb4p****',
],
'RunningTime' => [
'description' => '实例运行时长。',
'type' => 'string',
'example' => '4 days 22:58:55',
],
'SecurityIPList' => [
'description' => '该参数已废弃,不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
'SegDiskPerformanceLevel' => [
'description' => '性能级别PL(Performance Level),目前仅支持**PL1**。',
'type' => 'string',
'example' => 'PL1',
],
'SegNodeNum' => [
'description' => 'Segment节点数量。'."\n"
."\n"
.'> 该参数仅适用存储弹性模式和Serverless手动调度模式的实例。',
'type' => 'integer',
'format' => 'int32',
'example' => '4',
],
'SegmentCounts' => [
'description' => '计算组个数。'."\n"
."\n"
.'> 该参数仅适用存储预留模式的实例。',
'type' => 'integer',
'format' => 'int32',
'example' => '0',
],
'ServerlessMode' => [
'description' => 'Serverless实例的模式,取值如下:'."\n"
."\n"
.'- **Manual**:手动调度。'."\n"
.'- **Auto**:自动调度。'."\n"
."\n"
.'>- 仅Serverless模式实例返回该参数。'."\n"
.'>- 云原生数据仓库 AnalyticDB PostgreSQL 版Serverless自动调度模式正在邀测中。如需使用,请您[提交工单](https://smartservice.console.aliyun.com/service/create-ticket?spm=openapi-amp.newDocPublishment.0.0.18ce281fyYBKUw&product=rds)申请邀测资格。',
'type' => 'string',
'example' => 'Auto',
],
'ServerlessResource' => [
'description' => '计算资源阈值。单位为ACU。'."\n"
."\n"
.'> 仅Serverless自动调度模式实例返回该参数。',
'type' => 'integer',
'format' => 'int32',
'example' => '32',
],
'StandbyZoneId' => [
'description' => '备可用区ID',
'type' => 'string',
'example' => 'cn-hangzhou-i',
],
'StartTime' => [
'description' => '实例开始运行的时间。',
'type' => 'string',
'example' => '2022-08-11T09:26:43Z',
],
'StoragePerNode' => [
'description' => '单副本的存储大小,单位请参见**StorageUnit**参数。'."\n"
."\n"
.'> 该参数仅适用存储预留模式的实例。',
'type' => 'integer',
'format' => 'int32',
'example' => '0',
],
'StorageSize' => [
'description' => '存储空间大小,单位GB。',
'type' => 'integer',
'format' => 'int64',
'example' => '50',
],
'StorageType' => [
'description' => '存储类型,取值说明:'."\n"
."\n"
.'- **cloud_essd**:ESSD云盘。'."\n"
.'- **cloud_efficiency**:高效云盘。'."\n"
."\n"
.'> 该参数仅适用存储弹性模式的实例。',
'type' => 'string',
'example' => 'cloud_essd',
],
'StorageUnit' => [
'description' => '存储单位,取值说明:'."\n"
."\n"
.'- **GB SSD**'."\n"
.'- **TB SSD**'."\n"
.'- **GB HDD**'."\n"
."\n"
.'> 该参数仅适用存储预留模式的实例。',
'type' => 'string',
'example' => 'GB SSD',
],
'SupportRestore' => [
'description' => '是否支持备份恢复,取值说明:'."\n"
."\n"
.'- **true**:支持备份恢复。'."\n"
.'- **false**:不支持备份恢复。',
'type' => 'boolean',
'example' => 'true',
],
'Tags' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Tag' => [
'description' => '标记键值对。',
'type' => 'array',
'items' => [
'description' => '标签详情如下。',
'type' => 'object',
'properties' => [
'Key' => [
'description' => '标签键。',
'type' => 'string',
'example' => 'test-key',
],
'Value' => [
'description' => '标签值。',
'type' => 'string',
'example' => 'test-value',
],
],
],
],
],
],
'VSwitchId' => [
'description' => 'vSwitch ID。',
'type' => 'string',
'example' => 'vsw-bp1cpq8mr64paltkb****',
],
'VectorConfigurationStatus' => [
'description' => '是否开启向量引擎优化,取值说明:'."\n"
.'- **enabled**:表示开启向量引擎优化。'."\n"
.'- **disabled**:表示已关闭向量引擎优化。',
'type' => 'string',
'example' => 'enabled',
],
'VpcId' => [
'description' => 'VPC ID。',
'type' => 'string',
'example' => 'vpc-bp19ame5m1r3oejns****',
],
'ZoneId' => [
'description' => '可用区ID。',
'type' => 'string',
'example' => 'cn-hangzhou-j',
],
'SegmentAISpec' => [
'description' => '返回实例的计算AI节点规格。如果计算节点非AI节点,则返回空值。',
'type' => 'string',
'example' => 'ADB.AIMedium.2',
],
'MasterAISpec' => [
'description' => '返回实例的Master AI节点规格。如果Master节点非AI节点,则返回空值。',
'type' => 'string',
'example' => 'ADB.AIMedium.2',
],
'CacheStorageSize' => [
'description' => '缓存盘总大小,单位为GB。',
'type' => 'string',
'example' => '64',
],
'InstanceSpec' => [
'description' => '计算节点规格。',
'type' => 'string',
'example' => '2C16G',
],
'GraphEngineStatus' => [
'description' => '是否开启图引擎。取值说明:'."\n"
.'- **enabled**:表示开启图引擎。'."\n"
.'- **disabled**:表示已关闭图引擎。',
'type' => 'string',
'example' => 'enabled',
],
],
],
],
],
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '5E6EDEB8-D73E-5F2D-B948-86C8AEB05A68',
],
],
],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Items\\": {\\n \\"DBInstanceAttribute\\": [\\n {\\n \\"AvailabilityValue\\": \\"100.0%\\",\\n \\"ConnectionMode\\": \\"LVS\\",\\n \\"ConnectionString\\": \\"gp-bp13ue79qk8y1****-master.gpdb.rds.aliyuncs.com\\",\\n \\"CoreVersion\\": \\"mm.v6.3.10.1-202207141918\\",\\n \\"CpuCores\\": 2,\\n \\"CpuCoresPerNode\\": 0,\\n \\"CreationTime\\": \\"2022-08-11T09:16:26Z\\",\\n \\"DBInstanceCategory\\": \\"HighAvailability\\",\\n \\"DBInstanceClass\\": \\"gpdb.group.segsdx1\\",\\n \\"DBInstanceClassType\\": \\"x\\",\\n \\"DBInstanceCpuCores\\": 2,\\n \\"DBInstanceDescription\\": \\"gp-bp13ue79qk8y1****\\",\\n \\"DBInstanceDiskMBPS\\": 0,\\n \\"DBInstanceGroupCount\\": \\"0\\",\\n \\"DBInstanceId\\": \\"gp-bp13ue79qk8y1****\\",\\n \\"DBInstanceMemory\\": 16,\\n \\"DBInstanceMode\\": \\"StorageElastic\\",\\n \\"DBInstanceNetType\\": \\"null\\",\\n \\"DBInstanceStatus\\": \\"Running\\",\\n \\"DBInstanceStorage\\": 50,\\n \\"DeployMode\\": \\"single\\",\\n \\"EncryptionKey\\": \\"0d2470df-da7b-4786-b981-************\\",\\n \\"EncryptionType\\": \\"CloudDisk\\",\\n \\"Engine\\": \\"gpdb\\",\\n \\"EngineVersion\\": \\"6.0\\",\\n \\"ExpireTime\\": \\"2999-09-08T16:00:00Z\\",\\n \\"HostType\\": \\"0\\",\\n \\"IdleTime\\": 600,\\n \\"InstanceNetworkType\\": \\"VPC\\",\\n \\"LockMode\\": \\"Unlock\\",\\n \\"LockReason\\": \\"null\\",\\n \\"MaintainEndTime\\": \\"22:00Z\\",\\n \\"MaintainStartTime\\": \\"18:00Z\\",\\n \\"MasterCU\\": 4,\\n \\"MasterNodeNum\\": 1,\\n \\"MaxConnections\\": 500,\\n \\"MemoryPerNode\\": 0,\\n \\"MemorySize\\": 16,\\n \\"MemoryUnit\\": \\"GB\\",\\n \\"MinorVersion\\": \\"6.3.10.1-202207141918\\",\\n \\"PayType\\": \\"Postpaid\\",\\n \\"Port\\": \\"5432\\",\\n \\"ProdType\\": \\"standard\\",\\n \\"ReadDelayTime\\": \\"null\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"ResourceGroupId\\": \\"rg-bp67acfmxazb4p****\\",\\n \\"RunningTime\\": \\"4 days 22:58:55\\",\\n \\"SecurityIPList\\": \\"null\\",\\n \\"SegDiskPerformanceLevel\\": \\"PL1\\",\\n \\"SegNodeNum\\": 4,\\n \\"SegmentCounts\\": 0,\\n \\"ServerlessMode\\": \\"Auto\\",\\n \\"ServerlessResource\\": 32,\\n \\"StandbyZoneId\\": \\"cn-hangzhou-i\\",\\n \\"StartTime\\": \\"2022-08-11T09:26:43Z\\",\\n \\"StoragePerNode\\": 0,\\n \\"StorageSize\\": 50,\\n \\"StorageType\\": \\"cloud_essd\\",\\n \\"StorageUnit\\": \\"GB SSD\\",\\n \\"SupportRestore\\": true,\\n \\"Tags\\": {\\n \\"Tag\\": [\\n {\\n \\"Key\\": \\"test-key\\",\\n \\"Value\\": \\"test-value\\"\\n }\\n ]\\n },\\n \\"VSwitchId\\": \\"vsw-bp1cpq8mr64paltkb****\\",\\n \\"VectorConfigurationStatus\\": \\"enabled\\",\\n \\"VpcId\\": \\"vpc-bp19ame5m1r3oejns****\\",\\n \\"ZoneId\\": \\"cn-hangzhou-j\\",\\n \\"SegmentAISpec\\": \\"ADB.AIMedium.2\\",\\n \\"MasterAISpec\\": \\"ADB.AIMedium.2\\",\\n \\"CacheStorageSize\\": \\"64\\",\\n \\"InstanceSpec\\": \\"2C16G\\",\\n \\"GraphEngineStatus\\": \\"enabled\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"5E6EDEB8-D73E-5F2D-B948-86C8AEB05A68\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n \\n 5E6EDEB8-D73E-5F2D-B948-86C8AEB05A68\\n \\n \\n 1\\n 16\\n 0\\n 5432\\n 4\\n 0\\n VPC\\n x\\n true\\n HighAvailability\\n 22:00Z\\n gp-bp13ue79qk8y1****\\n 50\\n gp-bp13ue79qk8y1****\\n 18:00Z\\n gpdb\\n \\n \\n 0\\n 16\\n \\n cloud_essd\\n 6.0\\n Running\\n cn-hangzhou-j\\n 2\\n vsw-bp1cpq8mr64paltkb****\\n 2022-08-11T09:26:43Z\\n 50\\n 6.3.10.1-202207141918\\n mm.v6.3.10.1-202207141918\\n \\n Postpaid\\n Unlock\\n vpc-bp19ame5m1r3oejns****\\n 0\\n StorageElastic\\n 2022-08-11T09:16:26Z\\n LVS\\n 2\\n cn-hangzhou\\n gp-bp13ue79qk8y1****-master.gpdb.rds.aliyuncs.com\\n 2999-09-08T16:00:00Z\\n 4 days 22:58:55\\n \\n \\n \\n 200\\n 5E6EDEB8-D73E-5F2D-B948-86C8AEB05A68\\n true\\n","errorExample":""}]',
'title' => '查询实例详情',
'description' => '## 使用说明'."\n"
.'本接口一般用于查看AnalyticDB PostgreSQL版实例的规格、网络类型、实例状态等信息。'."\n"
."\n"
.'## QPS限制'."\n"
.'本接口的单用户QPS限制默认为1000次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。'."\n"
."\n"
.'本文档中的QPS仅为默认参考值,准确信息请参见[API速率配额列表](https://quotas.console.aliyun.com/flow-control-products/gpdb/quotas)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '### DBInstanceStatus参数补充说明'."\n"
.'DBInstanceStatus取值如下:'."\n"
.'- **Creating**:创建中。'."\n"
.'- **Running**:使用中。'."\n"
.'- **Deleting**:删除中。'."\n"
.'- **Rebooting**:重启中。'."\n"
.'- **DBInstanceClassChanging**:升降级中。'."\n"
.'- **Transfering**:迁移中。'."\n"
.'- **EngineVersionUpgrading**:迁移版本中。'."\n"
.'- **TransferingToOtherInstance**:迁移数据到其他AnalyticDB for PostgreSQL中。'."\n"
.'- **GuardDBInstanceCreating**:创建灾备实例中。'."\n"
.'- **Restoring**:备份恢复中。'."\n"
.'- **Importing**:数据导入中。'."\n"
.'- **ImportingFromOtherInstance**:从其他AnalyticDB for PostgreSQL实例导入数据中。'."\n"
.'- **DBInstanceNetTypeChangin**:内外网切换中。'."\n"
.'- **GuardSwitching**:容灾切换中。',
'extraInfo' => ' ',
],
'DescribeDBInstances' => [
'summary' => '查询AnalyticDB PostgreSQL版数据库实例列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbAXSDJ9',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以通过[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceDescription',
'in' => 'query',
'schema' => [
'description' => '实例描述。',
'type' => 'string',
'required' => false,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'InstanceNetworkType',
'in' => 'query',
'schema' => [
'description' => '实例网络类型,取值说明:'."\n"
.'- **VPC**:专有网络。'."\n"
.'- **Classic**:经典网络。'."\n"
."\n"
.'> 如果不填,则返回所有网络类型的实例。',
'type' => 'string',
'required' => false,
'example' => 'VPC',
],
],
[
'name' => 'DBInstanceIds',
'in' => 'query',
'schema' => [
'description' => '实例ID,多个实例ID之间用英文半角逗号(,)分隔。',
'type' => 'string',
'required' => false,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '50',
'default' => '30',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:**1**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
'default' => '1',
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => '标签列表。',
'type' => 'array',
'items' => [
'description' => '标签列表。',
'type' => 'object',
'properties' => [
'Key' => [
'description' => '标签键。',
'type' => 'string',
'required' => false,
'example' => 'test-key',
],
'Value' => [
'description' => '标签值。',
'type' => 'string',
'required' => false,
'example' => 'test-value',
],
],
'required' => false,
],
'required' => false,
'maxItems' => 21,
],
],
[
'name' => 'InstanceDeployTypes',
'in' => 'query',
'style' => 'simple',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'array',
'items' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
'required' => false,
],
],
[
'name' => 'DBInstanceStatuses',
'in' => 'query',
'style' => 'simple',
'schema' => [
'description' => '实例运行状态。',
'type' => 'array',
'items' => [
'description' => '实例运行状态,多个值用英文逗号(,)分隔。实例的运行状态的值,请参见[实例状态表](~~86944~~)。'."\n"
."\n"
.'> 该参数的传入值须为小写字母。',
'type' => 'string',
'required' => false,
'example' => 'running',
],
'required' => false,
],
],
[
'name' => 'DBInstanceCategories',
'in' => 'query',
'style' => 'simple',
'schema' => [
'description' => '实例系列,多个值用英文逗号(,)分隔。',
'type' => 'array',
'items' => [
'description' => '实例系列,多个值用英文逗号(,)分隔。取值说明:'."\n"
.'- **basic**:基础版。'."\n"
.'- **highavailability**:高可用版。'."\n"
.'- **finance**:企业版。',
'type' => 'string',
'required' => false,
'example' => 'basic,highavailability',
],
'required' => false,
],
],
[
'name' => 'DBInstanceModes',
'in' => 'query',
'style' => 'simple',
'schema' => [
'description' => '资源类型,多个值用英文逗号(,)分隔。',
'type' => 'array',
'items' => [
'description' => '资源类型,多个值用英文逗号(,)分隔。取值说明:'."\n"
."\n"
.'- **serverless**:Serverless版本。'."\n"
.'- **storageelastic**:存储弹性模式。'."\n"
.'- **classic**:存储预留模式。',
'type' => 'string',
'required' => false,
'example' => 'storageelastic,serverless',
],
'required' => false,
],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '实例所在的企业资源组ID。',
'type' => 'string',
'required' => false,
'example' => 'rg-bp67acfmxazb4p****',
],
],
[
'name' => 'VpcId',
'in' => 'query',
'schema' => [
'description' => '专有网络ID。'."\n"
.'可根据该参数筛选出同一VPC的数据。',
'type' => 'string',
'required' => false,
'example' => 'vpc-t4nqyp3tc5mx7vy6****',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '列表。',
'type' => 'object',
'properties' => [
'Items' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'DBInstance' => [
'description' => '实例详情列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ConnectionMode' => [
'description' => '该参数已废弃,故不会返回参数值。'."\n"
."\n"
.'如需查询访问模式可以通过[DescribeDBInstanceAttribute](~~86910~~)接口查询。',
'type' => 'string',
'example' => 'null',
],
'CreateTime' => [
'description' => '实例创建时间(UTC时间)。',
'type' => 'string',
'example' => '2021-10-09T04:54:08Z',
],
'DBInstanceCategory' => [
'description' => '实例系列,取值说明:'."\n"
."\n"
.'- **Basic**:基础版。'."\n"
.'- **HighAvailability**:高可用版。'."\n"
.'- **Finance**:企业版。',
'type' => 'string',
'example' => 'HighAvailability',
],
'DBInstanceDescription' => [
'description' => '实例描述。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
'DBInstanceMode' => [
'description' => '资源类型,取值说明:'."\n"
."\n"
.'- **Serverless**:Serverless版本。'."\n"
.'- **StorageElastic**:存储弹性模式。'."\n"
.'- **Classic**:存储预留模式。',
'type' => 'string',
'example' => 'StorageElastic',
],
'DBInstanceNetType' => [
'description' => '实例网卡类型,取值说明:'."\n"
."\n"
.'- **0**:外网。'."\n"
.'- **1**:内网。'."\n"
.'- **2**:VPC网络。',
'type' => 'string',
'example' => '2',
],
'DBInstanceStatus' => [
'description' => '实例状态,详见[实例状态表](~~86944~~)。',
'type' => 'string',
'example' => 'Running',
],
'Engine' => [
'description' => '数据库类型。',
'type' => 'string',
'example' => 'gpdb',
],
'EngineVersion' => [
'description' => '数据库版本。',
'type' => 'string',
'example' => '6.0',
],
'ExpireTime' => [
'description' => '实例到期时间(UTC时间)。'."\n"
."\n"
.'> 按量付费实例的到日时间为`2999-09-08T16:00:00Z`。',
'type' => 'string',
'example' => '2999-09-08T16:00:00Z',
],
'InstanceDeployType' => [
'description' => '实例资源类型,取值说明:'."\n"
."\n"
.'- **cluster**:存储弹性模式或Serverless版本。'."\n"
.'- **replicaSet**:存储预留模式。',
'type' => 'string',
'example' => 'cluster',
],
'InstanceNetworkType' => [
'description' => '实例网络类型,取值说明:'."\n"
."\n"
.'- **Classic**:经典网络。'."\n"
.'- **VPC**:VPC网络。',
'type' => 'string',
'example' => 'VPC',
],
'LockMode' => [
'description' => '实例锁定模式,取值说明:'."\n"
.'- **Unlock**:正常。'."\n"
.'- **ManualLock**:手动触发锁定。'."\n"
.'- **LockByExpiration**:实例过期自动锁定。'."\n"
.'- **LockByRestoration**:实例回滚前的自动锁定。'."\n"
.'- **LockByDiskQuota**:实例空间满自动锁定。'."\n"
.'- **LockReadInstanceByDiskQuota**:只读实例空间满自动锁定。',
'type' => 'string',
'example' => 'Unlock',
],
'LockReason' => [
'description' => '被锁定的原因,取值说明:'."\n"
."\n"
.'- **0**:正常。'."\n"
.'- **1**:手动触发锁定。'."\n"
.'- **2**:实例过期自动锁定。'."\n"
.'- **3**:实例回滚前的自动锁定。'."\n"
.'- **4**:实例空间满自动锁定。'."\n"
."\n"
.'> 存储预留模式实例正常情况下返回值为空。',
'type' => 'string',
'example' => '0',
],
'MasterNodeNum' => [
'description' => 'Master节点数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PayType' => [
'description' => '计费类型,取值说明:'."\n"
."\n"
.'- **Postpaid**:按量付费。'."\n"
.'- **Prepaid**:包年包月。',
'type' => 'string',
'example' => 'Postpaid',
],
'ProdType' => [
'description' => '产品类型,取值说明:'."\n"
.'- **standard**:标准版。'."\n"
.'- **cost-effective**:经济版。',
'type' => 'string',
'example' => 'standard',
],
'RegionId' => [
'description' => '地域ID。',
'type' => 'string',
'example' => 'cn-hangzhou',
],
'ResourceGroupId' => [
'description' => '实例所在的企业资源组ID。',
'type' => 'string',
'example' => 'rg-bp67acfmxazb4p****',
],
'SegNodeNum' => [
'description' => 'Segment节点数量。',
'type' => 'string',
'example' => '4',
],
'ServerlessMode' => [
'description' => 'Serverless实例的模式,取值如下:'."\n"
."\n"
.'- **Manual**:手动调度。'."\n"
.'- **Auto**:自动调度。'."\n"
.'> - 仅Serverless模式实例返回该参数。'."\n"
.'> - 云原生数据仓库 AnalyticDB PostgreSQL 版Serverless自动调度模式正在邀测中。如需使用,请您[提交工单](https://smartservice.console.aliyun.com/service/create-ticket?spm=openapi-amp.newDocPublishment.0.0.18ce281fyYBKUw&product=rds)申请邀测资格。',
'type' => 'string',
'example' => 'Manual',
],
'StorageSize' => [
'description' => '存储空间大小,单位GB。',
'type' => 'string',
'example' => '50',
],
'StorageType' => [
'description' => '实例存储类型,取值说明:'."\n"
."\n"
.'- **cloud_essd**:ESSD云盘。'."\n"
.'- **cloud_efficiency**:高效云盘。',
'type' => 'string',
'example' => 'cloud_essd',
],
'Tags' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Tag' => [
'description' => '实例标签。',
'type' => 'array',
'items' => [
'description' => '列表。',
'type' => 'object',
'properties' => [
'Key' => [
'description' => '标签键。',
'type' => 'string',
'example' => 'test-key',
],
'Value' => [
'description' => '标签值。',
'type' => 'string',
'example' => 'test-value',
],
],
],
],
],
],
'VSwitchId' => [
'description' => 'vSwitch ID。',
'type' => 'string',
'example' => 'vsw-bp1cpq8mr64paltkb****',
],
'VpcId' => [
'description' => 'VPC ID。',
'type' => 'string',
'example' => 'vpc-bp19ame5m1r3oejns****',
],
'ZoneId' => [
'description' => '可用区ID。',
'type' => 'string',
'example' => 'cn-hangzhou-h',
],
],
],
],
],
],
'PageNumber' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageRecordCount' => [
'description' => '当前页记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '53EA07B7-FC2A-521B-AB7C-27**********',
],
'TotalRecordCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Items\\": {\\n \\"DBInstance\\": [\\n {\\n \\"ConnectionMode\\": \\"null\\",\\n \\"CreateTime\\": \\"2021-10-09T04:54:08Z\\",\\n \\"DBInstanceCategory\\": \\"HighAvailability\\",\\n \\"DBInstanceDescription\\": \\"gp-bp12ga6v69h86****\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\",\\n \\"DBInstanceMode\\": \\"StorageElastic\\",\\n \\"DBInstanceNetType\\": \\"2\\",\\n \\"DBInstanceStatus\\": \\"Running\\",\\n \\"Engine\\": \\"gpdb\\",\\n \\"EngineVersion\\": \\"6.0\\",\\n \\"ExpireTime\\": \\"2999-09-08T16:00:00Z\\",\\n \\"InstanceDeployType\\": \\"cluster\\",\\n \\"InstanceNetworkType\\": \\"VPC\\",\\n \\"LockMode\\": \\"Unlock\\",\\n \\"LockReason\\": \\"0\\",\\n \\"MasterNodeNum\\": 1,\\n \\"PayType\\": \\"Postpaid\\",\\n \\"ProdType\\": \\"standard\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"ResourceGroupId\\": \\"rg-bp67acfmxazb4p****\\",\\n \\"SegNodeNum\\": \\"4\\",\\n \\"ServerlessMode\\": \\"Manual\\",\\n \\"StorageSize\\": \\"50\\",\\n \\"StorageType\\": \\"cloud_essd\\",\\n \\"Tags\\": {\\n \\"Tag\\": [\\n {\\n \\"Key\\": \\"test-key\\",\\n \\"Value\\": \\"test-value\\"\\n }\\n ]\\n },\\n \\"VSwitchId\\": \\"vsw-bp1cpq8mr64paltkb****\\",\\n \\"VpcId\\": \\"vpc-bp19ame5m1r3oejns****\\",\\n \\"ZoneId\\": \\"cn-hangzhou-h\\"\\n }\\n ]\\n },\\n \\"PageNumber\\": 1,\\n \\"PageRecordCount\\": 1,\\n \\"RequestId\\": \\"53EA07B7-FC2A-521B-AB7C-27**********\\",\\n \\"TotalRecordCount\\": 1\\n}","errorExample":""},{"type":"xml","example":"\\n 1\\n 1\\n 53EA07B7-FC2A-521B-AB7C-27**********\\n 1\\n \\n vpc-bp19ame5m1r3oejns****\\n 2999-09-08T16:00:00Z\\n 2\\n cluster\\n cloud_essd\\n 2021-10-09T04:54:08Z\\n Postpaid\\n \\n test-key\\n test-value\\n \\n 0\\n Running\\n null\\n Unlock\\n 6.0\\n cn-hangzhou\\n vsw-bp1cpq8mr64paltkb****\\n VPC\\n cn-hangzhou-h\\n gp-bp12ga6v69h86****\\n gpdb\\n gp-bp12ga6v69h86****\\n 4\\n 50\\n 1\\n HighAvailability\\n StorageElastic\\n rg-bp67acfmxazb4p****\\n Manual\\n \\n","errorExample":""}]',
'title' => '查询数据库实例列表',
'description' => '## 使用说明'."\n"
.'本接口用于查看目标地域下的AnalyticDB PostgreSQL版实例的实例类型、网络类型、实例状态等信息。'."\n"
."\n"
.'## QPS限制'."\n"
.'本接口的单用户QPS限制默认为1000次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。'."\n"
."\n"
.'本文档中的QPS仅为默认参考值,准确信息请参见[API速率配额列表](https://quotas.console.aliyun.com/flow-control-products/gpdb/quotas)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeDBVersionInfos' => [
'summary' => '查询内核版本信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNN784S',
],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '实例当前所属的资源组ID。如何获取资源组ID,请参见[查看资源组基本信息](~~151181~~)。',
'type' => 'string',
'required' => false,
'example' => 'rg-bp67acfmxazb4p****',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceMode',
'in' => 'query',
'schema' => [
'description' => '实例资源类型,取值说明:'."\n"
."\n"
.'- **StorageElastic**:存储弹性模式。'."\n"
.'- **Serverless**:Serverless模式。',
'type' => 'string',
'required' => false,
'example' => 'StorageElastic',
],
],
[
'name' => 'DBVersion',
'in' => 'query',
'schema' => [
'description' => '不带前缀的内核版本号。',
'type' => 'string',
'required' => false,
'example' => '6.3.10.20。',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'VersionDetails' => [
'description' => '数据结构。',
'type' => 'object',
'properties' => [
'StorageElastic' => [
'description' => '存储弹性的内核版本信息。',
'type' => 'any',
'example' => '"StorageElasic": ['."\n"
.' {'."\n"
.' "engineVersion": "6.0",'."\n"
.' "versionInfos": ['."\n"
.' {'."\n"
.' "kernelVersion": "v6.3.11.2",'."\n"
.' "releaseDate": "2023-08-17T09:14Z",'."\n"
.' "expirationDate": "2026-08-17T09:14Z"'."\n"
.' }'."\n"
.' },'."\n"
.' {'."\n"
.' "engineVersion": "7.0",'."\n"
.' "versionInfos": ['."\n"
.' {'."\n"
.' "kernelVersion": "v7.0.2.0",'."\n"
.' "releaseDate": "2023-08-09T06:47Z",'."\n"
.' "expirationDate": "2026-08-09T06:47Z"'."\n"
.' },'."\n"
.' {'."\n"
.' "kernelVersion": "v7.0.1.8",'."\n"
.' "releaseDate": "2023-05-25T06:56Z",'."\n"
.' "expirationDate": "2026-05-25T06:56Z"'."\n"
.' }'."\n"
.' ]'."\n"
.' }'."\n"
.']'."\n",
],
'Serverless' => [
'description' => '云原生的内核版本信息。',
'type' => 'any',
'example' => '"Serverless": ['."\n"
.' {'."\n"
.' "engineVersion": "6.0",'."\n"
.' "versionInfos": ['."\n"
.' {'."\n"
.' "kernelVersion": "v2.0.0.5",'."\n"
.' "releaseDate": "2023-05-28T07:48Z",'."\n"
.' "expirationDate": "2026-05-28T07:48Z"'."\n"
.' },'."\n"
.' {'."\n"
.' "kernelVersion": "v2.0.0.1",'."\n"
.' "releaseDate": "2023-03-27T12:44Z",'."\n"
.' "expirationDate": "2026-03-27T12:44Z"'."\n"
.' },'."\n"
.' {'."\n"
.' "kernelVersion": "v1.0.5.1",'."\n"
.' "releaseDate": "2023-02-22T11:39Z",'."\n"
.' "expirationDate": "2026-02-22T11:39Z"'."\n"
.' }'."\n"
.' ]'."\n"
.' }'."\n"
.']',
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"VersionDetails\\": {\\n \\"StorageElastic\\": \\"\\\\\\"StorageElasic\\\\\\": [\\\\n {\\\\n \\\\\\"engineVersion\\\\\\": \\\\\\"6.0\\\\\\",\\\\n \\\\\\"versionInfos\\\\\\": [\\\\n {\\\\n \\\\\\"kernelVersion\\\\\\": \\\\\\"v6.3.11.2\\\\\\",\\\\n \\\\\\"releaseDate\\\\\\": \\\\\\"2023-08-17T09:14Z\\\\\\",\\\\n \\\\\\"expirationDate\\\\\\": \\\\\\"2026-08-17T09:14Z\\\\\\"\\\\n }\\\\n },\\\\n {\\\\n \\\\\\"engineVersion\\\\\\": \\\\\\"7.0\\\\\\",\\\\n \\\\\\"versionInfos\\\\\\": [\\\\n {\\\\n \\\\\\"kernelVersion\\\\\\": \\\\\\"v7.0.2.0\\\\\\",\\\\n \\\\\\"releaseDate\\\\\\": \\\\\\"2023-08-09T06:47Z\\\\\\",\\\\n \\\\\\"expirationDate\\\\\\": \\\\\\"2026-08-09T06:47Z\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"kernelVersion\\\\\\": \\\\\\"v7.0.1.8\\\\\\",\\\\n \\\\\\"releaseDate\\\\\\": \\\\\\"2023-05-25T06:56Z\\\\\\",\\\\n \\\\\\"expirationDate\\\\\\": \\\\\\"2026-05-25T06:56Z\\\\\\"\\\\n }\\\\n ]\\\\n }\\\\n]\\\\n\\",\\n \\"Serverless\\": \\"\\\\\\"Serverless\\\\\\": [\\\\n {\\\\n \\\\\\"engineVersion\\\\\\": \\\\\\"6.0\\\\\\",\\\\n \\\\\\"versionInfos\\\\\\": [\\\\n {\\\\n \\\\\\"kernelVersion\\\\\\": \\\\\\"v2.0.0.5\\\\\\",\\\\n \\\\\\"releaseDate\\\\\\": \\\\\\"2023-05-28T07:48Z\\\\\\",\\\\n \\\\\\"expirationDate\\\\\\": \\\\\\"2026-05-28T07:48Z\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"kernelVersion\\\\\\": \\\\\\"v2.0.0.1\\\\\\",\\\\n \\\\\\"releaseDate\\\\\\": \\\\\\"2023-03-27T12:44Z\\\\\\",\\\\n \\\\\\"expirationDate\\\\\\": \\\\\\"2026-03-27T12:44Z\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"kernelVersion\\\\\\": \\\\\\"v1.0.5.1\\\\\\",\\\\n \\\\\\"releaseDate\\\\\\": \\\\\\"2023-02-22T11:39Z\\\\\\",\\\\n \\\\\\"expirationDate\\\\\\": \\\\\\"2026-02-22T11:39Z\\\\\\"\\\\n }\\\\n ]\\\\n }\\\\n]\\"\\n }\\n}","type":"json"}]',
'title' => '查询内核版本信息',
],
'DescribeSupportFeatures' => [
'summary' => '查询当前AnalyticDB PostgreSQL版实例支持的功能特性。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNN784S',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回对象。',
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '63E5BE60-91FF-57F1-B873-7F1EB734B93D_2724',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
'SupportFeatureList' => [
'description' => '当前实例支持的功能特性。目前仅支持查询如下功能特性:'."\n"
."\n"
.'- sample_data:样本数据集,更多介绍,请参见[样本数据集](~~452278~~)。'."\n"
.'- diagnose_and_optimize:诊断与优化,更多介绍,请参见[诊断与优化](~~323453~~)。',
'type' => 'string',
'example' => '[ "sample_data", "diagnose_and_optimize" ]',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"63E5BE60-91FF-57F1-B873-7F1EB734B93D_2724\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\",\\n \\"SupportFeatureList\\": \\"[ \\\\\\"sample_data\\\\\\", \\\\\\"diagnose_and_optimize\\\\\\" ]\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 63E5BE60-91FF-57F1-B873-7F1EB734B93D_2724\\n gp-bp12ga6v69h86****\\n sample_data\\n diagnose_and_optimize\\n","errorExample":""}]',
'title' => '查询实例支持的功能特性',
],
'DescribeModifyParameterLog' => [
'summary' => '获取AnalyticDB PostgreSQL版实例的参数修改历史。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNYDSCU',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
.'> 您可以调用[DescribeDBInstances](~~196830~~)接口查看目标地域下所有实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-9dpm71ov2wxxq****',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间。格式为YYYY-MM-DDThh:mmZ(UTC时间)。',
'type' => 'string',
'required' => false,
'example' => '2023-01-03T16:00:00Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,格式为YYYY-MM-DDThh:mmZ(UTC时间),且大于查询开始时间。',
'type' => 'string',
'required' => false,
'example' => '2023-01-03T20:00:00Z',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '4FA1F1D1-50A6-4F60-9A78-5752F2076A53',
],
'Changelogs' => [
'description' => '变更历史。',
'type' => 'array',
'items' => [
'description' => '变更历史。',
'type' => 'object',
'properties' => [
'ParameterValueAfter' => [
'description' => '修改前的参数。',
'type' => 'string',
'example' => '100',
],
'ParameterName' => [
'description' => '参数名。',
'type' => 'string',
'example' => 'testkey',
],
'EffectTime' => [
'description' => '生效时间。',
'type' => 'string',
'example' => '2023-01-03T17:00:00Z',
],
'ParameterValueBefore' => [
'description' => '修改后的参数。',
'type' => 'string',
'example' => '200',
],
'ParameterValid' => [
'description' => '是否生效。',
'type' => 'string',
'example' => 'true',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4FA1F1D1-50A6-4F60-9A78-5752F2076A53\\",\\n \\"Changelogs\\": [\\n {\\n \\"ParameterValueAfter\\": \\"100\\",\\n \\"ParameterName\\": \\"testkey\\",\\n \\"EffectTime\\": \\"2023-01-03T17:00:00Z\\",\\n \\"ParameterValueBefore\\": \\"200\\",\\n \\"ParameterValid\\": \\"true\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => '查询参数修改历史',
],
'DescribeParameters' => [
'summary' => '获取AnalyticDB PostgreSQL版实例的配置参数信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNYDSCU',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp***************',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Parameters' => [
'description' => '配置参数列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'IsChangeableConfig' => [
'description' => '配置参数是否可修改。取值说明:'."\n"
."\n"
.'- **true**:可修改。'."\n"
.'- **false**:不可修改。',
'type' => 'string',
'example' => 'true',
],
'ForceRestartInstance' => [
'description' => '是否需要重启实例。取值说明:'."\n"
."\n"
.'- **true**:需要重启实例。'."\n"
.'- **false**:不需要重启实例。',
'type' => 'string',
'example' => 'false',
],
'OptionalRange' => [
'description' => '配置参数的取值范围。',
'type' => 'string',
'example' => '[0-2147483647]',
],
'ParameterName' => [
'description' => '配置参数名称。',
'type' => 'string',
'example' => 'statement_timeout',
],
'ParameterValue' => [
'description' => '配置参数默认值。',
'type' => 'string',
'example' => '10800000',
],
'ParameterDescription' => [
'description' => '配置参数的说明。',
'type' => 'string',
'example' => 'Sets the maximum allowed duration of any statement,A value of 0 turns off the timeout.',
],
'CurrentValue' => [
'description' => '配置参数当前值。',
'type' => 'string',
'example' => '10800000',
],
],
],
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '62506167-D284-562A-B7C2-0A**********',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Parameters\\": [\\n {\\n \\"IsChangeableConfig\\": \\"true\\",\\n \\"ForceRestartInstance\\": \\"false\\",\\n \\"OptionalRange\\": \\"[0-2147483647]\\",\\n \\"ParameterName\\": \\"statement_timeout\\",\\n \\"ParameterValue\\": \\"10800000\\",\\n \\"ParameterDescription\\": \\"Sets the maximum allowed duration of any statement,A value of 0 turns off the timeout.\\",\\n \\"CurrentValue\\": \\"10800000\\"\\n }\\n ],\\n \\"RequestId\\": \\"62506167-D284-562A-B7C2-0A**********\\"\\n}","errorExample":""},{"type":"xml","example":"\\n \\n [0-2147483647]\\n 10800000\\n true\\n 10800000\\n statement_timeout\\n Sets the maximum allowed duration of any statement,A value of 0 turns off the timeout.\\n false\\n \\n \\n [multi_write_ec|multi_write_sc|single]\\n single\\n true\\n multi_write_ec\\n rds_master_mode\\n Enable global strong consistency when rds_master_mode is set to multi_write_sc, and session consistency when rds_master_mode is set to multi_write_ec\\n true\\n \\n 62506167-D284-562A-B7C2-0A**********\\n","errorExample":""}]',
'title' => '获取配置参数信息',
'description' => '本接口仅支持查看存储弹性模式和Serverless版本的AnalyticDB PostgreSQL版实例的配置参数和相关信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ModifyParameters' => [
'summary' => '修改AnalyticDB PostgreSQL版实例的配置参数。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNYDSCU',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp***************',
],
],
[
'name' => 'Parameters',
'in' => 'query',
'schema' => [
'description' => '需要修改的参数名称和参数值。格式为`<参数名称>:<参数值>`。'."\n"
."\n"
.'您可以通过[DescribeParameters](~~208310~~)接口查看支持修改的配置参数。',
'type' => 'string',
'required' => true,
'example' => '{"statement_timeout":"11800010"}',
],
],
[
'name' => 'ForceRestartInstance',
'in' => 'query',
'schema' => [
'description' => '是否强制重启实例。取值说明:'."\n"
."\n"
.'- **true**:强制重启。'."\n"
.'- **false**(默认):不强制重启。',
'type' => 'boolean',
'required' => false,
'example' => 'false',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '3FE698B6-6579-547C-A403-07**********',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"3FE698B6-6579-547C-A403-07**********\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 3FE698B6-6579-547C-A403-07**********\\n","errorExample":""}]',
'title' => '修改配置参数',
'description' => '本接口仅支持修改存储弹性模式和Serverless版本的AnalyticDB PostgreSQL版实例的配置参数。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeBackupPolicy' => [
'summary' => '查看AnalyticDB PostgreSQL版实例的备份策略。',
'methods' => [
'post',
'get',
'put',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbS95BLZ',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'gp-bp***************',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'BackupRetentionPeriod' => [
'description' => '数据备份保留天数。',
'type' => 'integer',
'format' => 'int32',
'example' => '7',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '9E6B3287-A3E2-5A87-B8D8-E9**********',
],
'PreferredBackupPeriod' => [
'description' => '数据备份周期,多个取值用英文逗号(,)隔开。取值说明:'."\n"
."\n"
.'- **Monday**:周一。'."\n"
.'- **Tuesday**:周二。'."\n"
.'- **Wednesday**:周三。'."\n"
.'- **Thursday**:周四。'."\n"
.'- **Friday**:周五。'."\n"
.'- **Saturday**:周六。'."\n"
.'- **Sunday**:周日。',
'type' => 'string',
'example' => 'Wednesday,Friday',
],
'PreferredBackupTime' => [
'description' => '数据备份时间。格式:HH:mmZ-HH:mmZ(UTC时间)。',
'type' => 'string',
'example' => '12:00Z-13:00Z',
],
'RecoveryPointPeriod' => [
'description' => '恢复点频次。取值说明:'."\n"
."\n"
.'- **1**:每小时。'."\n"
.'- **2**:每两小时。'."\n"
.'- **4**:每四小时。'."\n"
.'- **8**:每八小时。',
'type' => 'string',
'example' => '1',
],
'EnableRecoveryPoint' => [
'description' => '是否开启自动恢复点。取值说明:'."\n"
."\n"
.'- **true**:开启。'."\n"
.'- **false**:关闭。',
'type' => 'boolean',
'example' => 'true',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"BackupRetentionPeriod\\": 7,\\n \\"RequestId\\": \\"9E6B3287-A3E2-5A87-B8D8-E9**********\\",\\n \\"PreferredBackupPeriod\\": \\"Wednesday,Friday\\",\\n \\"PreferredBackupTime\\": \\"12:00Z-13:00Z\\",\\n \\"RecoveryPointPeriod\\": \\"1\\",\\n \\"EnableRecoveryPoint\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n Wednesday,Friday\\n 9E6B3287-A3E2-5A87-B8D8-E9**********\\n 12:00Z-13:00Z\\n 7\\n true\\n 1\\n","errorExample":""}]',
'title' => '查看实例备份策略',
'description' => '周期性备份数据可以有效防止数据丢失,通过本接口您可以查看目标存储弹性模式实例的备份策略。如需修改备份策略,请参见[ModifyBackupPolicy](~~210095~~)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeDataBackups' => [
'summary' => '查看AnalyticDB PostgreSQL版实例的数据备份列表和可恢复点。',
'methods' => [
'post',
'get',
'put',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '115856',
'abilityTreeNodes' => [
'FEATUREgpdbS95BLZ',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'gp-bp***************',
],
],
[
'name' => 'BackupId',
'in' => 'query',
'schema' => [
'description' => '备份集ID。如果带上BackupId,则是查询该备份详情。'."\n"
."\n"
.'> 您可以调用[DescribeDataBackups](~~210093~~)查看目标实例下的所有备份集信息,包括备份集ID。',
'type' => 'string',
'required' => false,
'example' => '327329803',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间。格式: yyyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => false,
'docRequired' => true,
'example' => '2011-06-01T15:00Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,需要大于查询开始时间。格式: yyyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => false,
'docRequired' => true,
'example' => '2011-06-01T16:00Z',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数。取值说明:'."\n"
."\n"
.'- 30'."\n"
.'- 50'."\n"
.'- 100'."\n"
."\n"
.'默认值:30。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'maximum' => '100',
'minimum' => '30',
'example' => '30',
'default' => '30',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,取值大于0且不超过Integer的最大值。默认值:1。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'maximum' => '2147483647',
'minimum' => '1',
'example' => '1',
],
],
[
'name' => 'DataType',
'in' => 'query',
'schema' => [
'description' => '备份类型。取值说明:'."\n"
."\n"
.'- **DATA**:全量备份。'."\n"
.'- **RESTOREPOI**:可恢复点。'."\n"
."\n"
.'如果不传,则默认返回全量备份集的记录。',
'type' => 'string',
'required' => false,
'example' => 'DATA',
],
],
[
'name' => 'BackupMode',
'in' => 'query',
'schema' => [
'description' => '备份模式。取值说明:'."\n"
."\n"
.'- Automated:系统自动备份。'."\n"
.'- Manual:手动备份。'."\n"
."\n"
.'如果不传,则返回所有。',
'type' => 'string',
'required' => false,
'example' => 'Automated',
],
],
[
'name' => 'BackupStatus',
'in' => 'query',
'schema' => [
'description' => '备份集状态。取值说明:'."\n"
."\n"
.'- Success:已完成备份。'."\n"
.'- Failed:备份失败。'."\n"
."\n"
.'如果不传,则返回所有。',
'type' => 'string',
'required' => false,
'example' => 'Success',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'PageSize' => [
'description' => '本页备份集个数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '3E387971-33A5-5019-AD7F-DC**********',
],
'PageNumber' => [
'description' => '页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'TotalCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'TotalBackupSize' => [
'description' => '总备份集大小,单位:Byte。',
'type' => 'integer',
'format' => 'int64',
'example' => '1111111111',
],
'Items' => [
'description' => '备份集列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'DataType' => [
'description' => '备份类型。取值说明:'."\n"
."\n"
.'- **DATA**:全量备份。'."\n"
.'- **RESTOREPOI**:可恢复点。',
'type' => 'string',
'example' => 'DATA',
],
'ConsistentTime' => [
'description' => '- 全量备份:返回一致性时间点的时间戳。'."\n"
.'- 可恢复点:返回可恢复时间点的时间戳。',
'type' => 'integer',
'format' => 'int64',
'example' => '1576506856',
],
'BackupStatus' => [
'description' => '备份集状态。取值说明:'."\n"
."\n"
.'- **Success**:成功。'."\n"
.'- **Failure**:失败。',
'type' => 'string',
'example' => 'Success',
],
'BackupStartTime' => [
'description' => '备份开始时间。格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。',
'type' => 'string',
'example' => '2021-12-22T12:00:25Z',
],
'BackupEndTime' => [
'description' => '备份结束时间。格式:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。',
'type' => 'string',
'example' => '2021-12-22T12:01:43Z',
],
'BackupEndTimeLocal' => [
'description' => '本次备份结束时间(当地时间)。',
'type' => 'string',
'example' => '2021-12-22 20:00:25',
],
'BackupSetId' => [
'description' => '备份集ID。',
'type' => 'string',
'example' => '1111111111',
],
'BaksetName' => [
'description' => '恢复点名称或全量备份集名称。',
'type' => 'string',
'example' => 'adbpgbackup_555*****_20211222200019',
],
'BackupSize' => [
'description' => '备份文件大小,单位:Byte。',
'type' => 'integer',
'format' => 'int64',
'example' => '2167808',
],
'BackupMode' => [
'description' => '备份模式。'."\n"
."\n"
.'全量备份取值说明:'."\n"
."\n"
.'- **Automated**:系统自动备份。'."\n"
.'- **Manual**:手动备份。'."\n"
."\n"
.'恢复点取值说明:'."\n"
."\n"
.'- **Automated**:全量备份后的恢复点。'."\n"
.'- **Manual**:用户手动触发的恢复点。'."\n"
.'- **Period**:因为备份策略,定时触发的恢复点。',
'type' => 'string',
'example' => 'Automated',
],
'BackupStartTimeLocal' => [
'description' => '本次备份开始时间(当地时间)。',
'type' => 'string',
'example' => '2011-05-30 03:29:00',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp**************-master',
],
'BackupMethod' => [
'description' => '备份方式,返回值如下:'."\n"
.'* **Physical**:物理备份'."\n"
.'* **Snapshot**:快照备份',
'type' => 'string',
'example' => 'Physical',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"PageSize\\": 1,\\n \\"RequestId\\": \\"3E387971-33A5-5019-AD7F-DC**********\\",\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 1,\\n \\"TotalBackupSize\\": 1111111111,\\n \\"Items\\": [\\n {\\n \\"DataType\\": \\"DATA\\",\\n \\"ConsistentTime\\": 1576506856,\\n \\"BackupStatus\\": \\"Success\\",\\n \\"BackupStartTime\\": \\"2021-12-22T12:00:25Z\\",\\n \\"BackupEndTime\\": \\"2021-12-22T12:01:43Z\\",\\n \\"BackupEndTimeLocal\\": \\"2021-12-22 20:00:25\\",\\n \\"BackupSetId\\": \\"1111111111\\",\\n \\"BaksetName\\": \\"adbpgbackup_555*****_20211222200019\\",\\n \\"BackupSize\\": 2167808,\\n \\"BackupMode\\": \\"Automated\\",\\n \\"BackupStartTimeLocal\\": \\"2011-05-30 03:29:00\\",\\n \\"DBInstanceId\\": \\"gp-bp**************-master\\",\\n \\"BackupMethod\\": \\"Physical\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 1\\n 3E387971-33A5-5019-AD7F-DC**********\\n 1\\n 1\\n \\n 2021-12-22 20:01:43\\n gp-bp**************-master\\n 2021-12-22T12:01:43Z\\n Automated\\n 504257536\\n 2021-12-22T12:00:25Z\\n 1640174500000\\n DATA\\n adbpgbackup_555*****_20211222200019\\n 2021-12-22 20:00:25\\n 1111111111\\n Success\\n \\n","errorExample":""}]',
'title' => '查看实例的数据备份列表和可恢复点',
'description' => '目前仅存储弹性模式实例支持查看备份列表以及备份的详细信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeLogBackups' => [
'summary' => '查看日志备份列表。',
'methods' => [
'post',
'get',
'put',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbS95BLZ',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。'."\n",
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间。格式: yyyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => '2022-12-12T02:00Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,需要大于查询开始时间。格式:yyyy-MM-ddTHH:mmZ(UTC时间)。'."\n"
."\n",
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => '2022-12-12T03:00Z',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值:'."\n"
."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'maximum' => '100',
'minimum' => '30',
'example' => '30',
'default' => '30',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,取值:大于0且不超过Integer的最大值。默认值:**1**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'maximum' => '2147483647',
'minimum' => '1',
'example' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'TotalLogSize' => [
'description' => '符合时间范围内的总日志大小,单位为Byte。',
'type' => 'integer',
'format' => 'int64',
'example' => '386748',
],
'PageSize' => [
'description' => '本页备份集个数。',
'type' => 'integer',
'format' => 'int32',
'example' => '30',
],
'PageNumber' => [
'description' => '页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '24B9FCAF-2CBC-51C3-B563-F1C70D750187',
],
'TotalCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '5',
],
'Items' => [
'description' => '备份集列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'LogFileSize' => [
'description' => '备份日志文件大小,单位:Byte。',
'type' => 'integer',
'format' => 'int64',
'example' => '77350',
],
'LogTime' => [
'description' => '日志时间戳。',
'type' => 'string',
'example' => '2022-12-12T02:14:26Z',
],
'SegmentName' => [
'description' => '节点名称。',
'type' => 'string',
'example' => 'segment-0',
],
'LogFileName' => [
'description' => '日志文件名(OSS路径)。',
'type' => 'string',
'example' => '000000010000000400000012',
],
'DBInstanceId' => [
'description' => '实例的Master节点ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****-master',
],
'BackupId' => [
'description' => '备份集ID。',
'type' => 'string',
'example' => '12413721782',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"TotalLogSize\\": 386748,\\n \\"PageSize\\": 30,\\n \\"PageNumber\\": 1,\\n \\"RequestId\\": \\"24B9FCAF-2CBC-51C3-B563-F1C70D750187\\",\\n \\"TotalCount\\": 5,\\n \\"Items\\": [\\n {\\n \\"LogFileSize\\": 77350,\\n \\"LogTime\\": \\"2022-12-12T02:14:26Z\\",\\n \\"SegmentName\\": \\"segment-0\\",\\n \\"LogFileName\\": \\"000000010000000400000012\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****-master\\",\\n \\"BackupId\\": \\"12413721782\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 5\\n 30\\n 24B9FCAF-2CBC-51C3-B563-F1C70D750187\\n 1\\n \\n segment-0\\n gp-bp12ga6v69h86****-master\\n 2022-12-12T02:14:26Z\\n 77350\\n 12413721782\\n 000000010000000400000012\\n \\n 386748\\n","errorExample":""}]',
'title' => '查看日志备份列表',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ModifyBackupPolicy' => [
'summary' => '设置AnalyticDB PostgreSQL版实例的备份策略。',
'methods' => [
'post',
'get',
'put',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbS95BLZ',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'gp-bp***************',
],
],
[
'name' => 'PreferredBackupTime',
'in' => 'query',
'schema' => [
'description' => '数据备份时间。默认值为00:00Z-01:00Z,格式:HH:mmZ-HH:mmZ(UTC时间)。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => '15:00Z-16:00Z',
],
],
[
'name' => 'PreferredBackupPeriod',
'in' => 'query',
'schema' => [
'description' => '数据备份周期,多个取值用英文逗号(,)隔开。取值说明:'."\n"
."\n"
.'- Monday:周一。'."\n"
.'- Tuesday:周二。'."\n"
.'- Wednesday:周三。'."\n"
.'- Thursday:周四。'."\n"
.'- Friday:周五。'."\n"
.'- Saturday:周六。'."\n"
.'- Sunday:周日。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'Tuesday,Thursday,Saturday',
],
],
[
'name' => 'BackupRetentionPeriod',
'in' => 'query',
'schema' => [
'description' => '数据备份保留天数。默认7天,最大值定为7天,取值范围1~7。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '7',
'default' => '7',
],
],
[
'name' => 'EnableRecoveryPoint',
'in' => 'query',
'schema' => [
'description' => '是否开启自动打恢复点。取值说明:'."\n"
."\n"
.'- true(默认):开启。'."\n"
.'- false:关闭。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
],
],
[
'name' => 'RecoveryPointPeriod',
'in' => 'query',
'schema' => [
'description' => '恢复点频次。取值说明:'."\n"
."\n"
.'- **1**(默认):每小时。'."\n"
.'- **2**:每两小时。'."\n"
.'- **4**:每四小时。'."\n"
.'- **8**:每八小时。',
'type' => 'string',
'required' => false,
'example' => '8',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'DA147739-AEAD-4417-9089-65**********',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"DA147739-AEAD-4417-9089-65**********\\"\\n}","errorExample":""},{"type":"xml","example":"\\n DA147739-AEAD-4417-9089-65**********\\n","errorExample":""}]',
'title' => '设置实例备份策略',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'CreateBackup' => [
'summary' => '创建备份',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '233253',
'abilityTreeNodes' => [
'FEATUREgpdbS95BLZ',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'BackupJobId' => [
'description' => '备份任务ID。',
'type' => 'integer',
'format' => 'int64',
'example' => '123',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"BackupJobId\\": 123\\n}","type":"json"}]',
'title' => '创建备份',
],
'DeleteBackup' => [
'summary' => '删除备份。说明:只支持删除物理手动备份。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '233253',
'abilityTreeNodes' => [
'FEATUREgpdbS95BLZ',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'BackupId',
'in' => 'query',
'schema' => [
'description' => '备份集ID。'."\n"
."\n"
.'> 您可以调用[DescribeDataBackups](~~210093~~)查看目标实例下所有备份集的备份集ID。',
'type' => 'string',
'required' => true,
'example' => '1111111111',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '删除备份',
],
'ListBackupJobs' => [
'summary' => '获取备份任务列表',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '233253',
'abilityTreeNodes' => [
'FEATUREgpdbS95BLZ',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'BackupMode',
'in' => 'query',
'schema' => [
'description' => '备份模式。取值说明:'."\n"
."\n"
.'- Automated:系统自动备份。'."\n"
.'- Manual:手动备份。'."\n"
."\n"
.'如果不传,则返回所有。',
'type' => 'string',
'required' => false,
'example' => 'Automated',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Items' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'BackupJob' => [
'description' => '备份任务列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'BackupJobId' => [
'description' => '备份任务ID。',
'type' => 'string',
'example' => '123',
],
'BackupMode' => [
'description' => '备份模式。取值说明:'."\n"
.'* **Automated**:系统自动备份'."\n"
.'* **Manual**:手动备份',
'type' => 'string',
'example' => 'Automated',
],
'BackupStatus' => [
'description' => '备份集状态。取值说明:'."\n"
."\n"
.'- **Success**:成功。'."\n"
.'- **Failure**:失败。',
'type' => 'string',
'example' => 'Success',
],
'Process' => [
'description' => '备份任务进度百分比。',
'type' => 'string',
'example' => '50%',
],
'StartTime' => [
'description' => '备份任务开始时间(UTC),格式为YYYY-MM-DDThh:mm:ssZ。',
'type' => 'string',
'example' => '2022-08-11T09:26:43Z',
],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Items\\": {\\n \\"BackupJob\\": [\\n {\\n \\"BackupJobId\\": \\"123\\",\\n \\"BackupMode\\": \\"Automated\\",\\n \\"BackupStatus\\": \\"Success\\",\\n \\"Process\\": \\"50%\\",\\n \\"StartTime\\": \\"2022-08-11T09:26:43Z\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '获取备份任务列表',
],
'DescribeBackupJob' => [
'summary' => '获取备份任务详情',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '233253',
'abilityTreeNodes' => [
'FEATUREgpdbS95BLZ',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL版实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'BackupJobId',
'in' => 'query',
'schema' => [
'description' => '备份任务ID。',
'type' => 'integer',
'format' => 'int64',
'required' => true,
'example' => '123',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'BackupJobId' => [
'description' => '备份任务ID。',
'type' => 'string',
'example' => '123',
],
'BackupId' => [
'description' => '备份集ID。'."\n"
."\n"
.'> 您可以调用[DescribeDataBackups](~~210093~~)查看目标实例下所有备份集的备份集ID。',
'type' => 'string',
'example' => '1111111111',
],
'BackupMode' => [
'description' => '备份模式。取值说明:'."\n"
.'* **Automated**:系统自动备份'."\n"
.'* **Manual**:手动备份',
'type' => 'string',
'example' => 'Automated',
],
'BackupStatus' => [
'description' => '备份状态。取值说明:'."\n"
.'* **schedule**:初始化中'."\n"
.'* **check**:检查中'."\n"
.'* **backup**:备份中'."\n"
.'* **finish**:已完成',
'type' => 'string',
'example' => 'backup',
],
'Process' => [
'description' => '备份任务进度百分比。',
'type' => 'string',
'example' => '50%',
],
'StartTime' => [
'description' => '备份任务开始时间(UTC),格式为YYYY-MM-DDThh:mm:ssZ。',
'type' => 'string',
'example' => '2023-01-03T16:00:00Z',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"BackupJobId\\": \\"123\\",\\n \\"BackupId\\": \\"1111111111\\",\\n \\"BackupMode\\": \\"Automated\\",\\n \\"BackupStatus\\": \\"backup\\",\\n \\"Process\\": \\"50%\\",\\n \\"StartTime\\": \\"2023-01-03T16:00:00Z\\"\\n}","type":"json"}]',
'title' => '获取备份任务详情',
],
'CloneDBInstance' => [
'summary' => '恢复数据至指定实例',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '233253',
'abilityTreeNodes' => [
'FEATUREgpdb4JECI2',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '目标实例ID。'."\n"
.'> 您可以调用[DescribeDBInstances](~~196830~~)接口查看目标地域下所有实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'SrcDbInstanceName',
'in' => 'query',
'schema' => [
'description' => '克隆源实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp***************',
],
],
[
'name' => 'BackupId',
'in' => 'query',
'schema' => [
'description' => '备份集ID。'."\n"
."\n"
.'> 您可以调用[DescribeDataBackups](~~210093~~)查看目标实例下所有备份集的备份集ID。仅支持快照备份集。',
'type' => 'string',
'required' => true,
'example' => '1111111111',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '克隆实例',
],
'CreateAccount' => [
'summary' => '创建AnalyticDB PostgreSQL版实例的初始账号。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '8414',
'abilityTreeNodes' => [
'FEATUREgpdb2U0VE3',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp***************',
],
],
[
'name' => 'DatabaseName',
'in' => 'query',
'schema' => [
'description' => '数据库名称,限制如下:'."\n"
.'- 只能包含字母,数字和下划线。'."\n"
.'- 必须以字母开头。'."\n"
.'- 长度不能超过63个字符.',
'type' => 'string',
'required' => false,
'example' => 'test01',
],
],
[
'name' => 'AccountName',
'in' => 'query',
'schema' => [
'description' => '初始账号名称,限制如下:'."\n"
."\n"
.'- 由小写字母,数字,下划线组成。'."\n"
.'- 以小写字母开头,小写字母或数字结尾。'."\n"
.'- 不能以gp开头。'."\n"
.'- 长度为2~16个字符。',
'type' => 'string',
'required' => true,
'example' => 'testacc02',
],
],
[
'name' => 'AccountPassword',
'in' => 'query',
'schema' => [
'description' => '初始账户的密码。'."\n"
."\n"
.'- 由大写字母、小写字母、数字、特殊字符其中三种及以上组成。'."\n"
.'- 支持的特殊字符:`!@#$%^&*()_+-=`'."\n"
.'- 长度为8~32个字符。',
'type' => 'string',
'required' => true,
'example' => 'Pw123456',
],
],
[
'name' => 'AccountDescription',
'in' => 'query',
'schema' => [
'description' => '初始账户的描述。要求如下:'."\n"
.'- 以中文、英文字母开头。'."\n"
.'- 不能以`http://`或`https://`开头。'."\n"
.'- 可以包含中文、英文字符、“_”、“ -”、数字。'."\n"
.'- 长度为2~256个字符。',
'type' => 'string',
'required' => false,
'example' => 'testacc02',
],
],
[
'name' => 'AccountType',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => [
'description' => '默认值为Super,此时创建高权限账号。当参数为Normal时,此时创建普通权限账号。',
'type' => 'string',
'required' => false,
'example' => 'Super',
'default' => 'Super',
'enum' => [
'Super',
'Normal',
],
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'D4D4BE8A-DD46-440A-BFCD-EE**********',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"D4D4BE8A-DD46-440A-BFCD-EE**********\\"\\n}","errorExample":""},{"type":"xml","example":"\\n D4D4BE8A-DD46-440A-BFCD-EE**********\\n","errorExample":""}]',
'title' => '创建初始账号',
'description' => '- 使用AnalyticDB PostgreSQL版实例前,需要创建初始账号。'."\n"
.'- 本接口仅支持创建初始账号,如需创建其他账号,请参见[创建数据库账号](~~50206~~)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeAccounts' => [
'summary' => '查询AnalyticDB PostgreSQL版数据库的账号信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '8419',
'abilityTreeNodes' => [
'FEATUREgpdb2U0VE3',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp***************',
],
],
[
'name' => 'AccountName',
'in' => 'query',
'schema' => [
'description' => '数据库账号的名称。',
'type' => 'string',
'required' => false,
'example' => 'testuser',
],
],
[
'name' => 'AccountType',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => [
'description' => '默认值为Super,此时查询高权限账号。当参数为Normal时,此时查询普通权限账号。当参数为All时,此时查询所有账号信息。',
'type' => 'string',
'required' => false,
'example' => 'Super',
'default' => 'Super',
'enum' => [
'Super',
'Normal',
'All',
],
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '7565770E-7C45-462D-BA4A-8A5396F2CAD1',
],
'Accounts' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'DBInstanceAccount' => [
'description' => '数据库账号的信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'AccountStatus' => [
'description' => '数据库账号的状态,取值说明:'."\n"
."\n"
.'- **0**:创建中。'."\n"
.'- **1**:使用中。'."\n"
.'- **3**:删除中。',
'type' => 'string',
'example' => '1',
],
'AccountDescription' => [
'description' => '数据库账号的描述。',
'type' => 'string',
'example' => 'testuser',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp***************',
],
'AccountName' => [
'description' => '数据库账号的名称。',
'type' => 'string',
'example' => 'testuser',
],
'AccountType' => [
'description' => '账号类型,取值为 Super 或 Normal。Super 表示高权限账号,Normal 表示普通权限账号。',
'type' => 'string',
'example' => 'Super'."\n",
],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7565770E-7C45-462D-BA4A-8A5396F2CAD1\\",\\n \\"Accounts\\": {\\n \\"DBInstanceAccount\\": [\\n {\\n \\"AccountStatus\\": \\"1\\",\\n \\"AccountDescription\\": \\"testuser\\",\\n \\"DBInstanceId\\": \\"gp-bp***************\\",\\n \\"AccountName\\": \\"testuser\\",\\n \\"AccountType\\": \\"Super\\\\n\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 7565770E-7C45-462D-BA4A-8A5396F2CAD1\\n \\n 1\\n testuser\\n gp-bp***************\\n testuser\\n \\n","errorExample":""}]',
'title' => '查询账号信息',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'GetAccount' => [
'summary' => '获取特定的账号信息。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '227834',
'abilityTreeNodes' => [
'FEATUREgpdb2U0VE3',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
.'>支持传入最多30个实例ID进行批量操作,用英文逗号(,)隔开。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'AccountName',
'in' => 'query',
'schema' => [
'description' => '初始账号名称,限制如下:'."\n"
."\n"
.'- 由小写字母,数字,下划线组成。'."\n"
.'- 以小写字母开头,小写字母或数字结尾。'."\n"
.'- 不能以gp开头。'."\n"
.'- 长度为2~16个字符。',
'type' => 'string',
'required' => true,
'example' => 'testuser',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => 'Id of the request',
'type' => 'string',
'example' => 'CA7E4276-E2D5-5F8D-AF06-9EAB3F6C****',
],
'AccountStatus' => [
'description' => '数据库账号的状态,取值说明:'."\n"
."\n"
.'- **0**:创建中。'."\n"
.'- **1**:使用中。'."\n"
.'- **3**:删除中。',
'type' => 'string',
'example' => '1',
],
'AccountDescription' => [
'description' => '指定修改后的账号描述,要求如下:'."\n"
."\n"
.'- 以中文、英文字母开头。'."\n"
.'- 不能以`http://`或`https://`开头。'."\n"
.'- 可以包含中文、英文字符、“_”、“ -”、数字。'."\n"
.'- 长度为2~256个字符。',
'type' => 'string',
'example' => '该账号用来登录的实例为DBInstanceId。用来登录的名称为AccountName。',
],
'DBInstanceId' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'example' => 'gp-xxxxxxxxx',
],
'AccountName' => [
'description' => '初始账号名称,限制如下:'."\n"
."\n"
.'- 由小写字母,数字,下划线组成。'."\n"
.'- 以小写字母开头,小写字母或数字结尾。'."\n"
.'- 不能以gp开头。'."\n"
.'- 长度为2~16个字符。',
'type' => 'string',
'example' => 'testaccount',
],
'AccountType' => [
'description' => '主机账号类型,取值:'."\n"
.'- **Normal**:普通账号。'."\n"
.'- **Admin**: 管理员账号。'."\n"
."\n"
.'关于主机账号的权限说明,请参见[主机权限说明](~~176240~~)。',
'type' => 'string',
'example' => 'Normal',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CA7E4276-E2D5-5F8D-AF06-9EAB3F6C****\\",\\n \\"AccountStatus\\": \\"1\\",\\n \\"AccountDescription\\": \\"该账号用来登录的实例为DBInstanceId。用来登录的名称为AccountName。\\",\\n \\"DBInstanceId\\": \\"gp-xxxxxxxxx\\",\\n \\"AccountName\\": \\"testaccount\\",\\n \\"AccountType\\": \\"Normal\\"\\n}","type":"json"}]',
'title' => 'GetAccount',
],
'DeleteAccount' => [
'summary' => '删除数据库账号。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '227833',
'abilityTreeNodes' => [
'FEATUREgpdb2U0VE3',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp***************'."\n",
],
],
[
'name' => 'AccountName',
'in' => 'query',
'schema' => [
'description' => '禁止删除高权限账号。',
'type' => 'string',
'required' => true,
'example' => 'testuser'."\n",
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => 'Id of the request',
'type' => 'string',
'example' => '7565770E-7C45-462D-BA4A-8A5396****',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7565770E-7C45-462D-BA4A-8A5396****\\"\\n}","type":"json"}]',
'title' => 'DeleteAccount',
],
'DescribeDiagnosisDimensions' => [
'summary' => '获取AnalyticDB PostgreSQL版实例中所有数据库和用户。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '9ADCAACA-E0E8-5319-AE3B-E260E957BDF9',
],
'Databases' => [
'description' => '数据库名称。',
'type' => 'array',
'items' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'acc_001',
],
],
'UserNames' => [
'description' => '用户名。',
'type' => 'array',
'items' => [
'description' => '用户名。',
'type' => 'string',
'example' => 'acc_001',
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"9ADCAACA-E0E8-5319-AE3B-E260E957BDF9\\",\\n \\"Databases\\": [\\n \\"acc_001\\"\\n ],\\n \\"UserNames\\": [\\n \\"acc_001\\"\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n acc_001\\n user_test\\n 9ADCAACA-E0E8-5319-AE3B-E260E957BDF9\\n acc_001\\n","errorExample":""}]',
'title' => '查询所有数据库和用户',
],
'ModifyAccountDescription' => [
'summary' => '修改数据库账号的备注信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdb4XJ12W',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'AccountName',
'in' => 'query',
'schema' => [
'description' => '数据库账号。',
'type' => 'string',
'required' => true,
'example' => 'testAccout',
],
],
[
'name' => 'AccountDescription',
'in' => 'query',
'schema' => [
'description' => '指定修改后的账号描述,要求如下:'."\n"
."\n"
.'- 以中文、英文字母开头。'."\n"
.'- 不能以`http://`或`https://`开头。'."\n"
.'- 可以包含中文、英文字符、“_”、“ -”、数字。'."\n"
.'- 长度为2~256个字符。',
'type' => 'string',
'required' => false,
'example' => 'testAccoutdescribe',
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => [
'description' => '幂等性校验。更多信息,请参见[如何保证幂等性](~~327176~~)。',
'type' => 'string',
'required' => false,
'example' => '0c593ea1-3bea-11e9-b96b-88**********',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '99BBBD5E-B5D8-4FC8-B8BF-FB1A0A38BBA2',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"99BBBD5E-B5D8-4FC8-B8BF-FB1A0A38BBA2\\"\\n}","errorExample":""},{"type":"xml","example":"\\r\\n 99BBBD5E-B5D8-4FC8-B8BF-FB1A0A38BBA2\\r\\n","errorExample":""}]',
'title' => '修改账号备注',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ResetAccountPassword' => [
'summary' => '重置账户密码。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdb4XJ12W',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-t4nf48vf15713****',
],
],
[
'name' => 'AccountName',
'in' => 'query',
'schema' => [
'description' => '数据库账号的名称。',
'type' => 'string',
'required' => true,
'example' => 'testaccount_1',
],
],
[
'name' => 'AccountPassword',
'in' => 'query',
'schema' => [
'description' => '数据库账号密码。'."\n"
.'- 由大写字母、小写字母、数字、特殊字符中的任意三种组成。'."\n"
.'- 特殊符号包含:`!@#$%^&*()_+-=`'."\n"
.'- 密码长度为8~32个字符。',
'type' => 'string',
'required' => true,
'example' => 'Testaccount_1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '187C80FC-75C4-477C-BBF2-A368A36D041C',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"187C80FC-75C4-477C-BBF2-A368A36D041C\\"\\n}","type":"json"}]',
'title' => '重置账号密码',
],
'DescribeRoles' => [
'summary' => '获取角色列表。',
'methods' => [
'get',
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198024',
'abilityTreeNodes' => [
'FEATUREgpdb4XJ12W',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'RoleList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Role' => [
'description' => '角色列表。',
'type' => 'array',
'items' => [
'description' => '角色名称',
'type' => 'string',
'example' => 'testrole',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"RoleList\\": {\\n \\"Role\\": [\\n \\"testrole\\"\\n ]\\n }\\n}","type":"json"}]',
'title' => '获取角色列表',
],
'DescribeDataShareInstances' => [
'summary' => '查看数据共享的状态。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '119452',
'abilityTreeNodes' => [
'FEATUREgpdbZCLM02',
],
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '实例当前所属的资源组ID。如何获取资源组ID,请参见[查看资源组基本信息](~~151181~~)。',
'type' => 'string',
'required' => false,
'example' => 'rg-bp67acfmxazb4p****',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'SearchValue',
'in' => 'query',
'schema' => [
'description' => '搜索关键字,可以根据实例ID或实例描述进行过滤。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID和实例描述。',
'type' => 'string',
'required' => false,
'example' => 'gp-bp***************',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:30。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '30',
'default' => '30',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值。默认值:1。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
'default' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'TotalRecordCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageRecordCount' => [
'description' => '本页记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D5**********',
],
'PageNumber' => [
'description' => '页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'Items' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'DBInstance' => [
'description' => '实例列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'RegionId' => [
'description' => '地域ID。',
'type' => 'string',
'example' => 'cn-hangzhou',
],
'ZoneId' => [
'description' => '可用区ID。',
'type' => 'string',
'example' => 'cn-hangzhou-j',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp***************',
],
'DBInstanceMode' => [
'description' => '实例资源类型,取值说明:'."\n"
."\n"
.'- **Serverless**:Serverless版本。'."\n"
.'- **StorageElasic**:存储弹性模式。'."\n"
.'- **Classic**:存储预留模式。',
'type' => 'string',
'example' => 'Serverless',
],
'Description' => [
'description' => '实例描述。',
'type' => 'string',
'example' => 'gp-bp***************',
],
'DataShareStatus' => [
'description' => '数据共享的状态,取值说明:'."\n"
."\n"
.'- **opening**:开通中。'."\n"
.'- **opened**:已开通。'."\n"
.'- **closing**:关闭中。'."\n"
.'- **closed**:已关闭。',
'type' => 'string',
'example' => 'opened',
],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"TotalRecordCount\\": 1,\\n \\"PageRecordCount\\": 1,\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D5**********\\",\\n \\"PageNumber\\": 1,\\n \\"Items\\": {\\n \\"DBInstance\\": [\\n {\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"ZoneId\\": \\"cn-hangzhou-j\\",\\n \\"DBInstanceId\\": \\"gp-bp***************\\",\\n \\"DBInstanceMode\\": \\"Serverless\\",\\n \\"Description\\": \\"gp-bp***************\\",\\n \\"DataShareStatus\\": \\"opened\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 1\\n 1\\n B4CAF581-2AC7-41AD-8940-D5**********\\n 1\\n \\n cn-hangzhou\\n cn-hangzhou-j\\n gp-bp***************\\n Serverless\\n gp-bp***************\\n opened\\n \\n","errorExample":""}]',
'title' => '查看数据共享详细信息',
'description' => '目前仅Serverless实例支持数据共享功能。',
],
'DescribeDataSharePerformance' => [
'summary' => '查看数据共享的性能指标。',
'methods' => [
'get',
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '132211',
'abilityTreeNodes' => [
'FEATUREgpdbZCLM02',
],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'Key',
'in' => 'query',
'schema' => [
'description' => '性能参数名称,多个指标用英文半角(,)分隔,取值如下:'."\n"
."\n"
.'- **adbpg_datashare_topic_count**:共享Topic数量。'."\n"
.'- **adbpg_datashare_data_size_mb**:数据共享数据量。',
'type' => 'string',
'required' => true,
'example' => 'adbpg_datashare_topic_count',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间,格式为yyyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => false,
'docRequired' => true,
'example' => '2022-08-03T15:00Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,需要大于查询开始时间,格式为yyyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => false,
'docRequired' => true,
'example' => '2022-08-03T15:10Z',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'cn-hangzhou',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'EndTime' => [
'description' => '查询结束时间。',
'type' => 'string',
'example' => '2022-08-03T15:10Z',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'BBE00C04-A3E8-4114-881D-0480A72CB92E',
],
'StartTime' => [
'description' => '查询开始时间。',
'type' => 'string',
'example' => '2022-08-03T15:00Z',
],
'DBClusterId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
'PerformanceKeys' => [
'description' => '数据共享性能参数值列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Name' => [
'description' => '性能参数名称。',
'type' => 'string',
'example' => 'adbpg_datashare_topic_count',
],
'Unit' => [
'description' => '性能参数的单位。',
'type' => 'string',
'example' => 'int',
],
'Series' => [
'description' => '性能参数集合。',
'type' => 'array',
'items' => [
'description' => '性能参数集合。',
'type' => 'object',
'properties' => [
'Values' => [
'description' => '性能参数值列表,由一个或多个值组成。',
'type' => 'array',
'items' => [
'description' => '性能参数值列表,由一个或多个值组成。',
'type' => 'object',
'properties' => [
'Point' => [
'description' => '性能参数值。',
'type' => 'array',
'items' => [
'description' => '性能参数值。',
'type' => 'string',
'example' => '2022-08-03T07:01:00+08:00, 5.00',
],
],
],
],
],
'Name' => [
'description' => '性能参数名称。',
'type' => 'string',
'example' => 'adbpg_datashare_topic_count',
],
],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'IdempotentParameterMismatch',
'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"EndTime\\": \\"2022-08-03T15:10Z\\",\\n \\"RequestId\\": \\"BBE00C04-A3E8-4114-881D-0480A72CB92E\\",\\n \\"StartTime\\": \\"2022-08-03T15:00Z\\",\\n \\"DBClusterId\\": \\"gp-bp12ga6v69h86****\\",\\n \\"PerformanceKeys\\": [\\n {\\n \\"Name\\": \\"adbpg_datashare_topic_count\\",\\n \\"Unit\\": \\"int\\",\\n \\"Series\\": [\\n {\\n \\"Values\\": [\\n {\\n \\"Point\\": [\\n \\"2022-08-03T07:01:00+08:00, 5.00\\"\\n ]\\n }\\n ],\\n \\"Name\\": \\"adbpg_datashare_topic_count\\"\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 2020-11-03T15:10Z\\n BBE00C04-A3E8-4114-881D-0480A72CB92E\\n 2020-11-03T15:00Z\\n gp-bp12ga6v69h86****\\n \\n adbpg_datashare_topic_count\\n int\\n \\n \\n 2020-09-27T07:01:00+08:00, 5.00\\n \\n adbpg_datashare_topic_count\\n \\n \\n","errorExample":""}]',
'title' => '查看数据共享的性能指标',
'description' => '目前仅Serverless实例支持数据共享功能。',
],
'SetDataShareInstance' => [
'summary' => '将AnalyticDB PostgreSQL版实例加入数据共享或从数据共享中移除。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '119475',
'abilityTreeNodes' => [
'FEATUREgpdbZCLM02',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'OperationType',
'in' => 'query',
'schema' => [
'description' => '在数据共享中添加或移除实例。取值说明:'."\n"
."\n"
.'- **add**:将实例添加至数据共享中。'."\n"
.'- **remove**:将实例从数据共享中移除。',
'type' => 'string',
'required' => true,
'example' => 'add',
],
],
[
'name' => 'InstanceList',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '实例列表。',
'type' => 'array',
'items' => [
'description' => 'Serverless版本的实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-bp***************',
],
'required' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D5**********',
],
'Status' => [
'description' => '状态。取值说明:'."\n"
."\n"
.'- **success**:成功。'."\n"
.'- **failed**:失败。',
'type' => 'string',
'example' => 'success',
],
'ErrMessage' => [
'description' => '错误信息。',
'type' => 'string',
'example' => 'error message',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D5**********\\",\\n \\"Status\\": \\"success\\",\\n \\"ErrMessage\\": \\"error message\\"\\n}","errorExample":""},{"type":"xml","example":"\\n B4CAF581-2AC7-41AD-8940-D5**********\\n success\\n","errorExample":""}]',
'title' => '将实例加入或移出数据共享',
'description' => '仅Serverless实例支持数据共享功能。',
],
'DescribeDBClusterPerformance' => [
'summary' => '查看AnalyticDB PostgreSQL版实例在指定时间段的性能监控。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '8420',
'abilityTreeNodes' => [
'FEATUREgpdbNOW7XI',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'Key',
'in' => 'query',
'schema' => [
'description' => '性能参数名称,多个指标用英文半角(,)分隔,具体信息,请参见[性能参数表](~~86943~~)。',
'type' => 'string',
'required' => true,
'example' => 'adbpg_conn_count',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间,格式为`YYYY-MM-DDTHH:mmZ`。'."\n"
."\n"
.'> 仅支持查询30天内的监控信息。',
'type' => 'string',
'required' => true,
'example' => '2021-11-03T15:00Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,格式为`YYYY-MM-DDTHH:mmZ`。'."\n"
."\n"
.'> 查询结束时间需晚于开始时间,且开始时间和结束时间的时间间隔不能超过7天。',
'type' => 'string',
'required' => true,
'example' => '2021-11-03T15:10Z',
],
],
[
'name' => 'Nodes',
'in' => 'query',
'schema' => [
'description' => '用于查询一个或多个节点的监控指标,多个节点名称间使用英文逗号(,)分隔,例如`master-10******1,master-10******2`。您可以调用[DescribeDBClusterNode](~~390136~~)接口获取节点名称。'."\n"
."\n\n"
.'您也可以根据监控指标的高低筛选节点,取值说明:'."\n"
.'- **top10**:监控指标最高的十个节点。'."\n"
.'- **top20**:监控指标最高的二十个节点。'."\n"
.'- **bottom10**:监控指标最低的十个节点。'."\n"
.'- **bottom20**:监控指标最低的二十个节点。',
'type' => 'string',
'required' => false,
'example' => 'top10',
],
],
[
'name' => 'NodeType',
'in' => 'query',
'schema' => [
'description' => '节点类型。取值说明:'."\n"
."\n"
.'- **master**:Master节点。'."\n"
.'- **segment**:Segment节点。'."\n"
."\n"
.'> 如果不传入该参数,则返回所有节点的监控指标。',
'type' => 'string',
'required' => false,
'example' => 'master',
],
],
[
'name' => 'ResourceGroupName',
'in' => 'query',
'schema' => [
'description' => '资源组名称。',
'type' => 'string',
'required' => false,
'example' => 'testgroup',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'PerformanceKeys' => [
'description' => '实例性能参数值列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Unit' => [
'description' => '监控指标的单位。',
'type' => 'string',
'example' => '%',
],
'Series' => [
'description' => '性能参数集合。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Values' => [
'description' => '性能参数值,每个值对应一个采集时间点。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Point' => [
'description' => '性能参数值。',
'type' => 'array',
'items' => [
'description' => '性能监控具体信息,由时间和性能参数值构成。',
'type' => 'string',
'example' => '["2021-11-03T15:00:00+08:00","5.84"]',
],
],
],
],
],
'Role' => [
'description' => '节点的角色,取值说明:'."\n"
."\n"
.'- **master**:主节点。'."\n"
.'- **standby**:备节点。'."\n"
.'- **segment**:计算节点。',
'type' => 'string',
'example' => 'standby',
],
'Name' => [
'description' => '计算节点或计算组名称。',
'type' => 'string',
'example' => 'standby-********-cpu',
],
],
],
],
'Name' => [
'description' => '性能参数名称,具体信息,请参见[性能参数表](~~86943~~)。',
'type' => 'string',
'example' => 'adbpg_group_cpu_used_percent',
],
],
],
],
'EndTime' => [
'description' => '查询结束时间(UTC时间),格式为`YYYY-MM-DDTHH:mmZ`。',
'type' => 'string',
'example' => '2021-11-03T15:10Z',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '8E8990F0-C81E-4C94-8F51-5F**********',
],
'StartTime' => [
'description' => '查询开始时间(UTC时间),格式为`YYYY-MM-DDTHH:mmZ`。',
'type' => 'string',
'example' => '2021-11-03T15:00Z',
],
'DBClusterId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"PerformanceKeys\\": [\\n {\\n \\"Unit\\": \\"%\\",\\n \\"Series\\": [\\n {\\n \\"Values\\": [\\n {\\n \\"Point\\": [\\n \\"[\\\\\\"2021-11-03T15:00:00+08:00\\\\\\",\\\\\\"5.84\\\\\\"]\\"\\n ]\\n }\\n ],\\n \\"Role\\": \\"standby\\",\\n \\"Name\\": \\"standby-********-cpu\\"\\n }\\n ],\\n \\"Name\\": \\"adbpg_group_cpu_used_percent\\"\\n }\\n ],\\n \\"EndTime\\": \\"2021-11-03T15:10Z\\",\\n \\"RequestId\\": \\"8E8990F0-C81E-4C94-8F51-5F**********\\",\\n \\"StartTime\\": \\"2021-11-03T15:00Z\\",\\n \\"DBClusterId\\": \\"gp-bp12ga6v69h86****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n \\n \\n master\\n \\n 2021-11-03T15:00:00+08:00\\n 5.84\\n \\n \\n 2021-11-03T15:01:00+08:00\\n 5.31\\n \\n \\n 2021-11-03T15:02:00+08:00\\n 5.28\\n \\n \\n 2021-11-03T15:03:00+08:00\\n 5.27\\n \\n \\n 2021-11-03T15:04:00+08:00\\n 5.63\\n \\n \\n 2021-11-03T15:05:00+08:00\\n 5.44\\n \\n \\n 2021-11-03T15:06:00+08:00\\n 5.27\\n \\n \\n 2021-11-03T15:07:00+08:00\\n 5.27\\n \\n \\n 2021-11-03T15:08:00+08:00\\n 5.96\\n \\n \\n 2021-11-03T15:09:00+08:00\\n 6.51\\n \\n master-********-cpu\\n \\n \\n standby\\n \\n 2021-11-03T15:00:00+08:00\\n 0.01\\n \\n \\n 2021-11-03T15:01:00+08:00\\n 0\\n \\n \\n 2021-11-03T15:02:00+08:00\\n 0.01\\n \\n \\n 2021-11-03T15:03:00+08:00\\n 0\\n \\n \\n 2021-11-03T15:04:00+08:00\\n 0\\n \\n \\n 2021-11-03T15:05:00+08:00\\n 0.01\\n \\n \\n 2021-11-03T15:06:00+08:00\\n 0.01\\n \\n \\n 2021-11-03T15:07:00+08:00\\n 0.01\\n \\n \\n 2021-11-03T15:08:00+08:00\\n 0\\n \\n \\n 2021-11-03T15:09:00+08:00\\n 0.01\\n \\n standby-********-cpu\\n \\n \\n segment\\n \\n 2021-11-03T15:00:00+08:00\\n 0.13\\n \\n \\n 2021-11-03T15:01:00+08:00\\n 0.12\\n \\n \\n 2021-11-03T15:02:00+08:00\\n 0.14\\n \\n \\n 2021-11-03T15:03:00+08:00\\n 0.13\\n \\n \\n 2021-11-03T15:04:00+08:00\\n 0.12\\n \\n \\n 2021-11-03T15:05:00+08:00\\n 0.14\\n \\n \\n 2021-11-03T15:06:00+08:00\\n 0.16\\n \\n \\n 2021-11-03T15:07:00+08:00\\n 0.16\\n \\n \\n 2021-11-03T15:08:00+08:00\\n 0.16\\n \\n \\n 2021-11-03T15:09:00+08:00\\n 0.12\\n \\n compute-node-********-cpu\\n \\n \\n segment\\n \\n 2021-11-03T15:00:00+08:00\\n 0.15\\n \\n \\n 2021-11-03T15:01:00+08:00\\n 0.13\\n \\n \\n 2021-11-03T15:02:00+08:00\\n 0.12\\n \\n \\n 2021-11-03T15:03:00+08:00\\n 0.12\\n \\n \\n 2021-11-03T15:04:00+08:00\\n 0.12\\n \\n \\n 2021-11-03T15:05:00+08:00\\n 0.13\\n \\n \\n 2021-11-03T15:06:00+08:00\\n 0.15\\n \\n \\n 2021-11-03T15:07:00+08:00\\n 0.17\\n \\n \\n 2021-11-03T15:08:00+08:00\\n 0.15\\n \\n \\n 2021-11-03T15:09:00+08:00\\n 0.12\\n \\n compute-node-********-cpu\\n \\n %\\n adbpg_group_cpu_used_percent\\n \\n 8E8990F0-C81E-4C94-8F51-5F**********\\n 2021-11-03T07:10Z\\n gp-bp12ga6v69h86****\\n 2021-11-03T07:00Z\\n","errorExample":""}]',
'title' => '查看实例性能数据',
'description' => '仅支持查询30天内的监控信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeDBInstanceDataBloat' => [
'summary' => '获取AnalyticDB PostgreSQL版实例的数据膨胀情况。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '140259',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '30',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:**1**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称',
'type' => 'string',
'required' => false,
'example' => 'test',
],
],
[
'name' => 'OrderBy',
'in' => 'query',
'schema' => [
'description' => '排序条件',
'type' => 'string',
'required' => false,
'example' => '{Field: TableName, Type: Desc}',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'TotalCount' => [
'description' => '表数量,该数值除以分页大小等于总页数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageNumber' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'Items' => [
'description' => '数据膨胀详情列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Sequence' => [
'description' => '序号。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'DatabaseName' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'adbtest',
],
'SchemaName' => [
'description' => 'Schema名称。',
'type' => 'string',
'example' => 'schema1',
],
'TableName' => [
'description' => '表名称。',
'type' => 'string',
'example' => 'tab1',
],
'StorageType' => [
'description' => '表存储类型,取值说明:'."\n"
."\n"
.'- **Heap Table**: 堆表。'."\n"
.'- **Append-Only Heap Table**:Append-Only堆表。'."\n"
.'- **Append-Only Columnar Table**:列存表。',
'type' => 'string',
'example' => 'Heap Table',
],
'ExpectTableSize' => [
'description' => '期望表大小。'."\n"
."\n"
.'期望表大小为系统判断没有膨胀情况下的表大小。',
'type' => 'string',
'example' => '1MB',
],
'RealTableSize' => [
'description' => '实际表大小。',
'type' => 'string',
'example' => '1.2MB',
],
'BloatSize' => [
'description' => '膨胀表的大小,为可释放的空间量。',
'type' => 'string',
'example' => '0.2MB',
],
'BloatCeoff' => [
'description' => '数据膨胀的系数,膨胀系数计算公式如下:'."\n"
."\n"
.'系统统计的死行数/系统统计的活跃行数。',
'type' => 'string',
'example' => '1.03',
],
'SuggestedAction' => [
'description' => '暂不返回该参数。',
'type' => 'string',
'example' => 'null',
],
'TimeLastVacuumed' => [
'description' => '上次VACUUM表的时间(UTC时间)。',
'type' => 'string',
'example' => '2022-08-08T16:00:00Z',
],
'TimeLastUpdated' => [
'description' => '上次更新(DELETE、INSERT或UPDATE操作)表的时间。',
'type' => 'string',
'example' => '2022-08-08T20:00:00Z',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"TotalCount\\": 1,\\n \\"PageNumber\\": 1,\\n \\"Items\\": [\\n {\\n \\"Sequence\\": 1,\\n \\"DatabaseName\\": \\"adbtest\\",\\n \\"SchemaName\\": \\"schema1\\",\\n \\"TableName\\": \\"tab1\\",\\n \\"StorageType\\": \\"Heap Table\\",\\n \\"ExpectTableSize\\": \\"1MB\\",\\n \\"RealTableSize\\": \\"1.2MB\\",\\n \\"BloatSize\\": \\"0.2MB\\",\\n \\"BloatCeoff\\": \\"1.03\\",\\n \\"SuggestedAction\\": \\"null\\",\\n \\"TimeLastVacuumed\\": \\"2022-08-08T16:00:00Z\\",\\n \\"TimeLastUpdated\\": \\"2022-08-08T20:00:00Z\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\n 1\\n 1\\n \\n 1\\n adbtest\\n schema1\\n tab1\\n Heap\\n 1MB\\n 1.2MB\\n 0.2MB\\n 1.03\\n 2022-08-08T16:00:00Z\\n 2022-08-08T20:00:00Z\\n \\n","errorExample":""}]',
'title' => '查看数据膨胀相关信息',
'description' => '本接口用于查看存储弹性模式的AnalyticDB PostgreSQL版实例的数据膨胀状态,实例内核小版本需为V6.3.10.1及以上,如何查看和升级内核小版本,请参见查看[内核小版本](~~277424~~)和[版本升级](~~139271~~)。',
],
'DescribeDBInstanceDataSkew' => [
'summary' => '获取AnalyticDB PostgreSQL版实例的数据倾斜情况。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '140265',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '30',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:**1**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称',
'type' => 'string',
'required' => false,
'example' => 'test',
],
],
[
'name' => 'OrderBy',
'in' => 'query',
'schema' => [
'description' => '排序条件',
'type' => 'string',
'required' => false,
'example' => '{Field: TableSize, Type: Desc}',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'TotalCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '100',
],
'PageNumber' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'Items' => [
'description' => '数据倾斜详情列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Sequence' => [
'description' => '序号,根据数据倾斜情况由大到小进行排序。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'DatabaseName' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'adbtest',
],
'SchemaName' => [
'description' => 'Schema名称。',
'type' => 'string',
'example' => 'schema1',
],
'TableName' => [
'description' => '表名称。',
'type' => 'string',
'example' => 'tab1',
],
'Owner' => [
'description' => '表的拥有者。',
'type' => 'string',
'example' => 'adbpguser',
],
'TableSize' => [
'description' => '表的总行数。',
'type' => 'string',
'example' => '100000',
],
'TableSkew' => [
'description' => '表的倾斜度百分比,取值范围为0~100,单位为%。值越大表示倾斜的越厉害,值越小越有利于数据库的查询性能,0表示没有倾斜。',
'type' => 'string',
'example' => '10.23',
],
'DistributeKey' => [
'description' => '表的分布键。',
'type' => 'string',
'example' => 'ItemId',
],
'TimeLastUpdated' => [
'description' => '上次更新(DELETE、INSERT或UPDATE操作)表的时间。',
'type' => 'string',
'example' => '2020-09-08T20:00:00Z',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"TotalCount\\": 100,\\n \\"PageNumber\\": 1,\\n \\"Items\\": [\\n {\\n \\"Sequence\\": 1,\\n \\"DatabaseName\\": \\"adbtest\\",\\n \\"SchemaName\\": \\"schema1\\",\\n \\"TableName\\": \\"tab1\\",\\n \\"Owner\\": \\"adbpguser\\",\\n \\"TableSize\\": \\"100000\\",\\n \\"TableSkew\\": \\"10.23\\",\\n \\"DistributeKey\\": \\"ItemId\\",\\n \\"TimeLastUpdated\\": \\"2020-09-08T20:00:00Z\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\n 100\\n 1\\n \\n 1\\n adbtest\\n schema1\\n tab1\\n adbpguser\\n 100000\\n 10.23\\n ItemId\\n 2020-09-08T20:00:00Z\\n \\n","errorExample":""}]',
'title' => '查看数据倾斜的相关信息',
'description' => '数据倾斜会影响数据库的运行速度,AnalyticDB PostgreSQL版实例提供了DescribeDBInstanceDataSkew接口帮助您查看实例的数据倾斜情况,便于您及时消除数据倾斜。',
],
'DescribeDBInstanceDiagnosisSummary' => [
'summary' => '获取AnalyticDB PostgreSQL版实例的节点详情。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。'."\n",
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '30',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:**1**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
[
'name' => 'StartStatus',
'in' => 'query',
'schema' => [
'description' => '节点运行状态,取值如下:'."\n"
."\n"
.'- **UP**:节点运行中。'."\n"
.'- **DOWN**:节点故障。'."\n"
."\n"
.'如果不填,则返回所有运行状态的信息。',
'type' => 'string',
'required' => false,
'example' => 'UP',
],
],
[
'name' => 'SyncMode',
'in' => 'query',
'schema' => [
'description' => '节点同步状态,取值如下:'."\n"
."\n"
.'- **synced**:已同步。'."\n"
.'- **notSyncing**:未同步。'."\n"
."\n"
.'如果不填,则返回所有同步状态的信息。',
'type' => 'string',
'required' => false,
'example' => 'synced',
],
],
[
'name' => 'RolePreferd',
'in' => 'query',
'schema' => [
'description' => '节点的角色状态,即是否发生主备切换,取值如下:'."\n"
."\n"
.'- **normal**:角色状态正常,即未发生主备切换。'."\n"
.'- **reverse**:角色反转,即发生了主备切换。',
'type' => 'string',
'required' => false,
'example' => 'normal',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '070534EC-78D5-5519-83CC-E7B1A9213483',
],
'TotalCount' => [
'description' => '总记录数。',
'type' => 'string',
'example' => '6',
],
'PageNumber' => [
'description' => '当前页码。',
'type' => 'string',
'example' => '1',
],
'Items' => [
'description' => '实例节点详情列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Hostname' => [
'description' => '节点名称。',
'type' => 'string',
'example' => 'gp-t4np568qe9710****-master-100984919',
],
'NodeAddress' => [
'description' => '节点的IP地址。',
'type' => 'string',
'example' => '192.168.XX.XX',
],
'NodeType' => [
'description' => '节点类型,取值如下:'."\n"
."\n"
.'- **master**:协调节点。'."\n"
.'- **slave**:备协调节点。'."\n"
.'- **segment**:计算节点。',
'type' => 'string',
'example' => 'master',
],
'NodeName' => [
'description' => '节点所在的宿主名。',
'type' => 'string',
'example' => 'ap-southeast-1.i-t4n4c4ryr0yr441d****',
],
'NodePort' => [
'description' => '节点的端口号。',
'type' => 'string',
'example' => '3000',
],
'NodeID' => [
'description' => '节点ID。',
'type' => 'string',
'example' => '1',
],
'NodeStatus' => [
'description' => '节点运行状态,取值如下:'."\n"
."\n"
.'- **UP**:节点运行中。'."\n"
.'- **DOWN**:节点故障。',
'type' => 'string',
'example' => 'UP',
],
'NodeRole' => [
'description' => '节点当前所属角色,取值如下:'."\n"
."\n"
.'- **primary**:主节点。'."\n"
.'- **mirror**:副本节点。',
'type' => 'string',
'example' => 'primary',
],
'NodePreferredRole' => [
'description' => '节点最初所属角色,取值如下:'."\n"
."\n"
.'- **primary**:主节点。'."\n"
.'- **mirror**:副本节点。'."\n"
."\n"
.'如果该参数值与**NodeRole**参数的值一致,表示没有发生过角色反转(主备切换);如果该参数值与**NodeRole**参数的值不一致,表示发生过角色反转。',
'type' => 'string',
'example' => 'primary',
],
'NodeReplicationMode' => [
'description' => '节点数据同步状态,取值如下:'."\n"
."\n"
.'- **Synced**:已同步。'."\n"
.'- **Not Syncing**:未同步。'."\n"
.'- **No sync required**:无需同步,仅协调节点会出现该模式。',
'type' => 'string',
'example' => 'Synced',
],
'NodeCID' => [
'description' => '分组ID。',
'type' => 'string',
'example' => '-1',
],
],
],
],
'MasterStatusInfo' => [
'description' => '协调节点状态统计信息。',
'type' => 'object',
'properties' => [
'NormalNodeNum' => [
'description' => '正常状态节点数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '2',
],
'ExceptionNodeNum' => [
'description' => '异常状态节点数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '0',
],
'NotSyncingNodeNum' => [
'description' => '未同步节点数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '0',
],
'SyncedNodeNum' => [
'description' => '已同步节点数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PreferredNodeNum' => [
'description' => '正常角色节点数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '2',
],
'NotPreferredNodeNum' => [
'description' => '主从切换角色节点数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '0',
],
],
],
'SegmentStatusInfo' => [
'description' => '计算节点状态统计信息。',
'type' => 'object',
'properties' => [
'NormalNodeNum' => [
'description' => '正常状态节点数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '4',
],
'ExceptionNodeNum' => [
'description' => '异常状态节点数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '0',
],
'NotSyncingNodeNum' => [
'description' => '未同步节点数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '4',
],
'SyncedNodeNum' => [
'description' => '已同步节点数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '0',
],
'PreferredNodeNum' => [
'description' => '正常角色节点数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '4',
],
'NotPreferredNodeNum' => [
'description' => '主从切换角色节点数量。',
'type' => 'integer',
'format' => 'int32',
'example' => '0',
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"070534EC-78D5-5519-83CC-E7B1A9213483\\",\\n \\"TotalCount\\": \\"6\\",\\n \\"PageNumber\\": \\"1\\",\\n \\"Items\\": [\\n {\\n \\"Hostname\\": \\"gp-t4np568qe9710****-master-100984919\\",\\n \\"NodeAddress\\": \\"192.168.XX.XX\\",\\n \\"NodeType\\": \\"master\\",\\n \\"NodeName\\": \\"ap-southeast-1.i-t4n4c4ryr0yr441d****\\",\\n \\"NodePort\\": \\"3000\\",\\n \\"NodeID\\": \\"1\\",\\n \\"NodeStatus\\": \\"UP\\",\\n \\"NodeRole\\": \\"primary\\",\\n \\"NodePreferredRole\\": \\"primary\\",\\n \\"NodeReplicationMode\\": \\"Synced\\",\\n \\"NodeCID\\": \\"-1\\"\\n }\\n ],\\n \\"MasterStatusInfo\\": {\\n \\"NormalNodeNum\\": 2,\\n \\"ExceptionNodeNum\\": 0,\\n \\"NotSyncingNodeNum\\": 0,\\n \\"SyncedNodeNum\\": 1,\\n \\"PreferredNodeNum\\": 2,\\n \\"NotPreferredNodeNum\\": 0\\n },\\n \\"SegmentStatusInfo\\": {\\n \\"NormalNodeNum\\": 4,\\n \\"ExceptionNodeNum\\": 0,\\n \\"NotSyncingNodeNum\\": 4,\\n \\"SyncedNodeNum\\": 0,\\n \\"PreferredNodeNum\\": 4,\\n \\"NotPreferredNodeNum\\": 0\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n \\n 4\\n 0\\n 4\\n 0\\n 4\\n 0\\n \\n 6\\n 070534EC-78D5-5519-83CC-E7B1A9213483\\n \\n 2\\n 2\\n 1\\n 0\\n 0\\n \\n 1\\n \\n primary\\n ap-southeast-1.i-t4n4c4ryr0yr441d****\\n master\\n gp-t4np568qe9710****-master-100984919\\n 1\\n No sync required\\n 192.168.XX.XX\\n 3000\\n primary\\n -1\\n UP\\n \\n \\n primary\\n ap-southeast-1.i-t4n3owiwk6kl7l73****\\n secondary_master\\n 192.168.XX.XX\\n 4\\n Synced\\n 192.168.XX.XX\\n 3000\\n primary\\n -2\\n UP\\n \\n \\n primary\\n ap-southeast-1.i-t4naykbl8y0a6rsx****\\n segment\\n gp-t4np568qe9710****-segment-100984921\\n 2\\n Not Syncing\\n 192.168.XX.XX\\n 4000\\n primary\\n 0\\n UP\\n \\n \\n primary\\n ap-southeast-1.i-t4n01qvc3uipy7cx****\\n segment\\n gp-t4np568qe9710****-segment-100984920\\n 3\\n Not Syncing\\n 192.168.XX.XX\\n 4000\\n primary\\n 1\\n UP\\n \\n \\n primary\\n ap-southeast-1.i-t4n74iakzw9e26c9****\\n segment\\n 192.168.XX.XX\\n 5\\n Not Syncing\\n 192.168.XX.XX\\n 4000\\n primary\\n 2\\n UP\\n \\n \\n primary\\n ap-southeast-1.i-t4nfjsxiyfu3yzaw****\\n segment\\n 192.168.XX.XX\\n 6\\n Not Syncing\\n 192.168.XX.XX\\n 4000\\n primary\\n 3\\n UP\\n \\n","errorExample":""}]',
'title' => '查看节点详情',
'description' => '本接口用于查看AnalyticDB PostgreSQL版实例的协调节点与计算节点分布与状态。',
],
'DescribeDBInstanceIndexUsage' => [
'summary' => '获取AnalyticDB PostgreSQL版实例中索引的使用情况。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '140283',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。'."\n",
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '30',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:**1**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称',
'type' => 'string',
'required' => false,
'example' => 'test',
],
],
[
'name' => 'OrderBy',
'in' => 'query',
'schema' => [
'description' => '排序条件',
'type' => 'string',
'required' => false,
'example' => '{Field: SchemaName, Type: Desc}',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'TotalCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageNumber' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'Items' => [
'description' => '索引使用详情列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'DatabaseName' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'adbtest',
],
'SchemaName' => [
'description' => 'Schema名称。',
'type' => 'string',
'example' => 'schema1',
],
'TableName' => [
'description' => '表名称。',
'type' => 'string',
'example' => 'tab1_ptr_2010',
],
'IsPartitionTable' => [
'description' => '是否是分区表,取值如下:'."\n"
."\n"
.'- **true**:是分区表。'."\n"
.'- **false**:不是分区表。',
'type' => 'boolean',
'example' => 'true',
],
'ParentTableName' => [
'description' => '父表名。',
'type' => 'string',
'example' => 'tab1',
],
'IndexName' => [
'description' => '索引名称。',
'type' => 'string',
'example' => 'idx1',
],
'IndexSize' => [
'description' => '索引大小,单位为Byte。',
'type' => 'string',
'example' => '10000',
],
'IndexScanTimes' => [
'description' => '索引被扫描次数。',
'type' => 'integer',
'format' => 'int64',
'example' => '50000',
],
'IndexDef' => [
'description' => '索引的定义。',
'type' => 'string',
'example' => 'CREATE INDEX idx1 ON schema1.tab1_ptr_2010',
],
'TimeLastUpdated' => [
'description' => '上次更新(DELETE、INSERT或UPDATE操作)表的时间。',
'type' => 'string',
'example' => '2022-08-08T20:00:00Z',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"TotalCount\\": 1,\\n \\"PageNumber\\": 1,\\n \\"Items\\": [\\n {\\n \\"DatabaseName\\": \\"adbtest\\",\\n \\"SchemaName\\": \\"schema1\\",\\n \\"TableName\\": \\"tab1_ptr_2010\\",\\n \\"IsPartitionTable\\": true,\\n \\"ParentTableName\\": \\"tab1\\",\\n \\"IndexName\\": \\"idx1\\",\\n \\"IndexSize\\": \\"10000\\",\\n \\"IndexScanTimes\\": 50000,\\n \\"IndexDef\\": \\"CREATE INDEX idx1 ON schema1.tab1_ptr_2010\\",\\n \\"TimeLastUpdated\\": \\"2022-08-08T20:00:00Z\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\n 1\\n 1\\n \\n adbtest\\n schema1\\n tab1_ptr_2010\\n true\\n tab1\\n idx1\\n 10000\\n 50000\\n CREATE INDEX idx1 ON schema1.tab1_ptr_2010\\n 2022-08-08T20:00:00Z\\n \\n","errorExample":""}]',
'title' => '查看索引的使用情况',
'description' => '合理的使用索引可以提升数据库的查询速度,本接口用于查看AnalyticDB PostgreSQL版实例的索引使用情况。'."\n"
."\n"
.'目前该功能仅支持存储弹性模式实例,且内核版本为V6.3.10.1及以上版本。如何查看和升级内核小版本,请参见[查看内核小版本](~~277424~~)和[版本升级](~~139271~~)。',
],
'DescribeDBInstancePerformance' => [
'summary' => '查看某个AnalyticDB PostgreSQL存储预留模式实例在某个时间段内指定性能参数的性能监控数据。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNOW7XI',
],
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID,该实例需为存储预留模式实例。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'Key',
'in' => 'query',
'schema' => [
'description' => '性能指标,多个指标用英文半角“,”分隔,见[性能参数表](~~86943~~)。',
'type' => 'string',
'required' => true,
'example' => 'CpuUsage,MemoryUsage,Gpdb_SpaceUsage,Gpdb_IOPS,Gpdb_session',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间,格式为yyyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => true,
'example' => '2022-07-08T03:47Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,需要大于查询开始时间,格式为yyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => true,
'example' => '2022-07-09T03:47Z',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'EndTime' => [
'description' => '查询结束时间。',
'type' => 'string',
'example' => '2022-07-09T03:47Z',
],
'StartTime' => [
'description' => '查询开始时间。',
'type' => 'string',
'example' => '2022-07-08T03:47Z',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
'Engine' => [
'description' => '数据库类型。',
'type' => 'string',
'example' => 'gpdb',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '5E85244A-AB47-46A3-A3AD-5F307DCB407E',
],
'PerformanceKeys' => [
'description' => '实例性能参数值列表。',
'type' => 'array',
'items' => [
'description' => '数组格式:{perf1, perf2, perf3, …}。',
'type' => 'string',
'example' => ' { "Key": "MemoryUsage", "GroupValues": [{ "Name": "7198315-1530522046144-1", "Values": "" }, { "Name": "7198315-1530522046144-0", "Values": "" }, {"Values": "", "Name": "master" } ], "Unit": "%", "ValueFormat": "mem_usage"}',
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"EndTime\\": \\"2022-07-09T03:47Z\\",\\n \\"StartTime\\": \\"2022-07-08T03:47Z\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\",\\n \\"Engine\\": \\"gpdb\\",\\n \\"RequestId\\": \\"5E85244A-AB47-46A3-A3AD-5F307DCB407E\\",\\n \\"PerformanceKeys\\": [\\n \\" { \\\\\\"Key\\\\\\": \\\\\\"MemoryUsage\\\\\\", \\\\\\"GroupValues\\\\\\": [{ \\\\\\"Name\\\\\\": \\\\\\"7198315-1530522046144-1\\\\\\", \\\\\\"Values\\\\\\": \\\\\\"\\\\\\" }, { \\\\\\"Name\\\\\\": \\\\\\"7198315-1530522046144-0\\\\\\", \\\\\\"Values\\\\\\": \\\\\\"\\\\\\" }, {\\\\\\"Values\\\\\\": \\\\\\"\\\\\\", \\\\\\"Name\\\\\\": \\\\\\"master\\\\\\" } ], \\\\\\"Unit\\\\\\": \\\\\\"%\\\\\\", \\\\\\"ValueFormat\\\\\\": \\\\\\"mem_usage\\\\\\"}\\"\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 2022-07-09T03:47Z\\n 2022-07-08T03:47Z\\n gp-bp12ga6v69h86****\\n gpdb\\n 5E85244A-AB47-46A3-A3AD-5F307DCB407E\\n { \\"Key\\": \\"MemoryUsage\\", \\"GroupValues\\": [{ \\"Name\\": \\"7198315-1530522046144-1\\", \\"Values\\": \\"\\" }, { \\"Name\\": \\"7198315-1530522046144-0\\", \\"Values\\": \\"\\" }, {\\"Values\\": \\"\\", \\"Name\\": \\"master\\" } ], \\"Unit\\": \\"%\\", \\"ValueFormat\\": \\"mem_usage\\"}\\n","errorExample":""}]',
'title' => '查询指定性能参数的监控数据',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeDiagnosisMonitorPerformance' => [
'summary' => '本接口用于查看指定时间段的AnalyticDB PostgreSQL版存储弹性模式实例的SQL执行信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间,格式为yyyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => false,
'example' => '2022-05-07T06:59Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,需要大于查询开始时间,格式为yyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => false,
'example' => '2022-05-07T07:59Z',
],
],
[
'name' => 'User',
'in' => 'query',
'schema' => [
'description' => '用户名。',
'type' => 'string',
'required' => false,
'example' => 'adbpguser',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'adbtest',
],
],
[
'name' => 'QueryCondition',
'in' => 'query',
'schema' => [
'description' => '查询过滤条件,JSON格式,取值如下:'."\n"
."\n"
.'- `{"Type":"maxCost", "Value":"100"}`:耗时最长的100个查询。'."\n"
.'- `{"Type":"status","Value":"finished"}`:已完成的查询。'."\n"
.'- `{"Type":"status","Value":"running"}`:运行中的查询。'."\n"
.'- `{"Type":"cost","Min":"30","Max":"50"}`:自定义耗时查询,您可以自定义设置查询的最短耗时和最长耗时,**Min**表示最短耗时;**Max**表示最长耗时,单位为毫秒(ms)。'."\n"
.' - 仅设置**Min**表示查询执行耗时大于该值的查询。'."\n"
.' - 仅设置**Max**表示查询执行耗时小于该值的查询。'."\n"
.' - 设置**Min**和**Max**表示查询耗时大于等于**Min**的值且小于等于**Max**的值的查询。',
'type' => 'string',
'required' => false,
'example' => '{"Type":"maxCost", "Value":"100"}',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Performances' => [
'description' => 'SQL查询列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'QueryID' => [
'description' => '查询ID,即查询的唯一标识。',
'type' => 'string',
'example' => '2022042612465401000000012903151998970',
],
'StartTime' => [
'description' => '查询开始时间,为毫秒级UNIX时间戳。',
'type' => 'integer',
'format' => 'int64',
'example' => '1651877940000',
],
'Cost' => [
'description' => '查询运行的总时间,单位为毫秒(ms)。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'Status' => [
'description' => '查询的执行状态,取值如下:'."\n"
."\n"
.'- **running**:执行中。'."\n"
.'- **finished**:已完成。',
'type' => 'string',
'example' => 'finished',
],
'User' => [
'description' => '用户名。',
'type' => 'string',
'example' => 'adbpguser',
],
'Database' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'adbtest',
],
],
],
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'PerformancesThreshold' => [
'description' => '查询数量阈值。',
'type' => 'integer',
'format' => 'int32',
'example' => '10000',
],
'PerformancesTruncated' => [
'description' => '查询数量是否截断,取值如下:'."\n"
."\n"
.'- **true**:截断。'."\n"
.'- **false**:不截断。',
'type' => 'boolean',
'example' => 'false',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Performances\\": [\\n {\\n \\"QueryID\\": \\"2022042612465401000000012903151998970\\",\\n \\"StartTime\\": 1651877940000,\\n \\"Cost\\": 1,\\n \\"Status\\": \\"finished\\",\\n \\"User\\": \\"adbpguser\\",\\n \\"Database\\": \\"adbtest\\"\\n }\\n ],\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"PerformancesThreshold\\": 10000,\\n \\"PerformancesTruncated\\": false\\n}","errorExample":""},{"type":"xml","example":"\\n \\n 2022042612465401000000012903151998970\\n 1651877940000\\n 1\\n finished\\n adbpguser\\n adbtest\\n \\n B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\n 10000\\n false\\n","errorExample":""}]',
'title' => '查看SQL执行信息',
],
'DescribeDiagnosisRecords' => [
'summary' => '获取AnalyticDB PostgreSQL版实例SQL查询列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '30',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:**1**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间,格式为yyyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => false,
'example' => '2022-05-07T06:59Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,需要大于查询开始时间,格式为yyyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => false,
'example' => '2022-05-07T07:59Z',
],
],
[
'name' => 'User',
'in' => 'query',
'schema' => [
'description' => '用户名。',
'type' => 'string',
'required' => false,
'example' => 'adbpguser',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'adbtest',
],
],
[
'name' => 'QueryCondition',
'in' => 'query',
'schema' => [
'description' => '查询过滤条件,JSON格式,取值如下:'."\n"
."\n"
.'- `{"Type":"maxCost", "Value":"100"}`:耗时最长的100个查询。'."\n"
.'- `{"Type":"status","Value":"finished"}`:已完成的查询。'."\n"
.'- `{"Type":"status","Value":"running"}`:运行中的查询。'."\n"
.'- `{"Type":"cost","Min":"30","Max":"50"}`:自定义耗时查询,您可以自定义设置查询的最短耗时和最长耗时,**Min**表示最短耗时;**Max**表示最长耗时,单位为毫秒(ms)。'."\n"
.' - 仅设置**Min**表示查询执行耗时大于该值的查询。'."\n"
.' - 仅设置**Max**表示查询执行耗时小于该值的查询。'."\n"
.' - 设置**Min**和**Max**表示查询耗时大于等于**Min**的值且小于等于**Max**的值的查询。',
'type' => 'string',
'required' => false,
'example' => '{ "Type":"maxCost", "Value":"100" }',
],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => [
'description' => 'SQL关键字。',
'type' => 'string',
'required' => false,
'example' => 'SELECT',
],
],
[
'name' => 'Order',
'in' => 'query',
'schema' => [
'description' => '该参数用于控制台字段排序,无需传入。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Items' => [
'description' => 'SQL查询列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'QueryID' => [
'description' => '查询ID,即查询的唯一标识。',
'type' => 'string',
'example' => '2022042612465401000000012903151998970',
],
'SessionID' => [
'description' => '查询所属的会话ID。',
'type' => 'string',
'example' => '50',
],
'StartTime' => [
'description' => '查询开始的时间,为毫秒级的UNIX时间戳。',
'type' => 'integer',
'format' => 'int64',
'example' => '1651877940000',
],
'Duration' => [
'description' => '查询运行的总时间,单位为秒(s)。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'Status' => [
'description' => '查询的执行状态,取值如下:'."\n"
."\n"
.'- **running**:执行中。'."\n"
.'- **finished**:已完成。',
'type' => 'string',
'example' => 'finished',
],
'SQLStmt' => [
'description' => 'SQL语句。',
'type' => 'string',
'example' => 'SELECT * FROM t1,t2 WHERE t1.id=t2.id;',
],
'User' => [
'description' => '用户名。',
'type' => 'string',
'example' => 'adbpguser',
],
'Database' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'adbtest',
],
'SQLTruncated' => [
'description' => 'SQL语句是否截断,取值如下:'."\n"
."\n"
.'- **true**:需要截断。'."\n"
.'- **false**:不需要截断。',
'type' => 'boolean',
'example' => 'false',
],
'SQLTruncatedThreshold' => [
'description' => 'SQL语句截断阈值,取值为字符串的字符数。',
'type' => 'integer',
'format' => 'int32',
'example' => '5120',
],
],
],
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'TotalCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '100',
],
'PageNumber' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Items\\": [\\n {\\n \\"QueryID\\": \\"2022042612465401000000012903151998970\\",\\n \\"SessionID\\": \\"50\\",\\n \\"StartTime\\": 1651877940000,\\n \\"Duration\\": 1,\\n \\"Status\\": \\"finished\\",\\n \\"SQLStmt\\": \\"SELECT * FROM t1,t2 WHERE t1.id=t2.id;\\",\\n \\"User\\": \\"adbpguser\\",\\n \\"Database\\": \\"adbtest\\",\\n \\"SQLTruncated\\": false,\\n \\"SQLTruncatedThreshold\\": 5120\\n }\\n ],\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"TotalCount\\": 100,\\n \\"PageNumber\\": 1\\n}","errorExample":""},{"type":"xml","example":"\\n \\n 2022042612465401000000012903151998970\\n 50\\n 1651877940000\\n 1\\n finished\\n SELECT * FROM t1,t2 WHERE t1.id=t2.id;\\n adbpguser\\n adbtest\\n false\\n 5120\\n \\n B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\n 100\\n 1\\n","errorExample":""}]',
'title' => '获取SQL查询列表',
],
'DescribeDiagnosisSQLInfo' => [
'summary' => '获取AnalyticDB PostgreSQL版实例中指定查询语句的详细信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'QueryID',
'in' => 'query',
'schema' => [
'description' => '查询ID,即查询的唯一标识。'."\n"
."\n"
.'> 您可以调用[DescribeDiagnosisRecords](~~450511~~)接口获取查询ID。',
'type' => 'string',
'required' => true,
'example' => '71403480878****',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'adbtest',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '425AAA6A-63E0-1929-A1CE-3D9036CBC463',
],
'QueryID' => [
'description' => '查询ID。',
'type' => 'string',
'example' => '71403480878****',
],
'SessionID' => [
'description' => '查询所属的会话ID。',
'type' => 'string',
'example' => '658****',
],
'StartTime' => [
'description' => '查询开始的时间,为毫秒级的UNIX时间戳。',
'type' => 'integer',
'format' => 'int64',
'example' => '1660719602199',
],
'Duration' => [
'description' => '查询运行的总时间,单位为秒(s)。',
'type' => 'integer',
'format' => 'int32',
'example' => '16',
],
'SQLStmt' => [
'description' => 'SQL语句。',
'type' => 'string',
'example' => 'select n_live_tup, n_live_tup + n_dead_tup, pg_relation_size(table_name), last_vacuum from pg_stat_user_tables where relid = table_name::regclass',
],
'User' => [
'description' => '用户名。',
'type' => 'string',
'example' => 'adbpguser',
],
'Database' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'adbtest',
],
'Status' => [
'description' => 'SQL执行状态,取值说明:'."\n"
."\n"
.'- **running**:执行中。'."\n"
.'- **finished**:执行完成。',
'type' => 'string',
'example' => 'finished',
],
'QueryPlan' => [
'description' => '算子信息。',
'type' => 'string',
'example' => '{\\"children\\":********\\"startTime\\":1660719602199}',
],
'TextPlan' => [
'description' => '查询计划信息。',
'type' => 'string',
'example' => '******',
],
'SortedMetrics' => [
'description' => '按照指标的排序结构。',
'type' => 'string',
'example' => '{\\"costSort\\":******:\\"Seq Scan-9\\",\\"value\\":0.0}]}',
],
'MaxOutputRows' => [
'description' => '最大输出行数。',
'type' => 'string',
'example' => '10',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"425AAA6A-63E0-1929-A1CE-3D9036CBC463\\",\\n \\"QueryID\\": \\"71403480878****\\",\\n \\"SessionID\\": \\"658****\\",\\n \\"StartTime\\": 1660719602199,\\n \\"Duration\\": 16,\\n \\"SQLStmt\\": \\"select n_live_tup, n_live_tup + n_dead_tup, pg_relation_size(table_name), last_vacuum from pg_stat_user_tables where relid = table_name::regclass\\",\\n \\"User\\": \\"adbpguser\\",\\n \\"Database\\": \\"adbtest\\",\\n \\"Status\\": \\"finished\\",\\n \\"QueryPlan\\": \\"{\\\\\\\\\\\\\\"children\\\\\\\\\\\\\\":********\\\\\\\\\\\\\\"startTime\\\\\\\\\\\\\\":1660719602199}\\",\\n \\"TextPlan\\": \\"******\\",\\n \\"SortedMetrics\\": \\"{\\\\\\\\\\\\\\"costSort\\\\\\\\\\\\\\":******:\\\\\\\\\\\\\\"Seq Scan-9\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":0.0}]}\\",\\n \\"MaxOutputRows\\": \\"10\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n \\n finished\\n {\\"costSort\\":******:\\"Seq Scan-9\\",\\"value\\":0.0}]}\\n select n_live_tup, n_live_tup + n_dead_tup, pg_relation_size(table_name), last_vacuum\\n from pg_stat_user_tables\\n where relid = table_name::regclass\\n adbpguser\\n 425AAA6A-63E0-1929-A1CE-3D9036CBC463\\n 71403480878****\\n 1660719602199\\n 16\\n {\\"children\\":********\\"startTime\\":1660719602199}\\n ******\\n 10\\n adbtest\\n 658****\\n \\n 200\\n 425AAA6A-63E0-1929-A1CE-3D9036CBC463\\n true\\n","errorExample":""}]',
'title' => '查看SQL语句的详细信息',
'description' => '本接口用于查看AnalyticDB PostgreSQL版实例中指定查询的详细信息,例如查询语句、执行计划文本和执行计划树等。'."\n"
."\n"
.'目前该功能仅支持存储弹性模式实例,且内核版本为V6.3.10.1及以上版本。如何查看和升级内核小版本,请参见[查看内核小版本](~~277424~~)和[版本升级](~~139271~~)。',
'responseParamsDescription' => '**QueryPlan**参数说明如下:'."\n"
.'|名称|类型|示例值|描述|'."\n"
.'|-----|-----|-------|-----|'."\n"
.'|OpertorID|Integer|1|算子在查询执行计划中的ID。|'."\n"
.'|OperatorTypeID|integer|10|算子类型ID。|'."\n"
.'|OperatorType|String|AGG|算子类型。|'."\n"
.'|OperatorName|String|AGG-1|算子名称。|'."\n"
.'|NodeWidth|Integer|1|执行计划树中,节点在该层的水平位置,从1开始。|'."\n"
.'|NodeDepth|Integer|2|执行计划树中,节点所处的深度,从1开始。|'."\n"
.'|LevelWidth|Integer|1|执行计划树中,节点所在层的总宽度,从1开始。|'."\n"
.'|MaxDepth|Integer|2|执行计划树的最大深度,该值仅root节点支持,从1开始。|'."\n"
.'|OutputRows|Integer|10|算子执行过程中输出的数据行数。|'."\n"
.'|InputRows|Integer|1000|算子执行过程中输入的数据行数。|'."\n"
.'|Memory|Float|100|算子占用内存,单位为KB。|'."\n"
.'|StartTime|String|1652843003000|算子开始执行的时间。|'."\n"
.'|EndTime|String|1652843003100|算子结束执行的时间。|'."\n"
.'|Duration|Float|6|算子执行消耗的时间,单位为毫秒(ms)。|'."\n"
.'|DiskReadSize|Float|55|算子从磁盘读取数据量,单位为Byte。|'."\n"
.'|DiskReadTime|Float|0.1|算子从磁盘读取数据消耗的时间,单位为毫秒(ms)。|'."\n"
.'|NetIOSize|Float|3000|数据在不同节点间网络传输的数据量,单位为Byte。|'."\n"
.'|NetIOTime|Float|0.1|数据在不同节点间网络传输消耗的时间,单位为毫秒(ms)。|'."\n"
.'|MemoryPercent|Float|20.11|算子使用内存占比。|'."\n"
.'|DurationPercent|Float|16.11|算子执行消耗时间占比。|'."\n"
.'|DiskReadSizePercent|Float|55.11|算子从磁盘读取数据量占比。|'."\n"
.'|DiskReadTimePercent|Float|11.11|算子从磁盘读取数据消耗时间占比。|'."\n"
.'|NetIOSizePercent|Float|30.11|数据在不同节点间网络传输的数据量占比。|'."\n"
.'|NetIOTimePercent|Float|11.11|数据在不同节点间网络传输消耗的时间占比。|'."\n"
.'|Children|算子结构体|递归结构|子节点算子,字段结构与父节点算子结构一致,最下层子节点的该值为空。|',
],
'DescribeDownloadRecords' => [
'summary' => '获取AnalyticDB PostgreSQL版查询诊断信息的下载记录。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'DownloadTaskType',
'in' => 'query',
'schema' => [
'type' => 'string',
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Records' => [
'description' => '下载记录列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'DownloadId' => [
'description' => '下载记录ID。',
'type' => 'integer',
'format' => 'int64',
'example' => '1150',
],
'ExceptionMsg' => [
'description' => '错误信息。',
'type' => 'string',
'example' => 'Error message',
],
'FileName' => [
'description' => '文件名。',
'type' => 'string',
'example' => '20220509113448-20220509173448.csv',
],
'Status' => [
'description' => '下载查询分析记录后,文件会先上传到OSS,完成上传后才能进行下载,该参数为上传任务的状态,取值如下:'."\n"
."\n"
.'- **running**:上传中。'."\n"
.'- **finished**:上传完成。'."\n"
.'- **failed**:上传失败。',
'type' => 'string',
'example' => 'finished',
],
'DownloadUrl' => [
'description' => '下载链接。',
'type' => 'string',
'example' => 'https://perth-download-task.oss-cn-beijing.aliyuncs.com/*****',
],
],
],
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Records\\": [\\n {\\n \\"DownloadId\\": 1150,\\n \\"ExceptionMsg\\": \\"Error message\\",\\n \\"FileName\\": \\"20220509113448-20220509173448.csv\\",\\n \\"Status\\": \\"finished\\",\\n \\"DownloadUrl\\": \\"https://perth-download-task.oss-cn-beijing.aliyuncs.com/*****\\"\\n }\\n ],\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","errorExample":""},{"type":"xml","example":"\\n \\n 1150\\n Error message\\n 20220509113448-20220509173448.csv\\n finished\\n https://perth-download-task.oss-cn-beijing.aliyuncs.com/*****\\n \\n B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\n","errorExample":""}]',
'title' => '获取查询诊断信息的下载记录',
'description' => '您需要调用[DownloadDiagnosisRecords](~~447700~~)接口下载查询诊断信息后,才能通过本接口查看相关下载记录以及下载查询诊断信息。'."\n"
."\n"
.'目前该功能仅支持存储弹性模式实例,且内核版本为V6.3.10.1及以上版本。如何查看和升级内核小版本,请参见[查看内核小版本](~~277424~~)和[版本升级](~~139271~~)。',
],
'DescribeDownloadSQLLogs' => [
'summary' => '获取AnalyticDB PostgreSQL版慢查询信息的最近五条下载记录。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Records' => [
'description' => '下载记录列表。',
'type' => 'array',
'items' => [
'description' => '下载记录列表。',
'type' => 'object',
'properties' => [
'DownloadId' => [
'description' => '下载记录ID。',
'type' => 'integer',
'format' => 'int64',
'example' => '1150',
],
'ExceptionMsg' => [
'description' => '错误信息。',
'type' => 'string',
'example' => 'Error message',
],
'FileName' => [
'description' => '文件名。',
'type' => 'string',
'example' => '20220509113448-20220509173448.csv',
],
'Status' => [
'description' => '任务状态,取值为:'."\n"
.'- **running**:正在下载。'."\n"
.'- **finished**:已完成。'."\n"
.'- **failed**:下载失败。',
'type' => 'string',
'example' => 'finished',
],
'DownloadUrl' => [
'description' => '下载链接。',
'type' => 'string',
'example' => 'https://perth-download-task.oss-cn-beijing.aliyuncs.com/*****',
],
],
],
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'FDE9942A-D919-527B-B559-5D0F6F20CCEC',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Records\\": [\\n {\\n \\"DownloadId\\": 1150,\\n \\"ExceptionMsg\\": \\"Error message\\",\\n \\"FileName\\": \\"20220509113448-20220509173448.csv\\",\\n \\"Status\\": \\"finished\\",\\n \\"DownloadUrl\\": \\"https://perth-download-task.oss-cn-beijing.aliyuncs.com/*****\\"\\n }\\n ],\\n \\"RequestId\\": \\"FDE9942A-D919-527B-B559-5D0F6F20CCEC\\"\\n}","type":"json"}]',
'title' => '查询慢SQL信息下载记录',
],
'DescribeHealthStatus' => [
'summary' => '查看实例和节点的健康状态。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNOW7XI',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'Key',
'in' => 'query',
'schema' => [
'description' => '性能参数名称,多个指标用英文半角(,)分隔,具体信息,请参见[性能参数表](~~86943~~)。',
'type' => 'string',
'required' => true,
'example' => 'node_master_status,node_master_connection_status,node_segment_connection_status,node_segment_disk_status',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Status' => [
'description' => '性能监控具体信息,由参数名、状态和和指标值构成。只有请求参数**Key**中传入了性能参数才会返回对应的监控信息,例如请求参数**Key**仅包含**adbpg\\_status**,则返回信息中仅返回**adbpg\\_status**的监控信息。'."\n"
."\n"
.'更多性能参数信息,请参见[性能参数表](~~86943~~)。',
'type' => 'object',
'properties' => [
'adbpg_status' => [
'description' => '实例健康状态。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => '实例健康状态。取值说明:'."\n"
."\n"
.'- **critical**:任意一个Master节点或Segment节点不可用,控制台显示为红色。'."\n"
.'- **healthy**:所有节点均可用,控制台显示为绿色。',
'type' => 'string',
'example' => 'healthy',
],
'Value' => [
'description' => '实例健康状态的指标值。取值说明:'."\n"
."\n"
.'- **1**表示healthy。'."\n"
.'- **0**表示critical。',
'type' => 'number',
'format' => 'float',
'example' => '1',
],
],
],
'adbpg_connection_status' => [
'description' => '实例连接状态。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => '实例连接状态。取值说明:'."\n"
."\n"
.'- **critical**:实例连接数使用率大于95%,控制台显示为红色。'."\n"
.'- **warning**:实例连接数使用率大于90%且小于等于95%,控制台显示为黄色。'."\n"
.'- **healthy**:实例连接数使用率小于等于90%,控制台显示为绿色。'."\n"
."\n"
.'> 实例连接数使用率为所有Master节点和Segment节点的连接数使用率的最大值。',
'type' => 'string',
'example' => 'healthy',
],
'Value' => [
'description' => '实例连接数使用率的指标值,即所有Master节点和Segment节点的连接数使用率的最大值。'."\n"
."\n"
.'单位:%。',
'type' => 'number',
'format' => 'float',
'example' => '1.71',
],
],
],
'adbpg_disk_status' => [
'description' => '实例存储状态。'."\n"
."\n"
.'> 仅存储弹性模式会返回该值。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => '实例存储状态。取值说明:'."\n"
."\n"
.'- **critical**:实例存储水位大于等于90%,控制台显示为红色,实例将被锁定。'."\n"
.'- **warning**:实例存储水位大于等于70%且小于90%,控制台显示为黄色。'."\n"
.'- **healthy**:实例存储水位小于70%,控制台显示为绿色,实例存储状态健康。'."\n"
."\n"
.'> 实例存储水位为所有Segment节点的存储水位的平均值。',
'type' => 'string',
'example' => 'healthy',
],
'Value' => [
'description' => '实例存储水位的指标值,即所有Segment节点的存储水位的平均值。'."\n"
."\n"
.'单位:%。',
'type' => 'number',
'format' => 'float',
'example' => '1.52',
],
],
],
'adbpg_disk_usage_percent' => [
'description' => '实例存储水位。'."\n"
."\n"
.'> 仅存储弹性模式会返回该值。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => '实例存储水位状态。取值说明:'."\n"
."\n"
.'- **critical**:实例存储水位大于等于90%,实例将被锁定。'."\n"
.'- **warning**:实例存储水位大于等于70%且小于90%。'."\n"
.'- **healthy**:实例存储水位小于70%,实例存储状态健康。'."\n"
."\n"
.'> 实例存储水位为所有Segment节点的存储水位的平均值。',
'type' => 'string',
'example' => 'healthy',
],
'Value' => [
'description' => '实例存储水位的指标值,所有Segment节点的存储水位的平均值。'."\n"
."\n"
.'单位:%。',
'type' => 'number',
'format' => 'float',
'example' => '1.52',
],
],
],
'adbpg_master_disk_usage_percent_max' => [
'description' => '最大实例协调节点存储水位,即实例下所有Master节点中的最大存储水位。'."\n"
."\n"
.'> 仅存储弹性模式会返回该值。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'Master节点最大存储水位状态。取值说明:'."\n"
."\n"
.'- **critical**:水位大于等于90%,实例将被锁定。'."\n"
.'- **warning**:水位大于等于70%且小于90%。'."\n"
.'- **healthy**:水位小于70%,实例存储状态健康。',
'type' => 'string',
'example' => 'healthy',
],
'Value' => [
'description' => 'Master节点最大存储水位的指标值。'."\n"
."\n"
.'单位:%。',
'type' => 'number',
'format' => 'float',
'example' => '1.34',
],
],
],
'adbgp_segment_disk_usage_percent_max' => [
'description' => '最大实例计算节点存储水位,即实例下所有Segment节点中的最大存储水位。'."\n"
."\n"
.'> 仅存储弹性模式会返回该值。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'Segment节点最大存储水位状态。取值说明:'."\n"
."\n"
.'- **critical**:水位大于等于90%,实例将被锁定。'."\n"
.'- **warning**:水位大于等于80%且小于90%。'."\n"
.'- **healthy**:水位小于80%,实例存储状态健康。',
'type' => 'string',
'example' => 'healthy',
],
'Value' => [
'description' => 'Segment节点最大存储水位的指标值。'."\n"
."\n"
.'单位:%。',
'type' => 'number',
'format' => 'float',
'example' => '1.52',
],
],
],
'node_master_status' => [
'description' => '协调节点健康状态,即Master节点的健康状态。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'Master节点健康状态。取值说明:'."\n"
."\n"
.'- **critical**:任意一个主Master节点或副Master节点不可用,控制台显示为红色。'."\n"
.'- **healthy**:所有Master节点均可用,控制台显示为绿色。',
'type' => 'string',
'example' => 'healthy',
],
'Value' => [
'description' => 'Master节点健康状态的指标值。取值说明:'."\n"
."\n"
.'- **1**表示healthy。'."\n"
.'- **0**表示critical。',
'type' => 'number',
'format' => 'float',
'example' => '1',
],
],
],
'node_segment_disk_status' => [
'description' => '计算节点存储状态,即Segment节点的存储状态。'."\n"
."\n"
.'> 仅存储弹性模式会返回该值。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'Segment节点存储状态。取值说明:'."\n"
."\n"
.'- **critical**:Segment节点存储水位大于等于90%,控制台显示为红色,实例将被锁定。'."\n"
.'- **warning**:Segment节点存储水位大于等于80%且小于90%,控制台显示为黄色。'."\n"
.'- **healthy**:Segment节点存储水位小于80%,控制台显示为绿色,实例存储状态健康。'."\n"
."\n"
.'> Segment节点存储水位为所有Segment节点的存储水位的最大值。',
'type' => 'string',
'example' => 'healthy',
],
'Value' => [
'description' => 'Segment节点的最大存储水位的指标值。'."\n"
."\n"
.'单位:%。',
'type' => 'number',
'format' => 'float',
'example' => '1.52',
],
],
],
'node_master_connection_status' => [
'description' => '协调节点连接健康状态,即Master节点的连接健康状态。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'Master节点连接健康状态。取值说明:'."\n"
."\n"
.'- **critical**:Master节点连接数使用率大于等于95%,控制台显示为红色。'."\n"
.'- **warning**:Master节点连接数使用率大于等于90%且小于95%,控制台显示为黄色。'."\n"
.'- **healthy**:Master节点连接数使用率小于90%,控制台显示为绿色。'."\n"
."\n"
.'> Master节点连接数使用率为所有Master节点中连接数使用率的最大值。',
'type' => 'string',
'example' => 'healthy',
],
'Value' => [
'description' => 'Master节点的连接数使用率的指标值,即所有Master节点中连接数使用率的最大值。'."\n"
."\n"
.'单位:%。',
'type' => 'number',
'format' => 'float',
'example' => '1.71',
],
],
],
'node_segment_connection_status' => [
'description' => '计算节点连接健康状态,即Segment节点的连接健康状态。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'Segment节点连接健康状态。取值说明:'."\n"
."\n"
.'- **critical**:Segment节点连接数使用率大于等于95%,控制台显示为红色。'."\n"
.'- **warning**:Segment节点连接数使用率大于等于90%且小于95%,控制台显示为黄色。'."\n"
.'- **healthy**:Segment节点连接数使用率小于90%,控制台显示为绿色。'."\n"
."\n"
.'> Segment节点的连接数使用率为所有Segment节点中的连接数使用率最大值。',
'type' => 'string',
'example' => 'healthy',
],
'Value' => [
'description' => 'Segment节点的连接数使用率的指标值,即所有Segment节点中连接数使用率的最大值。'."\n"
."\n"
.'单位:%。',
'type' => 'number',
'format' => 'float',
'example' => '0.48',
],
],
],
'adbpg_master_status' => [
'description' => '协调节点状态,即Master节点的可用状态。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'Master节点的可用状态。取值说明:'."\n"
."\n"
.'- **critical**:主备节点均不可用,控制台显示为红色。'."\n"
.'- **warning**:主节点或备节点不可用,控制台显示为黄色。'."\n"
.'- **healthy**:所有节点均可用,控制台显示为绿色。',
'type' => 'string',
'example' => 'healthy',
],
'Value' => [
'description' => 'Master节点的可用状态的指标值。取值说明:',
'type' => 'number',
'format' => 'float',
'example' => '1',
],
],
],
'adbpg_segment_status' => [
'description' => '计算节点状态,即Segment节点的可用状态。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'Segment节点的可用状态。取值说明:'."\n"
."\n"
.'- **critical**:主备节点均不可用,控制台显示为红色。'."\n"
.'- **warning**:大于等于50%节点不可用,控制台显示为黄色。'."\n"
.'- **healthy**:所有节点均可用,控制台显示为绿色。',
'type' => 'string',
'example' => 'healthy',
],
'Value' => [
'description' => 'Segment节点的可用状态的指标值。',
'type' => 'number',
'format' => 'float',
'example' => '1',
],
],
],
'adbpg_instance_total_data_gb' => [
'description' => '实例存储数据总量。',
'type' => 'object',
'properties' => [
'Value' => [
'description' => '实例存储数据总量,单位GB。',
'type' => 'number',
'format' => 'float',
'example' => '4.1',
],
],
],
'adbpg_instance_hot_data_gb' => [
'description' => '热数据存储总量。',
'type' => 'object',
'properties' => [
'Value' => [
'description' => '热数据存储总量,单位GB。',
'type' => 'number',
'format' => 'float',
'example' => '4.1',
],
],
],
'adbpg_instance_cold_data_gb' => [
'description' => '冷数据存储总量',
'type' => 'object',
'properties' => [
'Value' => [
'description' => '冷数据存储总量,单位GB。',
'type' => 'number',
'format' => 'float',
'example' => '0',
],
],
],
],
'example' => '{"node_master_connection_status":{"Status":"healthy","Value":1.6}}',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'D97B4191-104D-10CE-8BC5-53**********',
],
'DBClusterId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": {\\n \\"adbpg_status\\": {\\n \\"Status\\": \\"healthy\\",\\n \\"Value\\": 1\\n },\\n \\"adbpg_connection_status\\": {\\n \\"Status\\": \\"healthy\\",\\n \\"Value\\": 1.71\\n },\\n \\"adbpg_disk_status\\": {\\n \\"Status\\": \\"healthy\\",\\n \\"Value\\": 1.52\\n },\\n \\"adbpg_disk_usage_percent\\": {\\n \\"Status\\": \\"healthy\\",\\n \\"Value\\": 1.52\\n },\\n \\"adbpg_master_disk_usage_percent_max\\": {\\n \\"Status\\": \\"healthy\\",\\n \\"Value\\": 1.34\\n },\\n \\"adbgp_segment_disk_usage_percent_max\\": {\\n \\"Status\\": \\"healthy\\",\\n \\"Value\\": 1.52\\n },\\n \\"node_master_status\\": {\\n \\"Status\\": \\"healthy\\",\\n \\"Value\\": 1\\n },\\n \\"node_segment_disk_status\\": {\\n \\"Status\\": \\"healthy\\",\\n \\"Value\\": 1.52\\n },\\n \\"node_master_connection_status\\": {\\n \\"Status\\": \\"healthy\\",\\n \\"Value\\": 1.71\\n },\\n \\"node_segment_connection_status\\": {\\n \\"Status\\": \\"healthy\\",\\n \\"Value\\": 0.48\\n },\\n \\"adbpg_master_status\\": {\\n \\"Status\\": \\"healthy\\",\\n \\"Value\\": 1\\n },\\n \\"adbpg_segment_status\\": {\\n \\"Status\\": \\"healthy\\",\\n \\"Value\\": 1\\n },\\n \\"adbpg_instance_total_data_gb\\": {\\n \\"Value\\": 4.1\\n },\\n \\"adbpg_instance_hot_data_gb\\": {\\n \\"Value\\": 4.1\\n },\\n \\"adbpg_instance_cold_data_gb\\": {\\n \\"Value\\": 0\\n }\\n },\\n \\"RequestId\\": \\"D97B4191-104D-10CE-8BC5-53**********\\",\\n \\"DBClusterId\\": \\"gp-bp12ga6v69h86****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n \\n \\n \\n healthy\\n 1\\n \\n \\n healthy\\n 1.71\\n \\n \\n healthy\\n 1.52\\n \\n \\n healthy\\n 1.34\\n \\n \\n healthy\\n 1.52\\n \\n \\n healthy\\n 1.52\\n \\n \\n healthy\\n 1.71\\n \\n \\n healthy\\n 1\\n \\n \\n healthy\\n 0.48\\n \\n \\n healthy\\n 1.52\\n \\n \\n D97B4191-104D-10CE-8BC5-53**********\\n gp-bp12ga6v69h86****\\n \\n 200\\n D97B4191-104D-10CE-8BC5-53**********\\n true\\n","errorExample":""}]',
'title' => '查看实例和节点的健康状态',
'description' => '本接口用于查看存储弹性模式和Serverless版本的AnalyticDB PostgreSQL版的实例、协调节点(也称Master节点)以及计算节点(也称Segment节点)的健康状态。',
],
'DescribeWaitingSQLInfo' => [
'summary' => '获取AnalyticDB PostgreSQL版实例锁等待详情信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'PID',
'in' => 'query',
'schema' => [
'description' => '进程ID,即等待查询SQL的唯一标识。'."\n"
."\n"
.'> 您可以调用[DescribeWaitingSQLRecords](~~461735~~)接口获取锁等待的查询的进程ID。',
'type' => 'string',
'required' => true,
'example' => '100',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'test',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'Database' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'test',
],
'Items' => [
'description' => '锁等待的查询的具体信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'PID' => [
'description' => '进程ID,即等待查询SQL的唯一标识。',
'type' => 'string',
'example' => '100',
],
'User' => [
'description' => '查询的用户。',
'type' => 'string',
'example' => 'testUser',
],
'SQLStmt' => [
'description' => '查询的SQL文本。',
'type' => 'string',
'example' => 'Select * from t1,t2 where t1.id=t2.id;',
],
'Application' => [
'description' => '查询所属应用。',
'type' => 'string',
'example' => 'DataGrip 2022.1.5',
],
'NotGrantLocks' => [
'description' => '未授权的锁。',
'type' => 'string',
'example' => 'AccessShareLock',
],
'BlockedByPID' => [
'description' => '阻塞该查询的进程ID。',
'type' => 'string',
'example' => '110',
],
'BlockedByUser' => [
'description' => '阻塞该查询的执行用户。',
'type' => 'string',
'example' => 'testUser1',
],
'BlockedBySQLStmt' => [
'description' => '阻塞该查询的SQL文本。',
'type' => 'string',
'example' => 'Select * from t1;',
],
'BlockedByApplication' => [
'description' => '阻塞该查询的查询所属应用。',
'type' => 'string',
'example' => 'DataGrip 2022.1.5',
],
'GrantLocks' => [
'description' => '授权的锁。',
'type' => 'string',
'example' => 'ShareLock,AccessExclusiveLock',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"Database\\": \\"test\\",\\n \\"Items\\": [\\n {\\n \\"PID\\": \\"100\\",\\n \\"User\\": \\"testUser\\",\\n \\"SQLStmt\\": \\"Select * from t1,t2 where t1.id=t2.id;\\",\\n \\"Application\\": \\"DataGrip 2022.1.5\\",\\n \\"NotGrantLocks\\": \\"AccessShareLock\\",\\n \\"BlockedByPID\\": \\"110\\",\\n \\"BlockedByUser\\": \\"testUser1\\",\\n \\"BlockedBySQLStmt\\": \\"Select * from t1;\\",\\n \\"BlockedByApplication\\": \\"DataGrip 2022.1.5\\",\\n \\"GrantLocks\\": \\"ShareLock,AccessExclusiveLock\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\n test\\n \\n 100\\n testUser\\n Select * from t1,t2 where t1.id=t2.id;\\n DataGrip 2022.1.5\\n AccessShareLock\\n 110\\n testUser1\\n Select * from t1;\\n DataGrip 2022.1.5\\n ShareLock,AccessExclusiveLock\\n \\n","errorExample":""}]',
'title' => '获取锁诊断详细信息',
'description' => '本接口仅支持查询6.0版本存储弹性模式实例的锁等待查询的详细信息。',
],
'DescribeWaitingSQLRecords' => [
'summary' => '获取AnalyticDB PostgreSQL版实例锁诊断列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。'."\n",
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '30',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:**1**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间,格式为yyyy-MM-ddTHH:mmZ(UTC时间)。'."\n"
."\n"
.'不填则表示没有查询开始时间,将返回查询结束时间之前所有锁诊断信息。如果也没有查询结束时间,将返回全部锁诊断信息。',
'type' => 'string',
'required' => false,
'example' => '2022-08-15T06:59Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,需要大于查询开始时间,格式为yyy-MM-ddTHH:mmZ(UTC时间)。'."\n"
."\n"
.'不填则表示没有查询结束时间,将返回查询开始时间之后所有锁诊断信息。如果也没有查询开始时间,将返回全部锁诊断信息。',
'type' => 'string',
'required' => false,
'example' => '2022-08-20T07:59Z',
],
],
[
'name' => 'User',
'in' => 'query',
'schema' => [
'description' => '用户名。不填则表示查询所有用户的锁等待信息。',
'type' => 'string',
'required' => false,
'example' => 'testUser',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'test',
],
],
[
'name' => 'QueryCondition',
'in' => 'query',
'schema' => [
'description' => '查询过滤条件,取值如下:'."\n"
."\n"
.'- `{"Type":"maxCost","Value":"10"}`:等待时间最长的10个查询。'."\n"
.'- `{"Type":"status","Value":"LockWaiting"}`:锁等待的查询。'."\n"
.'- `{"Type":"status","Value":"ResourceWaiting"}`:资源等待的查询。',
'type' => 'string',
'required' => true,
'example' => '{"Type":"maxCost","Value":"10"}',
],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => [
'description' => '查询关键字。',
'type' => 'string',
'required' => false,
'example' => 'table',
],
],
[
'name' => 'Order',
'in' => 'query',
'schema' => [
'description' => '排序字段和排序方式。'."\n"
."\n"
.'默认为`{"Field":"StartTime","Type":"Desc"}`,表示按开始时间进行排序。暂不支持其他排序字段和排序方式。',
'type' => 'string',
'required' => false,
'example' => '{"Field":"StartTime","Type":"Desc"}',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Items' => [
'description' => '查询列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'PID' => [
'description' => '进程ID,即等待查询SQL的唯一标识。',
'type' => 'string',
'example' => '100',
],
'SessionID' => [
'description' => '查询所属的会话ID。',
'type' => 'string',
'example' => '50',
],
'StartTime' => [
'description' => '查询开始时间。为时间戳格式,单位为ms。',
'type' => 'integer',
'format' => 'int64',
'example' => '1660902033374',
],
'WaitingTime' => [
'description' => 'SQL等待的时长,单位为ms。',
'type' => 'integer',
'format' => 'int64',
'example' => '26911000',
],
'Status' => [
'description' => '查询的等待状态,取值如下:'."\n"
."\n"
.'- **LockWaiting**:锁等待。'."\n"
.'- **ResourceWaiting**:资源等待。',
'type' => 'string',
'example' => 'LockWaiting',
],
'SQLStmt' => [
'description' => '查询的SQL文本。',
'type' => 'string',
'example' => 'Select * from t1,t2 where t1.id=t2.id;',
],
'User' => [
'description' => '查询的用户。',
'type' => 'string',
'example' => 'testUser',
],
'Database' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'test',
],
],
],
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'TotalCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageNumber' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Items\\": [\\n {\\n \\"PID\\": \\"100\\",\\n \\"SessionID\\": \\"50\\",\\n \\"StartTime\\": 1660902033374,\\n \\"WaitingTime\\": 26911000,\\n \\"Status\\": \\"LockWaiting\\",\\n \\"SQLStmt\\": \\"Select * from t1,t2 where t1.id=t2.id;\\",\\n \\"User\\": \\"testUser\\",\\n \\"Database\\": \\"test\\"\\n }\\n ],\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"TotalCount\\": 1,\\n \\"PageNumber\\": 1\\n}","errorExample":""},{"type":"xml","example":"\\n \\n 100\\n 50\\n 1660902033374\\n 26911000\\n LockWaiting\\n Select * from t1,t2 where t1.id=t2.id;\\n testUser\\n test\\n \\n B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\n 1\\n 1\\n","errorExample":""}]',
'title' => '获取锁诊断列表',
'description' => '本接口仅支持查询6.0版本存储弹性模式实例的锁诊断列表。',
],
'DownloadDiagnosisRecords' => [
'summary' => '下载AnalyticDB PostgreSQL的实例的查询诊断记录。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'User',
'in' => 'query',
'schema' => [
'description' => '用户名。',
'type' => 'string',
'required' => false,
'example' => 'adbpguser',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'adbtest',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间,格式为yyyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => false,
'example' => '2022-05-07T06:59Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,需要大于查询开始时间,格式为yyyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => false,
'example' => '2022-05-07T07:59Z',
],
],
[
'name' => 'QueryCondition',
'in' => 'query',
'schema' => [
'description' => '查询过滤条件,JSON格式,取值如下:'."\n"
."\n"
.'- `{"Type":"maxCost", "Value":"100"}`:耗时最长的100个查询。'."\n"
.'- `{"Type":"status","Value":"finished"}`:已完成的查询。'."\n"
.'- `{"Type":"status","Value":"running"}`:运行中的查询。'."\n"
.'- `{"Type":"cost","Max":"200"}`:短耗时查询,执行耗时小于200毫秒的查询。'."\n"
.'- `{"Type":"cost","Min":"200","Max":"60000"}`:中等耗时查询,执行耗时大于等于200毫秒且小于1分钟的查询。'."\n"
.'- `{"Type":"cost","Min":"60000"}`:长耗时查询,执行耗时大于等于1分钟的查询。'."\n"
.'- `{"Type":"cost","Min":"30","Max":"50"}`:自定义耗时查询,您可以自定义设置查询的最短耗时和最长耗时,**Min**表示最短耗时;**Max**表示最长耗时,单位为毫秒(ms)。',
'type' => 'string',
'required' => false,
'example' => '{ "Type":"maxCost", "Value":"100" }',
],
],
[
'name' => 'Lang',
'in' => 'query',
'schema' => [
'description' => '下载文件的语言,取值如下:'."\n"
."\n"
.'- **zh**:简体中文。'."\n"
.'- **en**:英文。'."\n"
.'- **ja**:日语。'."\n"
.'- **zh-tw**:繁体中文。',
'type' => 'string',
'required' => false,
'example' => 'zh',
],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'DownloadId' => [
'description' => '下载任务ID。',
'type' => 'string',
'example' => '11',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"DownloadId\\": \\"11\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\n 11111\\n","errorExample":""}]',
'title' => '下载查询诊断记录',
'description' => '本接口用于下载AnalyticDB PostgreSQL版实例的查询诊断记录。完成下载后,您可以通过[DescribeDownloadRecords](~~447712~~)接口查看下载记录并获取下载链接。'."\n"
."\n"
.'目前该功能仅支持存储弹性模式实例,且内核版本为V6.3.10.1及以上版本。如何查看和升级内核小版本,请参见[查看内核小版本](~~277424~~)和[版本升级](~~139271~~)。',
],
'DownloadSQLLogsRecords' => [
'summary' => '下载AnalyticDB PostgreSQL的实例的慢SQL记录。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'QueryKeywords',
'in' => 'query',
'schema' => [
'description' => '查询关键词。',
'type' => 'string',
'required' => false,
'example' => 'select 1',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间。格式: yyyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => true,
'example' => '2023-05-07T06:59Z',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => false,
'example' => 'testdb',
],
],
[
'name' => 'User',
'in' => 'query',
'schema' => [
'description' => '数据库账号。',
'type' => 'string',
'required' => false,
'example' => 'testuser',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,格式:yyyy-MM-ddTHH:mm:ssZ,且大于查询开始时间。',
'type' => 'string',
'required' => true,
'example' => '2023-05-08T06:59Z',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'maximum' => '200',
'minimum' => '0',
'example' => '30',
'default' => '10',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值;默认值:1。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'maximum' => '2147483647',
'minimum' => '1',
'example' => '1',
'default' => '1',
],
],
[
'name' => 'ExecuteCost',
'in' => 'query',
'schema' => [
'description' => '执行耗时,单位为秒(s)。',
'type' => 'string',
'required' => false,
'example' => '1',
],
],
[
'name' => 'SourceIP',
'in' => 'query',
'schema' => [
'description' => '源端IP。',
'type' => 'string',
'required' => false,
'example' => '100.XX.XX.90',
],
],
[
'name' => 'ExecuteState',
'in' => 'query',
'schema' => [
'description' => '执行状态。'."\n"
.'- **1**:成功。'."\n"
.'- **0**:失败。',
'type' => 'string',
'required' => false,
'example' => '1',
],
],
[
'name' => 'OperationClass',
'in' => 'query',
'schema' => [
'description' => '操作类别,例如DQL、DML、DDL等。',
'type' => 'string',
'required' => false,
'example' => 'DQL',
],
],
[
'name' => 'OperationType',
'in' => 'query',
'schema' => [
'description' => '操作类型,例如SELECT。',
'type' => 'string',
'required' => false,
'example' => 'SELECT',
],
],
[
'name' => 'MaxExecuteCost',
'in' => 'query',
'schema' => [
'description' => '慢SQL最大耗时,取值需大于等于0,单位为秒(s)。',
'type' => 'string',
'required' => false,
'example' => '999',
],
],
[
'name' => 'MinExecuteCost',
'in' => 'query',
'schema' => [
'description' => '慢SQL最小耗时,取值需大于等于0,单位为秒(s)。',
'type' => 'string',
'required' => false,
'example' => '1',
],
],
[
'name' => 'Lang',
'in' => 'query',
'schema' => [
'description' => '下载文件的语言,取值如下:'."\n"
."\n"
.'- **zh**:简体中文。'."\n"
.'- **en**:英文。'."\n"
.'- **ja**:日语。'."\n"
.'- **zh-tw**:繁体中文。',
'type' => 'string',
'required' => false,
'example' => 'zh',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '7565770E-7C45-462D-BA4A-8A5396F2CAD1',
],
'DownloadId' => [
'description' => '下载任务ID。',
'type' => 'integer',
'format' => 'int64',
'example' => '11',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7565770E-7C45-462D-BA4A-8A5396F2CAD1\\",\\n \\"DownloadId\\": 11\\n}","type":"json"}]',
'title' => '下载慢SQL记录',
],
'CreateDBInstancePlan' => [
'summary' => '创建定时计划。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdb0DT1KA',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'PlanName',
'in' => 'query',
'schema' => [
'description' => '计划名称。',
'type' => 'string',
'required' => true,
'example' => 'test-plan',
],
],
[
'name' => 'PlanDesc',
'in' => 'query',
'schema' => [
'description' => '计划描述。',
'type' => 'string',
'required' => false,
'example' => 'this is a test plan',
],
],
[
'name' => 'PlanType',
'in' => 'query',
'schema' => [
'description' => '计划类型,取值如下:'."\n"
."\n"
.'- **PauseResume**:自动启停。'."\n"
.'- **Resize**:实例变配,即增加或减少计算节点。'."\n"
.'- **ModifySpec**:规格变更,即变更计算节点规格。'."\n"
."\n"
.'> - 实例变配仅支持Serverless模式实例。'."\n"
.'>- 规格变更仅支持存储弹性模式实例。',
'type' => 'string',
'required' => true,
'example' => 'PauseResume',
],
],
[
'name' => 'PlanScheduleType',
'in' => 'query',
'schema' => [
'description' => '计划执行方式,取值如下:'."\n"
."\n"
.'- **Postpone**:稍后执行。'."\n"
.'- **Regular**:周期执行。',
'type' => 'string',
'required' => true,
'example' => 'Regular',
],
],
[
'name' => 'PlanStartDate',
'in' => 'query',
'schema' => [
'description' => '计划的开始时间,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间)。'."\n"
."\n"
.'> - 仅**PlanScheduleType**为**Regular**时需要设置该参数。'."\n"
.'>- 不传默认为当前时间。',
'type' => 'string',
'required' => false,
'example' => '2022-04-17T23:00:00Z'."\n",
],
],
[
'name' => 'PlanEndDate',
'in' => 'query',
'schema' => [
'description' => '计划的结束时间,需要大于查询开始时间,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间)。'."\n"
."\n"
.'> - 仅**PlanScheduleType**为**Regular**时需要设置该参数。'."\n"
.'>- 该参数非必填,没有结束时间,计划删除周期停止。',
'type' => 'string',
'required' => false,
'example' => '2023-04-17T23:00:00Z'."\n",
],
],
[
'name' => 'PlanConfig',
'in' => 'query',
'schema' => [
'description' => '执行计划具体信息,JSON格式,内容需根据**PlanType**参数和**PlanScheduleType**参数的值进行调整,具体说明请参见以下补充说明。',
'type' => 'string',
'required' => true,
'example' => '{"pause":{"planCronTime":"0 0 12 1/1 * ? "},"resume":{"planCronTime":"0 0 0 1/1 * ? "}}',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
'ErrorMessage' => [
'description' => '错误信息。'."\n"
."\n"
.'只会在API执行失败时返回该参数。',
'type' => 'string',
'example' => '****',
],
'PlanId' => [
'description' => '计划ID。',
'type' => 'string',
'example' => '1234',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '34b32a0a-08ef-4a87-b6be-cdd9f56fc3ad',
],
'Status' => [
'description' => 'API执行状态。'."\n"
."\n"
.'执行成功则返回**success**;执行失败则不返回该参数。',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\",\\n \\"ErrorMessage\\": \\"****\\",\\n \\"PlanId\\": \\"1234\\",\\n \\"RequestId\\": \\"34b32a0a-08ef-4a87-b6be-cdd9f56fc3ad\\",\\n \\"Status\\": \\"success\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 34b32a0a-08ef-4a87-b6be-cdd9f56fc3ad\\n success\\n gp-bp12ga6v69h86****\\n 1234\\n","errorExample":""}]',
'title' => '创建定时计划',
'description' => '- 实例付费类型必须为按量付费。'."\n"
.'- 实例变配和规格变更时,可能会导致业务闪断,建议您将执行时间设置为业务低峰期。'."\n"
."\n"
.'请确保在使用该接口前,已充分了解AnalyticDB PostgreSQL版产品的[收费方式](~~35406~~)和[价格](https://www.aliyun.com/price/product#/gpdb/detail/GreenplumPost)[价格](https://www.alibabacloud.com/zh/product/hybriddb-postgresql/pricing)。',
'requestParamsDescription' => '### PlanConfig参数补充说明'."\n"
.'PlanType为PauseResume时:'."\n"
.'- **PlanScheduleType**为**Postpone**时,只需要指定启动或暂停的具体时间,其中**pause**为暂停实例;**resume**为启动实例;**executeTime**为启停的时间(UTC时间),示例如下:'."\n"
.' - 暂停实例:`{"pause":{"executeTime":"2022-08-30T16:00:00Z"}}`'."\n"
.' - 启动实例:`{"resume":{"executeTime":"2022-08-30T16:00:00Z"}}`'."\n"
.'- **PlanScheduleType**为**Regular**时,需要指定周期启动和暂停的时间,其中**pause**为暂停实例;**resume**为启动实例;**planCronTime**为周期启停的时间,Cron格式(UTC时间),示例如下:'."\n"
.'`{"pause":{"planCronTime":"0 0 12 1/1 * ? "},"resume":{"planCronTime":"0 0 0 1/1 * ? "}}`。'."\n"
."\n\n"
.'PlanType为Resize时:'."\n"
.'- **PlanScheduleType**为**Postpone**时,需要指定扩容或缩容的时间和目标节点数,其中**scaleOut**为扩容实例;**scaleIn**为缩容实例;**executeTime**为扩缩容的时间(UTC时间);**segmentNodeNum**为目标节点数,示例如下:'."\n"
.' - 扩容实例:`{"scaleOut":{"executeTime":"2022-08-30T16:00:00Z","segmentNodeNum":4}}`'."\n"
.' - 缩容实例:`{"scaleIn":{"executeTime":"2022-08-30T16:00:00Z","segmentNodeNum":2}}`'."\n"
.'- **PlanScheduleType**为**Regular**时,需要指定周期扩缩容的时间和目标节点数,其中**scaleOut**为扩容实例;**scaleIn**为缩容实例;**planCronTime**为周期扩缩容的时间,Cron格式(UTC时间);**segmentNodeNum**为目标节点数,示例如下:'."\n"
.'`{"scaleIn":{"segmentNodeNum":2,"planCronTime":"0 0 12 1/1 * ? "},"scaleOut":{"segmentNodeNum":4,"planCronTime":"0 0 0 1/1 * ? "}}`。'."\n"
."\n\n"
.'PlanType为ModifySpec时:'."\n"
.'- **PlanScheduleType**为**Postpone**时,需要指定升配或降配的时间和目标规格,其中**scaleUp**为实例升配;**scaleDown**为实例降配;**executeTime**为扩缩容的时间(UTC时间);**instanceSpec**为目标规格,示例如下:'."\n"
.' - 实例升配:`{"scaleUp":{"executeTime":"2022-08-30T16:00:00Z","instanceSpec":"4C32G"}}`'."\n"
.' - 实例降配:`{"scaleDown":{"executeTime":"2022-08-30T16:00:00Z","instanceSpec":"2C16G"}}`'."\n"
.'- **PlanScheduleType**为**Regular**时,需要指定周期升降配的时间和目标规格,其中**scaleUp**为实例升配;**scaleDown**为实例降配;**planCronTime**为周期扩缩容的时间,Cron格式(UTC时间);**instanceSpec**为目标规格,示例如下:'."\n"
.'`{"scaleUp":{"instanceSpec":"4C32G","planCronTime":"0 0 12 1/1 * ? "},"scaleDown":{"instanceSpec":"2C16G","planCronTime":"0 0 0 1/1 * ? "}}`。'."\n"
."\n\n"
.'> Cron表达式的说明和相关使用方法,请参见[Cron表达式](~~64769~~)。',
],
'DeleteDBInstancePlan' => [
'summary' => '删除AnalyticDB PostgreSQL版实例的计划。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdb0DT1KA',
],
],
'parameters' => [
[
'name' => 'PlanId',
'in' => 'query',
'schema' => [
'description' => '计划ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstancePlans](~~449398~~)接口查看计划的详细信息,包括计划ID。',
'type' => 'string',
'required' => true,
'example' => '1234',
'pattern' => '^\\d+$',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'API执行状态。'."\n"
."\n"
.'执行成功则返回**success**;执行失败则不返回该参数。',
'type' => 'string',
'example' => 'success',
],
'ErrorMessage' => [
'description' => '错误信息。'."\n"
."\n"
.'只会在API执行失败时返回该参数。',
'type' => 'string',
'example' => '****',
],
'PlanId' => [
'description' => '计划ID。',
'type' => 'string',
'example' => '1234',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '34b32a0a-08ef-4a87-b6be-cdd988888888',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": \\"success\\",\\n \\"ErrorMessage\\": \\"****\\",\\n \\"PlanId\\": \\"1234\\",\\n \\"RequestId\\": \\"34b32a0a-08ef-4a87-b6be-cdd988888888\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n success\\n 1234\\n 34b32a0a-08ef-4a87-b6be-cdd988888888\\n gp-bp12ga6v69h86****\\n","errorExample":""}]',
'title' => '删除定时计划',
],
'DescribeDBInstancePlans' => [
'summary' => '查看AnalyticDB PostgreSQL版实例的计划详情。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdb0DT1KA',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'PlanDesc',
'in' => 'query',
'schema' => [
'description' => '计划描述。',
'type' => 'string',
'required' => false,
'example' => 'this is a test plan',
],
],
[
'name' => 'PlanType',
'in' => 'query',
'schema' => [
'description' => '计划类型,取值如下:'."\n"
."\n"
.'- **PauseResume**:自动启停。'."\n"
.'- **Resize**:节点扩容。'."\n"
.'- **ModifySpec**:规格变更,即变更计算节点规格。',
'type' => 'string',
'required' => false,
'example' => 'PauseResume',
],
],
[
'name' => 'PlanScheduleType',
'in' => 'query',
'schema' => [
'description' => '计划执行方式,取值如下:'."\n"
."\n"
.'- **Postpone**:稍后执行。'."\n"
.'- **Regular**:周期执行。',
'type' => 'string',
'required' => false,
'example' => 'Regular',
],
],
[
'name' => 'PlanId',
'in' => 'query',
'schema' => [
'description' => '计划ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstancePlans](~~449398~~)接口查看计划的详细信息,包括计划ID。',
'type' => 'string',
'required' => false,
'example' => '1234',
'pattern' => '^\\d+$',
],
],
[
'name' => 'PlanCreateDate',
'in' => 'query',
'schema' => [
'description' => '过滤该日期之前创建的计划,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间),不传入该参数表示返回所有时间的计划。',
'type' => 'string',
'required' => false,
'example' => '2022-04-17T23:00Z',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'API执行状态。'."\n"
."\n"
.'执行成功则返回**success**;执行失败则不返回该参数。',
'type' => 'string',
'example' => 'success',
],
'ErrorMessage' => [
'description' => '错误信息。'."\n"
."\n"
.'只会在API执行失败时返回该参数。',
'type' => 'string',
'example' => '****',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '34b32a0a-08ef-4a87-b6be-cdd988888888',
],
'TotalRecordCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageRecordCount' => [
'description' => '当前页记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageNumber' => [
'description' => '当前页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'Items' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'PlanList' => [
'description' => '计划列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'PlanName' => [
'description' => '计划名称。',
'type' => 'string',
'example' => 'test-plan',
],
'PlanDesc' => [
'description' => '计划描述。',
'type' => 'string',
'example' => 'this is a test plan',
],
'PlanId' => [
'description' => '计划ID。',
'type' => 'string',
'example' => '1234',
],
'PlanStatus' => [
'description' => '计划状态,取值如下:'."\n"
."\n"
.'- **active**:运行中。'."\n"
.'- **cancel**:取消。'."\n"
.'- **deleted**:删除。'."\n"
.'- **finished**:执行完成。',
'type' => 'string',
'example' => 'active',
],
'PlanType' => [
'description' => '计划类型,取值如下:'."\n"
."\n"
.'- **PauseResume**:自动启停。'."\n"
.'- **Resize**:节点扩容,即增加或减少计算节点。'."\n"
.'- **ModifySpec**:规格变更,即变更计算节点规格。',
'type' => 'string',
'example' => 'PauseResume',
],
'PlanScheduleType' => [
'description' => '计划执行方式,取值如下:'."\n"
."\n"
.'- **Postpone**:稍后执行。'."\n"
.'- **Regular**:周期执行。',
'type' => 'string',
'example' => 'Regular',
],
'PlanStartDate' => [
'description' => '计划的开始时间,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间)。'."\n"
."\n"
.'> - 仅周期执行的计划返回该参数。'."\n"
.'> - 不传默为当前时间。',
'type' => 'string',
'example' => '2022-04-17T23:00Z',
],
'PlanEndDate' => [
'description' => '计划的结束时间,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间)。'."\n"
."\n"
.'> - 仅周期执行的计划返回该参数。'."\n"
.'> - 创建计划时该参数不传,则不返回。',
'type' => 'string',
'example' => '2023-04-17T23:00Z',
],
'PlanConfig' => [
'description' => '计划的具体信息。',
'type' => 'string',
'example' => '{"pause":{"planCronTime":"0 22 * * 5"},"resume":{"planCronTime":"0 23 * * 5"}}',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": \\"success\\",\\n \\"ErrorMessage\\": \\"****\\",\\n \\"RequestId\\": \\"34b32a0a-08ef-4a87-b6be-cdd988888888\\",\\n \\"TotalRecordCount\\": 1,\\n \\"PageRecordCount\\": 1,\\n \\"PageNumber\\": 1,\\n \\"Items\\": {\\n \\"PlanList\\": [\\n {\\n \\"PlanName\\": \\"test-plan\\",\\n \\"PlanDesc\\": \\"this is a test plan\\",\\n \\"PlanId\\": \\"1234\\",\\n \\"PlanStatus\\": \\"active\\",\\n \\"PlanType\\": \\"PauseResume\\",\\n \\"PlanScheduleType\\": \\"Regular\\",\\n \\"PlanStartDate\\": \\"2022-04-17T23:00Z\\",\\n \\"PlanEndDate\\": \\"2023-04-17T23:00Z\\",\\n \\"PlanConfig\\": \\"{\\\\\\"pause\\\\\\":{\\\\\\"planCronTime\\\\\\":\\\\\\"0 22 * * 5\\\\\\"},\\\\\\"resume\\\\\\":{\\\\\\"planCronTime\\\\\\":\\\\\\"0 23 * * 5\\\\\\"}}\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n success\\n 34b32a0a-08ef-4a87-b6be-cdd988888888\\n 1\\n 1\\n 1\\n \\n test-plan\\n this is a test plan\\n 1234\\n active\\n PauseResume\\n Regular\\n 2022-04-17T23:00Z\\n 2023-04-17T23:00Z\\n {\\"pause\\":{\\"planCronTime\\":\\"0 22 * * 5\\"},\\"resume\\":{\\"planCronTime\\":\\"0 23 * * 5\\"}}\\n gp-bp12ga6v69h86****\\n \\n","errorExample":""}]',
'title' => '查询计划详情',
],
'SetDBInstancePlanStatus' => [
'summary' => '启用或禁用AnalyticDB PostgreSQL版实例的计划。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdb8RQNLF',
],
],
'parameters' => [
[
'name' => 'PlanId',
'in' => 'query',
'schema' => [
'description' => '计划ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstancePlans](~~449398~~)接口查看计划的详细信息,包括计划ID。',
'type' => 'string',
'required' => true,
'example' => '1234',
'pattern' => '^\\d+$',
],
],
[
'name' => 'PlanStatus',
'in' => 'query',
'schema' => [
'description' => '设置计划的状态,取值如下:'."\n"
."\n"
.'- **disable**:禁用计划。'."\n"
.'- **enable**:启用计划。',
'type' => 'string',
'required' => true,
'example' => 'disable',
'enum' => [
'enable',
'disable',
],
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'API执行状态。'."\n"
."\n"
.'执行成功则返回**success**;执行失败则不返回该参数。',
'type' => 'string',
'example' => 'success',
],
'ErrorMessage' => [
'description' => '错误信息。'."\n"
."\n"
.'只会在API执行失败时返回该参数。',
'type' => 'string',
'example' => '****',
],
'PlanId' => [
'description' => '计划ID。',
'type' => 'string',
'example' => '1234',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '34b32a0a-08ef-4a87-b6be-cdd988888888',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": \\"success\\",\\n \\"ErrorMessage\\": \\"****\\",\\n \\"PlanId\\": \\"1234\\",\\n \\"RequestId\\": \\"34b32a0a-08ef-4a87-b6be-cdd988888888\\"\\n}","errorExample":""},{"type":"xml","example":"\\n success\\n 1234\\n 34b32a0a-08ef-4a87-b6be-cdd988888888\\n","errorExample":""}]',
'title' => '启用或禁用计划',
],
'UpdateDBInstancePlan' => [
'summary' => '修改AnalyticDB PostgreSQL版的定时计划。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdb0DT1KA',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'PlanName',
'in' => 'query',
'schema' => [
'description' => '计划名称。',
'type' => 'string',
'required' => false,
'example' => 'test-plan',
],
],
[
'name' => 'PlanDesc',
'in' => 'query',
'schema' => [
'description' => '计划描述。',
'type' => 'string',
'required' => false,
'example' => 'this is a test plan',
],
],
[
'name' => 'PlanStartDate',
'in' => 'query',
'schema' => [
'description' => '计划的开始时间,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间)。'."\n"
."\n"
.'> - 仅**周期执行**的计划需要设置该参数。'."\n"
.'>- 不传默认为当前时间。',
'type' => 'string',
'required' => false,
'example' => '2022-04-17T23:00Z',
],
],
[
'name' => 'PlanEndDate',
'in' => 'query',
'schema' => [
'description' => '计划的结束时间,需要大于查询开始时间,格式为yyy-MM-ddTHH:mm:ssZ(UTC时间)。'."\n"
."\n"
.'> - 仅**周期执行**的计划需要设置该参数。'."\n"
.'>- 该参数非必填,没有结束时间,计划删除周期停止。',
'type' => 'string',
'required' => false,
'example' => '2023-04-17T23:00Z',
],
],
[
'name' => 'PlanConfig',
'in' => 'query',
'schema' => [
'description' => '执行计划具体信息,JSON格式,内容需根据**PlanType**参数和**PlanScheduleType**参数的值进行调整,具体说明请参见以下补充说明。',
'type' => 'string',
'required' => false,
'example' => '{"pause":{"executeTime":"2022-08-30T16:00:00Z"}}',
],
],
[
'name' => 'PlanId',
'in' => 'query',
'schema' => [
'description' => '计划ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstancePlans](~~449398~~)接口查看计划的详细信息,包括计划ID。',
'type' => 'string',
'required' => true,
'example' => '1234',
'pattern' => '^\\d+$',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '34b32a0a-08ef-4a87-b6be-cdd9f56fc3ad',
],
'Status' => [
'description' => 'API执行状态。'."\n"
."\n"
.'执行成功则返回**success**;执行失败则不返回该参数。',
'type' => 'string',
'example' => 'success',
],
'ErrorMessage' => [
'description' => '错误信息。'."\n"
."\n"
.'只会在API执行失败时返回该参数。',
'type' => 'string',
'example' => '****',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
'PlanId' => [
'description' => '计划ID。',
'type' => 'string',
'example' => '1234',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"34b32a0a-08ef-4a87-b6be-cdd9f56fc3ad\\",\\n \\"Status\\": \\"success\\",\\n \\"ErrorMessage\\": \\"****\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\",\\n \\"PlanId\\": \\"1234\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 34b32a0a-08ef-4a87-b6be-cdd9f56fc3ad\\n success\\n gp-bp12ga6v69h86****\\n 1234\\n","errorExample":""}]',
'title' => '修改定时计划',
'description' => '- 实例付费类型必须为按量付费。'."\n"
.'- 实例变配和规格变更时,可能会导致业务闪断,建议您将执行时间设置为业务低峰期。'."\n"
."\n"
.'请确保在使用该接口前,已充分了解AnalyticDB PostgreSQL版产品的[收费方式](~~35406~~)和[价格](https://www.aliyun.com/price/product#/gpdb/detail/GreenplumPost)[价格](https://www.alibabacloud.com/zh/product/hybriddb-postgresql/pricing)。',
'requestParamsDescription' => '### PlanConfig参数补充说明'."\n"
.'计划任务为实例启停时:'."\n"
.'- 计划执行方式为稍后执行时,只需要指定启动或暂停的具体时间,其中**pause**为暂停实例;**resume**为启动实例;**executeTime**为启停的时间(UTC时间),示例如下:'."\n"
.' - 暂停实例:`{"pause":{"executeTime":"2022-08-30T16:00:00Z"}}`'."\n"
.' - 启动实例:`{"resume":{"executeTime":"2022-08-30T16:00:00Z"}}`'."\n"
.'- 计划执行方式为周期执行时,需要指定周期启动和暂停的时间,其中**pause**为暂停实例;**resume**为启动实例;**planCronTime**为周期启停的时间,Cron格式(UTC时间),示例如下:'."\n"
.'`{"pause":{"planCronTime":"0 0 12 1/1 * ? "},"resume":{"planCronTime":"0 0 0 1/1 * ? "}}`。'."\n"
."\n\n"
.'计划任务为扩缩容时:'."\n"
.'- 计划执行方式为稍后执行时,需要指定扩容或缩容的时间和目标节点数,其中**scaleOut**为扩容实例;**scaleIn**为缩容实例;**executeTime**为扩缩容的时间(UTC时间);**segmentNodeNum**为目标节点数,示例如下:'."\n"
.' - 扩容实例:`{"scaleOut":{"executeTime":"2022-08-30T16:00:00Z","segmentNodeNum":4}}`'."\n"
.' - 缩容实例:`{"scaleIn":{"executeTime":"2022-08-30T16:00:00Z","segmentNodeNum":2}}`'."\n"
.'- 计划执行方式为周期执行时,需要指定周期扩缩容的时间和目标节点数,其中**scaleOut**为扩容实例;**scaleIn**为缩容实例;**planCronTime**为周期扩缩容的时间,Cron格式(UTC时间);**segmentNodeNum**为目标节点数,示例如下:'."\n"
.'`{"scaleIn":{"segmentNodeNum":2,"planCronTime":"0 0 12 1/1 * ? "},"scaleOut":{"segmentNodeNum":4,"planCronTime":"0 0 0 1/1 * ? "}}`。'."\n"
."\n\n"
.'> Cron表达式的说明和相关使用方法,请参见[Cron表达式](~~64769~~)。',
],
'DescribeTags' => [
'summary' => '查询AnalyticDB PostgreSQL版实例的标签列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNTP4BF',
],
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => [
'description' => '资源类型。取值为:**instance**。',
'type' => 'string',
'required' => true,
'example' => 'instance',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'A29EC547-B392-4340-AA4F-7C0A7B626E74',
],
'Tags' => [
'description' => '标签列表。',
'type' => 'array',
'items' => [
'description' => '列表。',
'type' => 'object',
'properties' => [
'TagValue' => [
'description' => '标签值。',
'type' => 'string',
'example' => 'test',
],
'TagKey' => [
'description' => '标签键。',
'type' => 'string',
'example' => 'user',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"A29EC547-B392-4340-AA4F-7C0A7B626E74\\",\\n \\"Tags\\": [\\n {\\n \\"TagValue\\": \\"test\\",\\n \\"TagKey\\": \\"user\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n A29EC547-B392-4340-AA4F-7C0A7B626E74\\n \\n test\\n user\\n \\n","errorExample":""}]',
'title' => '查询标签列表',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ListTagResources' => [
'summary' => '列出所有标签资源。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNTP4BF',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。您可以调用[DescribeRegions](~~86912~~)查看最新的阿里云地域列表。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => [
'description' => '资源类型,取值固定为instance。',
'type' => 'string',
'required' => true,
'example' => 'instance',
],
],
[
'name' => 'NextToken',
'in' => 'query',
'schema' => [
'description' => '下一个查询开始Token。',
'type' => 'string',
'required' => false,
'example' => 'caeba0bbb2be03f84eb48b699f0a4883',
],
],
[
'name' => 'ResourceId',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => '实例ID。'."\n"
.'> 参数ResourceId与Tag需要至少填写一项。',
'type' => 'array',
'items' => [
'description' => '实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-2zev51nt17074****',
],
'required' => false,
'example' => 'gp-xxxxxxxxxx',
'maxItems' => 51,
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => '标签列表。'."\n"
.'> 参数ResourceId与Tag需要至少填写一项。',
'type' => 'array',
'items' => [
'description' => '标签列表。',
'type' => 'object',
'properties' => [
'Key' => [
'description' => '标签键。标签键长度的取值范围:1~64。'."\n"
."\n"
.'`Tag.N`用于精确查找绑定了指定标签的AnalyticDB PostgreSQL实例,由一个键值对组成。'."\n"
."\n"
.'N的取值范围:1~20'."\n"
."\n"
.'- 仅指定`Tag.N.Key`时,则返回关联该标签键的所有实例。'."\n"
.'- 仅指定`Tag.N.Value`,则报错`InvalidParameter.TagValue`。'."\n"
.'- 同时指定多个标签键值对时,仅同时满足所有标签键值对的AnalyticDB PostgreSQL实例会被查找到。',
'type' => 'string',
'required' => false,
'example' => 'TestKey',
],
'Value' => [
'description' => '标签值。标签值长度的取值范围:1~128。'."\n"
."\n"
.'N的取值范围:1~20',
'type' => 'string',
'required' => false,
'example' => 'TestValue',
],
],
'required' => false,
],
'required' => false,
'maxItems' => 21,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'NextToken' => [
'description' => '下一个查询开始Token。',
'type' => 'string',
'example' => 'caeba0bbb2be03f84eb48b699f0a4883',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '5414A4E5-4C36-4461-95FC-23757A20B5F8',
],
'TagResources' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'TagResource' => [
'description' => '由实例及其标签组成的集合,包含了实例ID、实例类型和标签值等信息。',
'type' => 'array',
'items' => [
'description' => '详情如下。',
'type' => 'object',
'properties' => [
'ResourceType' => [
'description' => '资源类型。',
'type' => 'string',
'example' => 'instance',
],
'TagValue' => [
'description' => '标签值。',
'type' => 'string',
'example' => 'TestValue',
],
'ResourceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-xxxxxxxxxx',
],
'TagKey' => [
'description' => '标签键。',
'type' => 'string',
'example' => 'TestKey',
],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"NextToken\\": \\"caeba0bbb2be03f84eb48b699f0a4883\\",\\n \\"RequestId\\": \\"5414A4E5-4C36-4461-95FC-23757A20B5F8\\",\\n \\"TagResources\\": {\\n \\"TagResource\\": [\\n {\\n \\"ResourceType\\": \\"instance\\",\\n \\"TagValue\\": \\"TestValue\\",\\n \\"ResourceId\\": \\"gp-xxxxxxxxxx\\",\\n \\"TagKey\\": \\"TestKey\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"5414A4E5-4C36-4461-95FC-23757A20B5F8\\ncaeba0bbb2be03f84eb48b699f0a4883\\n\\n \\n gp-xxxxxxxxxx\\n TestKey\\n instance\\n TestValue\\n \\n","errorExample":""}]',
'title' => '查询实例绑定的标签',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'TagResources' => [
'summary' => '创建并绑定标签。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNTP4BF',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => [
'description' => '资源类型。取值固定为`instance`。',
'type' => 'string',
'required' => true,
'example' => 'instance',
],
],
[
'name' => 'ResourceId',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => '第N个实例。N的取值范围:1~50。',
'type' => 'array',
'items' => [
'description' => '实例N的ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-bp***************',
],
'required' => true,
'example' => 'gp-xxxxxxxxxx',
'maxItems' => 51,
],
],
[
'name' => 'Tag',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => '第N个标签。N的取值范围:1~20。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Key' => [
'description' => '标签键。该值不允许为空字符串。最多支持64个字符,不能以`aliyun`和`acs:`开头,不能包`含http://`或者`https://`。',
'type' => 'string',
'required' => true,
'example' => 'TestKey',
],
'Value' => [
'description' => '标签值。该值可以为空字符串。最多支持128个字符,不能包含`http://`或者`https://`。',
'type' => 'string',
'required' => true,
'example' => 'TestValue',
],
],
'required' => false,
],
'required' => true,
'maxItems' => 21,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '5414A4E5-4C36-4461-95FC-23**********',
],
],
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'NumberExceed.Tags',
'errorMessage' => 'The Tags parameter number is exceed , Valid : 20',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"5414A4E5-4C36-4461-95FC-23**********\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 5414A4E5-4C36-4461-95FC-23**********\\n","errorExample":""}]',
'title' => '创建并绑定标签',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'UntagResources' => [
'summary' => '为指定的AnalyticDB PostgreSQL实例列表统一解绑标签。解绑后,如果该标签没有绑定其他任何实例,会被自动删除。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbNTP4BF',
],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID,您可通过接口[DescribeRegions](~~86912~~)查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => [
'description' => '资源类型。取值范围:'."\n"
.'- `instance`:预留模式实例。'."\n"
.'- `ALIYUN::GPDB::INSTANCE`:弹性模式实例。',
'type' => 'string',
'required' => true,
'example' => 'instance',
],
],
[
'name' => 'All',
'in' => 'query',
'schema' => [
'description' => '是否解绑实例上全部的标签。当请求中未设置TagKey.N时,该参数才有效。取值范围:'."\n"
."\n"
.'- true'."\n"
.'- false'."\n"
."\n"
.'默认值:false',
'type' => 'boolean',
'required' => false,
'example' => 'false',
'default' => 'false',
],
],
[
'name' => 'ResourceId',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => '实例ID。N的取值范围:1~50',
'type' => 'array',
'items' => [
'description' => '实例ID。',
'type' => 'string',
'required' => false,
'example' => 'gp-j6cdjo680513l****',
],
'required' => true,
'maxItems' => 51,
],
],
[
'name' => 'TagKey',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => '资源的标签键。N的取值范围:1~20',
'type' => 'array',
'items' => [
'description' => '资源的标签键。',
'type' => 'string',
'required' => false,
'example' => 'TestKey',
],
'required' => false,
'maxItems' => 21,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '5414A4E5-4C36-4461-95FC-23757A20B5F8',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5414A4E5-4C36-4461-95FC-23757A20B5F8\\"\\n}","type":"json"}]',
'title' => '解绑标签',
],
'CreateDBInstanceIPArray' => [
'summary' => '新增实例白名单IP分组。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '237281',
'abilityTreeNodes' => [
'FEATUREgpdbY61DIR',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'IPArrayName',
'in' => 'query',
'schema' => [
'description' => 'IP 白名单分组名称。',
'type' => 'string',
'required' => true,
'example' => 'testarray',
],
],
[
'name' => 'IPArrayAttribute',
'in' => 'query',
'schema' => [
'description' => 'IP 白名单分组属性值。',
'type' => 'string',
'required' => false,
'example' => 'taffyFish',
],
],
[
'name' => 'SecurityIPList',
'in' => 'query',
'style' => 'simple',
'schema' => [
'description' => 'IP 白名单分组下的 IP 列表,最多 1000 个。',
'type' => 'array',
'items' => [
'description' => 'IP白名单分组下的IP,最多1000个,格式如下:'."\n"
.'- 10.23.12.24(IP)'."\n"
.'- 10.23.12.24/24(CIDR模式,无类域间路由,`/24`表示地址中前缀的长度,范围为`[1,32]`)',
'type' => 'string',
'required' => true,
'example' => '172.28.80.0/20',
],
'required' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求ID。',
'type' => 'string',
'example' => 'API-d971c90f-c801-41bd-b8e5-5b8bd79326c8',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"API-d971c90f-c801-41bd-b8e5-5b8bd79326c8\\"\\n}","type":"json"}]',
'title' => '创建白名单分组',
],
'DescribeDBInstanceIPArrayList' => [
'summary' => '查询允许访问AnalyticDB PostgreSQL版实例的IP白名单。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbY61DIR',
],
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp***************',
],
],
[
'name' => 'DBInstanceIPArrayName',
'in' => 'query',
'schema' => [
'description' => '需要查询的IP白名单分组的名称。'."\n"
.'> 如果不传入该参数,默认返回所有IP白名单分组。',
'type' => 'string',
'required' => false,
'example' => 'Default',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'CB7AA0BF-BE41-480E-A3DC-C97BF85A391B',
],
'Items' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'DBInstanceIPArray' => [
'description' => '实例的IP白名单分组列表。',
'type' => 'array',
'items' => [
'description' => '实例详情列表。',
'type' => 'object',
'properties' => [
'DBInstanceIPArrayName' => [
'description' => 'IP白名单分组的名字。',
'type' => 'string',
'example' => 'Default',
],
'SecurityIPList' => [
'description' => 'IP白名单分组下的IP列表,最多1000个以逗号隔开,有以下三种格式:'."\n"
.'- 0.0.0.0/0'."\n"
.'- 10.23.12.24(IP)'."\n"
.'- 10.23.12.24/24(CIDR模式,无类域间路由,`/24`表示了地址中前缀的长度,范围为`[1,32]`)',
'type' => 'string',
'example' => '127.0.0.1',
],
'DBInstanceIPArrayAttribute' => [
'description' => '默认为空。用以区分不同的属性值,控制台不显示带有`hidden`属性的分组。',
'type' => 'string',
'example' => 'hidden',
],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CB7AA0BF-BE41-480E-A3DC-C97BF85A391B\\",\\n \\"Items\\": {\\n \\"DBInstanceIPArray\\": [\\n {\\n \\"DBInstanceIPArrayName\\": \\"Default\\",\\n \\"SecurityIPList\\": \\"127.0.0.1\\",\\n \\"DBInstanceIPArrayAttribute\\": \\"hidden\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n\\n \\n default\\n hidden\\n 127.0.0.1\\n \\n\\nCB7AA0BF-BE41-480E-A3DC-C97BF85A391B\\n","errorExample":""}]',
'title' => '查看实例IP白名单',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ModifySecurityIps' => [
'summary' => '修改AnalyticDB PostgreSQL版实例的IP白名单。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbY61DIR',
],
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'ModifyMode',
'in' => 'query',
'schema' => [
'description' => 'IP白名单修改模式,取值如下:'."\n"
."\n"
.'- **0**(默认):在目标IP白名单分组中覆盖原有IP地址。'."\n"
.'- **1**:在目标IP白名单分组中添加IP地址。'."\n"
.'- **2**:在目标IP白名单分组中删除IP地址。',
'type' => 'string',
'required' => false,
'example' => '0',
'default' => '0',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL版实例的ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'SecurityIPList',
'in' => 'query',
'schema' => [
'description' => 'IP白名单分组下的IP列表,最多1000个,以逗号隔开,格式如下:'."\n"
.'- 10.23.12.24(IP)'."\n"
.'- 10.23.12.24/24(CIDR模式,无类域间路由,`/24`表示地址中前缀的长度,范围为`[1,32]`)',
'type' => 'string',
'required' => true,
'example' => '10.10.**.**',
],
],
[
'name' => 'DBInstanceIPArrayName',
'in' => 'query',
'schema' => [
'description' => 'IP白名单分组的名称,如果不传默认操作**default**分组。'."\n"
.'> 1个实例最多支持50个白名单分组。'."\n",
'type' => 'string',
'required' => false,
'example' => 'default',
],
],
[
'name' => 'DBInstanceIPArrayAttribute',
'in' => 'query',
'schema' => [
'description' => '默认为空。用于区分不同的属性值,控制台不显示带有`hidden`属性的分组。',
'type' => 'string',
'required' => false,
'example' => 'hidden',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '871C698F-B43D-4D1D-ACD6-DF56B0F89978',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"871C698F-B43D-4D1D-ACD6-DF56B0F89978\\"\\n}","errorExample":""},{"type":"xml","example":"\\r\\n 871C698F-B43D-4D1D-ACD6-DF56B0F89978\\r\\n","errorExample":""}]',
'title' => '修改IP白名单',
'description' => '为保障AnalyticDB PostgreSQL版数据库的安全稳定,系统默认禁止所有外部IP地址访问AnalyticDB PostgreSQL版实例。在开始使用AnalyticDB PostgreSQL版实例前,您需要将客户端的IP地址或IP地址段添加到AnalyticDB PostgreSQL版实例的白名单中。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DeleteDBInstanceIPArray' => [
'summary' => '删除实例白名单IP分组。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '237282',
'abilityTreeNodes' => [
'FEATUREgpdbY61DIR',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'IPArrayName',
'in' => 'query',
'schema' => [
'description' => 'IP 白名单分组名称。',
'type' => 'string',
'required' => true,
'example' => 'testarray',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '删除白名单分组',
],
'CheckServiceLinkedRole' => [
'summary' => '检查是否创建了服务关联角色。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID,您可以通过[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'HasServiceLinkedRole' => [
'description' => '是否已经创建服务关联角色(SLR)。',
'type' => 'string',
'example' => 'true',
],
'RegionId' => [
'description' => '地域ID。',
'type' => 'string',
'example' => 'cn-hangzhou',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"HasServiceLinkedRole\\": \\"true\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","type":"json"}]',
'title' => '查询服务关联角色',
],
'CreateServiceLinkedRole' => [
'summary' => '创建服务关联角色(SLR)。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdb4XJ12W',
],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID,您可以通过[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\"\\n}","errorExample":""},{"type":"xml","example":"\\n B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\n","errorExample":""}]',
'title' => '创建服务关联角色',
],
'DescribeDBInstanceSSL' => [
'summary' => '获取AnalyticDB PostgreSQL版实例的SSL信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbBXNVPW',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'SSLExpiredTime' => [
'description' => 'SSL证书过期时间。',
'type' => 'string',
'example' => '2023-08-05T09:05:53Z',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'D5FF8636-37F6-4CE0-8002-F8734C62C686',
],
'SSLEnabled' => [
'description' => '是否开启SSL加密,取值如下:'."\n"
."\n"
.'- **true**:已开启SSL加密。'."\n"
.'- **false**:未开启SSL加密。',
'type' => 'boolean',
'example' => 'true',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
'CertCommonName' => [
'description' => 'SSL证书信息。',
'type' => 'string',
'example' => '*.gpdbmaster.xxx.rds.aliyuncs.com',
],
'DBInstanceName' => [
'description' => '实例名。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"SSLExpiredTime\\": \\"2023-08-05T09:05:53Z\\",\\n \\"RequestId\\": \\"D5FF8636-37F6-4CE0-8002-F8734C62C686\\",\\n \\"SSLEnabled\\": true,\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\",\\n \\"CertCommonName\\": \\"*.gpdbmaster.xxx.rds.aliyuncs.com\\",\\n \\"DBInstanceName\\": \\"gp-bp12ga6v69h86****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 2023-08-05T09:05:53Z\\n D5FF8636-37F6-4CE0-8002-F8734C62C686\\n true\\n gp-bp12ga6v69h86****\\n *.gpdbmaster.xxx.rds.aliyuncs.com\\n gp-bp12ga6v69h86****\\n","errorExample":""}]',
'title' => '查询实例SSL设置详情',
],
'DescribeUserEncryptionKeyList' => [
'summary' => '获取用户开通的KMS密钥列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbAXSDJ9',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID,您可通过接口[DescribeRegions](~~86912~~)查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:1。',
'type' => 'string',
'required' => false,
'example' => '1',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'string',
'required' => false,
'example' => '30',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'KmsKeys' => [
'description' => 'KMS的key列表。',
'type' => 'array',
'items' => [
'description' => 'KMS的key列表。',
'type' => 'object',
'properties' => [
'KeyId' => [
'description' => 'KMS的ID。',
'type' => 'string',
'example' => '0b8b1825-fd99-418f-875e-e4dec1dd****',
],
],
],
],
],
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"KmsKeys\\": [\\n {\\n \\"KeyId\\": \\"0b8b1825-fd99-418f-875e-e4dec1dd****\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => '查询实例自定义KMS密钥列表',
],
'ModifyDBInstanceSSL' => [
'summary' => '开启、关闭或更新SSL加密。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbBXNVPW',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxxxx',
],
],
[
'name' => 'ConnectionString',
'in' => 'query',
'schema' => [
'description' => '加密的连接串,对于ECS实例,该参数默认采用泛域名,会加密所有的连接串。',
'type' => 'string',
'required' => false,
'example' => 'gp-xxxxxxxxxxx-master.gpdbmaster.singapore.rds.aliyuncs.com',
],
],
[
'name' => 'SSLEnabled',
'in' => 'query',
'schema' => [
'description' => ' SSL状态:'."\n"
."\n"
.'- 0:关闭 '."\n"
.'- 1:开启'."\n"
.'- 2:更新',
'type' => 'integer',
'format' => 'int32',
'required' => true,
'example' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ADD6EA90-EECB-4C12-9F26-0B6DB58710EF',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"ADD6EA90-EECB-4C12-9F26-0B6DB58710EF\\"\\n}","errorExample":""},{"type":"xml","example":"ADD6EA90-EECB-4C12-9F26-0B6DB58710EF","errorExample":""}]',
'title' => '修改SSL加密状态',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeDBInstanceErrorLog' => [
'summary' => '获取AnalyticDB PostgreSQL版实例的错误日志。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
."\n"
.'- **20**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**20**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '20',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:**1**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间,格式为yyyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => false,
'example' => '2022-04-24T06:59Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,需要大于查询开始时间,格式为yyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => false,
'example' => '2022-04-25T06:59Z',
],
],
[
'name' => 'LogLevel',
'in' => 'query',
'schema' => [
'description' => '日志等级,取值如下:'."\n"
."\n"
.'- **ALL**:显示所有级别日志。'."\n"
.'- **PANIC**:只显示异常级别日志。'."\n"
.'- **FATAL**:只显示严重级别日志。'."\n"
.'- **ERROR**:只显示错误级别日志。',
'type' => 'string',
'required' => false,
'example' => 'ALL',
],
],
[
'name' => 'User',
'in' => 'query',
'schema' => [
'description' => '用户名。',
'type' => 'string',
'required' => false,
'example' => 'adbpguser',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => false,
'example' => 'adbtest',
],
],
[
'name' => 'Host',
'in' => 'query',
'schema' => [
'description' => '公共云暂不支持该参数,无需传入。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'Keywords',
'in' => 'query',
'schema' => [
'description' => '错误日志关键字。',
'type' => 'string',
'required' => false,
'example' => 'error',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B4CAF581-2AC7-41AD-8940-D56DF7AADF5B',
],
'TotalCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageNumber' => [
'description' => '当前页码.',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'Items' => [
'description' => '错误日志列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Time' => [
'description' => '日志发生的时间点(UTC时间)。',
'type' => 'integer',
'format' => 'int64',
'example' => '2022-04-24 11:28:14',
],
'LogLevel' => [
'description' => '采集到的日志的级别。',
'type' => 'string',
'example' => 'FATAL',
],
'User' => [
'description' => '用户名。',
'type' => 'string',
'example' => 'adbpguser',
],
'Database' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'adbtest',
],
'Host' => [
'description' => '暂不支持该参数。',
'type' => 'string',
'example' => 'null',
],
'LogContext' => [
'description' => '错误日志内容。',
'type' => 'string',
'example' => 'unsupported frontend protocol 2689.28208: server supports 1.0 to 3.0',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\",\\n \\"TotalCount\\": 1,\\n \\"PageNumber\\": 1,\\n \\"Items\\": [\\n {\\n \\"Time\\": 0,\\n \\"LogLevel\\": \\"FATAL\\",\\n \\"User\\": \\"adbpguser\\",\\n \\"Database\\": \\"adbtest\\",\\n \\"Host\\": \\"null\\",\\n \\"LogContext\\": \\"unsupported frontend protocol 2689.28208: server supports 1.0 to 3.0\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n B4CAF581-2AC7-41AD-8940-D56DF7AADF5B\\n 1\\n 1\\n \\n \\n FATAL\\n adbpguser\\n adbtest\\n unsupported frontend protocol 2689.28208: server supports 1.0 to 3.0\\n \\n","errorExample":""}]',
'title' => '查询实例的错误日志',
],
'DescribeSQLLogCount' => [
'summary' => '获取AnalyticDB PostgreSQL版实例的审计日志数量。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbC727J2',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL版实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxx',
],
],
[
'name' => 'QueryKeywords',
'in' => 'query',
'schema' => [
'description' => '查询关键词。',
'type' => 'string',
'required' => false,
'example' => 'test',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间。格式为yyyy-MM-ddTHH:mmZ(UTC时间)。',
'type' => 'string',
'required' => true,
'example' => '2020-12-12T11:22Z',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => false,
'example' => 'testdb',
],
],
[
'name' => 'User',
'in' => 'query',
'schema' => [
'description' => '数据库用户名。',
'type' => 'string',
'required' => false,
'example' => 'adbpgadmin',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间。格式为yyyy-MM-ddTHH:mmZ(UTC时间)。'."\n"
."\n"
.'> 查询结束时间需晚于开始时间,且开始时间和结束时间的时间间隔不能超过七天。',
'type' => 'string',
'required' => true,
'example' => '2020-12-14T11:22Z',
],
],
[
'name' => 'ExecuteCost',
'in' => 'query',
'schema' => [
'description' => '执行时长,单位为秒(s)。',
'type' => 'string',
'required' => false,
'example' => '100',
],
],
[
'name' => 'SourceIP',
'in' => 'query',
'schema' => [
'description' => '来源IP。',
'type' => 'string',
'required' => false,
'example' => '10.**.**.13',
],
],
[
'name' => 'ExecuteState',
'in' => 'query',
'schema' => [
'description' => '执行状态。取值如下:'."\n"
."\n"
.'- 取值为1:成功'."\n"
.'- 取值为0:失败'."\n"
.'- 取值为0,1或1,0:全部',
'type' => 'string',
'required' => false,
'example' => '1',
],
],
[
'name' => 'OperationClass',
'in' => 'query',
'schema' => [
'description' => '操作类别。取值如下:'."\n"
."\n"
.'- **DQL**'."\n"
.'- **DML**'."\n"
.'- **DDL**'."\n"
.'- **DCL**'."\n"
.'- **TCL**',
'type' => 'string',
'required' => false,
'example' => 'DQL',
],
],
[
'name' => 'OperationType',
'in' => 'query',
'schema' => [
'description' => '执行SQL的类型。'."\n"
."\n"
.'>- 如果设置了**OperationClass**参数,则**OperationType**的值必须属于对应的语言类型。例如**OperationClass**的值为**DQL**,则**OperationType**的值必须为**DQL**类型的SQL,例如**SELECT**。'."\n"
.'>- 如果没有设置**OperationClass**参数,则**OperationType**的值可以是任意类型SQL。'."\n"
.'>- 如果没有设置**OperationClass**参数也没有设置**OperationType**参数,则表示返回所有类型SQL。',
'type' => 'string',
'required' => false,
'example' => 'SELECT',
],
],
[
'name' => 'MaxExecuteCost',
'in' => 'query',
'schema' => [
'description' => '慢SQL最大耗时,取值需大于等于0,单位为秒(s)。',
'type' => 'string',
'required' => false,
'example' => '1000',
],
],
[
'name' => 'MinExecuteCost',
'in' => 'query',
'schema' => [
'description' => '慢SQL最小耗时,取值需大于等于0,单位为秒(s)。',
'type' => 'string',
'required' => false,
'example' => '10',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'EndTime' => [
'description' => '查询结束时间。',
'type' => 'string',
'example' => '2020-12-14T11:22Z',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '7565770E-7C45-462D-BA4A-8A**********',
],
'StartTime' => [
'description' => '查询开始时间。',
'type' => 'string',
'example' => '2020-12-12T11:22Z',
],
'DBClusterId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-xxxxxxxx',
],
'Items' => [
'description' => '返回项目列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Series' => [
'description' => '返回值集合。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Values' => [
'description' => '返回值。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Point' => [
'description' => '无',
'type' => 'array',
'items' => [
'description' => '审计日志生成时间与数量。',
'type' => 'string',
'example' => '2020-12-14T11:00:00Z,100',
],
],
],
],
],
],
],
],
'Name' => [
'description' => '实例名称。',
'type' => 'string',
'example' => 'gp-xxxxxxxx',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"EndTime\\": \\"2020-12-14T11:22Z\\",\\n \\"RequestId\\": \\"7565770E-7C45-462D-BA4A-8A**********\\",\\n \\"StartTime\\": \\"2020-12-12T11:22Z\\",\\n \\"DBClusterId\\": \\"gp-xxxxxxxx\\",\\n \\"Items\\": [\\n {\\n \\"Series\\": [\\n {\\n \\"Values\\": [\\n {\\n \\"Point\\": [\\n \\"2020-12-14T11:00:00Z,100\\"\\n ]\\n }\\n ]\\n }\\n ],\\n \\"Name\\": \\"gp-xxxxxxxx\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 2020-12-14T11:22Z\\n 7565770E-7C45-462D-BA4A-8A**********\\n 2020-12-12T11:22Z\\n gp-xxxxxxxx\\n \\n \\n \\n 2020-12-14T11:00:00Z,100\\n \\n \\n gp-xxxxxxxx\\n \\n","errorExample":""}]',
'title' => '获取SQL审计日志数量',
'description' => '本接口不支持实例类型为存储预留模式的实例。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeSQLLogsV2' => [
'summary' => '调用DescribeSQLLogs接口查询指定时间段的SQL执行记录。',
'methods' => [
'get',
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbC727J2',
],
'autoTest' => false,
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间。格式为YYYY-MM-DDThh:mmZ(UTC时间)。',
'type' => 'string',
'required' => false,
'docRequired' => true,
'example' => '2022-03-10T06:30Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间。格式为YYYY-MM-DDThh:mmZ(UTC时间)。'."\n"
."\n"
.'> 查询结束时间需晚于开始时间,且开始时间和结束时间的时间间隔不能超过24小时。',
'type' => 'string',
'required' => false,
'docRequired' => true,
'example' => '2022-03-17T06:30Z',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL版实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxx',
],
],
[
'name' => 'QueryKeywords',
'in' => 'query',
'schema' => [
'description' => 'SQL关键字。',
'type' => 'string',
'required' => false,
'example' => 'select 1',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => false,
'example' => 'adbpgadmin',
],
],
[
'name' => 'User',
'in' => 'query',
'schema' => [
'description' => '用户名。',
'type' => 'string',
'required' => false,
'example' => 'testadmin',
],
],
[
'name' => 'ExecuteCost',
'in' => 'query',
'schema' => [
'description' => '执行耗时,单位为秒(s)。',
'type' => 'string',
'required' => false,
'example' => '1',
],
],
[
'name' => 'SourceIP',
'in' => 'query',
'schema' => [
'description' => '来源IP。',
'type' => 'string',
'required' => false,
'example' => '100.XX.XX.90',
],
],
[
'name' => 'ExecuteState',
'in' => 'query',
'schema' => [
'description' => '执行状态。取值如下:'."\n"
.'- **1**:成功。'."\n"
.'- **0**:失败。',
'type' => 'string',
'required' => false,
'example' => '1',
],
],
[
'name' => 'OperationClass',
'in' => 'query',
'schema' => [
'description' => '操作类别,取值如下:'."\n"
."\n"
.'- **DQL**'."\n"
.'- **DML**'."\n"
.'- **DDL**'."\n"
.'- **DCL**'."\n"
.'- **TCL**',
'type' => 'string',
'required' => false,
'example' => 'DQL',
],
],
[
'name' => 'OperationType',
'in' => 'query',
'schema' => [
'description' => '执行SQL的类型。'."\n"
."\n"
.'>- 如果设置了**OperationClass**参数,则**OperationType**的值必须属于对应的语言类型。例如**OperationClass**的值为**DQL**,则**OperationType**的值必须为**DQL**类型的SQL,例如**SELECT**。'."\n"
.'- 如果没有设置**OperationClass**参数,则**OperationType**的值可以是任意类型SQL。'."\n"
.'- 如果没有设置**OperationClass**参数也没有设置**OperationType**参数,则表示返回所有类型SQL。',
'type' => 'string',
'required' => false,
'example' => 'SELECT',
],
],
[
'name' => 'MaxExecuteCost',
'in' => 'query',
'schema' => [
'description' => '慢SQL最大耗时,取值需大于等于0,单位为秒(s)。',
'type' => 'string',
'required' => false,
'example' => '1000',
],
],
[
'name' => 'MinExecuteCost',
'in' => 'query',
'schema' => [
'description' => '慢SQL最小耗时,取值需大于等于0,单位为秒(s)。',
'type' => 'string',
'required' => false,
'example' => '1',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:1。',
'type' => 'string',
'required' => false,
'example' => '1',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
.'- 30(默认值)'."\n"
.'- 50'."\n"
.'- 100',
'type' => 'string',
'required' => false,
'example' => '30',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'AccessDeniedDetail' => [
'description' => '访问被拒绝的详细原因。',
'type' => 'string',
'example' => 'account name invalid',
],
'Items' => [
'description' => '结果列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'AccountName' => [
'description' => '执行SQL的数据库账号。',
'type' => 'string',
'example' => 'testadmin',
],
'DBName' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'adbpgadmin',
],
'DBRole' => [
'description' => '数据库角色。',
'type' => 'string',
'example' => 'master',
],
'ErrorCode' => [
'description' => '错误码。',
'type' => 'string',
'example' => 'InternalError',
],
'ErrorMsg' => [
'description' => '错误信息',
'type' => 'string',
'example' => 'User not authorized to operate on the specified resource.',
],
'ExecuteCost' => [
'description' => '执行耗时。',
'type' => 'number',
'format' => 'float',
'example' => '2',
],
'ExecuteState' => [
'description' => '执行状态。'."\n"
."\n"
.'- **success**:成功'."\n"
.'- **fail**:失败',
'type' => 'string',
'example' => 'success',
],
'OperationClass' => [
'description' => '操作类别。',
'type' => 'string',
'example' => 'DQL',
],
'OperationExecuteTime' => [
'description' => '执行时间。',
'type' => 'string',
'example' => '2021-03-15T17:02:32Z',
],
'OperationType' => [
'description' => '执行SQL的类型。',
'type' => 'string',
'example' => 'SELECT',
],
'ReturnRowCounts' => [
'description' => '执行结果返回的行数。',
'type' => 'integer',
'format' => 'int64',
'example' => '1',
],
'SQLText' => [
'description' => 'SQL语句内容。',
'type' => 'string',
'example' => 'select 1',
],
'ScanRowCounts' => [
'description' => '扫描行数。',
'type' => 'integer',
'format' => 'int64',
'example' => '1',
],
'SourceIP' => [
'description' => '来源IP。',
'type' => 'string',
'example' => '100.**.**.90',
],
'SourcePort' => [
'description' => '来源端口。',
'type' => 'integer',
'format' => 'int32',
'example' => '50514',
],
'QueryId' => [
'description' => '查询ID。',
'type' => 'string',
'example' => '2548026401648157601713924318883',
],
'SessionId' => [
'description' => '会话ID。'."\n"
."\n",
'type' => 'string',
'example' => '3a74656836ec5255a4793def0a447b02',
],
],
],
],
'PageNumber' => [
'description' => '查询结果页数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageRecordCount' => [
'description' => '每页包含的记录个数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'A7941C94-B92F-46A0-BD3E-2D**********',
],
],
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'IdempotentParameterMismatch',
'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"AccessDeniedDetail\\": \\"account name invalid\\",\\n \\"Items\\": [\\n {\\n \\"AccountName\\": \\"testadmin\\",\\n \\"DBName\\": \\"adbpgadmin\\",\\n \\"DBRole\\": \\"master\\",\\n \\"ErrorCode\\": \\"InternalError\\",\\n \\"ErrorMsg\\": \\"User not authorized to operate on the specified resource.\\",\\n \\"ExecuteCost\\": 2,\\n \\"ExecuteState\\": \\"success\\",\\n \\"OperationClass\\": \\"DQL\\",\\n \\"OperationExecuteTime\\": \\"2021-03-15T17:02:32Z\\",\\n \\"OperationType\\": \\"SELECT\\",\\n \\"ReturnRowCounts\\": 1,\\n \\"SQLText\\": \\"select 1\\",\\n \\"ScanRowCounts\\": 1,\\n \\"SourceIP\\": \\"100.**.**.90\\",\\n \\"SourcePort\\": 50514,\\n \\"QueryId\\": \\"2548026401648157601713924318883\\",\\n \\"SessionId\\": \\"3a74656836ec5255a4793def0a447b02\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageRecordCount\\": 1,\\n \\"RequestId\\": \\"A7941C94-B92F-46A0-BD3E-2D**********\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 1\\n A7941C94-B92F-46A0-BD3E-2D**********\\n 1\\n \\n DQL\\n success\\n 2\\n select 1\\n 50514\\n master\\n SELECT\\n 100.**.**.90\\n \\"\\"\\n 1\\n adbpgadmin\\n 2021-03-15T17:02:32Z\\n 1\\n testadmin\\n \\n","errorExample":""}]',
'title' => '查询SQL执行记录',
'description' => '该接口不支持实例资源类型为存储预留模式的实例。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ModifySQLCollectorPolicy' => [
'summary' => '开启或关闭指定实例的SQL洞察功能。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'SQLCollectorStatus',
'in' => 'query',
'schema' => [
'description' => 'SQL采集状态。'."\n"
.'- Enable:SQL采集开启。'."\n"
.'- Disabled:SQL采集关闭。',
'type' => 'string',
'required' => true,
'example' => 'Enable',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'API-48109b5c-a157-44e3-9f54-eb27f02bdd15',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"API-48109b5c-a157-44e3-9f54-eb27f02bdd15\\"\\n}","type":"json"}]',
'title' => '开启或关闭SQL洞察功能',
'description' => '- 仅支持存储预留实例。'."\n"
."\n"
.'- 仅支持Serverless自动调度版本。',
],
'AllocateInstancePublicConnection' => [
'summary' => '分配实例外网链接地址。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbFBNS5O',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'ConnectionStringPrefix',
'in' => 'query',
'schema' => [
'description' => '连接地址前缀。'."\n"
."\n"
.'您可以自定义连接地址前缀,例如连接地址前缀为`gp-bp12ga6v69h86****`时,连接地址为`gp-bp12ga6v69h86****.gpdb.rds.aliyuncs.com`。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'Port',
'in' => 'query',
'schema' => [
'description' => '端口号,例如5432。',
'type' => 'string',
'required' => true,
'example' => '5432',
],
],
[
'name' => 'AddressType',
'in' => 'query',
'schema' => [
'description' => '网络类型。取值:'."\n"
."\n"
.'- **primary**:主地址。'."\n"
.'- **cluster**:集群地址,仅多协调节点实例支持创建集群地址。'."\n"
."\n"
.'> 默认为主地址。',
'type' => 'string',
'required' => false,
'example' => 'primary',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ADD6EA90-EECB-4C12-9F26-0B6DB587****',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"ADD6EA90-EECB-4C12-9F26-0B6DB587****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n ADD6EA90-EECB-4C12-9F26-0B6DB587****\\n","errorExample":""}]',
'title' => '申请外网地址',
'description' => '本接口用于申请AnalyticDB PostgreSQL版实例的外网地址。AnalyticDB PostgreSQL版实例的主地址和集群地址均支持创建外网地址,更多介绍,请参见[主地址和集群地址](~~204879~~)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeDBInstanceNetInfo' => [
'summary' => '查询实例的连接信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbFBNS5O',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-0xin9q82c33xc****',
],
],
[
'name' => 'ConnectionString',
'in' => 'query',
'schema' => [
'description' => '数据库连接地址。'."\n"
."\n"
.'> 如果不指定该参数,将会返回所有数据库连接地址的相关信息。',
'type' => 'string',
'required' => false,
'example' => 'gp-0xin9q82c33xc****-master.gpdb.rds.aliyuncs.com',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '7565770E-7C45-462D-BA4A-8A5396F2CAD1',
],
'DBInstanceNetInfos' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'DBInstanceNetInfo' => [
'description' => '实例的连接信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'VSwitchId' => [
'description' => 'vSwitch ID,多个值用英文逗号(,)隔开。',
'type' => 'string',
'example' => 'vsw-0xi4kt4dho2kx79p1****',
],
'ConnectionString' => [
'description' => '数据库连接URL。',
'type' => 'string',
'example' => 'gp-0xin9q82c33xc****-master.gpdb.rds.aliyuncs.com',
],
'IPType' => [
'description' => 'IP类型。'."\n"
.'- 经典网络类型的实例IPType为:Inner、Public。'."\n"
.'- VPC类型的实例IPType为:Private、Public。',
'type' => 'string',
'example' => 'Inner',
],
'Port' => [
'description' => '端口信息。',
'type' => 'string',
'example' => '3432',
],
'VpcInstanceId' => [
'description' => 'VPC实例ID。',
'type' => 'string',
'example' => 'vpc-0xi8hbevlbj3bq0co****',
],
'VPCId' => [
'description' => 'VPC ID。',
'type' => 'string',
'example' => 'vpc-0xi8hbevlbj3bq0co****',
],
'IPAddress' => [
'description' => 'IP地址。',
'type' => 'string',
'example' => '127.0.0.1',
],
'AddressType' => [
'description' => '地址类型。',
'type' => 'string',
'example' => 'Primary',
],
],
],
],
],
],
'InstanceNetworkType' => [
'description' => '实例网络类型:'."\n"
.'- Classic:经典网络。'."\n"
.'- VPC:VPC网络。',
'type' => 'string',
'example' => 'VPC',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7565770E-7C45-462D-BA4A-8A5396F2CAD1\\",\\n \\"DBInstanceNetInfos\\": {\\n \\"DBInstanceNetInfo\\": [\\n {\\n \\"VSwitchId\\": \\"vsw-0xi4kt4dho2kx79p1****\\",\\n \\"ConnectionString\\": \\"gp-0xin9q82c33xc****-master.gpdb.rds.aliyuncs.com\\",\\n \\"IPType\\": \\"Inner\\",\\n \\"Port\\": \\"3432\\",\\n \\"VpcInstanceId\\": \\"vpc-0xi8hbevlbj3bq0co****\\",\\n \\"VPCId\\": \\"vpc-0xi8hbevlbj3bq0co****\\",\\n \\"IPAddress\\": \\"127.0.0.1\\",\\n \\"AddressType\\": \\"Primary\\"\\n }\\n ]\\n },\\n \\"InstanceNetworkType\\": \\"VPC\\"\\n}","errorExample":""},{"type":"xml","example":"\\nClassic\\n\\n \\n 1\\n gp-xxxxxxx.gpdb.rds.aliyuncs.com\\n 127.0.0.1\\n 3432\\n vpc-xxxxxxxxx\\n vsw-xxxxxxx\\n \\n\\n7565770E-7C45-462D-BA4A-8A5396F2CAD1\\n","errorExample":""}]',
'title' => '查看实例的连接地址信息',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeRdsVpcs' => [
'summary' => '获取VPC列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
'default' => 'cn-hangzhou',
],
],
[
'name' => 'ZoneId',
'in' => 'query',
'schema' => [
'description' => '可用区ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou-h',
],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Vpcs' => [
'description' => 'VPC列表',
'type' => 'object',
'properties' => [
'Vpc' => [
'description' => 'VPC信息。',
'type' => 'array',
'items' => [
'description' => 'VPC信息。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'VPC状态。 **Available**表示可用。',
'type' => 'string',
'example' => 'Available',
],
'VpcName' => [
'description' => 'VPC的名称。',
'type' => 'string',
'example' => 'vpc-name',
],
'VpcId' => [
'description' => 'VPC ID。',
'type' => 'string',
'example' => 'vpc-bp*******************',
],
'IsDefault' => [
'description' => '是否是默认VPC。取值说明:'."\n"
."\n"
.'- **true**:是'."\n"
.'- **false**:否',
'type' => 'boolean',
'example' => 'true',
],
'CidrBlock' => [
'description' => 'VPC的网段。',
'type' => 'string',
'example' => '10.**.**.0/8',
],
'RegionNo' => [
'description' => '地域ID。',
'type' => 'string',
'example' => 'cn-hangzhou',
],
'GmtCreate' => [
'description' => '该参数已废弃,故不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
'AliUid' => [
'description' => '该参数已废弃,故不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
'VSwitchs' => [
'description' => 'vSwitch列表。',
'type' => 'array',
'items' => [
'description' => '交换机信息。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'vSwitch状态。**Available**表示可用。',
'type' => 'string',
'example' => 'Available',
],
'VSwitchId' => [
'description' => 'vSwitch ID。',
'type' => 'string',
'example' => 'vsw-bp*******************',
],
'IsDefault' => [
'description' => '是否是默认vSwitch。取值说明:'."\n"
."\n"
.'- **true**:是'."\n"
.'- **false**:否',
'type' => 'boolean',
'example' => 'true',
],
'CidrBlock' => [
'description' => 'vSwitch的网段。',
'type' => 'string',
'example' => '10.**.**.0/24',
],
'GmtCreate' => [
'description' => '该参数已废弃,故不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
'GmtModified' => [
'description' => '该参数已废弃,故不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
'IzNo' => [
'description' => 'vSwitch所属的可用区。',
'type' => 'string',
'example' => 'cn-hangzhou-i',
],
'VSwitchName' => [
'description' => 'vSwitch的名称。',
'type' => 'string',
'example' => 'vsw-name',
],
],
],
],
'GmtModified' => [
'description' => '该参数已废弃,故不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
'Bid' => [
'description' => '该参数已废弃,故不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
],
],
],
],
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '53924AF0-1628-5AA2-9C95-D4**********',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Vpcs\\": {\\n \\"Vpc\\": [\\n {\\n \\"Status\\": \\"Available\\",\\n \\"VpcName\\": \\"vpc-name\\",\\n \\"VpcId\\": \\"vpc-bp*******************\\",\\n \\"IsDefault\\": true,\\n \\"CidrBlock\\": \\"10.**.**.0/8\\",\\n \\"RegionNo\\": \\"cn-hangzhou\\",\\n \\"GmtCreate\\": \\"null\\",\\n \\"AliUid\\": \\"null\\",\\n \\"VSwitchs\\": [\\n {\\n \\"Status\\": \\"Available\\",\\n \\"VSwitchId\\": \\"vsw-bp*******************\\",\\n \\"IsDefault\\": true,\\n \\"CidrBlock\\": \\"10.**.**.0/24\\",\\n \\"GmtCreate\\": \\"null\\",\\n \\"GmtModified\\": \\"null\\",\\n \\"IzNo\\": \\"cn-hangzhou-i\\",\\n \\"VSwitchName\\": \\"vsw-name\\"\\n }\\n ],\\n \\"GmtModified\\": \\"null\\",\\n \\"Bid\\": \\"null\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"53924AF0-1628-5AA2-9C95-D4**********\\"\\n}","errorExample":""},{"type":"xml","example":"\\n \\n \\n false\\n cn-hangzhou\\n \\n Available\\n false\\n cn-hangzhou-h\\n vsw-bp*******************\\n 10.**.**.0/24\\n vsw-name\\n \\n vpc-bp*******************\\n 10.**.**.0/8\\n vpc-name\\n \\n \\n true\\n cn-hangzhou\\n \\n Available\\n true\\n cn-hangzhou-h\\n vsw-bp*******************\\n 172.**.**.0/20\\n \\n \\n vpc-bp*******************\\n 172.**.**.0/16\\n Private\\n \\n \\n 53924AF0-1628-5AA2-9C95-D4**********\\n","errorExample":""}]',
'title' => '获取VPC列表',
'description' => '您在新建AnalyticDB PostgreSQL版实例时,可以通过该接口查询目标地域及可用区下可用的VPC信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeRdsVSwitchs' => [
'summary' => '获取虚拟交换机(vSwitch)列表。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbAXSDJ9',
],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID和可用区ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
'default' => 'cn-hangzhou',
],
],
[
'name' => 'VpcId',
'in' => 'query',
'schema' => [
'description' => 'VPC ID。'."\n"
.'> - 您可以调用[DescribeRdsVpcs](~~208327~~)接口查看可用的VPC ID。'."\n"
.'> - 该参数必须传入。',
'type' => 'string',
'required' => false,
'example' => 'vpc-bp*******************',
],
],
[
'name' => 'ZoneId',
'in' => 'query',
'schema' => [
'description' => '可用区ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID和可用区ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou-h',
],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '该参数已废弃,无需传入该参数。',
'type' => 'string',
'required' => false,
'example' => 'null',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'B0BA251D-6854-5A99-A964-3C**********',
],
'VSwitches' => [
'description' => 'vSwitch列表。',
'type' => 'object',
'properties' => [
'VSwitch' => [
'description' => 'vSwith信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Status' => [
'description' => 'vSwitch状态。**Available**表示可用。',
'type' => 'string',
'example' => 'Available',
],
'IsDefault' => [
'description' => '是否是默认交换机。取值说明:'."\n"
."\n"
.'- **true**:是'."\n"
.'- **false**:否',
'type' => 'boolean',
'example' => 'false',
],
'VSwitchId' => [
'description' => 'vSwitch ID。',
'type' => 'string',
'example' => 'vsw-bp*******************',
],
'CidrBlock' => [
'description' => 'vSwitch的网段。',
'type' => 'string',
'example' => '192.**.**.0/24',
],
'RegionNo' => [
'description' => '该参数已废弃,故不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
'GmtCreate' => [
'description' => '该参数已废弃,故不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
'AliUid' => [
'description' => '该参数已废弃,故不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
'GmtModified' => [
'description' => '该参数已废弃,故不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
'Bid' => [
'description' => '该参数已废弃,故不会返回参数值。',
'type' => 'string',
'example' => 'null',
],
'IzNo' => [
'description' => '可用区ID。',
'type' => 'string',
'example' => 'cn-hangzhou-h',
],
'VSwitchName' => [
'description' => 'vSwitch名称。',
'type' => 'string',
'example' => 'vsw-name',
],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"B0BA251D-6854-5A99-A964-3C**********\\",\\n \\"VSwitches\\": {\\n \\"VSwitch\\": [\\n {\\n \\"Status\\": \\"Available\\",\\n \\"IsDefault\\": false,\\n \\"VSwitchId\\": \\"vsw-bp*******************\\",\\n \\"CidrBlock\\": \\"192.**.**.0/24\\",\\n \\"RegionNo\\": \\"null\\",\\n \\"GmtCreate\\": \\"null\\",\\n \\"AliUid\\": \\"null\\",\\n \\"GmtModified\\": \\"null\\",\\n \\"Bid\\": \\"null\\",\\n \\"IzNo\\": \\"cn-hangzhou-h\\",\\n \\"VSwitchName\\": \\"vsw-name\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n B0BA251D-6854-5A99-A964-3C**********\\n \\n \\n Available\\n false\\n cn-hangzhou-h\\n vsw-bp*******************\\n 192.**.**.0/24\\n vsw-name\\n \\n \\n","errorExample":""}]',
'title' => '获取虚拟交换机列表',
'description' => '您在新建AnalyticDB PostgreSQL版实例时,可以通过该接口查询目标地域及可用区下可用的vSwitch信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'ModifyDBInstanceConnectionString' => [
'summary' => '修改AnalyticDB PostgreSQL版实例的连接地址。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbFBNS5O',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-t4n2qg19bnn98****',
],
],
[
'name' => 'ConnectionStringPrefix',
'in' => 'query',
'schema' => [
'description' => '连接地址。',
'type' => 'string',
'required' => true,
'example' => 'gp-test',
],
],
[
'name' => 'Port',
'in' => 'query',
'schema' => [
'description' => '端口号,例如5432。',
'type' => 'string',
'required' => true,
'example' => '5432',
],
],
[
'name' => 'CurrentConnectionString',
'in' => 'query',
'schema' => [
'description' => '当前的连接地址。',
'type' => 'string',
'required' => true,
'example' => 'gp-t4n2qg19bnn98****-master.gpdb.rds.aliyuncs.com',
],
],
[
'name' => 'ClientToken',
'in' => 'query',
'schema' => [
'description' => '幂等性校验。更多信息,请参见[如何保证幂等性](~~327176~~)。',
'type' => 'string',
'required' => false,
'example' => '0c593ea1-3bea-11e9-b96b-88**********',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '29B0BF34-D069-4495-92C7-FA6D94528A9E',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"29B0BF34-D069-4495-92C7-FA6D94528A9E\\"\\n}","type":"json"}]',
'title' => '修改连接地址',
],
'ReleaseInstancePublicConnection' => [
'summary' => '释放AnalyticDB PostgreSQL版的外网地址。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbFBNS5O',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'CurrentConnectionString',
'in' => 'query',
'schema' => [
'description' => '外网地址。'."\n"
."\n"
.'您可以在AnalyticDB PostgreSQL版控制台的实例**基本信息**页面的**数据库连接**区域查看**外网地址**。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****.gpdb.rds.aliyuncs.com',
],
],
[
'name' => 'AddressType',
'in' => 'query',
'schema' => [
'description' => '地址类型。取值:'."\n"
."\n"
.'- **primary**:主地址。'."\n"
.'- **cluster**:集群地址,仅多协调节点实例支持创建集群地址。'."\n"
."\n"
.'> 默认为主地址。',
'type' => 'string',
'required' => false,
'example' => 'primary',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '9CEF7037-4158-4A65-BEC7-2A**********',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"9CEF7037-4158-4A65-BEC7-2A**********\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 9CEF7037-4158-4A65-BEC7-2A**********\\n","errorExample":""}]',
'title' => '释放外网地址',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'SwitchDBInstanceNetType' => [
'summary' => '切换AnalyticDB PostgreSQL版实例的内外网地址。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbFBNS5O',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~2361776~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'ConnectionStringPrefix',
'in' => 'query',
'schema' => [
'description' => '自定义连接地址的前辍:'."\n"
."\n"
.'- 由小写字母,数字,中划线组成,字母开头;'."\n"
.'- 长度不超过30个字符。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'Port',
'in' => 'query',
'schema' => [
'description' => '端口号。',
'type' => 'string',
'required' => true,
'example' => '5432',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'FA67B751-2A2D-470C-850B-D6B93699D35C',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"FA67B751-2A2D-470C-850B-D6B93699D35C\\"\\n}","type":"json"}]',
'title' => '切换内外网地址',
'description' => '该接口不支持存储弹性模式实例和Serverless实例。',
],
'DescribeAvailableResources' => [
'summary' => '获取AnalyticDB PostgreSQL版的可用售卖资源。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbUY8DE6',
],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Region',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'ZoneId',
'in' => 'query',
'schema' => [
'description' => '可用区ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的可用区ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-hangzhou-h',
],
],
[
'name' => 'ChargeType',
'in' => 'query',
'schema' => [
'description' => '付费类型。取值说明:'."\n"
."\n"
.'- **Postpaid**:按量付费。'."\n"
.'- **Prepaid**:包年包月。',
'type' => 'string',
'required' => false,
'example' => 'PostPaid',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '61DC563C-F8E4-593A-8D27-CE**********',
],
'RegionId' => [
'description' => '地域ID。',
'type' => 'string',
'example' => 'cn-hangzhou',
],
'Resources' => [
'description' => '售卖资源信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'SupportedEngines' => [
'description' => '支持的引擎和规格信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'SupportedEngineVersion' => [
'description' => '支持的引擎版本。',
'type' => 'string',
'example' => '6.0',
],
'SupportedInstanceClasses' => [
'description' => '支持的规格。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Description' => [
'description' => 'Segment节点规格描述。',
'type' => 'string',
'example' => '单segment节点2核配置,含16GB 内存',
],
'DisplayClass' => [
'description' => 'Segment规格信息。',
'type' => 'string',
'example' => '2C16G',
],
'InstanceClass' => [
'description' => 'Segment规格信息。',
'type' => 'string',
'example' => '2C16G',
],
'NodeCount' => [
'description' => 'Segment节点信息。',
'type' => 'object',
'properties' => [
'Step' => [
'description' => '增加节点时的步长。'."\n"
."\n"
.'例如该参数取值为4时,则表示增加Segment节点时,增加的节点数量必须为4的倍数。',
'type' => 'string',
'example' => '4',
],
'MinCount' => [
'description' => 'Segment节点的最小值。',
'type' => 'string',
'example' => '4',
],
'MaxCount' => [
'description' => 'Segment节点的最大值。',
'type' => 'string',
'example' => '256',
],
],
],
'StorageType' => [
'description' => '存储类型。取值说明:'."\n"
."\n"
.'- **cloud_essd**:ESSD云盘。'."\n"
.'- **cloud_efficiency**:高效云盘。'."\n"
.'- **oss**:OSS。',
'type' => 'string',
'example' => 'cloud_essd',
],
'StorageSize' => [
'description' => 'Segment存储容量。',
'type' => 'object',
'properties' => [
'Step' => [
'description' => 'Segment存储扩容步长。',
'type' => 'string',
'example' => '50',
],
'MinCount' => [
'description' => 'Segment最小存储容量。',
'type' => 'string',
'example' => '50',
],
'MaxCount' => [
'description' => 'Segment最大存储容量。',
'type' => 'string',
'example' => '1000',
],
],
],
'Category' => [
'description' => '实例系列。取值说明:'."\n"
."\n"
.'- **HighAvailability**:高可用版。'."\n"
.'- **Basic**:基础版',
'type' => 'string',
'example' => 'HighAvailability',
],
],
],
],
'Mode' => [
'description' => '实例资源类型。取值说明:'."\n"
."\n"
.'- **ecs**:存储弹性模式。'."\n"
.'- **serverless**:Serverless模式。',
'type' => 'string',
'example' => 'ecs',
],
],
],
],
'ZoneId' => [
'description' => '可用区ID。',
'type' => 'string',
'example' => 'cn-hangzhou-h',
],
],
],
],
],
],
],
],
'staticInfo' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"61DC563C-F8E4-593A-8D27-CE**********\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"Resources\\": [\\n {\\n \\"SupportedEngines\\": [\\n {\\n \\"SupportedEngineVersion\\": \\"6.0\\",\\n \\"SupportedInstanceClasses\\": [\\n {\\n \\"Description\\": \\"单segment节点2核配置,含16GB 内存\\",\\n \\"DisplayClass\\": \\"2C16G\\",\\n \\"InstanceClass\\": \\"2C16G\\",\\n \\"NodeCount\\": {\\n \\"Step\\": \\"4\\",\\n \\"MinCount\\": \\"4\\",\\n \\"MaxCount\\": \\"256\\"\\n },\\n \\"StorageType\\": \\"cloud_essd\\",\\n \\"StorageSize\\": {\\n \\"Step\\": \\"50\\",\\n \\"MinCount\\": \\"50\\",\\n \\"MaxCount\\": \\"1000\\"\\n },\\n \\"Category\\": \\"HighAvailability\\"\\n }\\n ],\\n \\"Mode\\": \\"ecs\\"\\n }\\n ],\\n \\"ZoneId\\": \\"cn-hangzhou-h\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 61DC563C-F8E4-593A-8D27-CE**********\\n cn-hangzhou\\n \\n \\n 6.0\\n \\n 单segment节点2核配置,含16GB 内存\\n 2C16G\\n 2C16G\\n \\n 4\\n 4\\n 256\\n \\n cloud_essd\\n \\n 50\\n 50\\n 1000\\n \\n HighAvailability\\n \\n ecs\\n \\n cn-hangzhou-h\\n \\n","errorExample":""}]',
'title' => '获取可用资源信息',
'description' => '您在新建AnalyticDB PostgreSQL版实例时,可以通过该接口查询目标可用区下的实例售卖资源信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeRegions' => [
'summary' => '查询创建AnalyticDB PostgreSQL版实例时用户可选的地域和可用区。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '8432',
'abilityTreeNodes' => [
'FEATUREgpdbAXSDJ9',
],
],
'parameters' => [
[
'name' => 'Region',
'in' => 'query',
'schema' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'FF8EB261-5447-4B1B-9F14-294CEA008A9F',
],
'Regions' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Region' => [
'description' => '地域列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Zones' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Zone' => [
'description' => '可用区列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ZoneId' => [
'description' => '可用区ID。',
'type' => 'string',
'example' => 'cn-hangzhou-c',
],
'VpcEnabled' => [
'description' => 'VPC是否可用,取值说明:'."\n"
."\n"
.'- **true**:表示VPC可用。'."\n"
.'- **false**:表示VPC不可用。',
'type' => 'boolean',
'example' => 'true',
],
],
],
],
],
],
'RegionId' => [
'description' => '地域ID。',
'type' => 'string',
'example' => 'cn-hangzhou',
],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"FF8EB261-5447-4B1B-9F14-294CEA008A9F\\",\\n \\"Regions\\": {\\n \\"Region\\": [\\n {\\n \\"Zones\\": {\\n \\"Zone\\": [\\n {\\n \\"ZoneId\\": \\"cn-hangzhou-c\\",\\n \\"VpcEnabled\\": true\\n }\\n ]\\n },\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"FF8EB261-5447-4B1B-9F14-294CEA008A9F\\n\\n \\n cn-beijing\\n \\n \\n true\\n cn-beijing-c\\n \\n \\n true\\n cn-beijing-g\\n \\n \\n \\n \\n cn-zhangjiakou\\n \\n \\n true\\n cn-zhangjiakou-b\\n \\n \\n \\n \\n cn-hangzhou\\n \\n \\n true\\n cn-hangzhou-b\\n \\n \\n true\\n cn-hangzhou-e\\n \\n \\n true\\n cn-hangzhou-f\\n \\n \\n \\n \\n cn-shanghai\\n \\n \\n true\\n cn-shanghai-b\\n \\n \\n true\\n cn-shanghai-d\\n \\n \\n \\n \\n cn-shenzhen\\n \\n \\n true\\n cn-shenzhen-a\\n \\n \\n \\n \\n ap-southeast-1\\n \\n \\n true\\n ap-southeast-1b\\n \\n \\n \\n \\n ap-southeast-2\\n \\n \\n true\\n ap-southeast-2a\\n \\n \\n true\\n ap-southeast-2b\\n \\n \\n \\n \\n us-east-1\\n \\n \\n true\\n us-east-1b\\n \\n \\n \\n \\n us-west-1\\n \\n \\n true\\n us-west-1a\\n \\n \\n \\n \\n cn-chengdu\\n \\n \\n true\\n cn-chengdu-a\\n \\n \\n \\n \\n ap-southeast-3\\n \\n \\n true\\n ap-southeast-3a\\n \\n \\n \\n \\n cn-huhehaote\\n \\n \\n true\\n cn-huhehaote-a\\n \\n \\n \\n \\n ap-south-1\\n \\n \\n true\\n ap-south-1a\\n \\n \\n \\n \\n ap-southeast-5\\n \\n \\n true\\n ap-southeast-5a\\n \\n \\n \\n","errorExample":""}]',
'title' => '查看可选的地域和可用区',
'description' => '创建AnalyticDB PostgreSQL版实例前,请先调用本接口查询可用地域和可用区。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'CreateSampleData' => [
'summary' => '为AnalyticDB PostgreSQL版实例创建样本数据集。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbPA9FLY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~2361776~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
'ErrorMessage' => [
'description' => '该信息表示API在调用过程中出现了意料之外的错误,但不影响API的正常使用。',
'type' => 'string',
'example' => '*********',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '15A6881F-AAAB-5E4D-9B3F-6DCC1BDF4F2E_99',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
."\n"
.'- **false**:执行失败。'."\n"
.'- **true**:执行成功。',
'type' => 'boolean',
'example' => 'true',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\",\\n \\"ErrorMessage\\": \\"*********\\",\\n \\"RequestId\\": \\"15A6881F-AAAB-5E4D-9B3F-6DCC1BDF4F2E_99\\",\\n \\"Status\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 15A6881F-AAAB-5E4D-9B3F-6DCC1BDF4F2E_99\\n true\\n gp-bp12ga6v69h86****\\n","errorExample":""}]',
'title' => '创建样本数据集',
'description' => '- 本接口用于为AnalyticDB PostgreSQL实例创建样本数据集,创建完成后您可以通过指定查询语句体验或测试数据库。查询语句具体信息,请参见[示例查询](~~452277~~)。'."\n"
.'- 本接口仅支持v6.3.8.8到6.3.8.x和v6.3.10.3及以上版本。'."\n"
.'- 本接口暂不支持v6.3.9.0到v6.3.10.2版本。',
],
'DescribeSampleData' => [
'summary' => '查询AnalyticDB PostgreSQL版实例中是否加载了样本数据集。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbPA9FLY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '84CD7CAF-FA7B-5178-B19F-D8CDE307D5FA_8111',
],
'HasSampleData' => [
'description' => '是否加载了样本数据集,取值如下:'."\n"
."\n"
.'- **true**:已加载样本数据集。'."\n"
.'- **false**:未加载样本数据集。',
'type' => 'boolean',
'example' => 'true',
],
'ErrorMessage' => [
'description' => '该信息表示API在调用过程中出现了意料之外的错误,但不影响API的正常使用。',
'type' => 'string',
'example' => '******',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
'SampleDataStatus' => [
'description' => '样本数据集的加载状态,取值说明:'."\n"
.'- **loaded**:已加载。'."\n"
.'- **loading**:加载中。'."\n"
.'- **unload**:未加载。',
'type' => 'string',
'example' => 'loaded',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"84CD7CAF-FA7B-5178-B19F-D8CDE307D5FA_8111\\",\\n \\"HasSampleData\\": true,\\n \\"ErrorMessage\\": \\"******\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\",\\n \\"SampleDataStatus\\": \\"loaded\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 84CD7CAF-FA7B-5178-B19F-D8CDE307D5FA_8111\\n true\\n gp-bp12ga6v69h86****\\n","errorExample":""}]',
'title' => '查询是否加载样本数据集',
],
'UnloadSampleData' => [
'summary' => '释放AnalyticDB PostgreSQL版的样本数据集。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbPA9FLY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '4E42ABC3-4DBD-5343-9BCA-66B7D091311F_6914',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
."\n"
.'- **false**:执行失败。'."\n"
.'- **true**:执行成功。',
'type' => 'boolean',
'example' => 'true',
],
'ErrorMessage' => [
'description' => '该信息表示API在调用过程中出现了意料之外的错误,但不影响API的正常使用。',
'type' => 'string',
'example' => '********',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"4E42ABC3-4DBD-5343-9BCA-66B7D091311F_6914\\",\\n \\"Status\\": true,\\n \\"ErrorMessage\\": \\"********\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 4E42ABC3-4DBD-5343-9BCA-66B7D091311F_6914\\n true\\n gp-bp12ga6v69h86****\\n","errorExample":""}]',
'title' => '卸载样本数据集',
'description' => '本接口用于释放AnalyticDB PostgreSQL版数据库中的样本数据集。您必须已经加载过样本数据集才能释放样本数据集。',
],
'EnableDBResourceGroup' => [
'summary' => '为AnalyticDB PostgreSQL版存储弹性模式6.0实例开启资源组管理,开启后实例的资源管理模式会从资源队列切换到资源组。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '197949',
'abilityTreeNodes' => [
'FEATUREgpdbGDXMO2',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'>您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '5850BF81-1A2B-5ACE-AF41-57**********',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5850BF81-1A2B-5ACE-AF41-57**********\\"\\n}","type":"json"}]',
'title' => '开启资源组管理',
'description' => '- 仅支持实例为存储弹性模式6.0版,且小版本需为v6.6.1.0及以上。'."\n"
.'- 仅支持状态为**运行中**的实例通过本接口开启资源组管理模式。'."\n"
.'- **注意:切换过程中会重启实例,存在5分钟左右的实例不可用,请合理规划您的业务避免受到影响。**',
],
'DisableDBResourceGroup' => [
'summary' => '为AnalyticDB PostgreSQL版存储弹性模式6.0实例关闭资源组管理,关闭后实例的资源管理模式会从资源组切换到资源队列。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '197974',
'abilityTreeNodes' => [
'FEATUREgpdbGDXMO2',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '53EA07B7-FC2A-521B-AB7C-27**********',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"53EA07B7-FC2A-521B-AB7C-27**********\\"\\n}","type":"json"}]',
'title' => '关闭资源组管理',
'description' => '- 仅支持实例为存储弹性模式6.0版,且小版本需为v6.6.1.0及以上。'."\n"
.'- 仅支持状态为**运行中**的实例通过本接口关闭资源组管理模式。'."\n"
.'- **注意:切换过程中会重启实例,存在5分钟左右的实例不可用,请合理规划您的业务避免受到影响。**',
],
'CreateDBResourceGroup' => [
'summary' => '创建资源组。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198025',
'abilityTreeNodes' => [
'FEATUREgpdbGDXMO2',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'ResourceGroupName',
'in' => 'query',
'schema' => [
'description' => '资源组名称。',
'type' => 'string',
'required' => true,
'example' => 'testgroup',
],
],
[
'name' => 'ResourceGroupConfig',
'in' => 'query',
'schema' => [
'description' => '资源组配置。'."\n"
.'> 1. CpuRateLimit:资源组可使用cpu资源百分比,单位:%'."\n"
.'> 2. MemoryLimit:资源组可使用内存资源百分比,单位:%'."\n"
.'> 3. MemorySharedQuota:提交到该资源组的事务之间共享的内存资源百分比,单位:%,默认值:80'."\n"
.'> 4. MemorySpillRatio:内存密集型事务的内存使用阈值。当事务达到此阈值时,将溢出磁盘,单位:%,默认值:0'."\n"
.'> 5. Concurrency:资源组允许的最大并发数,默认值:20',
'type' => 'string',
'required' => true,
'example' => '{"CpuRateLimit":10,"MemoryLimit":12,"MemorySharedQuota":20,"MemorySpillRatio":75,"Concurrency":3}',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '创建资源组',
],
'DeleteDBResourceGroup' => [
'summary' => '删除资源组。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198026',
'abilityTreeNodes' => [
'FEATUREgpdbGDXMO2',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
.'> 您可以调用[DescribeDBInstances](~~196830~~)接口查看目标地域下所有实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'ResourceGroupName',
'in' => 'query',
'schema' => [
'description' => '资源组名称。',
'type' => 'string',
'required' => true,
'example' => 'testgroup',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '删除资源组',
],
'ModifyDBResourceGroup' => [
'summary' => '修改资源组。',
'methods' => [
'get',
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '198030',
'abilityTreeNodes' => [
'FEATUREgpdbGDXMO2',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'ResourceGroupItems',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '资源组详情。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ResourceGroupName' => [
'description' => '资源组名称。',
'type' => 'string',
'required' => true,
'example' => 'testgroup',
],
'ResourceGroupConfig' => [
'description' => '资源组配置。'."\n"
.'> 1. CpuRateLimit:资源组可使用cpu资源百分比,单位:%'."\n"
.'> 2. MemoryLimit:资源组可使用内存资源百分比,单位:%'."\n"
.'> 3. MemorySharedQuota:提交到该资源组的事务之间共享的内存资源百分比,单位:%,默认值:80'."\n"
.'> 4. MemorySpillRatio:内存密集型事务的内存使用阈值。当事务达到此阈值时,将溢出磁盘,单位:%,默认值:0'."\n"
.'> 5. Concurrency:资源组允许的最大并发数,默认值:20',
'type' => 'string',
'required' => true,
'example' => '{"CpuRateLimit":10,"MemoryLimit":12,"MemorySharedQuota":20,"MemorySpillRatio":75,"Concurrency":3}',
],
],
'required' => false,
],
'required' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '修改资源组',
],
'DescribeDBResourceGroup' => [
'summary' => '获取资源组详情。',
'methods' => [
'get',
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '197993',
'abilityTreeNodes' => [
'FEATUREgpdbGDXMO2',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'ResourceGroupName',
'in' => 'query',
'schema' => [
'description' => '资源组名称。'."\n"
.'> 当该值为空时,返回所有资源组详情;当该值不为空,则返回指定资源组详情',
'type' => 'string',
'required' => false,
'example' => 'testgroup',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'ResourceGroupItems' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ResourceGroupItem' => [
'description' => '资源组详情。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ResourceGroupName' => [
'description' => '资源组名称。',
'type' => 'string',
'example' => 'testgroup',
],
'ResourceGroupConfig' => [
'description' => '资源组配置。'."\n"
.'> 1. CpuRateLimit:资源组可使用cpu资源百分比,单位:%'."\n"
.'> 2. MemoryLimit:资源组可使用内存资源百分比,单位:%'."\n"
.'> 3. MemorySharedQuota:提交到该资源组的事务之间共享的内存资源百分比,单位:%,默认值:80'."\n"
.'> 4. MemorySpillRatio:内存密集型事务的内存使用阈值。当事务达到此阈值时,将溢出磁盘,单位:%,默认值:0'."\n"
.'> 5. Concurrency:资源组允许的最大并发数,默认值:20',
'type' => 'string',
'example' => '{"CpuRateLimit":10,"MemoryLimit":12,"MemorySharedQuota":20,"MemorySpillRatio":75,"Concurrency":3}',
],
'RoleList' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Role' => [
'description' => '角色列表。',
'type' => 'array',
'items' => [
'description' => '角色名称。',
'type' => 'string',
'example' => 'testrole',
],
],
],
],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"ResourceGroupItems\\": {\\n \\"ResourceGroupItem\\": [\\n {\\n \\"ResourceGroupName\\": \\"testgroup\\",\\n \\"ResourceGroupConfig\\": \\"{\\\\\\"CpuRateLimit\\\\\\":10,\\\\\\"MemoryLimit\\\\\\":12,\\\\\\"MemorySharedQuota\\\\\\":20,\\\\\\"MemorySpillRatio\\\\\\":75,\\\\\\"Concurrency\\\\\\":3}\\",\\n \\"RoleList\\": {\\n \\"Role\\": [\\n \\"testrole\\"\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '获取资源组详情',
],
'BindDBResourceGroupWithRole' => [
'summary' => '将资源组与数据库角色进行绑定。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbGDXMO2',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'ResourceGroupName',
'in' => 'query',
'schema' => [
'description' => '资源组名称。',
'type' => 'string',
'required' => true,
'example' => 'testgroup',
],
],
[
'name' => 'RoleList',
'in' => 'query',
'style' => 'simple',
'schema' => [
'description' => '角色列表。',
'type' => 'array',
'items' => [
'description' => '角色名称。',
'type' => 'string',
'required' => false,
'example' => 'testrole',
],
'required' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '将资源组与数据库角色进行绑定',
],
'UnbindDBResourceGroupWithRole' => [
'summary' => '将资源组与数据库角色解绑。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '203853',
'abilityTreeNodes' => [
'FEATUREgpdbGDXMO2',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'ResourceGroupName',
'in' => 'query',
'schema' => [
'description' => '资源组名称。',
'type' => 'string',
'required' => true,
'example' => 'testgroup',
],
],
[
'name' => 'RoleList',
'in' => 'query',
'style' => 'simple',
'schema' => [
'description' => '角色列表。',
'type' => 'array',
'items' => [
'description' => '角色名称。',
'type' => 'string',
'required' => false,
'example' => 'testrole',
],
'required' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '将资源组与数据库角色解绑',
],
'DescribeDBResourceManagementMode' => [
'summary' => '获取实例资源管理模式。',
'methods' => [
'get',
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '197975',
'abilityTreeNodes' => [
'FEATUREgpdbGDXMO2',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'ResourceManagementMode' => [
'description' => '资源管理模式。取值:'."\n"
.'- resourceGroup:资源组'."\n"
.'- resourceQueue:资源队列',
'type' => 'string',
'example' => 'resourceGroup',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"ResourceManagementMode\\": \\"resourceGroup\\"\\n}","type":"json"}]',
'title' => '获取实例资源管理模式',
],
'ModifyMasterSpec' => [
'summary' => '修改master规格。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '170157',
'abilityTreeNodes' => [
'FEATUREgpdbY9VVTW',
],
],
'parameters' => [
[
'name' => 'ResourceGroupId',
'in' => 'query',
'schema' => [
'description' => '实例当前所属的资源组ID。如何获取资源组ID,请参见[查看资源组基本信息](~~151181~~)。',
'type' => 'string',
'required' => false,
'example' => 'rg-bp67acfmxazb4p****',
],
],
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'DBInstanceDescription',
'in' => 'query',
'schema' => [
'description' => '实例描述。',
'type' => 'string',
'required' => false,
'example' => 'test',
],
],
[
'name' => 'MasterCU',
'in' => 'query',
'schema' => [
'description' => 'Master资源,取值如下: '."\n"
.'- 2 CU '."\n"
.'- 4 CU '."\n"
.'- 8 CU '."\n"
.'- 16 CU '."\n"
.'- 32 CU '."\n"
.'> 8CU以上的master资源会产生费用。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '8 CU',
],
],
[
'name' => 'MasterAISpec',
'in' => 'query',
'schema' => [
'description' => '如果您需要将Master节点变更为MasterAI节点,请指定该参数。'."\n"
."\n"
.'> - 该参数与MasterCU不能同时指定。'."\n"
.'>- 仅部分地域和可用区均支持将Master节点变更为MasterAI节点。'."\n"
.'>- 仅AnalyticDB PostgreSQL 7.0版的基础版实例支持MasterAI节点。'."\n"
.'>- 您可以在Master节点变配的售卖页面上查询该参数的所有可能取值。',
'type' => 'string',
'required' => false,
'example' => 'ADB.AIMedium.2',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'ErrorMessage' => [
'description' => '错误信息。'."\n"
."\n"
.'只会在API执行失败时返回该参数。',
'type' => 'string',
'example' => '******',
],
'DbInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
.'- **false**:执行失败。'."\n"
.'- **true**:执行成功。',
'type' => 'boolean',
'example' => 'true',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"ErrorMessage\\": \\"******\\",\\n \\"DbInstanceId\\": \\"gp-bp12ga6v69h86****\\",\\n \\"Status\\": true\\n}","type":"json"}]',
'title' => '变更master资源',
'description' => '本接口不支持变更存储预留模式实例。'."\n"
."\n"
.'请确保在使用该接口前,已充分了解AnalyticDB PostgreSQL版产品的[收费方式](~~35406~~)和[价格](https://www.aliyun.com/price/product#/gpdb/detail/GreenplumPost)[价格](https://www.alibabacloud.com/zh/product/hybriddb-postgresql/pricing)。',
],
'DescribeSQLLogs' => [
'summary' => '查询SQL执行记录。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL版实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxx',
],
],
[
'name' => 'QueryKeywords',
'in' => 'query',
'schema' => [
'description' => 'SQL关键字。',
'type' => 'string',
'required' => false,
'example' => 'select 1',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间。格式为YYYY-MM-DDThh:mmZ(UTC时间)。',
'type' => 'string',
'required' => true,
'example' => '2021-03-10T06:30Z',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => false,
'example' => 'adbpgadmin',
],
],
[
'name' => 'User',
'in' => 'query',
'schema' => [
'description' => '用户名。',
'type' => 'string',
'required' => false,
'example' => 'testadmin',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间。格式为YYYY-MM-DDThh:mmZ(UTC时间)。'."\n"
."\n"
.'> 查询结束时间需晚于开始时间,且开始时间和结束时间的时间间隔不能超过七天。',
'type' => 'string',
'required' => true,
'example' => '2021-03-17T06:30Z',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'maximum' => '200',
'minimum' => '0',
'example' => '30',
'default' => '10',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过Integer的最大值,默认值:1。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'maximum' => '2147483647',
'minimum' => '1',
'example' => '1',
'default' => '1',
],
],
[
'name' => 'ExecuteCost',
'in' => 'query',
'schema' => [
'description' => '执行耗时,单位为秒(s)。',
'type' => 'string',
'required' => false,
'example' => '1',
],
],
[
'name' => 'SourceIP',
'in' => 'query',
'schema' => [
'description' => '来源IP。',
'type' => 'string',
'required' => false,
'example' => '100.**.**.90',
],
],
[
'name' => 'ExecuteState',
'in' => 'query',
'schema' => [
'description' => '执行状态。取值如下:'."\n"
."\n"
.'- **1**:成功。'."\n"
.'- **0**:失败。',
'type' => 'string',
'required' => false,
'example' => '1',
],
],
[
'name' => 'OperationClass',
'in' => 'query',
'schema' => [
'description' => '操作类别,取值如下:'."\n"
."\n"
.'- **DQL**'."\n"
.'- **DML**'."\n"
.'- **DDL**'."\n"
.'- **DCL**'."\n"
.'- **TCL**',
'type' => 'string',
'required' => false,
'example' => 'DQL',
],
],
[
'name' => 'OperationType',
'in' => 'query',
'schema' => [
'description' => '执行SQL的类型。'."\n"
."\n"
.'>- 如果设置了**OperationClass**参数,则**OperationType**的值必须属于对应的语言类型。例如**OperationClass**的值为**DQL**,则**OperationType**的值必须为**DQL**类型的SQL,例如**SELECT**。'."\n"
.'- 如果没有设置**OperationClass**参数,则**OperationType**的值可以是任意类型SQL。'."\n"
.'- 如果没有设置**OperationClass**参数也没有设置**OperationType**参数,则表示返回所有类型SQL。',
'type' => 'string',
'required' => false,
'example' => 'SELECT',
],
],
[
'name' => 'MaxExecuteCost',
'in' => 'query',
'schema' => [
'description' => '慢SQL最大耗时,取值需大于等于0,单位为秒(s)。',
'type' => 'string',
'required' => false,
'example' => '1000',
],
],
[
'name' => 'MinExecuteCost',
'in' => 'query',
'schema' => [
'description' => '慢SQL最小耗时,取值需大于等于0,单位为秒(s)。',
'type' => 'string',
'required' => false,
'example' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'PageRecordCount' => [
'description' => '每页包含的记录个数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'A7941C94-B92F-46A0-BD3E-2D**********',
],
'PageNumber' => [
'description' => '查询结果页数。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'Items' => [
'description' => '结果列表。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'OperationClass' => [
'description' => '操作类别。',
'type' => 'string',
'example' => 'DQL',
],
'ExecuteState' => [
'description' => '执行状态。'."\n"
."\n"
.'- **success**:成功'."\n"
.'- **fail**:失败',
'type' => 'string',
'example' => 'success',
],
'ExecuteCost' => [
'description' => '执行耗时。',
'type' => 'number',
'format' => 'float',
'example' => '2',
],
'SQLText' => [
'description' => 'SQL语句内容。',
'type' => 'string',
'example' => 'select 1',
],
'SourcePort' => [
'description' => '来源端口。',
'type' => 'integer',
'format' => 'int32',
'example' => '50514',
],
'DBRole' => [
'description' => '数据库角色。',
'type' => 'string',
'example' => 'master',
],
'OperationType' => [
'description' => '执行SQL的类型。',
'type' => 'string',
'example' => 'SELECT',
],
'SourceIP' => [
'description' => '来源IP。',
'type' => 'string',
'example' => '100.**.**.90',
],
'SQLPlan' => [
'description' => 'SQL执行计划。',
'type' => 'string',
'example' => '""',
],
'ReturnRowCounts' => [
'description' => '执行结果返回的行数。',
'type' => 'integer',
'format' => 'int64',
'example' => '1',
],
'DBName' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'adbpgadmin',
],
'OperationExecuteTime' => [
'description' => '执行时间。',
'type' => 'string',
'example' => '2021-03-15T17:02:32Z',
],
'ScanRowCounts' => [
'description' => '扫描行数。',
'type' => 'integer',
'format' => 'int64',
'example' => '1',
],
'AccountName' => [
'description' => '执行SQL的数据库账号。',
'type' => 'string',
'example' => 'testadmin',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"PageRecordCount\\": 1,\\n \\"RequestId\\": \\"A7941C94-B92F-46A0-BD3E-2D**********\\",\\n \\"PageNumber\\": 1,\\n \\"Items\\": [\\n {\\n \\"OperationClass\\": \\"DQL\\",\\n \\"ExecuteState\\": \\"success\\",\\n \\"ExecuteCost\\": 2,\\n \\"SQLText\\": \\"select 1\\",\\n \\"SourcePort\\": 50514,\\n \\"DBRole\\": \\"master\\",\\n \\"OperationType\\": \\"SELECT\\",\\n \\"SourceIP\\": \\"100.**.**.90\\",\\n \\"SQLPlan\\": \\"\\\\\\"\\\\\\"\\",\\n \\"ReturnRowCounts\\": 1,\\n \\"DBName\\": \\"adbpgadmin\\",\\n \\"OperationExecuteTime\\": \\"2021-03-15T17:02:32Z\\",\\n \\"ScanRowCounts\\": 1,\\n \\"AccountName\\": \\"testadmin\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n 1\\n A7941C94-B92F-46A0-BD3E-2D**********\\n 1\\n \\n DQL\\n success\\n 2\\n select 1\\n 50514\\n master\\n SELECT\\n 100.**.**.90\\n \\"\\"\\n 1\\n adbpgadmin\\n 2021-03-15T17:02:32Z\\n 1\\n testadmin\\n \\n","errorExample":""}]',
'title' => '获取SQL执行记录',
'description' => '> 该接口已废弃,如需查询SQL执行记录,请参见[DescribeSQLLogsV2](~~453722~~)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'HandleActiveSQLRecord' => [
'summary' => '处理某个或多个活跃查询。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '存储实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp***************',
],
],
[
'name' => 'Pids',
'in' => 'query',
'schema' => [
'description' => '进程ID,即查询的唯一标识。',
'type' => 'string',
'required' => true,
'example' => '"3003925,3003928"',
],
],
[
'name' => 'OperateType',
'in' => 'query',
'schema' => [
'description' => '选择进程ID的操作类型。取值说明:'."\n"
.'- **0**:取消。'."\n"
.'- **1**:终止。'."\n"
.'- **2**:强制终止。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '0',
'enum' => [
'0',
'1',
],
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
."\n"
.'- **false**:执行失败。'."\n"
.'- **true**:执行成功。',
'type' => 'string',
'example' => 'true',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp***************',
],
'Results' => [
'description' => '活跃查询处理结果。',
'type' => 'array',
'items' => [
'description' => '操作详情列表。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => '处理结果状态。'."\n"
.'- **false**:处理失败。'."\n"
.'- **true**:处理成功。',
'type' => 'string',
'example' => 'true',
],
'Pid' => [
'description' => '进程ID,活跃查询SQL的唯一标识。',
'type' => 'string',
'example' => '3003925',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Status\\": \\"true\\",\\n \\"DBInstanceId\\": \\"gp-bp***************\\",\\n \\"Results\\": [\\n {\\n \\"Status\\": \\"true\\",\\n \\"Pid\\": \\"3003925\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => '处理某个活跃查询',
],
'DescribeDBInstanceSupportMaxPerformance' => [
'summary' => '查看实例的最大吞吐。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbUY8DE6',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp***************',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp***************',
],
'Performances' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Performance' => [
'description' => '性能指标对象数组',
'type' => 'array',
'items' => [
'description' => '第N个性能指标对象',
'type' => 'object',
'properties' => [
'Key' => [
'description' => '性能指标名称。',
'type' => 'string',
'example' => 'max_throughput:最大吞吐,max_iops:最大IOPS',
],
'Value' => [
'description' => '指标值',
'type' => 'string',
'example' => '90',
],
'Bottleneck' => [
'description' => '性能瓶颈类型。',
'type' => 'string',
'example' => 'ecs or disk',
],
'Unit' => [
'description' => '性能参数的单位。',
'type' => 'string',
'example' => '最大吞吐:MB/s '."\n"
.'最大IOPS:times/s',
],
],
],
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"DBInstanceId\\": \\"gp-bp***************\\",\\n \\"Performances\\": {\\n \\"Performance\\": [\\n {\\n \\"Key\\": \\"max_throughput:最大吞吐,max_iops:最大IOPS\\",\\n \\"Value\\": \\"90\\",\\n \\"Bottleneck\\": \\"ecs or disk\\",\\n \\"Unit\\": \\"最大吞吐:MB/s \\\\n最大IOPS:times/s\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '查看实例的最大吞吐',
],
'ResetIMVMonitorData' => [
'summary' => '重置IMV统计信息。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp152460513z****',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'testdb',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
."\n"
.'- **false**:执行失败。'."\n"
.'- **true**:执行成功。',
'type' => 'boolean',
'example' => 'true',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Status\\": true\\n}","type":"json"}]',
'title' => '重置IMV统计信息',
],
'DescribeIMVInfos' => [
'summary' => '查询AnalyticDB PostgreSQL版实例的实时物化视图详情。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '189240',
'abilityTreeNodes' => [
'FEATUREgpdbFI8Y7H',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxxx',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'testdb',
],
],
[
'name' => 'MVName',
'in' => 'query',
'schema' => [
'description' => '物化视图名称。',
'type' => 'string',
'required' => false,
'example' => 'public."mv1"',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-xxxxxxxxx',
],
'ImvInfos' => [
'description' => '视图关系信息的对象数组',
'type' => 'array',
'items' => [
'description' => '第N个试图关系信息',
'type' => 'object',
'properties' => [
'MV' => [
'description' => '试图名称。',
'type' => 'string',
'example' => 'public."mv1"',
],
'Base' => [
'description' => '物化视图依赖的表名。',
'type' => 'string',
'example' => '"public."t2"',
],
'DetailInfo' => [
'description' => '描述mv与base 的依赖关系和各个指标的统计值,用于构造血缘关系图数据。',
'type' => 'string',
'example' => '{\\"maintenance_calls\\" : 1, \\"avg_apply_time\\" : 2, \\"avg_calc_rows\\" : 1, \\"avg_calc_time\\" : 11, \\"avg_delta_rows\\" : 1, \\"avg_maintenance_total_time\\" : 14, \\"avg_maintenance_total_time_total\\" : 14, \\"max_apply_time\\" : 2, \\"max_calc_rows\\" : 1, \\"max_calc_time\\" : 11, \\"max_delta_rows\\" : 1, \\"max_maintenance_total_time\\" : 14, \\"max_maintenance_total_time_total\\" : 14, \\"min_apply_time\\" : 2, \\"min_calc_rows\\" : 1, \\"min_calc_time\\" : 11, \\"min_delta_rows\\" : 1, \\"min_maintenance_total_time\\" : 14, \\"min_maintenance_total_time_total\\" : 14, \\"max_outerjoin_apply_time\\" : null, \\"max_outerjoin_calc_rows\\" : null, \\"max_outerjoin_calc_time\\" : null, \\"max_outerjoin_delta_rows\\" : null, \\"avg_outerjoin_apply_time\\" : null, \\"avg_outerjoin_calc_rows\\" : null, \\"avg_outerjoin_calc_time\\" : null, \\"avg_outerjoin_delta_rows\\" : null, \\"min_outerjoin_apply_time\\" : null, \\"min_outerjoin_calc_rows\\" : null, \\"min_outerjoin_calc_time\\" : null, \\"min_outerjoin_delta_rows\\" : null, \\"create_rows\\" : null, \\"create_time\\" : null, \\"direct_visited\\" : null, \\"indirect_visited\\" : null, \\"max_refresh_rows\\" : null, \\"max_refresh_time\\" : null, \\"avg_refresh_rows\\" : null, \\"avg_refresh_time\\" : null, \\"min_refresh_rows\\" : null, \\"min_refresh_time\\" : null, \\"refresh_calls\\" : null, \\"avg_wait_lock_time\\" : null, \\"max_wait_lock_time\\" : null, \\"min_wait_lock_time\\" : null, \\"latest_maintenance_time\\" : \\"2023-08-09T07:39:14.753252+00:00\\"}',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"DBInstanceId\\": \\"gp-xxxxxxxxx\\",\\n \\"ImvInfos\\": [\\n {\\n \\"MV\\": \\"public.\\\\\\"mv1\\\\\\"\\",\\n \\"Base\\": \\"\\\\\\"public.\\\\\\"t2\\\\\\"\\",\\n \\"DetailInfo\\": \\"{\\\\\\\\\\\\\\"maintenance_calls\\\\\\\\\\\\\\" : 1, \\\\\\\\\\\\\\"avg_apply_time\\\\\\\\\\\\\\" : 2, \\\\\\\\\\\\\\"avg_calc_rows\\\\\\\\\\\\\\" : 1, \\\\\\\\\\\\\\"avg_calc_time\\\\\\\\\\\\\\" : 11, \\\\\\\\\\\\\\"avg_delta_rows\\\\\\\\\\\\\\" : 1, \\\\\\\\\\\\\\"avg_maintenance_total_time\\\\\\\\\\\\\\" : 14, \\\\\\\\\\\\\\"avg_maintenance_total_time_total\\\\\\\\\\\\\\" : 14, \\\\\\\\\\\\\\"max_apply_time\\\\\\\\\\\\\\" : 2, \\\\\\\\\\\\\\"max_calc_rows\\\\\\\\\\\\\\" : 1, \\\\\\\\\\\\\\"max_calc_time\\\\\\\\\\\\\\" : 11, \\\\\\\\\\\\\\"max_delta_rows\\\\\\\\\\\\\\" : 1, \\\\\\\\\\\\\\"max_maintenance_total_time\\\\\\\\\\\\\\" : 14, \\\\\\\\\\\\\\"max_maintenance_total_time_total\\\\\\\\\\\\\\" : 14, \\\\\\\\\\\\\\"min_apply_time\\\\\\\\\\\\\\" : 2, \\\\\\\\\\\\\\"min_calc_rows\\\\\\\\\\\\\\" : 1, \\\\\\\\\\\\\\"min_calc_time\\\\\\\\\\\\\\" : 11, \\\\\\\\\\\\\\"min_delta_rows\\\\\\\\\\\\\\" : 1, \\\\\\\\\\\\\\"min_maintenance_total_time\\\\\\\\\\\\\\" : 14, \\\\\\\\\\\\\\"min_maintenance_total_time_total\\\\\\\\\\\\\\" : 14, \\\\\\\\\\\\\\"max_outerjoin_apply_time\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"max_outerjoin_calc_rows\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"max_outerjoin_calc_time\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"max_outerjoin_delta_rows\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"avg_outerjoin_apply_time\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"avg_outerjoin_calc_rows\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"avg_outerjoin_calc_time\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"avg_outerjoin_delta_rows\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"min_outerjoin_apply_time\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"min_outerjoin_calc_rows\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"min_outerjoin_calc_time\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"min_outerjoin_delta_rows\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"create_rows\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"create_time\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"direct_visited\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"indirect_visited\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"max_refresh_rows\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"max_refresh_time\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"avg_refresh_rows\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"avg_refresh_time\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"min_refresh_rows\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"min_refresh_time\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"refresh_calls\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"avg_wait_lock_time\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"max_wait_lock_time\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"min_wait_lock_time\\\\\\\\\\\\\\" : null, \\\\\\\\\\\\\\"latest_maintenance_time\\\\\\\\\\\\\\" : \\\\\\\\\\\\\\"2023-08-09T07:39:14.753252+00:00\\\\\\\\\\\\\\"}\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => '查询实时物化视图详情',
],
'DescribeActiveSQLRecords' => [
'summary' => '查询活跃SQL记录。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名,默认为所有数据库。',
'type' => 'string',
'required' => false,
'example' => 'testdb',
],
],
[
'name' => 'User',
'in' => 'query',
'schema' => [
'description' => '用户名。',
'type' => 'string',
'required' => false,
'example' => 'testuser',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始日期,格式:`yyyy-MM-ddTHH:mm:ssZ`。',
'type' => 'string',
'required' => false,
'example' => '2021-08-03T09:30Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,格式如:yyyy-MM-ddTHH:mm:ssZ,且大于查询开始时间。',
'type' => 'string',
'required' => false,
'example' => '2022-05-07T07:59Z',
],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => [
'description' => '查询关键字。',
'type' => 'string',
'required' => false,
'example' => 'SELECT',
],
],
[
'name' => 'MinDuration',
'in' => 'query',
'schema' => [
'description' => '大于某个时间跨度范围,单位为秒(s)。例如,100表示大于100秒的数据。',
'type' => 'string',
'required' => false,
'example' => '300',
],
],
[
'name' => 'MaxDuration',
'in' => 'query',
'schema' => [
'description' => '小于某个时间跨度范围,单位为秒(s)。',
'type' => 'string',
'required' => false,
'example' => '600',
],
],
[
'name' => 'Order',
'in' => 'query',
'schema' => [
'description' => '排序字段和排序方式。'."\n"
."\n"
.'默认为`{"Field":"StartTime","Type":"Desc"}`,表示按开始时间进行排序。暂不支持其他排序字段和排序方式。',
'type' => 'string',
'required' => false,
'example' => '{"Field":"StartTime","Type":"Desc"}',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '描述。',
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp12ga6v69h86****',
],
'Queries' => [
'description' => '详情。',
'type' => 'array',
'items' => [
'description' => '详情。',
'type' => 'object',
'properties' => [
'PID' => [
'description' => '进程ID。',
'type' => 'string',
'example' => '6164',
],
'SessionID' => [
'description' => '查询所属的会话ID。',
'type' => 'string',
'example' => '6612',
],
'State' => [
'description' => '异步请求的执行状态。取值说明:'."\n"
.'- **running**:运行中。'."\n"
.'- **block**:阻塞中。',
'type' => 'string',
'example' => 'running',
],
'QueryStart' => [
'description' => '查询起始时间。',
'type' => 'string',
'example' => '2022-05-07T06:59Z',
],
'QueryDuration' => [
'description' => '查询运行时间。单位为秒(s)。',
'type' => 'string',
'example' => '60',
],
'Query' => [
'description' => '查询对应的SQL文本。',
'type' => 'string',
'example' => 'Select * from t1,t2 where t1.id=t2.id;',
],
'User' => [
'description' => '用户名。',
'type' => 'string',
'example' => 'testuser',
],
'Database' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'xg_analyse',
],
'ClientAddr' => [
'description' => '客户端地址。',
'type' => 'string',
'example' => '0.0.0.0',
],
'SqlTruncated' => [
'description' => 'SQL语句是否截断。取值说明:'."\n"
.'- true:是。'."\n"
.'- false:否。',
'type' => 'string',
'example' => 'false',
],
'SqlTruncatedThreshold' => [
'description' => 'SQL语句截断阈值。',
'type' => 'string',
'example' => '1024',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"DBInstanceId\\": \\"gp-bp12ga6v69h86****\\",\\n \\"Queries\\": [\\n {\\n \\"PID\\": \\"6164\\",\\n \\"SessionID\\": \\"6612\\",\\n \\"State\\": \\"running\\",\\n \\"QueryStart\\": \\"2022-05-07T06:59Z\\",\\n \\"QueryDuration\\": \\"60\\",\\n \\"Query\\": \\"Select * from t1,t2 where t1.id=t2.id;\\",\\n \\"User\\": \\"testuser\\",\\n \\"Database\\": \\"xg_analyse\\",\\n \\"ClientAddr\\": \\"0.0.0.0\\",\\n \\"SqlTruncated\\": \\"false\\",\\n \\"SqlTruncatedThreshold\\": \\"1024\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => '查询活跃SQL记录',
],
'ModifyDBInstancePayType' => [
'summary' => '包年包月/按量付费转换改造。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '230786',
'abilityTreeNodes' => [
'FEATUREgpdbDS97MX',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp***************'."\n",
],
],
[
'name' => 'PayType',
'in' => 'query',
'schema' => [
'description' => '计费类型,取值如下:'."\n"
."\n"
.'- Postpaid:按量付费。'."\n"
."\n"
.'- Prepaid:包年包月。',
'type' => 'string',
'required' => true,
'example' => 'Postpaid',
'enum' => [
'Postpaid',
'Prepaid',
],
],
],
[
'name' => 'Period',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => [
'description' => '购买资源的时长单位。取值如下:'."\n"
."\n"
.'- Month:月'."\n"
."\n"
.'- Year:年'."\n"
."\n"
.'只有包年包月需要指定。',
'type' => 'string',
'required' => false,
'example' => 'Month',
'enum' => [
'Month',
'Year',
],
],
],
[
'name' => 'UsedTime',
'in' => 'query',
'schema' => [
'description' => '购买资源的时长。取值如下:'."\n"
."\n"
.'- 当 Period 为 Month 时,取值为 1~9。'."\n"
."\n"
.'- 当 Period 为 Year 时,取值为 1~3。'."\n"
."\n"
.'只有包年包月需要指定。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => 'Id of the request',
'type' => 'string',
'example' => '7565770E-7C45-462D-BA4A-8A5396F2****',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-bp***************'."\n",
],
'OrderId' => [
'description' => '订单ID。',
'type' => 'string',
'example' => '22719089834****',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7565770E-7C45-462D-BA4A-8A5396F2****\\",\\n \\"DBInstanceId\\": \\"gp-bp***************\\\\n\\",\\n \\"OrderId\\": \\"22719089834****\\"\\n}","type":"json"}]',
'title' => 'ModifyDBInstancePayType',
],
'ModifyDBInstanceNetworkType' => [
'summary' => '切换实例的网络类型。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbFBNS5O',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'InstanceNetworkType',
'in' => 'query',
'schema' => [
'description' => '指定网络类型:'."\n"
.'- VPC:专有网络类型'."\n"
.'- Classic:经典网络类型',
'type' => 'string',
'required' => true,
'example' => 'VPC',
],
],
[
'name' => 'VPCId',
'in' => 'query',
'schema' => [
'description' => 'VPC ID。',
'type' => 'string',
'required' => false,
'example' => 'vpc-bp19ame5m1r3oejns****',
],
],
[
'name' => 'VSwitchId',
'in' => 'query',
'schema' => [
'description' => 'vSwitch ID,若传入VPC ID的值,则该参数必传。',
'type' => 'string',
'required' => false,
'example' => 'vsw-bp1cpq8mr64paltkb****',
],
],
[
'name' => 'PrivateIpAddress',
'in' => 'query',
'schema' => [
'description' => '内网IP地址。',
'type' => 'string',
'required' => false,
'example' => '10.10.XX.XX',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '2d0c35a9-f5da-44ba-852d-741e27b7eb0b',
],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"2d0c35a9-f5da-44ba-852d-741e27b7eb0b\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 2d0c35a9-f5da-44ba-852d-741e27b7eb0b\\n","errorExample":""}]',
'title' => '切换实例网络类型',
'description' => '## 使用说明'."\n"
.'本接口仅支持修改存储预留模式的AnalyticDB PostgreSQL版实例的网络类型。'."\n"
."\n"
.'## QPS限制'."\n"
.'本接口的单用户QPS限制默认为1000次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。'."\n"
."\n"
.'本文档中的QPS仅为默认参考值,准确信息请参见[API速率配额列表](https://quotas.console.aliyun.com/flow-control-products/gpdb/quotas)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DeleteRemoteADBDataSource' => [
'summary' => '删除同构数据源',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbU7YAV1',
],
],
'parameters' => [
[
'name' => 'LocalDBInstanceId',
'in' => 'query',
'schema' => [
'description' => '本地使用数据的实例 ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-test',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => 'service id。',
'type' => 'string',
'required' => true,
'example' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'e9d60eb1-e90d-4bc6-a470-c8b767460858',
],
'TaskId' => [
'description' => '工作流 taskId。',
'type' => 'integer',
'format' => 'int32',
'example' => '90000',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"e9d60eb1-e90d-4bc6-a470-c8b767460858\\",\\n \\"TaskId\\": 90000\\n}","type":"json"}]',
'title' => '删除同构数据源',
],
'CreateRemoteADBDataSource' => [
'summary' => '创建同构数据源',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbJAU1J9',
],
],
'parameters' => [
[
'name' => 'LocalDBInstanceId',
'in' => 'query',
'schema' => [
'description' => '使用数据的实例Id(必选)。',
'type' => 'string',
'required' => true,
'example' => 'gp-test1',
],
],
[
'name' => 'LocalDatabase',
'in' => 'query',
'schema' => [
'description' => '使用数据的数据库名(必选)',
'type' => 'string',
'required' => true,
'example' => 'db1',
],
],
[
'name' => 'RemoteDBInstanceId',
'in' => 'query',
'schema' => [
'description' => '提供数据的实例Id(必选)。',
'type' => 'string',
'required' => true,
'example' => 'gp-test2',
],
],
[
'name' => 'RemoteDatabase',
'in' => 'query',
'schema' => [
'description' => '提供数据的数据库名(必选)。',
'type' => 'string',
'required' => true,
'example' => 'db2',
],
],
[
'name' => 'UserName',
'in' => 'query',
'schema' => [
'description' => '用户映射时使用的提供数据实例账号名(必选)。',
'type' => 'string',
'required' => true,
'example' => 'account1',
],
],
[
'name' => 'UserPassword',
'in' => 'query',
'schema' => [
'description' => '用户映射时使用的提供数据实例账号密码。',
'type' => 'string',
'required' => true,
'example' => 'password1',
],
],
[
'name' => 'ManagerUserName',
'in' => 'query',
'schema' => [
'description' => '使用数据实例的管理账号。',
'type' => 'string',
'required' => true,
'example' => 'managerAccount',
],
],
[
'name' => 'ManagerUserPassword',
'in' => 'query',
'schema' => [
'description' => '使用数据实例的管理账号密码。',
'type' => 'string',
'required' => true,
'example' => 'password2',
],
],
[
'name' => 'DataSourceName',
'in' => 'query',
'schema' => [
'description' => '客户指定的 DataSourceName。',
'type' => 'string',
'required' => false,
'example' => 'test',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'DataSourceItem' => [
'description' => '将添加成功的数据共享服务数据返回。',
'type' => 'object',
'properties' => [
'DataSourceName' => [
'description' => '数据源名称。',
'type' => 'string',
'example' => 'db1_gptest1_to_db2_gp-test2',
],
'Description' => [
'description' => '描述信息。',
'type' => 'string',
'example' => 'userName',
],
'Id' => [
'description' => 'Id',
'type' => 'integer',
'format' => 'int64',
'example' => '1',
],
'LocalDatabase' => [
'description' => '本地数据库名',
'type' => 'string',
'example' => 'db1',
],
'LocalInstanceName' => [
'description' => '本地实例名',
'type' => 'string',
'example' => 'gp-test1',
],
'ManagerUserName' => [
'description' => '管理账号用户名',
'type' => 'string',
'example' => 'manager_user',
],
'RegionId' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'example' => 'cn-beijing',
],
'RemoteDatabase' => [
'description' => '远端数据库名',
'type' => 'string',
'example' => 'db2',
],
'RemoteInstanceName' => [
'description' => '远端实例名',
'type' => 'string',
'example' => 'gp-test2',
],
'Status' => [
'description' => '同步状态',
'type' => 'string',
'example' => 'creating',
],
'UserName' => [
'description' => '用户名',
'type' => 'string',
'example' => 'user1',
],
],
],
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'e9d60eb1-e90d-4bc6-a470-c8b767460858',
],
'TaskId' => [
'description' => '工作流 taskId。',
'type' => 'integer',
'format' => 'int32',
'example' => '90000',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DataSourceItem\\": {\\n \\"DataSourceName\\": \\"db1_gptest1_to_db2_gp-test2\\",\\n \\"Description\\": \\"userName\\",\\n \\"Id\\": 1,\\n \\"LocalDatabase\\": \\"db1\\",\\n \\"LocalInstanceName\\": \\"gp-test1\\",\\n \\"ManagerUserName\\": \\"manager_user\\",\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"RemoteDatabase\\": \\"db2\\",\\n \\"RemoteInstanceName\\": \\"gp-test2\\",\\n \\"Status\\": \\"creating\\",\\n \\"UserName\\": \\"user1\\"\\n },\\n \\"RequestId\\": \\"e9d60eb1-e90d-4bc6-a470-c8b767460858\\",\\n \\"TaskId\\": 90000\\n}","type":"json"}]',
'title' => '创建同构数据源',
],
'ListRemoteADBDataSources' => [
'summary' => '获取同构数据源',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbOGW4DR',
'FEATUREgpdbYL5VZY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例名称。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxx',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => '数据源ID。',
'type' => 'string',
'required' => false,
'example' => '119',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'e9d60eb1-e90d-4bc6-a470-c8b767460858',
],
'TaskId' => [
'description' => '任务ID。',
'type' => 'integer',
'format' => 'int32',
'example' => '90000',
],
'DataSourceItems' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'RemoteDataSources' => [
'description' => '将添加成功的数据共享服务数据返回。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Id' => [
'description' => 'ID。',
'type' => 'integer',
'format' => 'int64',
'example' => '1',
],
'DataSourceName' => [
'description' => '数据源名称',
'type' => 'string',
'example' => 'db1_gptest1_to_db2_gp-test2',
],
'LocalInstanceName' => [
'description' => '本地实例名',
'type' => 'string',
'example' => 'gp-test1',
],
'LocalDatabase' => [
'description' => '本地数据库名',
'type' => 'string',
'example' => 'db1',
],
'RemoteInstanceName' => [
'description' => '远端实例名',
'type' => 'string',
'example' => 'gp-test2',
],
'RemoteDatabase' => [
'description' => '远端数据库名',
'type' => 'string',
'example' => 'db2',
],
'UserName' => [
'description' => '用户名',
'type' => 'string',
'example' => 'user1',
],
'ManagerUserName' => [
'description' => '管理账号名',
'type' => 'string',
'example' => 'admin',
],
'Status' => [
'description' => '数据源状态',
'type' => 'string',
'example' => 'creating',
],
'Description' => [
'description' => '描述信息。',
'type' => 'string',
'example' => 'test',
],
'RegionId' => [
'description' => '地域ID。'."\n"
."\n"
.'> 您可以调用[DescribeRegions](~~86912~~)接口查看可用的地域ID。',
'type' => 'string',
'example' => 'cn-beijing',
],
],
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"e9d60eb1-e90d-4bc6-a470-c8b767460858\\",\\n \\"TaskId\\": 90000,\\n \\"DataSourceItems\\": {\\n \\"RemoteDataSources\\": [\\n {\\n \\"Id\\": 1,\\n \\"DataSourceName\\": \\"db1_gptest1_to_db2_gp-test2\\",\\n \\"LocalInstanceName\\": \\"gp-test1\\",\\n \\"LocalDatabase\\": \\"db1\\",\\n \\"RemoteInstanceName\\": \\"gp-test2\\",\\n \\"RemoteDatabase\\": \\"db2\\",\\n \\"UserName\\": \\"user1\\",\\n \\"ManagerUserName\\": \\"admin\\",\\n \\"Status\\": \\"creating\\",\\n \\"Description\\": \\"test\\",\\n \\"RegionId\\": \\"cn-beijing\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => '获取同构数据源列表',
],
'ModifyRemoteADBDataSource' => [
'summary' => '修改同构数据源',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbJAU1J9',
],
],
'parameters' => [
[
'name' => 'LocalDBInstanceId',
'in' => 'query',
'schema' => [
'description' => '本地使用数据的实例 ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-test',
],
],
[
'name' => 'UserName',
'in' => 'query',
'schema' => [
'description' => '新的user name。',
'type' => 'string',
'required' => true,
'example' => 'newUserName',
],
],
[
'name' => 'UserPassword',
'in' => 'query',
'schema' => [
'description' => '新的user password,需进行加密传输。',
'type' => 'string',
'required' => true,
'example' => 'newUserPassword',
],
],
[
'name' => 'DataSourceId',
'in' => 'query',
'schema' => [
'description' => 'service id',
'type' => 'string',
'required' => true,
'example' => '1',
],
],
[
'name' => 'DataSourceName',
'in' => 'query',
'schema' => [
'description' => '指定的dataSourceName。',
'type' => 'string',
'required' => false,
'example' => 'test',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'e9d60eb1-e90d-4bc6-a470-c8b767460858',
],
'TaskId' => [
'description' => '任务ID。',
'type' => 'integer',
'format' => 'int32',
'example' => '90000',
],
'DataSourceItem' => [
'description' => '将修改成功的数据共享服务数据返回。',
'type' => 'object',
'properties' => [
'Id' => [
'description' => 'ID',
'type' => 'integer',
'format' => 'int64',
'example' => '1',
],
'DataSourceName' => [
'description' => '数据源名称。',
'type' => 'string',
'example' => 'db1_gptest1_to_db2_gp-test2',
],
'LocalInstanceName' => [
'description' => '本地实例名',
'type' => 'string',
'example' => 'gp-test1',
],
'LocalDatabase' => [
'description' => '本地数据库名',
'type' => 'string',
'example' => 'db1',
],
'RemoteInstanceName' => [
'description' => '远端实例名',
'type' => 'string',
'example' => 'gp-test2',
],
'RemoteDatabase' => [
'description' => '远端数据库名',
'type' => 'string',
'example' => 'db2',
],
'UserName' => [
'description' => '用户名',
'type' => 'string',
'example' => 'user1',
],
'ManagerUserName' => [
'description' => '管理账号名',
'type' => 'string',
'example' => 'test',
],
'Status' => [
'description' => '数据源状态',
'type' => 'string',
'example' => 'creating',
],
'Description' => [
'description' => '描述信息。',
'type' => 'string',
'example' => 'test',
],
'RegionId' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'example' => 'cn-beijing',
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"e9d60eb1-e90d-4bc6-a470-c8b767460858\\",\\n \\"TaskId\\": 90000,\\n \\"DataSourceItem\\": {\\n \\"Id\\": 1,\\n \\"DataSourceName\\": \\"db1_gptest1_to_db2_gp-test2\\",\\n \\"LocalInstanceName\\": \\"gp-test1\\",\\n \\"LocalDatabase\\": \\"db1\\",\\n \\"RemoteInstanceName\\": \\"gp-test2\\",\\n \\"RemoteDatabase\\": \\"db2\\",\\n \\"UserName\\": \\"user1\\",\\n \\"ManagerUserName\\": \\"test\\",\\n \\"Status\\": \\"creating\\",\\n \\"Description\\": \\"test\\",\\n \\"RegionId\\": \\"cn-beijing\\"\\n }\\n}","type":"json"}]',
'title' => '修改同构数据源',
],
'GetStatementResult' => [
'summary' => '获取异步SQL执行结果。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '225498',
'abilityTreeNodes' => [
'FEATUREgpdb95T353',
],
'autoTest' => false,
'notSupportAutoTestReason' => '数据类API,自动化测试中,无法通过RAM验证(POP仅会返回200)',
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。可调用DescribeDBInstances获取。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => true,
'example' => 'cn-beijing',
],
],
[
'name' => 'SecretArn',
'in' => 'query',
'schema' => [
'description' => '访问凭证。通过CreateSecret接口创建。'."\n"
."\n"
.'> 通过子账号访问此接口时,需要有对此SecretArn的UseSecret或GetSecretValue的权限。',
'type' => 'string',
'required' => true,
'example' => 'acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ',
],
],
[
'name' => 'Database',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => false,
'example' => 'test',
],
],
[
'name' => 'Id',
'in' => 'query',
'schema' => [
'description' => '异步SQL时的任务ID。',
'type' => 'string',
'required' => true,
'example' => '9A920F47-416A-4044-817C-7C2A72AD16D3',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Message' => [
'description' => '返回信息。',
'type' => 'string',
'example' => 'success',
],
'Status' => [
'description' => 'API执行状态,取值如下:'."\n"
."\n"
.'- **false**:执行失败。'."\n"
.'- **true**:执行成功。',
'type' => 'string',
'example' => 'success',
],
'Data' => [
'description' => '异步调用的返回结果。',
'type' => 'object',
'properties' => [
'Records' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Records' => [
'description' => '多行数据。',
'type' => 'array',
'items' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Record' => [
'description' => '单行数据。',
'type' => 'array',
'items' => [
'description' => '单个数据。',
'$ref' => '#/components/schemas/Field',
],
],
],
],
],
],
],
'ColumnMetadata' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ColumnMetadata' => [
'description' => '列元数据列表。',
'type' => 'array',
'items' => [
'description' => '列元数据。',
'$ref' => '#/components/schemas/ColumnMetadata',
],
],
],
],
'TotalNumRows' => [
'description' => '总共条目。',
'type' => 'integer',
'format' => 'int64',
'example' => '10',
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Message\\": \\"success\\",\\n \\"Status\\": \\"success\\",\\n \\"Data\\": {\\n \\"Records\\": {\\n \\"Records\\": [\\n {\\n \\"Record\\": [\\n {\\n \\"BlobValue\\": \\"\\",\\n \\"BooleanValue\\": true,\\n \\"DoubleValue\\": 0,\\n \\"IsNull\\": true,\\n \\"LongValue\\": 0,\\n \\"StringValue\\": \\"\\"\\n }\\n ]\\n }\\n ]\\n },\\n \\"ColumnMetadata\\": {\\n \\"ColumnMetadata\\": [\\n {\\n \\"Name\\": \\"\\",\\n \\"DataType\\": \\"\\",\\n \\"ColumnDefault\\": \\"\\",\\n \\"MaxLength\\": 0,\\n \\"Nullable\\": true,\\n \\"SchemaName\\": \\"\\",\\n \\"TableName\\": \\"\\",\\n \\"IsCaseSensitive\\": true,\\n \\"IsCurrency\\": true,\\n \\"IsSigned\\": true,\\n \\"Precision\\": 0,\\n \\"Scale\\": 0,\\n \\"IsPrimaryKey\\": true,\\n \\"Comment\\": \\"\\",\\n \\"UdtName\\": \\"\\"\\n }\\n ]\\n },\\n \\"TotalNumRows\\": 10\\n }\\n}","type":"json"}]',
'title' => '获取异步SQL执行结果',
],
'CreateDatabase' => [
'summary' => '创建数据库。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '239720',
'abilityTreeNodes' => [
'FEATUREgpdbQ0N7UN',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'DatabaseName',
'in' => 'query',
'schema' => [
'description' => '数据库名称,限制如下:'."\n"
.'- 只能包含字母,数字和下划线。'."\n"
.'- 必须以字母开头。'."\n"
.'- 长度不能超过63个字符.',
'type' => 'string',
'required' => true,
'example' => 'test01',
],
],
[
'name' => 'CharacterSetName',
'in' => 'query',
'schema' => [
'description' => '字符集。'."\n"
."\n"
.'取值范围可以参考文档 [https://www.postgresql.org/docs/current/multibyte.html](url)'."\n"
."\n"
.'默认为 UTF8。',
'type' => 'string',
'required' => false,
'example' => 'UTF8',
],
],
[
'name' => 'Collate',
'in' => 'query',
'schema' => [
'description' => '数据库区域设置参数,指定字符串比较/排序规则。'."\n"
.'>'."\n"
.'> - 语言环境必须与 CharacterSetName 参数设置的字符集兼容。'."\n"
.'> - Collate 取值:可通过SELECT DISTINCT collname FROM pg_collation; 命令查询获取,不配置时默认为 en_US.utf8。',
'type' => 'string',
'required' => false,
'example' => 'en_US.utf8',
],
],
[
'name' => 'Ctype',
'in' => 'query',
'schema' => [
'description' => '数据库区域设置参数,指定字符分类/大小写转换规则。'."\n"
.'> '."\n"
.'> - 语言环境必须与 CharacterSetName 参数设置的字符集兼容。'."\n"
.'> - 可通过SELECT DISTINCT collctype FROM pg_collation; 命令查询获取,不配置时默认为 en_US.utf8。',
'type' => 'string',
'required' => false,
'example' => 'en_US.utf8',
],
],
[
'name' => 'Owner',
'in' => 'query',
'schema' => [
'description' => '表的拥有者。'."\n"
."\n"
.'- 由小写字母,数字,下划线组成。'."\n"
."\n"
.'- 以小写字母开头,小写字母或数字结尾。'."\n"
."\n"
.'- 不能以gp 开头。'."\n"
."\n"
.'- 长度为2~16 个字符。',
'type' => 'string',
'required' => true,
'example' => 'testadb',
],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => [
'description' => '数据库描述。'."\n"
."\n"
.'- 以中文、英文字母开头。'."\n"
."\n"
.'- 不能以http://或https://开头。'."\n"
."\n"
.'- 可以包含中文、英文字符、“_”、“-”、数字。'."\n"
."\n"
.'- 长度为2~256 个字符。',
'type' => 'string',
'required' => false,
'example' => 'A user management database storing customer profiles.',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\"\\n}","type":"json"}]',
'title' => '创建数据库',
],
'ListSlowSQLRecords' => [
'summary' => '查询慢SQL记录。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'DBName',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => false,
'example' => 'testdb01',
],
],
[
'name' => 'UserName',
'in' => 'query',
'schema' => [
'description' => '数据库用户名。',
'type' => 'string',
'required' => false,
'example' => 'test_user',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间,格式为yyyy-MM-ddTHH:mmZ(UTC时间)。'."\n"
."\n"
.'默认为当前时间 - 5min。',
'type' => 'string',
'required' => false,
'example' => '2024-12-04T16:00:00Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,需要大于查询开始时间,格式为yyy-MM-ddTHH:mmZ(UTC时间)。'."\n"
."\n"
.'默认为当前时间。',
'type' => 'string',
'required' => false,
'example' => '2024-12-04T17:00:00Z',
],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => [
'description' => '查询关键词。',
'type' => 'string',
'required' => false,
'example' => 'SELECT',
],
],
[
'name' => 'MinDuration',
'in' => 'query',
'schema' => [
'description' => '最小执行时长,单位s。',
'type' => 'string',
'required' => false,
'example' => '10',
],
],
[
'name' => 'MaxDuration',
'in' => 'query',
'schema' => [
'description' => '最大执行时长,单位s。',
'type' => 'string',
'required' => false,
'example' => '600',
],
],
[
'name' => 'OrderBy',
'in' => 'query',
'schema' => [
'description' => '排序条件,json串'."\n"
.'{"Field":"QueryStartTime","Type":"Desc"}'."\n"
."\n"
.'Field:待排序条件'."\n"
."\n"
.'- QueryID:查询ID'."\n"
."\n"
.'- UserName:用户名'."\n"
."\n"
.'- DBName:数据库名'."\n"
."\n"
.'- QueryStartTime:开始时间'."\n"
."\n"
.'- QueryEndTime:结束时间'."\n"
."\n"
.'- DurationTime:执行时长'."\n"
."\n"
.'- Optimizer:优化器'."\n"
."\n"
.'- LockWaitTime:锁等待时间'."\n"
."\n"
.'- QueueWaitTime:排队时间'."\n"
."\n"
.'- CpuTimeMs:CPU时间'."\n"
."\n"
.'- MemBytes:内存占用'."\n"
."\n"
.'- SpillBytes:落盘文件大小'."\n"
."\n"
.'Type:排序条件'."\n"
."\n"
.'- Desc:降序'."\n"
."\n"
.'- Asc:升序',
'type' => 'string',
'required' => false,
'example' => '{"Field":"QueryStartTime","Type":"Desc"}',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
.'- **30**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**30**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '30',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码,大于0且不超过100,默认值:1。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'TotalRecordCount' => [
'description' => '总记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '2',
],
'PageNumber' => [
'description' => '页码。',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'PageRecordCount' => [
'description' => '当前页记录数。',
'type' => 'integer',
'format' => 'int32',
'example' => '2',
],
'Items' => [
'description' => '慢查询记录列表。',
'type' => 'array',
'items' => [
'description' => '参数列表。',
'type' => 'object',
'properties' => [
'QueryID' => [
'description' => '查询ID,即查询的唯一标识。',
'type' => 'string',
'example' => '7775338456746339025',
],
'UserName' => [
'description' => '数据库用户名。',
'type' => 'string',
'example' => 'test_user',
],
'DBName' => [
'description' => '数据库名称。',
'type' => 'string',
'example' => 'adbpgadmin',
],
'SqlText' => [
'description' => '审计日志中的sql语句。',
'type' => 'string',
'example' => 'SHOW COLUMNS FROM `t_project`',
],
'QueryStartTime' => [
'description' => '执行开始时间。',
'type' => 'string',
'example' => '2024-12-04T17:00:00Z',
],
'QueryEndTime' => [
'description' => '执行结束时间。',
'type' => 'string',
'example' => '2024-12-04T18:00:00Z',
],
'DurationTime' => [
'description' => '执行总时间(毫秒)。',
'type' => 'integer',
'format' => 'int32',
'example' => '2000',
],
'SqlTruncatedThreshold' => [
'description' => 'SQL语句截断阈值。',
'type' => 'integer',
'format' => 'int32',
'example' => '100',
],
'SqlTruncated' => [
'description' => 'SQL语句是否截断。取值说明:'."\n"
.'- true:是。'."\n"
.'- false:否。',
'type' => 'string',
'example' => 'false',
],
'Optimizer' => [
'description' => '执行优化器。',
'type' => 'string',
'example' => 'planner',
],
'LockWaitTime' => [
'description' => '查询等锁的总时间(毫秒)。',
'type' => 'integer',
'format' => 'int32',
'example' => '1000',
],
'QueueWaitTime' => [
'description' => '查询在资源队列、资源组中排队的时间(毫秒)。',
'type' => 'integer',
'format' => 'int32',
'example' => '1000',
],
'CpuTimeMs' => [
'description' => '查询执行消耗的 CPU 时间的总和(毫秒)。',
'type' => 'integer',
'format' => 'int64',
'example' => '1000',
],
'MemBytes' => [
'description' => '查询执行占用内存的总和(字节)。',
'type' => 'integer',
'format' => 'int64',
'example' => '1000',
],
'SpillBytes' => [
'description' => '查询所产生落盘文件大小的总和(字节)。',
'type' => 'integer',
'format' => 'int64',
'example' => '1000',
],
],
],
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"TotalRecordCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"PageRecordCount\\": 2,\\n \\"Items\\": [\\n {\\n \\"QueryID\\": \\"7775338456746339025\\",\\n \\"UserName\\": \\"test_user\\",\\n \\"DBName\\": \\"adbpgadmin\\",\\n \\"SqlText\\": \\"SHOW COLUMNS FROM `t_project`\\",\\n \\"QueryStartTime\\": \\"2024-12-04T17:00:00Z\\",\\n \\"QueryEndTime\\": \\"2024-12-04T18:00:00Z\\",\\n \\"DurationTime\\": 2000,\\n \\"SqlTruncatedThreshold\\": 100,\\n \\"SqlTruncated\\": \\"false\\",\\n \\"Optimizer\\": \\"planner\\",\\n \\"LockWaitTime\\": 1000,\\n \\"QueueWaitTime\\": 1000,\\n \\"CpuTimeMs\\": 1000,\\n \\"MemBytes\\": 1000,\\n \\"SpillBytes\\": 1000\\n }\\n ]\\n}","type":"json"}]',
'title' => '查询慢SQL记录',
],
'DownloadSlowSQLRecords' => [
'summary' => '下载慢SQL记录。',
'methods' => [
'post',
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREgpdbZKDTVY',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'DBName',
'in' => 'query',
'schema' => [
'description' => '数据库名。',
'type' => 'string',
'required' => false,
'example' => 'testdb01',
],
],
[
'name' => 'UserName',
'in' => 'query',
'schema' => [
'description' => '数据库用户名。',
'type' => 'string',
'required' => false,
'example' => 'test_user',
],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => [
'description' => '查询开始时间,格式为yyyy-MM-ddTHH:mmZ(UTC时间)。'."\n"
."\n"
.'默认为当前时间 - 5min。',
'type' => 'string',
'required' => false,
'example' => '2024-12-04T16:00:00Z',
],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => [
'description' => '查询结束时间,需要大于查询开始时间,格式为yyy-MM-ddTHH:mmZ(UTC时间)。'."\n"
."\n"
.'默认为当前时间。',
'type' => 'string',
'required' => false,
'example' => '2024-12-04T17:00:00Z',
],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => [
'description' => '查询关键字。',
'type' => 'string',
'required' => false,
'example' => 'SELECT',
],
],
[
'name' => 'MinDuration',
'in' => 'query',
'schema' => [
'description' => '最小执行时长,单位s。',
'type' => 'string',
'required' => false,
'example' => '10',
],
],
[
'name' => 'MaxDuration',
'in' => 'query',
'schema' => [
'description' => '最大执行时长,单位s。',
'type' => 'string',
'required' => false,
'example' => '600',
],
],
[
'name' => 'OrderBy',
'in' => 'query',
'schema' => [
'description' => '排序条件。',
'type' => 'string',
'required' => false,
'example' => '{Field: SchemaName, Type: Desc}',
],
],
[
'name' => 'RegionId',
'in' => 'query',
'schema' => [
'description' => '实例所在地域ID。',
'type' => 'string',
'required' => false,
'example' => 'cn-hangzhou',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-xxxxxxxxx',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"DBInstanceId\\": \\"gp-xxxxxxxxx\\"\\n}","type":"json"}]',
'title' => '下载慢SQL记录',
],
'DeleteDatabase' => [
'summary' => '删除实例下的某个数据库。',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '8417',
'abilityTreeNodes' => [
'FEATUREgpdbQ0N7UN',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-bp12ga6v69h86****',
],
],
[
'name' => 'DatabaseName',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'test01',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '07F6177E-6DE4-408A-BB4F-0723301340F3',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"07F6177E-6DE4-408A-BB4F-0723301340F3\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 07F6177E-6DE4-408A-BB4F-0723301340F3\\n","errorExample":""}]',
'title' => '删除数据库',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
],
'DescribeRebalanceStatus' => [
'summary' => '描述一个实例是否处于平衡状态。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '230782',
'abilityTreeNodes' => [
'FEATUREgpdbV5LC5J',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-uf671c65jhszj****',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求ID。',
'type' => 'string',
'example' => '9C6122AD-2FCC-50B3-873A-37B68775****',
],
'Status' => [
'description' => 'Balanced:实例处于平衡状态。'."\n"
.'Imbalanced:实例处于不平衡状态。',
'type' => 'string',
'example' => 'Balanced',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"9C6122AD-2FCC-50B3-873A-37B68775****\\",\\n \\"Status\\": \\"Balanced\\"\\n}","type":"json"}]',
'title' => 'DescribeRebalanceStatus',
],
'DescribeDatabase' => [
'summary' => '描述一个adbpg数据库的基本信息。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '239723',
'abilityTreeNodes' => [
'FEATUREgpdbQ0N7UN',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL版实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'DatabaseName',
'in' => 'query',
'schema' => [
'description' => '数据库名称。',
'type' => 'string',
'required' => true,
'example' => 'test01',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'DBInstanceId' => [
'description' => '实例ID。',
'type' => 'string',
'example' => 'gp-xxxxxxxxx',
],
'DatabaseName' => [
'description' => '数据库名称。'."\n"
."\n"
.'- 只能包含字母,数字和下划线。'."\n"
."\n"
.'- 必须以字母开头。'."\n"
."\n"
.'- 长度不能超过63 个字符。',
'type' => 'string',
'example' => 'test01',
],
'Description' => [
'description' => '数据库备注。',
'type' => 'string',
'example' => 'A user management database storing customer profiles.',
],
'CharacterSetName' => [
'description' => '字符集。'."\n"
."\n"
.'取值范围可以参考文档 https://www.postgresql.org/docs/current/multibyte.html',
'type' => 'string',
'example' => 'UTF8',
],
'Collate' => [
'description' => '数据库区域设置参数,指定字符串比较/排序规则。'."\n"
.'>'."\n"
.'> - 语言环境必须与 CharacterSetName 参数设置的字符集兼容。'."\n"
.'> - Collate 取值:可通过SELECT DISTINCT collname FROM pg_collation; 命令查询获取,不配置时默认为 en_US.utf8。',
'type' => 'string',
'example' => 'en_US.utf8',
],
'Ctype' => [
'description' => '数据库区域设置参数,指定字符分类/大小写转换规则。'."\n"
.'> '."\n"
.'> - 语言环境必须与 CharacterSetName 参数设置的字符集兼容。'."\n"
.'> - 可通过SELECT DISTINCT collctype FROM pg_collation; 命令查询获取,不配置时默认为 en_US.utf8。',
'type' => 'string',
'example' => 'en_US.utf8',
],
'ConnLimit' => [
'description' => '限制并发量,-1 代表未限制。',
'type' => 'string',
'example' => '-1',
],
'TableSpace' => [
'description' => '数据库表空间。',
'type' => 'string',
'example' => 'pg_default',
],
'Size' => [
'description' => '数据库大小。',
'type' => 'string',
'example' => '2000 MB',
],
'AccessPrivilege' => [
'description' => '权限控制信息。',
'type' => 'string',
'example' => '=Tc/test_001\\ntest_001=CTc/test_001',
],
'Owner' => [
'description' => '表的拥有者。'."\n"
."\n"
.'- 由小写字母,数字,下划线组成。'."\n"
."\n"
.'- 以小写字母开头,小写字母或数字结尾。'."\n"
."\n"
.'- 不能以gp 开头。'."\n"
."\n"
.'- 长度为2~16 个字符。',
'type' => 'string',
'example' => 'testadb',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"DBInstanceId\\": \\"gp-xxxxxxxxx\\",\\n \\"DatabaseName\\": \\"test01\\",\\n \\"Description\\": \\"A user management database storing customer profiles.\\",\\n \\"CharacterSetName\\": \\"UTF8\\",\\n \\"Collate\\": \\"en_US.utf8\\",\\n \\"Ctype\\": \\"en_US.utf8\\",\\n \\"ConnLimit\\": \\"-1\\",\\n \\"TableSpace\\": \\"pg_default\\",\\n \\"Size\\": \\"2000 MB\\",\\n \\"AccessPrivilege\\": \\"=Tc/test_001\\\\\\\\ntest_001=CTc/test_001\\",\\n \\"Owner\\": \\"testadb\\"\\n}","type":"json"}]',
'title' => '描述数据库',
],
'ListInstanceDatabases' => [
'summary' => '列举实例下所有的adbpg数据库。',
'methods' => [
'get',
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '244235',
'abilityTreeNodes' => [
'FEATUREgpdbQ0N7UN',
],
],
'parameters' => [
[
'name' => 'DBInstanceId',
'in' => 'query',
'schema' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'required' => true,
'example' => 'gp-xxxxxxxxx',
],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => [
'description' => '每页记录数,取值说明:'."\n"
."\n"
.'- **20**'."\n"
.'- **50**'."\n"
.'- **100**'."\n"
."\n"
.'默认值:**20**。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '30',
],
],
[
'name' => 'PageNumber',
'in' => 'query',
'schema' => [
'description' => '页码。',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求ID。',
'type' => 'string',
'example' => 'ABB39CC3-4488-4857-905D-2E4A051D0521',
],
'Databases' => [
'description' => '查询到的数据库列表。',
'type' => 'array',
'items' => [
'description' => '查询到的数据库。',
'type' => 'object',
'properties' => [
'DatabaseName' => [
'description' => '数据库名称。'."\n"
."\n"
.'- 只能包含字母,数字和下划线。'."\n"
."\n"
.'- 必须以字母开头。'."\n"
."\n"
.'- 长度不能超过63 个字符。',
'type' => 'string',
'example' => 'testdatabase',
],
'Description' => [
'description' => '描述信息。',
'type' => 'string',
'example' => 'test description',
],
],
],
],
'DBInstanceId' => [
'description' => '实例ID。'."\n"
."\n"
.'> 您可以调用[DescribeDBInstances](~~86911~~)接口查看目标地域下所有的AnalyticDB PostgreSQL实例的详情,包括实例ID。',
'type' => 'string',
'example' => 'gp-xxxxxxxxx',
],
'TotalCount' => [
'description' => '总记录数。',
'type' => 'string',
'example' => '5',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"ABB39CC3-4488-4857-905D-2E4A051D0521\\",\\n \\"Databases\\": [\\n {\\n \\"DatabaseName\\": \\"testdatabase\\",\\n \\"Description\\": \\"test description\\"\\n }\\n ],\\n \\"DBInstanceId\\": \\"gp-xxxxxxxxx\\",\\n \\"TotalCount\\": \\"5\\"\\n}","type":"json"}]',
'title' => '列举实例数据库',
],
],
'endpoints' => [
[
'regionId' => 'cn-beijing-finance-1',
'endpoint' => 'gpdb.aliyuncs.com',
],
[
'regionId' => 'cn-beijing',
'endpoint' => 'gpdb.aliyuncs.com',
],
[
'regionId' => 'cn-zhangjiakou',
'endpoint' => 'gpdb.cn-zhangjiakou.aliyuncs.com',
],
[
'regionId' => 'cn-huhehaote',
'endpoint' => 'gpdb.cn-huhehaote.aliyuncs.com',
],
[
'regionId' => 'cn-hangzhou',
'endpoint' => 'gpdb.aliyuncs.com',
],
[
'regionId' => 'cn-shanghai',
'endpoint' => 'gpdb.aliyuncs.com',
],
[
'regionId' => 'cn-shenzhen',
'endpoint' => 'gpdb.aliyuncs.com',
],
[
'regionId' => 'cn-chengdu',
'endpoint' => 'gpdb.cn-chengdu.aliyuncs.com',
],
[
'regionId' => 'cn-hongkong',
'endpoint' => 'gpdb.cn-hongkong.aliyuncs.com',
],
[
'regionId' => 'ap-northeast-1',
'endpoint' => 'gpdb.ap-northeast-1.aliyuncs.com',
],
[
'regionId' => 'ap-northeast-2',
'endpoint' => 'gpdb.ap-northeast-2.aliyuncs.com',
],
[
'regionId' => 'ap-southeast-1',
'endpoint' => 'gpdb.ap-southeast-1.aliyuncs.com',
],
[
'regionId' => 'ap-southeast-2',
'endpoint' => 'gpdb.ap-southeast-2.aliyuncs.com',
],
[
'regionId' => 'ap-southeast-3',
'endpoint' => 'gpdb.ap-southeast-3.aliyuncs.com',
],
[
'regionId' => 'ap-southeast-5',
'endpoint' => 'gpdb.ap-southeast-5.aliyuncs.com',
],
[
'regionId' => 'us-east-1',
'endpoint' => 'gpdb.us-east-1.aliyuncs.com',
],
[
'regionId' => 'us-west-1',
'endpoint' => 'gpdb.us-west-1.aliyuncs.com',
],
[
'regionId' => 'eu-west-1',
'endpoint' => 'gpdb.eu-west-1.aliyuncs.com',
],
[
'regionId' => 'eu-central-1',
'endpoint' => 'gpdb.eu-central-1.aliyuncs.com',
],
[
'regionId' => 'ap-south-1',
'endpoint' => 'gpdb.ap-south-1.aliyuncs.com',
],
[
'regionId' => 'me-east-1',
'endpoint' => 'gpdb.me-east-1.aliyuncs.com',
],
[
'regionId' => 'cn-hangzhou-finance',
'endpoint' => 'gpdb.aliyuncs.com',
],
[
'regionId' => 'cn-shanghai-finance-1',
'endpoint' => 'gpdb.aliyuncs.com',
],
[
'regionId' => 'cn-shenzhen-finance-1',
'endpoint' => 'gpdb.aliyuncs.com',
],
[
'regionId' => 'ap-southeast-7',
'endpoint' => 'gpdb.ap-southeast-7.aliyuncs.com',
],
[
'regionId' => 'me-central-1',
'endpoint' => 'gpdb.me-central-1.aliyuncs.com',
],
],
];