获取读取架构图的临时授权,有效期30分钟

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String GetToken

系统规定参数。取值:GetToken

ResourceGroupId String rg-aekzhfgmw4e6fwq

资源组ID

返回数据

名称 类型 示例值 描述
Message String Success

错误信息

RequestId String A07FFDF2-78FA-1B48-9E38-88E833A93187

请求ID

Data Object

授权信息

SecurityToken String ABCD

oss访问token

Endpoint String https://oss-cn-beijing.aliyuncs.com

oss的endpoint

AccessKeySecret String 9NG1TUYuDuxokzzmTemSqdgCm1Pjc9J3rvPWvmF2XK4X

oss访问access key secret id

ObjectName String cadt.json

暂时不用

AccessKeyId String STS.NTm2DxuZkxvrxDuQUSP7n38tu

oss访问access key id

Bucket String bucket-1

oss文件保存bucket位置

SnapshotBucket String bucket-2

oss快照保存bucket位置

Code Integer 200

状态码

示例

请求示例

http(s)://[Endpoint]/?Action=GetToken
&ResourceGroupId=rg-aekzhfgmw4e6fwq
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<GetTokenResponse>
    <Message>Success</Message>
    <RequestId>A07FFDF2-78FA-1B48-9E38-88E833A93187</RequestId>
    <Data>
        <SecurityToken>CAIS5AV1q6Ft5B2yfSjIr5fYef7MmIVKz7SZemLEtVUGXLhC3P3flzz2IH5Ie3ZtB+EWsfUxn2xZ7vwZlqR5U9pYXUjDZMc16Y9MqbZulxlr/J7b16cNrbH4M6z/aXeirna7AYjQSNfaZY3sCTTtnTNyxr3XbCirW0ffX7SClZ9gaKZuPG6/diEUINZNOixoqsIRKWCrK5TLCBPxhXfKB0dFoxd1jXgFiZ6y2cqB8BHT/m+YueYevNb2OYP2LZsubp1nFsypweB3ce/N2S9U+no8/axt3qtf4mWF7JPPCUEU+AmbP+vTt8FiKRd9b7Q3ed1Np+OukuZj6K6B1dbszR9VJuFST2HTTYGk0ZG+VYHLDcojdLD0H3XO36rtMYLu4Ts+bHwaJHEpGbt4cSMsUkN1DXOo1MbFlXnOZgC8MYjntIg9zZtyyXjx4NOOPCLhar6F0CEeSMdeCkQzLEw50HDGeK0LeBAuFlR8HOStUJlUZhJTor+KxQrJTX9Pw21wtf/zbO//saRlQueZZJ9d1pcHb5lrqnYjS0+NK4ijkUAJbmdoM/k0naDmIs2486TXgrfRM+TeT+sbp1lbdnXdpiuJWDQJdnGtvYJ6LhjqKq2zoYXI95R/alpMgvlUEQCCd/t0slVi+NHcxh+P8ejlIDnIm20j4Yv38pVo40lpdevG++iJpWzxsWC3a6s0k9v+U2kVXHbRQXFix+2IjX8qvg0Il3rOWywS8FOMz229Dvx5ivWA3SFDGbwB27aaGT24u358FN6I5PMHUOJmbadESrOnwRxlx/qisxC1o4nIrRoiJYy5frA9MYlTGECxsua/dtcfgfRiCCO7daddrpoEgEDMg2hwgJxLNfZDXhUHVNx+PebO8N7n6s1UzZQ3ypbBYMWLIp3h5cT6Tn/QLGBatKkt9QgGdxqVrruNRFyGNv51+lvW5CksSVS8+t6xiXxBAvXBBMVZpfEha2yXk3cAYr231gijeBdbVhqAAUVpEWeExfT0k5hao9tV6UbKXJr2nsQNtydjHiug25l7naTKkMVEVnZY9ul9NMJ5Bkg9G+mIbi3SJZRdUCIK41txwvy8xs8l4ZZMUzwbZpoj3Y+PeustfQRsSX3Bb6oXNRTwI938cPWuVFoHLlSuTilYYKjFMbF6klT7px3ss0NL</SecurityToken>
        <Endpoint>https://oss-cn-beijing.aliyuncs.com</Endpoint>
        <AccessKeySecret>9NG1TUYuDuxokzzmTemSqdgCm1Pjc9J3rvPWvmF2XK4X</AccessKeySecret>
        <ObjectName>cadt.json</ObjectName>
        <AccessKeyId>STS.NTm2DxuZkxvrxDuQUSP7n38tu</AccessKeyId>
        <Bucket>bucket-1</Bucket>
        <SnapshotBucket>bucket-2</SnapshotBucket>
    </Data>
    <Code>200</Code>
</GetTokenResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Message" : "Success",
  "RequestId" : "A07FFDF2-78FA-1B48-9E38-88E833A93187",
  "Data" : {
    "SecurityToken" : "CAIS5AV1q6Ft5B2yfSjIr5fYef7MmIVKz7SZemLEtVUGXLhC3P3flzz2IH5Ie3ZtB+EWsfUxn2xZ7vwZlqR5U9pYXUjDZMc16Y9MqbZulxlr/J7b16cNrbH4M6z/aXeirna7AYjQSNfaZY3sCTTtnTNyxr3XbCirW0ffX7SClZ9gaKZuPG6/diEUINZNOixoqsIRKWCrK5TLCBPxhXfKB0dFoxd1jXgFiZ6y2cqB8BHT/m+YueYevNb2OYP2LZsubp1nFsypweB3ce/N2S9U+no8/axt3qtf4mWF7JPPCUEU+AmbP+vTt8FiKRd9b7Q3ed1Np+OukuZj6K6B1dbszR9VJuFST2HTTYGk0ZG+VYHLDcojdLD0H3XO36rtMYLu4Ts+bHwaJHEpGbt4cSMsUkN1DXOo1MbFlXnOZgC8MYjntIg9zZtyyXjx4NOOPCLhar6F0CEeSMdeCkQzLEw50HDGeK0LeBAuFlR8HOStUJlUZhJTor+KxQrJTX9Pw21wtf/zbO//saRlQueZZJ9d1pcHb5lrqnYjS0+NK4ijkUAJbmdoM/k0naDmIs2486TXgrfRM+TeT+sbp1lbdnXdpiuJWDQJdnGtvYJ6LhjqKq2zoYXI95R/alpMgvlUEQCCd/t0slVi+NHcxh+P8ejlIDnIm20j4Yv38pVo40lpdevG++iJpWzxsWC3a6s0k9v+U2kVXHbRQXFix+2IjX8qvg0Il3rOWywS8FOMz229Dvx5ivWA3SFDGbwB27aaGT24u358FN6I5PMHUOJmbadESrOnwRxlx/qisxC1o4nIrRoiJYy5frA9MYlTGECxsua/dtcfgfRiCCO7daddrpoEgEDMg2hwgJxLNfZDXhUHVNx+PebO8N7n6s1UzZQ3ypbBYMWLIp3h5cT6Tn/QLGBatKkt9QgGdxqVrruNRFyGNv51+lvW5CksSVS8+t6xiXxBAvXBBMVZpfEha2yXk3cAYr231gijeBdbVhqAAUVpEWeExfT0k5hao9tV6UbKXJr2nsQNtydjHiug25l7naTKkMVEVnZY9ul9NMJ5Bkg9G+mIbi3SJZRdUCIK41txwvy8xs8l4ZZMUzwbZpoj3Y+PeustfQRsSX3Bb6oXNRTwI938cPWuVFoHLlSuTilYYKjFMbF6klT7px3ss0NL",
    "Endpoint" : "https://oss-cn-beijing.aliyuncs.com",
    "AccessKeySecret" : "9NG1TUYuDuxokzzmTemSqdgCm1Pjc9J3rvPWvmF2XK4X",
    "ObjectName" : "cadt.json",
    "AccessKeyId" : "STS.NTm2DxuZkxvrxDuQUSP7n38tu",
    "Bucket" : "bucket-1",
    "SnapshotBucket" : "bucket-2"
  },
  "Code" : 200
}

错误码

HttpCode 错误码 错误信息 描述
200 Success The transaction is successful. 交易成功
500 ServiceError A server error occurred. Please try again later. 服务器异常,请稍后再试

访问错误中心查看更多错误码。

访问错误中心查看更多错误码。