릴리스 노트
제품 공지
cos:GetBucketEncryption으로 설정해야 합니다.cos:PutBucketEncryption으로 설정해야 합니다.cos:DeleteBucketEncryption으로 설정해야 합니다../coscli bucket-encryption --method [method] cos://<bucket-name>
매개변수 형식 | 매개변수 용도 | 예시 |
cos://<bucket-name> | 버킷 별칭으로 접근: cos://example-alias 버킷 이름으로 접근: cos://examplebucket-1250000000 |
flag 약칭 | flag 전체 명칭 | flag 용도 |
-h | --help | 명령어 구체 사용법 확인 |
없음 | --method | put(버킷 암호화 정책 설정), get(버킷 암호화 정책 조회), delete(버킷 암호화 정책 삭제) 등 수행할 작업 지정 |
없음 | --sse-algorithm | 암호화 알고리즘(AES256, SM4, KMS) |
없음 | --kms-master-key-id | KMS 마스터 키 ID |
없음 | --kms-algorithm | KMS 암호화 알고리즘(AES256, SM4) |
./coscli bucket-encryption --method put cos://example-alias --sse-algorithm KMS
./coscli bucket-encryption --method get cos://example-alias
SECTION | KEY | VALUE-------------+------------+---------------------------------------Encryption | Algorithm | KMS+ +------------+--------------------------------------+| KMS Key ID | **********-****-****-****-**********+ +------------+--------------------------------------+| Status | Enabled-------------+------------+---------------------------------------COS Bucket Encryption ConfigurationEncryption Details:- Type: Server-Side Encryption with KMS-Managed Keys (SSE-KMS)- Description: Tencent Cloud Key Management System (KMS) manages encryption keys- KMS Key ID: **********-****-****-****-**********- Key Type: Customer Master Key (CMK)
./coscli bucket-encryption --method delete cos://example-alias
피드백