summaryrefslogtreecommitdiff
path: root/data/zh_cn/ossadmin/2019-04-22/api-docs.php
blob: 118cd9c0a6d6c76b80e64460120a26b29b778a43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php return [
    'version' => '1.0',
    'info' => ['style' => 'RPC', 'product' => 'OssAdmin', 'version' => '2019-04-22'],
    'directories' => ['OpenOssService'],
    'components' => [
        'schemas' => [],
    ],
    'apis' => [
        'OpenOssService' => [
            'summary' => '用于为阿里云账号开通OSS服务',
            'methods' => ['post', 'get'],
            'schemes' => ['http', 'https'],
            'security' => [
                [
                    'AK' => [],
                ],
                [
                    'APP' => [],
                ],
                [
                    'PrivateKey' => [],
                ],
                [
                    'BearerToken' => [],
                ],
            ],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'update'],
            'parameters' => [],
            'responses' => [
                200 => [
                    'schema' => [
                        'description' => '接口响应信息',
                        'type' => 'object',
                        'properties' => [
                            'OrderId' => ['description' => '开通操作订单ID', 'type' => 'string', 'example' => '2431*******529'],
                            'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'FBD670BB-7930-5350-A313-995C303E8EDB'],
                        ],
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'ORDER.OPEND', 'errorMessage' => 'You have already open the service. Go to the console to start using it.', 'description' => ''],
                ],
                403 => [
                    ['errorCode' => 'Forbidden.NoPermission', 'errorMessage' => 'You are not authorized to do this operation.', 'description' => ''],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"OrderId\\": \\"2431*******529\\",\\n  \\"RequestId\\": \\"FBD670BB-7930-5350-A313-995C303E8EDB\\"\\n}","type":"json"}]',
            'title' => '开通oss服务',
        ],
    ],
    'endpoints' => [
        ['regionId' => 'public', 'regionName' => '公网', 'areaId' => 'other', 'areaName' => '其它', 'public' => 'oss-admin.aliyuncs.com', 'endpoint' => 'oss-admin.aliyuncs.com', 'vpc' => ''],
    ],
    'errorCodes' => [],
    'changeSet' => [],
];