2 lines
5.7 KiB
XML
2 lines
5.7 KiB
XML
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="dataworks-public" visibility="Public" akProvenStatus="Disable" version="2020-05-18" keepClientResourceOwnerId="false" name="CreateDataSource" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping exceptionExpress="success=false,errorCode,errorMessage,httpStatusCode,dynamicErrorCode,dynamicErrorMessage"><ErrorCodes><ErrorCode code="100003001" errorCode="Invalid.Tenant.ConnectionNotExists" type="user" httpCode="400" extendedErrorCode="" errorMessage="The connection does not exist." /><ErrorCode code="100002003" errorCode="Invalid.Tenant.ProjectNotExists" type="user" httpCode="400" extendedErrorCode="" errorMessage="The project does not exist." /><ErrorCode code="100002002" errorCode="Invalid.Tenant.UserIsNotProjectOwnerOrAdmin" type="user" httpCode="403" extendedErrorCode="" errorMessage="The user is not a project administrator or owner." /><ErrorCode code="100002001" errorCode="Invalid.Tenant.UserNotInProject" type="user" httpCode="400" extendedErrorCode="" errorMessage="The user is not in the project." /><ErrorCode code="100001001" errorCode="Invalid.Tenant.UserNotInTenant" type="user" httpCode="403" extendedErrorCode="" errorMessage="The user is not in tenant." /><ErrorCode code="100003002" errorCode="ConnectionAlreadyExist" type="user" httpCode="400" extendedErrorCode="" errorMessage="The connection with envType %s and name %s already exists." /><ErrorCode code="100003008" errorCode="DataSource.CheckRamRoleFailure" type="user" httpCode="400" extendedErrorCode="" errorMessage="Failed to check the RAM role. AccountId %s. roleArn %s." /><ErrorCode code="100003007" errorCode="DataSource.ConnectionStrProperty.PatternNotMatch" type="user" httpCode="400" extendedErrorCode="" errorMessage="The pattern value %s is invalid. The correct pattern is %s." /><ErrorCode code="100003004" errorCode="Invalid.DataSource.DataSourceTypeNotSupport" type="user" httpCode="400" extendedErrorCode="" errorMessage="The dataSourceType %s and subType %s are not supported." /><ErrorCode code="100003005" errorCode="Invalid.Param.Odps.EngineIdOrConnectStrEmpty" type="user" httpCode="400" extendedErrorCode="" errorMessage="Either the compute engine ID or the connection string must be specified when data source type is ODPS." /><ErrorCode code="100003006" errorCode="MissingParam.ConnectionStr.Property" type="user" httpCode="400" extendedErrorCode="" errorMessage="You must specify property %s required by the data source connection string." /><ErrorCode code="100003009" errorCode="Invalid.DataSource.DataSourceTypeNotExist" type="user" httpCode="400" extendedErrorCode="" errorMessage="The data source type %s does not exist." /></ErrorCodes></ErrorMapping><IspProtocol sign="true" serviceRoutePolicy="" signKeyName="BusinessSecretKey" timeout="5000" protocol="http" httpHost="http://tenant.${regionId}.data.aliyun-inc.com/business/api/connection/create" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="request" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="regionId" tagName="RegionId" type="String" required="true" tagPosition="Host" docRequired="true" checkBlank="false"/><Parameter name="callerType" tagName="callerType" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="projectId" tagName="ProjectId" type="Long" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="name" tagName="Name" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="description" tagName="Description" type="String" required="false" tagPosition="Query" checkBlank="false" visibility="Public"/><Parameter name="type" tagName="DataSourceType" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="subType" tagName="SubType" type="String" required="false" tagPosition="Query" checkBlank="false" visibility="Public"/><Parameter name="envType" tagName="EnvType" type="Integer" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="content" tagName="Content" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="callerBid" tagName="callerBid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="userIp" tagName="SourceIp" type="String" required="false" tagPosition="System" checkBlank="false"/></Parameters><FlowControl controlUnit="Second" apiDefault="200" /><PreIspProtocol sign="true" signKeyName="BusinessSecretKey" timeout="5000" protocol="http" httpHost="http://pre.tenant.${regionId}.data.aliyun-inc.com/business/api/connection/create" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="Success" visibility="Public" type="Boolean" name="success" nullToEmpty="false"/><Member tagName="HttpStatusCode" visibility="Public" type="String" name="httpStatusCode" nullToEmpty="true"/><Member tagName="Data" visibility="Public" type="Long" name="data" nullToEmpty="true"/><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/></ResultMapping></Api>
|