admin管理员组文章数量:1037775
tccli在不同命令行下的引号处理
我给下tccli完整的例子
代码语言:txt复制tccli configure set secretId "yourSecretId" secretKey "yourSecretKey" output "json" --profile test1
linux shell:
代码语言:txt复制tccli cam CreateRole --RoleName shawyang1 --PolicyDocument '{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent","cls.cloud.tencent"]}}]}' --region ap-guangzhou --profile test1
windows cmd:
代码语言:txt复制tccli cam CreateRole --RoleName shawyang2 --PolicyDocument {\"version\":\"2.0\",\"statement\":[{\"action\":\"name/sts:AssumeRole\",\"effect\":\"allow\",\"principal\":{\"service\":[\"cloudaudit.cloud.tencent\",\"cls.cloud.tencent\"]}}]} --region ap-guangzhou --profile test1
代码语言:txt复制tccli cam CreateRole --RoleName shawyang3 --PolicyDocument "{\"version\":\"2.0\",\"statement\":[{\"action\":\"name/sts:AssumeRole\",\"effect\":\"allow\",\"principal\":{\"service\":[\"cloudaudit.cloud.tencent\",\"cls.cloud.tencent\"]}}]}" --region ap-guangzhou --profile test1
windows powershell:
代码语言:txt复制tccli cam CreateRole --RoleName shawyang4 --PolicyDocument '{\"version\":\"2.0\",\"statement\":[{\"action\":\"name/sts:AssumeRole\",\"effect\":\"allow\",\"principal\":{\"service\":[\"cloudaudit.cloud.tencent\",\"cls.cloud.tencent\"]}}]}' --region ap-guangzhou --profile test1
代码语言:txt复制cmd.exe /c 'tccli cam CreateRole --RoleName shawyang5 --PolicyDocument {\"version\":\"2.0\",\"statement\":[{\"action\":\"name/sts:AssumeRole\",\"effect\":\"allow\",\"principal\":{\"service\":[\"cloudaudit.cloud.tencent\",\"cls.cloud.tencent\"]}}]} --region ap-guangzhou --profile test1'
代码语言:txt复制cmd.exe /c 'tccli cam CreateRole --RoleName shawyang6 --PolicyDocument "{\"version\":\"2.0\",\"statement\":[{\"action\":\"name/sts:AssumeRole\",\"effect\":\"allow\",\"principal\":{\"service\":[\"cloudaudit.cloud.tencent\",\"cls.cloud.tencent\"]}}]}" --region ap-guangzhou --profile test1'
tccli在不同命令行下的引号处理
我给下tccli完整的例子
代码语言:txt复制tccli configure set secretId "yourSecretId" secretKey "yourSecretKey" output "json" --profile test1
linux shell:
代码语言:txt复制tccli cam CreateRole --RoleName shawyang1 --PolicyDocument '{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent","cls.cloud.tencent"]}}]}' --region ap-guangzhou --profile test1
windows cmd:
代码语言:txt复制tccli cam CreateRole --RoleName shawyang2 --PolicyDocument {\"version\":\"2.0\",\"statement\":[{\"action\":\"name/sts:AssumeRole\",\"effect\":\"allow\",\"principal\":{\"service\":[\"cloudaudit.cloud.tencent\",\"cls.cloud.tencent\"]}}]} --region ap-guangzhou --profile test1
代码语言:txt复制tccli cam CreateRole --RoleName shawyang3 --PolicyDocument "{\"version\":\"2.0\",\"statement\":[{\"action\":\"name/sts:AssumeRole\",\"effect\":\"allow\",\"principal\":{\"service\":[\"cloudaudit.cloud.tencent\",\"cls.cloud.tencent\"]}}]}" --region ap-guangzhou --profile test1
windows powershell:
代码语言:txt复制tccli cam CreateRole --RoleName shawyang4 --PolicyDocument '{\"version\":\"2.0\",\"statement\":[{\"action\":\"name/sts:AssumeRole\",\"effect\":\"allow\",\"principal\":{\"service\":[\"cloudaudit.cloud.tencent\",\"cls.cloud.tencent\"]}}]}' --region ap-guangzhou --profile test1
代码语言:txt复制cmd.exe /c 'tccli cam CreateRole --RoleName shawyang5 --PolicyDocument {\"version\":\"2.0\",\"statement\":[{\"action\":\"name/sts:AssumeRole\",\"effect\":\"allow\",\"principal\":{\"service\":[\"cloudaudit.cloud.tencent\",\"cls.cloud.tencent\"]}}]} --region ap-guangzhou --profile test1'
代码语言:txt复制cmd.exe /c 'tccli cam CreateRole --RoleName shawyang6 --PolicyDocument "{\"version\":\"2.0\",\"statement\":[{\"action\":\"name/sts:AssumeRole\",\"effect\":\"allow\",\"principal\":{\"service\":[\"cloudaudit.cloud.tencent\",\"cls.cloud.tencent\"]}}]}" --region ap-guangzhou --profile test1'
本文标签: tccli在不同命令行下的引号处理
版权声明:本文标题:tccli在不同命令行下的引号处理 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/jiaocheng/1748351360a2289076.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论