Aliyun 开发相关介绍,包括 client 使用、开发各种调试等
有用网址
aliyun-cli
install
wget https://aliyuncli.alicdn.com/aliyun-cli-macosx-latest-amd64.tgz?spm=a2c63.p38356.879954.4.708b25c7Dne9pt&file=aliyun-cli-macosx-latest-amd64.tgz
tar -zxvf
mv aliyun /usr/local/bin
初始化
# aliyun configure
Configuring profile 'default' in 'AK' authenticate mode...
Access Key Id []: ******
Access Key Secret []: ******
Default Region Id [cn-hangzhou]:cn-hangzhou
Default Output Format [json]: json (Only support json)
Default Language [zh|en] en:
Saving profile[default] ...Done.
Configure Done!!!
..............888888888888888888888 ........=8888888888888888888D=..............
...........88888888888888888888888 ..........D8888888888888888888888I...........
.........,8888888888888ZI: ...........................=Z88D8888888888D..........
.........+88888888 ..........................................88888888D..........
.........+88888888 .......Welcome to use Alibaba Cloud.......O8888888D..........
.........+88888888 ............. ************* ..............O8888888D..........
.........+88888888 .... Command Line Interface(Reloaded) ....O8888888D..........
.........+88888888...........................................88888888D..........
..........D888888888888DO+. ..........................?ND888888888888D..........
...........O8888888888888888888888...........D8888888888888888888888=...........
............ .:D8888888888888888888.........78888888888888888888O ..............
help
# aliyun help alidns | grep DomainRecord
AddDomainRecord
DeleteDomainRecord
DeleteSubDomainRecords
DescribeDomainRecordInfo
DescribeDomainRecords
DescribeSubDomainRecords
SetDomainRecordStatus
UpdateDomainRecord
UpdateDomainRecordRemark
acr
docker login --username=me@xiexianbin.cn -p xxx registry.cn-hangzhou.aliyuncs.com
$ aliyun cr GetRepoTags --help
Alibaba Cloud Command Line Interface Version 3.0.60
Product: cr (Container Registry)
Link: https://help.aliyun.com/api/cr/GetRepoTags.html
Method: GET
PathPattern: /repos/[RepoNamespace]/[RepoName]/tags
Parameters:
--RepoName String Required
--RepoNamespace String Required
--Page Integer Optional
--PageSize Integer Optional
$ aliyun cr GetRepoTags --RepoNamespace x_hub --RepoName ubuntu
{
"data": {
"page": 1,
"pageSize": 30,
"tags": [
{
"digest": "5a6216cb46cea7c66cd61630102f82f4d64c810f830e89d0cae29c42a7f6ac86",
"imageCreate": 1719733747000,
"imageId": "ca87e6c45a8ac44c20b05114a68e6c21d0b507c1bf6731dc4c31f832d0757549",
"imageSize": 30551824,
"imageUpdate": 1719733747000,
"status": "NORMAL",
"tag": "24.04"
},
{
"digest": "3c3de9608507804525ff4303874525760ea36d62606e8105f515adaa761b80cb",
"imageCreate": 1719733464000,
"imageId": "9d28ccdc1fc782ec635c98e55ff68b05e6de1df2c7fcbbb4385f023368eec716",
"imageSize": 29886486,
"imageUpdate": 1719733464000,
"status": "NORMAL",
"tag": "22.04"
}
],
"total": 2
}
}