tccli 3.0.1041.1__py2.py3-none-any.whl → 3.0.1043.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/examples/cloudaudit/v20190319/DeleteAuditTrack.md +1 -1
- tccli/examples/cloudaudit/v20190319/DescribeAuditTrack.md +1 -1
- tccli/examples/cloudaudit/v20190319/DescribeAuditTracks.md +1 -1
- tccli/examples/cloudaudit/v20190319/DescribeEvents.md +2 -2
- tccli/examples/cloudaudit/v20190319/ModifyAuditTrack.md +1 -1
- tccli/examples/tdid/v20210519/CheckNewPurchase.md +18 -0
- tccli/examples/tdid/v20210519/CreateTDidByHost.md +25 -0
- tccli/examples/tdid/v20210519/CreateTDidByPubKey.md +28 -0
- tccli/examples/tdid/v20210519/DeactivateTDid.md +52 -0
- tccli/examples/tdid/v20210519/GetCredentialState.md +33 -0
- tccli/examples/tdid/v20210519/GetTDidDocument.md +22 -0
- tccli/examples/tdid/v20210519/IssueCredential.md +25 -0
- tccli/examples/tdid/v20210519/UpdateCredentialState.md +57 -0
- tccli/examples/tdid/v20210519/VerifyCredentials.md +24 -0
- tccli/services/car/v20220110/api.json +2 -2
- tccli/services/cloudaudit/v20190319/api.json +61 -27
- tccli/services/cloudaudit/v20190319/examples.json +6 -6
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/tdid/tdid_client.py +36 -248
- tccli/services/tdid/v20210519/api.json +346 -712
- tccli/services/tdid/v20210519/examples.json +44 -76
- tccli/services/trtc/v20190722/api.json +1 -1
- {tccli-3.0.1041.1.dist-info → tccli-3.0.1043.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1041.1.dist-info → tccli-3.0.1043.1.dist-info}/RECORD +28 -19
- {tccli-3.0.1041.1.dist-info → tccli-3.0.1043.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1041.1.dist-info → tccli-3.0.1043.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1041.1.dist-info → tccli-3.0.1043.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1043.1'
|
@@ -0,0 +1,25 @@
|
|
1
|
+
**Example 1: 自动生成公私钥注册DID**
|
2
|
+
|
3
|
+
TDID平台自动生成公私钥对托管在DID平台,并注册DID
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli tdid CreateTDidByHost --cli-unfold-argument \
|
9
|
+
--DAPId 1 \
|
10
|
+
--CustomAttribute {"a":{"c":1},"b":"test"}
|
11
|
+
```
|
12
|
+
|
13
|
+
Output:
|
14
|
+
```
|
15
|
+
{
|
16
|
+
"Response": {
|
17
|
+
"RequestId": "fac6ef5a-7637-4a75-a2d3-0f7d87b5b8b5",
|
18
|
+
"Did": "did:tdid:w1:0xdab41eb32082044366f1b5712504d0b623b095c1",
|
19
|
+
"Transaction": {
|
20
|
+
"TransactionHash": "1747ae57db16f1d6cac4b711742904f87030f3eee8704439aa203a8278d219c3"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
```
|
25
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
**Example 1: 导入公钥注册DID标识**
|
2
|
+
|
3
|
+
上传用户本地公钥文件创建DID标识
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli tdid CreateTDidByPubKey --cli-unfold-argument \
|
9
|
+
--DAPId 1 \
|
10
|
+
--PublicKey -----BEGIN PUBLIC KEY-----
|
11
|
+
MFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAEaI9IwGTO3SL6tamGNdyFi+zg8W7W
|
12
|
+
53dKNBC3xuRXdlbor0gTIlYSgKIyClY6KUrizmW6gMfKcrzBojml5j4JJg==
|
13
|
+
-----END PUBLIC KEY-----
|
14
|
+
```
|
15
|
+
|
16
|
+
Output:
|
17
|
+
```
|
18
|
+
{
|
19
|
+
"Response": {
|
20
|
+
"RequestId": "fac6ef5a-7637-4a75-a2d3-0f7d87b5b8b5",
|
21
|
+
"Did": "did:tdid:w1:0xdab41eb32082044366f1b5712504d0b623b095c1",
|
22
|
+
"Transaction": {
|
23
|
+
"TransactionHash": "1747ae57db16f1d6cac4b711742904f87030f3eee8704439aa203a8278d219c3"
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,52 @@
|
|
1
|
+
**Example 1: 更新DID标识的禁用状态**
|
2
|
+
|
3
|
+
更新DID标识的禁用状态
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli tdid DeactivateTDid --cli-unfold-argument \
|
9
|
+
--Did did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb \
|
10
|
+
--OperateCredential {
|
11
|
+
"cptId": 1,
|
12
|
+
"issuer": "did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb",
|
13
|
+
"expirationDate": "2023-12-01T10:00:00+08:00",
|
14
|
+
"issuanceDate": "2023-09-19T19:50:52+08:00",
|
15
|
+
"context": "https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1",
|
16
|
+
"id": "250d0563e9d680c4d2c33b428913442f",
|
17
|
+
"type": ["VerifiableCredential"],
|
18
|
+
"credentialSubject": {
|
19
|
+
"action": "deactiveDid",
|
20
|
+
"deactivated": "true",
|
21
|
+
"did": "did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb"
|
22
|
+
},
|
23
|
+
"proof": {
|
24
|
+
"created": "2023-09-19T19:50:52+08:00",
|
25
|
+
"creator": "did:tdid:c5:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb#keys-0",
|
26
|
+
"signatureValue": "MEYCIQDSQFpHNt7xltx+dPhwHDrY3kJpMG+hE7Klh/c11Ce3WQIhAOFaISj1kvk8TjrlMaoTAAhoAiriBFj0lLwWyNp69kW7",
|
27
|
+
"type": "Secp256r1",
|
28
|
+
"metaDigest": "9b916ba1e4435f752052fbafe3ed270b61f729feade30fec20aeef4dbac16712",
|
29
|
+
"vcDigest": "692c38a285093f538821f7cce3ddc8358f10f219e991faf226356043228eda24",
|
30
|
+
"privacy": "Public",
|
31
|
+
"salt": {
|
32
|
+
"action": "CTtap",
|
33
|
+
"deactivated": "1jfRX",
|
34
|
+
"did": "D8ukJ"
|
35
|
+
}
|
36
|
+
}
|
37
|
+
} \
|
38
|
+
--DAPId 5
|
39
|
+
```
|
40
|
+
|
41
|
+
Output:
|
42
|
+
```
|
43
|
+
{
|
44
|
+
"Response": {
|
45
|
+
"Transaction": {
|
46
|
+
"TransactionHash": "17a6bfc02e84d8afca728a0285e5cfc20812a7ca5e0244188a1fdb12cf402789"
|
47
|
+
},
|
48
|
+
"RequestId": "018647ac-f5ef-478e-bc7c-1e72ae4afac1"
|
49
|
+
}
|
50
|
+
}
|
51
|
+
```
|
52
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
**Example 1: 获取凭证链上状态信息**
|
2
|
+
|
3
|
+
获取凭证链上状态信息
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli tdid GetCredentialState --cli-unfold-argument \
|
9
|
+
--CredentialId 8818fdd61eb84e4a745a3b04c96e5237 \
|
10
|
+
--DAPId 5
|
11
|
+
```
|
12
|
+
|
13
|
+
Output:
|
14
|
+
```
|
15
|
+
{
|
16
|
+
"Response": {
|
17
|
+
"RequestId": "10f21d53-43f7-4736-a028-384b446132d0",
|
18
|
+
"CredentialState": {
|
19
|
+
"Id": "8818fdd61eb84e4a745a3b04c96e5237",
|
20
|
+
"Status": 1,
|
21
|
+
"CPTId": 1,
|
22
|
+
"Issuer": "did:tdid:c5:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb",
|
23
|
+
"TXDigest": "",
|
24
|
+
"VCDigest": "c7e13c5bcfa879c922f9141d085facc0ce1973e8d27d48238130739c1a332dcf",
|
25
|
+
"MetaDigest": "6a216f84cb9c5b6170cb017cccd6c5d0b81aad200d5691914d6045471d0dd1ad",
|
26
|
+
"IssueTime": 1695125060,
|
27
|
+
"ExpireTime": 1701396000,
|
28
|
+
"Signature": "MEUCIQDUneIwlLbh5AFjQt9HJhIZAQshT45/Em8hVOUjHcdu0QIgL3rg3A99qGGNszstF+GTV5IU4vT9OnI1lqM3f0c5JmI="
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
```
|
33
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
**Example 1: 获取DID标识的文档**
|
2
|
+
|
3
|
+
无
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli tdid GetTDidDocument --cli-unfold-argument \
|
9
|
+
--DAPId 1 \
|
10
|
+
--Did did:tdid:w1:0x05cdde231b90dbcb1e0a9e7a616bf17c7168c2ac
|
11
|
+
```
|
12
|
+
|
13
|
+
Output:
|
14
|
+
```
|
15
|
+
{
|
16
|
+
"Response": {
|
17
|
+
"Document": "{\n \"@context\" : \"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\",\n \"symbol\" : \"BAYC\",\n \"creator\" : \"did:tdid:w1:0x1a8ca5daffe98e48483fa58d7b352998c34705ca\",\n \"controller\" : \"did:tdid:w1:0x6206a748ad9d3bc35fdbe6ac5248791ae9bb8d45\",\n \"created\" : \"2022-08-08T03:23:40+0000\",\n \"contract\" : \"BAYC1659929019\",\n \"totalCount\" : 1,\n \"deactivated\" : false,\n \"versionId\" : 1,\n \"baseUrl\" : \"https://ipfs.io/ipfs/QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq\",\n \"service\" : [ ],\n \"portalUrl\" : \"\",\n \"name\" : \"BoredApeYachtClub\",\n \"id\" : \"did:tdid:cm775g1:0x6206a748ad9d3bc35fdbe6ac5248791ae9bb8d45\",\n \"verificationMethod\" : [ {\n \"controller\" : \"did:tdid:cm775g1:0x6206a748ad9d3bc35fdbe6ac5248791ae9bb8d45\",\n \"id\" : \"did:tdid:cm775g1:0x6206a748ad9d3bc35fdbe6ac5248791ae9bb8d45#keys-0\",\n \"publicKey\" : \"-----BEGIN PUBLIC KEY-----\\r\\nMFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAE8AxGIIZS5gNWEBmoAOsHxPd/8D2DrKqMuiWG2cVvYDt6H0CjWixP/RYeTXyRDjuLXd2tINL5VWKzm1EOlhQE+w==\\r\\n-----END PUBLIC KEY-----\",\n \"type\" : \"Sm2p256v1\",\n \"revoked\" : false\n } ],\n \"updated\" : \"2022-08-08T03:23:40+0000\",\n \"desc\" : \"Bored Ape Yacht Club\",\n \"authentication\" : [ \"#keys-0\" ]\n}",
|
18
|
+
"RequestId": "fac6ef5a-7637-4a75-a2d3-0f7d87b5b8b5"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
**Example 1: 颁发可验证凭证**
|
2
|
+
|
3
|
+
凭证颁发方签发可验证凭证
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli tdid IssueCredential --cli-unfold-argument \
|
9
|
+
--DAPId 37 \
|
10
|
+
--CRDLArg.CPTId 1 \
|
11
|
+
--CRDLArg.Issuer did:tdid:w1:0x2e3455523646b1f4ebb40fe0c244bc329eb6fcbc \
|
12
|
+
--CRDLArg.ExpirationDate 2023-06-29 15:25:00 \
|
13
|
+
--CRDLArg.ClaimJson {"action": "deactiveDid","id": "did:tdid:w1:0x2e3455523646b1f4ebb40fe0c244bc329eb6fcbc","deactivated": "true", "__trans__": {"x": "a", "y": 1} }
|
14
|
+
```
|
15
|
+
|
16
|
+
Output:
|
17
|
+
```
|
18
|
+
{
|
19
|
+
"Response": {
|
20
|
+
"RequestId": "41a9acae-cef4-4949-b144-48c65ad5e425",
|
21
|
+
"CredentialData": "{\"CPTId\":1,\"issuer\":\"did:tdid:w1:0x2e3455523646b1f4ebb40fe0c244bc329eb6fcbc\",\"expirationDate\":\"2023-06-29T23:25:00+08:00\",\"issuanceDate\":\"2023-03-10T00:35:40+08:00\",\"context\":\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\",\"id\":\"88825f41be9648ddb292744ca6468db7\",\"type\":[\"VerifiableCredential\"],\"credentialSubject\":{\"action\":\"deactiveDid\",\"id\":\"did:tdid:w1:0x2e3455523646b1f4ebb40fe0c244bc329eb6fcbc\"},\"proof\":{\"created\":\"2023-03-10T00:35:40+08:00\",\"creator\":\"did:tdid:w1:0x2e3455523646b1f4ebb40fe0c244bc329eb6fcbc#keys-0\",\"signatureValue\":\"MEUCIQDcngP25ZCDNgZJI4zwyaRcKw2Mk99uvd32RDSjN0gZDAIgLSTslRrTet3Wi/lCgFtF4rmkjq5T8bBD4Cehmu5th1c=\",\"type\":\"Sm2p256v1\",\"txDegist\":\"8db419f0d1412340cfceb2ab28eff3d79615dc4d97ba67e58201a36eebc6e177\",\"vcDegist\":\"337bd77829fabf372eb8584b27bdbb3bb06610d70b2e64a96aff6f8a62116648\",\"method\":\"\",\"salt\":{\"action\":\"oY4YW\",\"id\":\"jxKzd\"}}}"
|
22
|
+
}
|
23
|
+
}
|
24
|
+
```
|
25
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
**Example 1: 更新凭证链上状态**
|
2
|
+
|
3
|
+
更新凭证链上状态
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli tdid UpdateCredentialState --cli-unfold-argument \
|
9
|
+
--DAPId 5 \
|
10
|
+
--OperateCredential {
|
11
|
+
"cptId": 1,
|
12
|
+
"issuer": "did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb",
|
13
|
+
"expirationDate": "2023-12-01T10:00:00+08:00",
|
14
|
+
"issuanceDate": "2023-09-19T20:13:36+08:00",
|
15
|
+
"context": "https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1",
|
16
|
+
"id": "fw1652844bee8e5ecf1b404242b83f1b",
|
17
|
+
"type": ["VerifiableCredential"],
|
18
|
+
"credentialSubject": {
|
19
|
+
"CredentialStatus": {
|
20
|
+
"id": "8818fdd61eb84e4a745a3b04c96e5237",
|
21
|
+
"issuer": "did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb",
|
22
|
+
"status": 1
|
23
|
+
},
|
24
|
+
"action": "updateCredentialState",
|
25
|
+
"orignCredential": "{\"cptId\":1,\"issuer\":\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb\",\"expirationDate\":\"2023-12-01T10:00:00+08:00\",\"issuanceDate\":\"2023-09-19T20:04:20+08:00\",\"context\":\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\",\"id\":\"8818fdd61eb84e4a745a3b04c96e5237\",\"type\":[\"VerifiableCredential\"],\"credentialSubject\":{\"action\":\"updateCredentialState\"},\"proof\":{\"created\":\"2023-09-19T20:04:20+08:00\",\"creator\":\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb#keys-0\",\"signatureValue\":\"MEUCIQDUneIwlLbh5AFjQt9HJhIZAQshT45/Em8hVOUjHcdu0QIgL3rg3A99qGGNszstF+GTV5IU4vT9OnI1lqM3f0w1JmI=\",\"type\":\"Secp256r1\",\"metaDigest\":\"6a216f84cb9w1b6170cb017cccd6w1d0b81aad200d5691914d6045471d0dd1ad\",\"vcDigest\":\"c7e13w1bcfa879c922f9141d085facc0ce1973e8d27d48238130739c1a332dcf\",\"privacy\":\"Public\",\"salt\":{\"action\":\"HZdDU\"}}}"
|
26
|
+
},
|
27
|
+
"proof": {
|
28
|
+
"created": "2023-09-19T20:13:36+08:00",
|
29
|
+
"creator": "did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb#keys-0",
|
30
|
+
"signatureValue": "MEUCIDkLg6EqmwvEHYLtjumpeqKz/hIi6EROMDXPPpNIxORHAiEA8T0LMI59tkBTz+llu/GkjToj5M8k5SwXFoU3fnjQ3mo=",
|
31
|
+
"type": "Secp256r1",
|
32
|
+
"metaDigest": "46894b7f54365d685ba587608d2b74f800404ebb76f5c32dd90bc3916e844ae2",
|
33
|
+
"vcDigest": "d086ba831ab3185971c168w125bf2bd487d7eced3ede8d623b30cfe9da03bcaf",
|
34
|
+
"privacy": "Public",
|
35
|
+
"salt": {
|
36
|
+
"CredentialStatus": {
|
37
|
+
"id": "4dPOH",
|
38
|
+
"issuer": "OJH5M",
|
39
|
+
"status": "lm2W4"
|
40
|
+
},
|
41
|
+
"action": "r95wA",
|
42
|
+
"orignCredential": "b3H4j"
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
```
|
47
|
+
|
48
|
+
Output:
|
49
|
+
```
|
50
|
+
{
|
51
|
+
"Response": {
|
52
|
+
"RequestId": "f5e12d37-100a-4b82-b522-7b76c519ed70",
|
53
|
+
"Result": true
|
54
|
+
}
|
55
|
+
}
|
56
|
+
```
|
57
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
**Example 1: 验证已签名的可验证凭证**
|
2
|
+
|
3
|
+
验证凭证颁发者签发的可验证凭证
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli tdid VerifyCredentials --cli-unfold-argument \
|
9
|
+
--DAPId 1 \
|
10
|
+
--CredentialData {"claim":{"age":18,"id":"did:tdid:w1:0x3b67623cbdaa9ccbfc8b7c346588c6bcbc6f5d63","name":"zhang san"},"context":"https://github.com/WeBankFinTech/WeIdentity/blob/master/context/v1","CPTId":12000000,"expirationDate":1871212353,"id":"42e180f9-e4fd-4cd0-93a6-1770f1f69c44","issuanceDate":1628063788,"issuer":"did:tdid:w1:0x4c59267a10ed54857842674d0c76ab708c6275f5","proof":{"created":1628063788,"creator":"did:tdid:w1:0x4c59267a10ed54857842674d0c76ab708c6275f5#keys-0","salt":{"age":"KeMT6","id":"qGZIB","name":"8jMxZ"},"signatureValue":"mf9UEjhh2gIpxr2evRh+zbC2/1k4YyxKl4otn2v96wQfNrz3MKQ+nsc0P0H/hFNlh3F+8Z1gN9qSemWXyN8KAwA=","type":"Secp256k1"},"type":["VerifiableCredential","original"]}
|
11
|
+
```
|
12
|
+
|
13
|
+
Output:
|
14
|
+
```
|
15
|
+
{
|
16
|
+
"Response": {
|
17
|
+
"Result": true,
|
18
|
+
"VerifyCode": 0,
|
19
|
+
"VerifyMessage": "success",
|
20
|
+
"RequestId": "eac6b301-a322-493a-8e36-83b295459397"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
```
|
24
|
+
|
@@ -22,14 +22,14 @@
|
|
22
22
|
"status": "online"
|
23
23
|
},
|
24
24
|
"StartPublishStream": {
|
25
|
-
"document": "
|
25
|
+
"document": "开始云端推流。云端推流 codec 根据客户端(SDK)能力来自动选择,默认优先顺序为 H265、H264、VP8、VP9。",
|
26
26
|
"input": "StartPublishStreamRequest",
|
27
27
|
"name": "开始云端推流",
|
28
28
|
"output": "StartPublishStreamResponse",
|
29
29
|
"status": "online"
|
30
30
|
},
|
31
31
|
"StartPublishStreamWithURL": {
|
32
|
-
"document": "开始云端推流到指定URL。该推流方式需要单独计费,详细计费方式请查看[指定地址推流费用说明](https://cloud.tencent.com/document/product/1547/72168#98ac188a-d122-4caf-88be-05268ecefdf6)",
|
32
|
+
"document": "开始云端推流到指定URL。云端推流 codec 根据客户端(SDK)能力来自动选择,默认优先顺序为 H265、H264、VP8、VP9。该推流方式需要单独计费,详细计费方式请查看[指定地址推流费用说明](https://cloud.tencent.com/document/product/1547/72168#98ac188a-d122-4caf-88be-05268ecefdf6)",
|
33
33
|
"input": "StartPublishStreamWithURLRequest",
|
34
34
|
"name": "开始云端推流到指定URL",
|
35
35
|
"output": "StartPublishStreamWithURLResponse",
|
@@ -8,9 +8,9 @@
|
|
8
8
|
"status": "online"
|
9
9
|
},
|
10
10
|
"CreateAuditTrack": {
|
11
|
-
"document": "
|
11
|
+
"document": "创建操作审计跟踪集",
|
12
12
|
"input": "CreateAuditTrackRequest",
|
13
|
-
"name": "
|
13
|
+
"name": "创建操作审计跟踪集",
|
14
14
|
"output": "CreateAuditTrackResponse",
|
15
15
|
"status": "online"
|
16
16
|
},
|
@@ -22,9 +22,9 @@
|
|
22
22
|
"status": "online"
|
23
23
|
},
|
24
24
|
"DeleteAuditTrack": {
|
25
|
-
"document": "
|
25
|
+
"document": "删除操作审计跟踪集",
|
26
26
|
"input": "DeleteAuditTrackRequest",
|
27
|
-
"name": "
|
27
|
+
"name": "删除操作审计跟踪集",
|
28
28
|
"output": "DeleteAuditTrackResponse",
|
29
29
|
"status": "online"
|
30
30
|
},
|
@@ -36,23 +36,23 @@
|
|
36
36
|
"status": "online"
|
37
37
|
},
|
38
38
|
"DescribeAuditTrack": {
|
39
|
-
"document": "
|
39
|
+
"document": "查询操作审计跟踪集详情",
|
40
40
|
"input": "DescribeAuditTrackRequest",
|
41
|
-
"name": "
|
41
|
+
"name": "查询操作审计跟踪集详情",
|
42
42
|
"output": "DescribeAuditTrackResponse",
|
43
43
|
"status": "online"
|
44
44
|
},
|
45
45
|
"DescribeAuditTracks": {
|
46
|
-
"document": "
|
46
|
+
"document": "查询操作审计跟踪集列表",
|
47
47
|
"input": "DescribeAuditTracksRequest",
|
48
|
-
"name": "
|
48
|
+
"name": "查询操作审计跟踪集列表",
|
49
49
|
"output": "DescribeAuditTracksResponse",
|
50
50
|
"status": "online"
|
51
51
|
},
|
52
52
|
"DescribeEvents": {
|
53
|
-
"document": "
|
53
|
+
"document": "查询操作审计日志",
|
54
54
|
"input": "DescribeEventsRequest",
|
55
|
-
"name": "
|
55
|
+
"name": "查询操作审计日志",
|
56
56
|
"output": "DescribeEventsResponse",
|
57
57
|
"status": "online"
|
58
58
|
},
|
@@ -106,9 +106,9 @@
|
|
106
106
|
"status": "online"
|
107
107
|
},
|
108
108
|
"ModifyAuditTrack": {
|
109
|
-
"document": "
|
109
|
+
"document": "修改操作审计跟踪集",
|
110
110
|
"input": "ModifyAuditTrackRequest",
|
111
|
-
"name": "
|
111
|
+
"name": "修改操作审计跟踪集",
|
112
112
|
"output": "ModifyAuditTrackResponse",
|
113
113
|
"status": "online"
|
114
114
|
},
|
@@ -518,7 +518,7 @@
|
|
518
518
|
"example": "1",
|
519
519
|
"member": "uint64",
|
520
520
|
"name": "TrackId",
|
521
|
-
"
|
521
|
+
"output_required": true,
|
522
522
|
"type": "int",
|
523
523
|
"value_allowed_null": false
|
524
524
|
},
|
@@ -773,10 +773,10 @@
|
|
773
773
|
{
|
774
774
|
"disabled": false,
|
775
775
|
"document": "跟踪集名称",
|
776
|
-
"example": "
|
776
|
+
"example": "操作审计",
|
777
777
|
"member": "string",
|
778
778
|
"name": "Name",
|
779
|
-
"
|
779
|
+
"output_required": true,
|
780
780
|
"type": "string",
|
781
781
|
"value_allowed_null": false
|
782
782
|
},
|
@@ -786,7 +786,7 @@
|
|
786
786
|
"example": "Read",
|
787
787
|
"member": "string",
|
788
788
|
"name": "ActionType",
|
789
|
-
"
|
789
|
+
"output_required": true,
|
790
790
|
"type": "string",
|
791
791
|
"value_allowed_null": false
|
792
792
|
},
|
@@ -796,7 +796,7 @@
|
|
796
796
|
"example": "*",
|
797
797
|
"member": "string",
|
798
798
|
"name": "ResourceType",
|
799
|
-
"
|
799
|
+
"output_required": true,
|
800
800
|
"type": "string",
|
801
801
|
"value_allowed_null": false
|
802
802
|
},
|
@@ -806,7 +806,7 @@
|
|
806
806
|
"example": "1",
|
807
807
|
"member": "uint64",
|
808
808
|
"name": "Status",
|
809
|
-
"
|
809
|
+
"output_required": true,
|
810
810
|
"type": "int",
|
811
811
|
"value_allowed_null": false
|
812
812
|
},
|
@@ -816,7 +816,7 @@
|
|
816
816
|
"example": "1",
|
817
817
|
"member": "string",
|
818
818
|
"name": "EventNames",
|
819
|
-
"
|
819
|
+
"output_required": true,
|
820
820
|
"type": "list",
|
821
821
|
"value_allowed_null": false
|
822
822
|
},
|
@@ -826,7 +826,7 @@
|
|
826
826
|
"example": "cos",
|
827
827
|
"member": "Storage",
|
828
828
|
"name": "Storage",
|
829
|
-
"
|
829
|
+
"output_required": true,
|
830
830
|
"type": "object",
|
831
831
|
"value_allowed_null": false
|
832
832
|
},
|
@@ -836,7 +836,7 @@
|
|
836
836
|
"example": "2021-02-01 18:03",
|
837
837
|
"member": "string",
|
838
838
|
"name": "CreateTime",
|
839
|
-
"
|
839
|
+
"output_required": true,
|
840
840
|
"type": "string",
|
841
841
|
"value_allowed_null": false
|
842
842
|
},
|
@@ -846,7 +846,7 @@
|
|
846
846
|
"example": "1",
|
847
847
|
"member": "uint64",
|
848
848
|
"name": "TrackForAllMembers",
|
849
|
-
"
|
849
|
+
"output_required": true,
|
850
850
|
"type": "int",
|
851
851
|
"value_allowed_null": true
|
852
852
|
},
|
@@ -892,6 +892,7 @@
|
|
892
892
|
"example": "*",
|
893
893
|
"member": "Tracks",
|
894
894
|
"name": "Tracks",
|
895
|
+
"output_required": true,
|
895
896
|
"type": "list",
|
896
897
|
"value_allowed_null": false
|
897
898
|
},
|
@@ -901,6 +902,7 @@
|
|
901
902
|
"example": "10",
|
902
903
|
"member": "uint64",
|
903
904
|
"name": "TotalCount",
|
905
|
+
"output_required": true,
|
904
906
|
"type": "int",
|
905
907
|
"value_allowed_null": false
|
906
908
|
},
|
@@ -954,7 +956,7 @@
|
|
954
956
|
},
|
955
957
|
{
|
956
958
|
"disabled": false,
|
957
|
-
"document": "检索条件(目前支持 RequestId:请求 ID、EventName:事件名称、ActionType:操作类型(Write:写;Read:读)、PrincipalId:子账号、ResourceType:资源类型、ResourceName:资源名称、AccessKeyId:密钥 ID、SensitiveAction:是否敏感操作、ApiErrorCode:API 错误码、CamErrorCode:CAM 错误码、Tags:标签(AttributeValue格式:[{\"key\":\"*\",\"value\":\"*\"}])备注:检索的各个条件间是与的关系,EventName传多个值内部是或的关系)",
|
959
|
+
"document": "检索条件(目前支持 RequestId:请求 ID、EventName:事件名称、ActionType:操作类型(Write:写;Read:读)、PrincipalId:子账号、ResourceType:资源类型、ResourceId:资源Id、ResourceName:资源名称、AccessKeyId:密钥 ID、SensitiveAction:是否敏感操作、ApiErrorCode:API 错误码、CamErrorCode:CAM 错误码、Tags:标签(AttributeValue格式:[{\"key\":\"*\",\"value\":\"*\"}])备注:检索的各个条件间是与的关系,EventName传多个值内部是或的关系)",
|
958
960
|
"example": "[{\"AttributeKey:XX,\"AttributeValue\":xx}]",
|
959
961
|
"member": "LookupAttribute",
|
960
962
|
"name": "LookupAttributes",
|
@@ -982,6 +984,7 @@
|
|
982
984
|
"example": "false",
|
983
985
|
"member": "bool",
|
984
986
|
"name": "ListOver",
|
987
|
+
"output_required": true,
|
985
988
|
"type": "bool",
|
986
989
|
"value_allowed_null": false
|
987
990
|
},
|
@@ -991,6 +994,7 @@
|
|
991
994
|
"example": "123123213",
|
992
995
|
"member": "uint64",
|
993
996
|
"name": "NextToken",
|
997
|
+
"output_required": true,
|
994
998
|
"type": "int",
|
995
999
|
"value_allowed_null": false
|
996
1000
|
},
|
@@ -1000,6 +1004,7 @@
|
|
1000
1004
|
"example": "*",
|
1001
1005
|
"member": "Event",
|
1002
1006
|
"name": "Events",
|
1007
|
+
"output_required": true,
|
1003
1008
|
"type": "list",
|
1004
1009
|
"value_allowed_null": true
|
1005
1010
|
},
|
@@ -1009,6 +1014,7 @@
|
|
1009
1014
|
"example": "1",
|
1010
1015
|
"member": "uint64",
|
1011
1016
|
"name": "TotalCount",
|
1017
|
+
"output_required": true,
|
1012
1018
|
"type": "int",
|
1013
1019
|
"value_allowed_null": true
|
1014
1020
|
},
|
@@ -1676,26 +1682,28 @@
|
|
1676
1682
|
"members": [
|
1677
1683
|
{
|
1678
1684
|
"disabled": false,
|
1679
|
-
"document": "
|
1685
|
+
"document": "资源类型\n注意:此字段可能返回 null,表示取不到有效值。",
|
1680
1686
|
"example": "xx",
|
1681
1687
|
"member": "string",
|
1682
1688
|
"name": "ResourceType",
|
1689
|
+
"output_required": false,
|
1683
1690
|
"required": false,
|
1684
1691
|
"type": "string",
|
1685
|
-
"value_allowed_null":
|
1692
|
+
"value_allowed_null": true
|
1686
1693
|
},
|
1687
1694
|
{
|
1688
1695
|
"disabled": false,
|
1689
|
-
"document": "
|
1696
|
+
"document": "资源名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
1690
1697
|
"example": "xx",
|
1691
1698
|
"member": "string",
|
1692
1699
|
"name": "ResourceName",
|
1700
|
+
"output_required": false,
|
1693
1701
|
"required": false,
|
1694
1702
|
"type": "string",
|
1695
1703
|
"value_allowed_null": true
|
1696
1704
|
}
|
1697
1705
|
],
|
1698
|
-
"usage": "
|
1706
|
+
"usage": "both"
|
1699
1707
|
},
|
1700
1708
|
"StartLoggingRequest": {
|
1701
1709
|
"document": "StartLogging请求参数结构体",
|
@@ -1780,6 +1788,7 @@
|
|
1780
1788
|
"example": "cos",
|
1781
1789
|
"member": "string",
|
1782
1790
|
"name": "StorageType",
|
1791
|
+
"output_required": true,
|
1783
1792
|
"required": true,
|
1784
1793
|
"type": "string",
|
1785
1794
|
"value_allowed_null": false
|
@@ -1790,6 +1799,7 @@
|
|
1790
1799
|
"example": "ap-shanghai",
|
1791
1800
|
"member": "string",
|
1792
1801
|
"name": "StorageRegion",
|
1802
|
+
"output_required": true,
|
1793
1803
|
"required": true,
|
1794
1804
|
"type": "string",
|
1795
1805
|
"value_allowed_null": false
|
@@ -1800,6 +1810,7 @@
|
|
1800
1810
|
"example": "audit",
|
1801
1811
|
"member": "string",
|
1802
1812
|
"name": "StorageName",
|
1813
|
+
"output_required": true,
|
1803
1814
|
"required": true,
|
1804
1815
|
"type": "string",
|
1805
1816
|
"value_allowed_null": false
|
@@ -1810,9 +1821,32 @@
|
|
1810
1821
|
"example": "audit",
|
1811
1822
|
"member": "string",
|
1812
1823
|
"name": "StoragePrefix",
|
1824
|
+
"output_required": true,
|
1813
1825
|
"required": true,
|
1814
1826
|
"type": "string",
|
1815
1827
|
"value_allowed_null": false
|
1828
|
+
},
|
1829
|
+
{
|
1830
|
+
"disabled": false,
|
1831
|
+
"document": "被指定存储用户ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
1832
|
+
"example": "无",
|
1833
|
+
"member": "string",
|
1834
|
+
"name": "StorageAccountId",
|
1835
|
+
"output_required": false,
|
1836
|
+
"required": false,
|
1837
|
+
"type": "string",
|
1838
|
+
"value_allowed_null": true
|
1839
|
+
},
|
1840
|
+
{
|
1841
|
+
"disabled": false,
|
1842
|
+
"document": "被指定存储用户appid\n注意:此字段可能返回 null,表示取不到有效值。",
|
1843
|
+
"example": "无",
|
1844
|
+
"member": "string",
|
1845
|
+
"name": "StorageAppId",
|
1846
|
+
"output_required": false,
|
1847
|
+
"required": false,
|
1848
|
+
"type": "string",
|
1849
|
+
"value_allowed_null": true
|
1816
1850
|
}
|
1817
1851
|
],
|
1818
1852
|
"usage": "both"
|