10个稳定版本 (3个主要版本)
5.0.4+20240218 | 2024年3月5日 |
---|---|
3.1.0+20220224 | 2022年4月26日 |
3.0.0+20220224 | 2022年3月8日 |
2.0.4+20210316 | 2021年4月14日 |
1.0.7+20171122 | 2018年1月31日 |
#2867 in 网络编程
每月191次 下载
20MB
246K SLoC
该 compute1
命令行界面(CLI)允许您从终端舒适地使用Google计算服务的大部分功能。
默认情况下,所有输出都打印到标准输出,但可以设置标志将其直接重定向到文件,而不考虑您的shell功能。错误将打印到标准错误,并导致程序退出码非零。
如果请求数据结构,这些将作为格式化的JSON返回,以便作为其他工具的输入使用。
有关计算API的其他一切信息,请参阅官方文档站点。
安装和源代码
使用cargo安装命令行界面
cargo install google-compute1-cli
在GitHub上找到源代码。
用法
此文档是从修订版 20240218 的 compute API 生成的。CLI版本为 5.0.4。
compute1 [options]
accelerator-types
aggregated-list <project> [-p <v>]... [-o <out>]
get <project> <zone> <accelerator-type> [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
addresses
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <address> [-p <v>]... [-o <out>]
get <project> <region> <address> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
move <project> <region> <address> (-r <kv>)... [-p <v>]... [-o <out>]
set-labels <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
autoscalers
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <zone> <autoscaler> [-p <v>]... [-o <out>]
get <project> <zone> <autoscaler> [-p <v>]... [-o <out>]
insert <project> <zone> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
patch <project> <zone> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <zone> (-r <kv>)... [-p <v>]... [-o <out>]
backend-buckets
add-signed-url-key <project> <backend-bucket> (-r <kv>)... [-p <v>]... [-o <out>]
delete <project> <backend-bucket> [-p <v>]... [-o <out>]
delete-signed-url-key <project> <backend-bucket> <key-name> [-p <v>]... [-o <out>]
get <project> <backend-bucket> [-p <v>]... [-o <out>]
get-iam-policy <project> <resource> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <backend-bucket> (-r <kv>)... [-p <v>]... [-o <out>]
set-edge-security-policy <project> <backend-bucket> (-r <kv>)... [-p <v>]... [-o <out>]
set-iam-policy <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <backend-bucket> (-r <kv>)... [-p <v>]... [-o <out>]
backend-services
add-signed-url-key <project> <backend-service> (-r <kv>)... [-p <v>]... [-o <out>]
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <backend-service> [-p <v>]... [-o <out>]
delete-signed-url-key <project> <backend-service> <key-name> [-p <v>]... [-o <out>]
get <project> <backend-service> [-p <v>]... [-o <out>]
get-health <project> <backend-service> (-r <kv>)... [-p <v>]... [-o <out>]
get-iam-policy <project> <resource> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
list-usable <project> [-p <v>]... [-o <out>]
patch <project> <backend-service> (-r <kv>)... [-p <v>]... [-o <out>]
set-edge-security-policy <project> <backend-service> (-r <kv>)... [-p <v>]... [-o <out>]
set-iam-policy <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
set-security-policy <project> <backend-service> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <backend-service> (-r <kv>)... [-p <v>]... [-o <out>]
disk-types
aggregated-list <project> [-p <v>]... [-o <out>]
get <project> <zone> <disk-type> [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
disks
add-resource-policies <project> <zone> <disk> (-r <kv>)... [-p <v>]... [-o <out>]
aggregated-list <project> [-p <v>]... [-o <out>]
bulk-insert <project> <zone> (-r <kv>)... [-p <v>]... [-o <out>]
create-snapshot <project> <zone> <disk> (-r <kv>)... [-p <v>]... [-o <out>]
delete <project> <zone> <disk> [-p <v>]... [-o <out>]
get <project> <zone> <disk> [-p <v>]... [-o <out>]
get-iam-policy <project> <zone> <resource> [-p <v>]... [-o <out>]
insert <project> <zone> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
remove-resource-policies <project> <zone> <disk> (-r <kv>)... [-p <v>]... [-o <out>]
resize <project> <zone> <disk> (-r <kv>)... [-p <v>]... [-o <out>]
set-iam-policy <project> <zone> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
set-labels <project> <zone> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
start-async-replication <project> <zone> <disk> (-r <kv>)... [-p <v>]... [-o <out>]
stop-async-replication <project> <zone> <disk> [-p <v>]... [-o <out>]
stop-group-async-replication <project> <zone> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <zone> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <zone> <disk> (-r <kv>)... [-p <v>]... [-o <out>]
external-vpn-gateways
delete <project> <external-vpn-gateway> [-p <v>]... [-o <out>]
get <project> <external-vpn-gateway> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
set-labels <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
firewall-policies
add-association <firewall-policy> (-r <kv>)... [-p <v>]... [-o <out>]
add-rule <firewall-policy> (-r <kv>)... [-p <v>]... [-o <out>]
clone-rules <firewall-policy> [-p <v>]... [-o <out>]
delete <firewall-policy> [-p <v>]... [-o <out>]
get <firewall-policy> [-p <v>]... [-o <out>]
get-association <firewall-policy> [-p <v>]... [-o <out>]
get-iam-policy <resource> [-p <v>]... [-o <out>]
get-rule <firewall-policy> [-p <v>]... [-o <out>]
insert (-r <kv>)... [-p <v>]... [-o <out>]
list [-p <v>]... [-o <out>]
list-associations [-p <v>]... [-o <out>]
move <firewall-policy> [-p <v>]... [-o <out>]
patch <firewall-policy> (-r <kv>)... [-p <v>]... [-o <out>]
patch-rule <firewall-policy> (-r <kv>)... [-p <v>]... [-o <out>]
remove-association <firewall-policy> [-p <v>]... [-o <out>]
remove-rule <firewall-policy> [-p <v>]... [-o <out>]
set-iam-policy <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <resource> (-r <kv>)... [-p <v>]... [-o <out>]
firewalls
delete <project> <firewall> [-p <v>]... [-o <out>]
get <project> <firewall> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <firewall> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <firewall> (-r <kv>)... [-p <v>]... [-o <out>]
forwarding-rules
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <forwarding-rule> [-p <v>]... [-o <out>]
get <project> <region> <forwarding-rule> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <forwarding-rule> (-r <kv>)... [-p <v>]... [-o <out>]
set-labels <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
set-target <project> <region> <forwarding-rule> (-r <kv>)... [-p <v>]... [-o <out>]
global-addresses
delete <project> <address> [-p <v>]... [-o <out>]
get <project> <address> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
move <project> <address> (-r <kv>)... [-p <v>]... [-o <out>]
set-labels <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
global-forwarding-rules
delete <project> <forwarding-rule> [-p <v>]... [-o <out>]
get <project> <forwarding-rule> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <forwarding-rule> (-r <kv>)... [-p <v>]... [-o <out>]
set-labels <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
set-target <project> <forwarding-rule> (-r <kv>)... [-p <v>]... [-o <out>]
global-network-endpoint-groups
attach-network-endpoints <project> <network-endpoint-group> (-r <kv>)... [-p <v>]... [-o <out>]
delete <project> <network-endpoint-group> [-p <v>]... [-o <out>]
detach-network-endpoints <project> <network-endpoint-group> (-r <kv>)... [-p <v>]... [-o <out>]
get <project> <network-endpoint-group> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
list-network-endpoints <project> <network-endpoint-group> [-p <v>]... [-o <out>]
global-operations
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <operation> [-p <v>]...
get <project> <operation> [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
wait <project> <operation> [-p <v>]... [-o <out>]
global-organization-operations
delete <operation> [-p <v>]...
get <operation> [-p <v>]... [-o <out>]
list [-p <v>]... [-o <out>]
global-public-delegated-prefixes
delete <project> <public-delegated-prefix> [-p <v>]... [-o <out>]
get <project> <public-delegated-prefix> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <public-delegated-prefix> (-r <kv>)... [-p <v>]... [-o <out>]
health-checks
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <health-check> [-p <v>]... [-o <out>]
get <project> <health-check> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <health-check> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <health-check> (-r <kv>)... [-p <v>]... [-o <out>]
http-health-checks
delete <project> <http-health-check> [-p <v>]... [-o <out>]
get <project> <http-health-check> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <http-health-check> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <http-health-check> (-r <kv>)... [-p <v>]... [-o <out>]
https-health-checks
delete <project> <https-health-check> [-p <v>]... [-o <out>]
get <project> <https-health-check> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <https-health-check> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <https-health-check> (-r <kv>)... [-p <v>]... [-o <out>]
image-family-views
get <project> <zone> <family> [-p <v>]... [-o <out>]
images
delete <project> <image> [-p <v>]... [-o <out>]
deprecate <project> <image> (-r <kv>)... [-p <v>]... [-o <out>]
get <project> <image> [-p <v>]... [-o <out>]
get-from-family <project> <family> [-p <v>]... [-o <out>]
get-iam-policy <project> <resource> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <image> (-r <kv>)... [-p <v>]... [-o <out>]
set-iam-policy <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
set-labels <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
instance-group-managers
abandon-instances <project> <zone> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
aggregated-list <project> [-p <v>]... [-o <out>]
apply-updates-to-instances <project> <zone> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
create-instances <project> <zone> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
delete <project> <zone> <instance-group-manager> [-p <v>]... [-o <out>]
delete-instances <project> <zone> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
delete-per-instance-configs <project> <zone> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
get <project> <zone> <instance-group-manager> [-p <v>]... [-o <out>]
insert <project> <zone> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
list-errors <project> <zone> <instance-group-manager> [-p <v>]... [-o <out>]
list-managed-instances <project> <zone> <instance-group-manager> [-p <v>]... [-o <out>]
list-per-instance-configs <project> <zone> <instance-group-manager> [-p <v>]... [-o <out>]
patch <project> <zone> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
patch-per-instance-configs <project> <zone> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
recreate-instances <project> <zone> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
resize <project> <zone> <instance-group-manager> <size> [-p <v>]... [-o <out>]
set-instance-template <project> <zone> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
set-target-pools <project> <zone> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
update-per-instance-configs <project> <zone> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
instance-groups
add-instances <project> <zone> <instance-group> (-r <kv>)... [-p <v>]... [-o <out>]
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <zone> <instance-group> [-p <v>]... [-o <out>]
get <project> <zone> <instance-group> [-p <v>]... [-o <out>]
insert <project> <zone> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
list-instances <project> <zone> <instance-group> (-r <kv>)... [-p <v>]... [-o <out>]
remove-instances <project> <zone> <instance-group> (-r <kv>)... [-p <v>]... [-o <out>]
set-named-ports <project> <zone> <instance-group> (-r <kv>)... [-p <v>]... [-o <out>]
instance-templates
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <instance-template> [-p <v>]... [-o <out>]
get <project> <instance-template> [-p <v>]... [-o <out>]
get-iam-policy <project> <resource> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
set-iam-policy <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
instances
add-access-config <project> <zone> <instance> <network-interface> (-r <kv>)... [-p <v>]... [-o <out>]
add-resource-policies <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
aggregated-list <project> [-p <v>]... [-o <out>]
attach-disk <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
bulk-insert <project> <zone> (-r <kv>)... [-p <v>]... [-o <out>]
delete <project> <zone> <instance> [-p <v>]... [-o <out>]
delete-access-config <project> <zone> <instance> <access-config> <network-interface> [-p <v>]... [-o <out>]
detach-disk <project> <zone> <instance> <device-name> [-p <v>]... [-o <out>]
get <project> <zone> <instance> [-p <v>]... [-o <out>]
get-effective-firewalls <project> <zone> <instance> <network-interface> [-p <v>]... [-o <out>]
get-guest-attributes <project> <zone> <instance> [-p <v>]... [-o <out>]
get-iam-policy <project> <zone> <resource> [-p <v>]... [-o <out>]
get-screenshot <project> <zone> <instance> [-p <v>]... [-o <out>]
get-serial-port-output <project> <zone> <instance> [-p <v>]... [-o <out>]
get-shielded-instance-identity <project> <zone> <instance> [-p <v>]... [-o <out>]
insert <project> <zone> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
list-referrers <project> <zone> <instance> [-p <v>]... [-o <out>]
perform-maintenance <project> <zone> <instance> [-p <v>]... [-o <out>]
remove-resource-policies <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
reset <project> <zone> <instance> [-p <v>]... [-o <out>]
resume <project> <zone> <instance> [-p <v>]... [-o <out>]
send-diagnostic-interrupt <project> <zone> <instance> [-p <v>]...
set-deletion-protection <project> <zone> <resource> [-p <v>]... [-o <out>]
set-disk-auto-delete <project> <zone> <instance> <auto-delete> <device-name> [-p <v>]... [-o <out>]
set-iam-policy <project> <zone> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
set-labels <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
set-machine-resources <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
set-machine-type <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
set-metadata <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
set-min-cpu-platform <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
set-name <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
set-scheduling <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
set-security-policy <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
set-service-account <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
set-shielded-instance-integrity-policy <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
set-tags <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
simulate-maintenance-event <project> <zone> <instance> [-p <v>]... [-o <out>]
start <project> <zone> <instance> [-p <v>]... [-o <out>]
start-with-encryption-key <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
stop <project> <zone> <instance> [-p <v>]... [-o <out>]
suspend <project> <zone> <instance> [-p <v>]... [-o <out>]
test-iam-permissions <project> <zone> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
update-access-config <project> <zone> <instance> <network-interface> (-r <kv>)... [-p <v>]... [-o <out>]
update-display-device <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
update-network-interface <project> <zone> <instance> <network-interface> (-r <kv>)... [-p <v>]... [-o <out>]
update-shielded-instance-config <project> <zone> <instance> (-r <kv>)... [-p <v>]... [-o <out>]
instant-snapshots
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <zone> <instant-snapshot> [-p <v>]... [-o <out>]
get <project> <zone> <instant-snapshot> [-p <v>]... [-o <out>]
get-iam-policy <project> <zone> <resource> [-p <v>]... [-o <out>]
insert <project> <zone> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
set-iam-policy <project> <zone> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
set-labels <project> <zone> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <zone> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
interconnect-attachments
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <interconnect-attachment> [-p <v>]... [-o <out>]
get <project> <region> <interconnect-attachment> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <interconnect-attachment> (-r <kv>)... [-p <v>]... [-o <out>]
set-labels <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
interconnect-locations
get <project> <interconnect-location> [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
interconnect-remote-locations
get <project> <interconnect-remote-location> [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
interconnects
delete <project> <interconnect> [-p <v>]... [-o <out>]
get <project> <interconnect> [-p <v>]... [-o <out>]
get-diagnostics <project> <interconnect> [-p <v>]... [-o <out>]
get-macsec-config <project> <interconnect> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <interconnect> (-r <kv>)... [-p <v>]... [-o <out>]
set-labels <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
license-codes
get <project> <license-code> [-p <v>]... [-o <out>]
test-iam-permissions <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
licenses
delete <project> <license> [-p <v>]... [-o <out>]
get <project> <license> [-p <v>]... [-o <out>]
get-iam-policy <project> <resource> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
set-iam-policy <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
machine-images
delete <project> <machine-image> [-p <v>]... [-o <out>]
get <project> <machine-image> [-p <v>]... [-o <out>]
get-iam-policy <project> <resource> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
set-iam-policy <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
machine-types
aggregated-list <project> [-p <v>]... [-o <out>]
get <project> <zone> <machine-type> [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
network-attachments
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <network-attachment> [-p <v>]... [-o <out>]
get <project> <region> <network-attachment> [-p <v>]... [-o <out>]
get-iam-policy <project> <region> <resource> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <network-attachment> (-r <kv>)... [-p <v>]... [-o <out>]
set-iam-policy <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
network-edge-security-services
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <network-edge-security-service> [-p <v>]... [-o <out>]
get <project> <region> <network-edge-security-service> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
patch <project> <region> <network-edge-security-service> (-r <kv>)... [-p <v>]... [-o <out>]
network-endpoint-groups
aggregated-list <project> [-p <v>]... [-o <out>]
attach-network-endpoints <project> <zone> <network-endpoint-group> (-r <kv>)... [-p <v>]... [-o <out>]
delete <project> <zone> <network-endpoint-group> [-p <v>]... [-o <out>]
detach-network-endpoints <project> <zone> <network-endpoint-group> (-r <kv>)... [-p <v>]... [-o <out>]
get <project> <zone> <network-endpoint-group> [-p <v>]... [-o <out>]
insert <project> <zone> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
list-network-endpoints <project> <zone> <network-endpoint-group> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <zone> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
network-firewall-policies
add-association <project> <firewall-policy> (-r <kv>)... [-p <v>]... [-o <out>]
add-rule <project> <firewall-policy> (-r <kv>)... [-p <v>]... [-o <out>]
clone-rules <project> <firewall-policy> [-p <v>]... [-o <out>]
delete <project> <firewall-policy> [-p <v>]... [-o <out>]
get <project> <firewall-policy> [-p <v>]... [-o <out>]
get-association <project> <firewall-policy> [-p <v>]... [-o <out>]
get-iam-policy <project> <resource> [-p <v>]... [-o <out>]
get-rule <project> <firewall-policy> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <firewall-policy> (-r <kv>)... [-p <v>]... [-o <out>]
patch-rule <project> <firewall-policy> (-r <kv>)... [-p <v>]... [-o <out>]
remove-association <project> <firewall-policy> [-p <v>]... [-o <out>]
remove-rule <project> <firewall-policy> [-p <v>]... [-o <out>]
set-iam-policy <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
networks
add-peering <project> <network> (-r <kv>)... [-p <v>]... [-o <out>]
delete <project> <network> [-p <v>]... [-o <out>]
get <project> <network> [-p <v>]... [-o <out>]
get-effective-firewalls <project> <network> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
list-peering-routes <project> <network> [-p <v>]... [-o <out>]
patch <project> <network> (-r <kv>)... [-p <v>]... [-o <out>]
remove-peering <project> <network> (-r <kv>)... [-p <v>]... [-o <out>]
switch-to-custom-mode <project> <network> [-p <v>]... [-o <out>]
update-peering <project> <network> (-r <kv>)... [-p <v>]... [-o <out>]
node-groups
add-nodes <project> <zone> <node-group> (-r <kv>)... [-p <v>]... [-o <out>]
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <zone> <node-group> [-p <v>]... [-o <out>]
delete-nodes <project> <zone> <node-group> (-r <kv>)... [-p <v>]... [-o <out>]
get <project> <zone> <node-group> [-p <v>]... [-o <out>]
get-iam-policy <project> <zone> <resource> [-p <v>]... [-o <out>]
insert <project> <zone> <initial-node-count> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
list-nodes <project> <zone> <node-group> [-p <v>]... [-o <out>]
patch <project> <zone> <node-group> (-r <kv>)... [-p <v>]... [-o <out>]
set-iam-policy <project> <zone> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
set-node-template <project> <zone> <node-group> (-r <kv>)... [-p <v>]... [-o <out>]
simulate-maintenance-event <project> <zone> <node-group> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <zone> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
node-templates
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <node-template> [-p <v>]... [-o <out>]
get <project> <region> <node-template> [-p <v>]... [-o <out>]
get-iam-policy <project> <region> <resource> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
set-iam-policy <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
node-types
aggregated-list <project> [-p <v>]... [-o <out>]
get <project> <zone> <node-type> [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
packet-mirrorings
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <packet-mirroring> [-p <v>]... [-o <out>]
get <project> <region> <packet-mirroring> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <packet-mirroring> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
projects
disable-xpn-host <project> [-p <v>]... [-o <out>]
disable-xpn-resource <project> (-r <kv>)... [-p <v>]... [-o <out>]
enable-xpn-host <project> [-p <v>]... [-o <out>]
enable-xpn-resource <project> (-r <kv>)... [-p <v>]... [-o <out>]
get <project> [-p <v>]... [-o <out>]
get-xpn-host <project> [-p <v>]... [-o <out>]
get-xpn-resources <project> [-p <v>]... [-o <out>]
list-xpn-hosts <project> (-r <kv>)... [-p <v>]... [-o <out>]
move-disk <project> (-r <kv>)... [-p <v>]... [-o <out>]
move-instance <project> (-r <kv>)... [-p <v>]... [-o <out>]
set-cloud-armor-tier <project> (-r <kv>)... [-p <v>]... [-o <out>]
set-common-instance-metadata <project> (-r <kv>)... [-p <v>]... [-o <out>]
set-default-network-tier <project> (-r <kv>)... [-p <v>]... [-o <out>]
set-usage-export-bucket <project> (-r <kv>)... [-p <v>]... [-o <out>]
public-advertised-prefixes
announce <project> <public-advertised-prefix> [-p <v>]... [-o <out>]
delete <project> <public-advertised-prefix> [-p <v>]... [-o <out>]
get <project> <public-advertised-prefix> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <public-advertised-prefix> (-r <kv>)... [-p <v>]... [-o <out>]
withdraw <project> <public-advertised-prefix> [-p <v>]... [-o <out>]
public-delegated-prefixes
aggregated-list <project> [-p <v>]... [-o <out>]
announce <project> <region> <public-delegated-prefix> [-p <v>]... [-o <out>]
delete <project> <region> <public-delegated-prefix> [-p <v>]... [-o <out>]
get <project> <region> <public-delegated-prefix> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <public-delegated-prefix> (-r <kv>)... [-p <v>]... [-o <out>]
withdraw <project> <region> <public-delegated-prefix> [-p <v>]... [-o <out>]
region-autoscalers
delete <project> <region> <autoscaler> [-p <v>]... [-o <out>]
get <project> <region> <autoscaler> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
region-backend-services
delete <project> <region> <backend-service> [-p <v>]... [-o <out>]
get <project> <region> <backend-service> [-p <v>]... [-o <out>]
get-health <project> <region> <backend-service> (-r <kv>)... [-p <v>]... [-o <out>]
get-iam-policy <project> <region> <resource> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
list-usable <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <backend-service> (-r <kv>)... [-p <v>]... [-o <out>]
set-iam-policy <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
set-security-policy <project> <region> <backend-service> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <region> <backend-service> (-r <kv>)... [-p <v>]... [-o <out>]
region-commitments
aggregated-list <project> [-p <v>]... [-o <out>]
get <project> <region> <commitment> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
update <project> <region> <commitment> (-r <kv>)... [-p <v>]... [-o <out>]
region-disk-types
get <project> <region> <disk-type> [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
region-disks
add-resource-policies <project> <region> <disk> (-r <kv>)... [-p <v>]... [-o <out>]
bulk-insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
create-snapshot <project> <region> <disk> (-r <kv>)... [-p <v>]... [-o <out>]
delete <project> <region> <disk> [-p <v>]... [-o <out>]
get <project> <region> <disk> [-p <v>]... [-o <out>]
get-iam-policy <project> <region> <resource> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
remove-resource-policies <project> <region> <disk> (-r <kv>)... [-p <v>]... [-o <out>]
resize <project> <region> <disk> (-r <kv>)... [-p <v>]... [-o <out>]
set-iam-policy <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
set-labels <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
start-async-replication <project> <region> <disk> (-r <kv>)... [-p <v>]... [-o <out>]
stop-async-replication <project> <region> <disk> [-p <v>]... [-o <out>]
stop-group-async-replication <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <region> <disk> (-r <kv>)... [-p <v>]... [-o <out>]
region-health-check-services
delete <project> <region> <health-check-service> [-p <v>]... [-o <out>]
get <project> <region> <health-check-service> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <health-check-service> (-r <kv>)... [-p <v>]... [-o <out>]
region-health-checks
delete <project> <region> <health-check> [-p <v>]... [-o <out>]
get <project> <region> <health-check> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <health-check> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <region> <health-check> (-r <kv>)... [-p <v>]... [-o <out>]
region-instance-group-managers
abandon-instances <project> <region> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
apply-updates-to-instances <project> <region> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
create-instances <project> <region> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
delete <project> <region> <instance-group-manager> [-p <v>]... [-o <out>]
delete-instances <project> <region> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
delete-per-instance-configs <project> <region> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
get <project> <region> <instance-group-manager> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
list-errors <project> <region> <instance-group-manager> [-p <v>]... [-o <out>]
list-managed-instances <project> <region> <instance-group-manager> [-p <v>]... [-o <out>]
list-per-instance-configs <project> <region> <instance-group-manager> [-p <v>]... [-o <out>]
patch <project> <region> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
patch-per-instance-configs <project> <region> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
recreate-instances <project> <region> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
resize <project> <region> <instance-group-manager> <size> [-p <v>]... [-o <out>]
set-instance-template <project> <region> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
set-target-pools <project> <region> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
update-per-instance-configs <project> <region> <instance-group-manager> (-r <kv>)... [-p <v>]... [-o <out>]
region-instance-groups
get <project> <region> <instance-group> [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
list-instances <project> <region> <instance-group> (-r <kv>)... [-p <v>]... [-o <out>]
set-named-ports <project> <region> <instance-group> (-r <kv>)... [-p <v>]... [-o <out>]
region-instance-templates
delete <project> <region> <instance-template> [-p <v>]... [-o <out>]
get <project> <region> <instance-template> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
region-instances
bulk-insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
region-instant-snapshots
delete <project> <region> <instant-snapshot> [-p <v>]... [-o <out>]
get <project> <region> <instant-snapshot> [-p <v>]... [-o <out>]
get-iam-policy <project> <region> <resource> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
set-iam-policy <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
set-labels <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
region-network-endpoint-groups
attach-network-endpoints <project> <region> <network-endpoint-group> (-r <kv>)... [-p <v>]... [-o <out>]
delete <project> <region> <network-endpoint-group> [-p <v>]... [-o <out>]
detach-network-endpoints <project> <region> <network-endpoint-group> (-r <kv>)... [-p <v>]... [-o <out>]
get <project> <region> <network-endpoint-group> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
list-network-endpoints <project> <region> <network-endpoint-group> [-p <v>]... [-o <out>]
region-network-firewall-policies
add-association <project> <region> <firewall-policy> (-r <kv>)... [-p <v>]... [-o <out>]
add-rule <project> <region> <firewall-policy> (-r <kv>)... [-p <v>]... [-o <out>]
clone-rules <project> <region> <firewall-policy> [-p <v>]... [-o <out>]
delete <project> <region> <firewall-policy> [-p <v>]... [-o <out>]
get <project> <region> <firewall-policy> [-p <v>]... [-o <out>]
get-association <project> <region> <firewall-policy> [-p <v>]... [-o <out>]
get-effective-firewalls <project> <region> <network> [-p <v>]... [-o <out>]
get-iam-policy <project> <region> <resource> [-p <v>]... [-o <out>]
get-rule <project> <region> <firewall-policy> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <firewall-policy> (-r <kv>)... [-p <v>]... [-o <out>]
patch-rule <project> <region> <firewall-policy> (-r <kv>)... [-p <v>]... [-o <out>]
remove-association <project> <region> <firewall-policy> [-p <v>]... [-o <out>]
remove-rule <project> <region> <firewall-policy> [-p <v>]... [-o <out>]
set-iam-policy <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
region-notification-endpoints
delete <project> <region> <notification-endpoint> [-p <v>]... [-o <out>]
get <project> <region> <notification-endpoint> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
region-operations
delete <project> <region> <operation> [-p <v>]...
get <project> <region> <operation> [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
wait <project> <region> <operation> [-p <v>]... [-o <out>]
region-security-policies
add-rule <project> <region> <security-policy> (-r <kv>)... [-p <v>]... [-o <out>]
delete <project> <region> <security-policy> [-p <v>]... [-o <out>]
get <project> <region> <security-policy> [-p <v>]... [-o <out>]
get-rule <project> <region> <security-policy> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <security-policy> (-r <kv>)... [-p <v>]... [-o <out>]
patch-rule <project> <region> <security-policy> (-r <kv>)... [-p <v>]... [-o <out>]
remove-rule <project> <region> <security-policy> [-p <v>]... [-o <out>]
region-ssl-certificates
delete <project> <region> <ssl-certificate> [-p <v>]... [-o <out>]
get <project> <region> <ssl-certificate> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
region-ssl-policies
delete <project> <region> <ssl-policy> [-p <v>]... [-o <out>]
get <project> <region> <ssl-policy> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
list-available-features <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <ssl-policy> (-r <kv>)... [-p <v>]... [-o <out>]
region-target-http-proxies
delete <project> <region> <target-http-proxy> [-p <v>]... [-o <out>]
get <project> <region> <target-http-proxy> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
set-url-map <project> <region> <target-http-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
region-target-https-proxies
delete <project> <region> <target-https-proxy> [-p <v>]... [-o <out>]
get <project> <region> <target-https-proxy> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <target-https-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
set-ssl-certificates <project> <region> <target-https-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
set-url-map <project> <region> <target-https-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
region-target-tcp-proxies
delete <project> <region> <target-tcp-proxy> [-p <v>]... [-o <out>]
get <project> <region> <target-tcp-proxy> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
region-url-maps
delete <project> <region> <url-map> [-p <v>]... [-o <out>]
get <project> <region> <url-map> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <url-map> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <region> <url-map> (-r <kv>)... [-p <v>]... [-o <out>]
validate <project> <region> <url-map> (-r <kv>)... [-p <v>]... [-o <out>]
region-zones
list <project> <region> [-p <v>]... [-o <out>]
regions
get <project> <region> [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
reservations
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <zone> <reservation> [-p <v>]... [-o <out>]
get <project> <zone> <reservation> [-p <v>]... [-o <out>]
get-iam-policy <project> <zone> <resource> [-p <v>]... [-o <out>]
insert <project> <zone> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
resize <project> <zone> <reservation> (-r <kv>)... [-p <v>]... [-o <out>]
set-iam-policy <project> <zone> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <zone> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <zone> <reservation> (-r <kv>)... [-p <v>]... [-o <out>]
resource-policies
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <resource-policy> [-p <v>]... [-o <out>]
get <project> <region> <resource-policy> [-p <v>]... [-o <out>]
get-iam-policy <project> <region> <resource> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <resource-policy> (-r <kv>)... [-p <v>]... [-o <out>]
set-iam-policy <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
routers
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <router> [-p <v>]... [-o <out>]
get <project> <region> <router> [-p <v>]... [-o <out>]
get-nat-ip-info <project> <region> <router> [-p <v>]... [-o <out>]
get-nat-mapping-info <project> <region> <router> [-p <v>]... [-o <out>]
get-router-status <project> <region> <router> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <router> (-r <kv>)... [-p <v>]... [-o <out>]
preview <project> <region> <router> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <region> <router> (-r <kv>)... [-p <v>]... [-o <out>]
routes
delete <project> <route> [-p <v>]... [-o <out>]
get <project> <route> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
security-policies
add-rule <project> <security-policy> (-r <kv>)... [-p <v>]... [-o <out>]
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <security-policy> [-p <v>]... [-o <out>]
get <project> <security-policy> [-p <v>]... [-o <out>]
get-rule <project> <security-policy> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
list-preconfigured-expression-sets <project> [-p <v>]... [-o <out>]
patch <project> <security-policy> (-r <kv>)... [-p <v>]... [-o <out>]
patch-rule <project> <security-policy> (-r <kv>)... [-p <v>]... [-o <out>]
remove-rule <project> <security-policy> [-p <v>]... [-o <out>]
set-labels <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
service-attachments
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <service-attachment> [-p <v>]... [-o <out>]
get <project> <region> <service-attachment> [-p <v>]... [-o <out>]
get-iam-policy <project> <region> <resource> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
patch <project> <region> <service-attachment> (-r <kv>)... [-p <v>]... [-o <out>]
set-iam-policy <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
snapshot-settings
get <project> [-p <v>]... [-o <out>]
patch <project> (-r <kv>)... [-p <v>]... [-o <out>]
snapshots
delete <project> <snapshot> [-p <v>]... [-o <out>]
get <project> <snapshot> [-p <v>]... [-o <out>]
get-iam-policy <project> <resource> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
set-iam-policy <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
set-labels <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
ssl-certificates
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <ssl-certificate> [-p <v>]... [-o <out>]
get <project> <ssl-certificate> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
ssl-policies
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <ssl-policy> [-p <v>]... [-o <out>]
get <project> <ssl-policy> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
list-available-features <project> [-p <v>]... [-o <out>]
patch <project> <ssl-policy> (-r <kv>)... [-p <v>]... [-o <out>]
subnetworks
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <subnetwork> [-p <v>]... [-o <out>]
expand-ip-cidr-range <project> <region> <subnetwork> (-r <kv>)... [-p <v>]... [-o <out>]
get <project> <region> <subnetwork> [-p <v>]... [-o <out>]
get-iam-policy <project> <region> <resource> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
list-usable <project> [-p <v>]... [-o <out>]
patch <project> <region> <subnetwork> (-r <kv>)... [-p <v>]... [-o <out>]
set-iam-policy <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
set-private-ip-google-access <project> <region> <subnetwork> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
target-grpc-proxies
delete <project> <target-grpc-proxy> [-p <v>]... [-o <out>]
get <project> <target-grpc-proxy> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <target-grpc-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
target-http-proxies
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <target-http-proxy> [-p <v>]... [-o <out>]
get <project> <target-http-proxy> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <target-http-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
set-url-map <project> <target-http-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
target-https-proxies
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <target-https-proxy> [-p <v>]... [-o <out>]
get <project> <target-https-proxy> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <target-https-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
set-certificate-map <project> <target-https-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
set-quic-override <project> <target-https-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
set-ssl-certificates <project> <target-https-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
set-ssl-policy <project> <target-https-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
set-url-map <project> <target-https-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
target-instances
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <zone> <target-instance> [-p <v>]... [-o <out>]
get <project> <zone> <target-instance> [-p <v>]... [-o <out>]
insert <project> <zone> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
set-security-policy <project> <zone> <target-instance> (-r <kv>)... [-p <v>]... [-o <out>]
target-pools
add-health-check <project> <region> <target-pool> (-r <kv>)... [-p <v>]... [-o <out>]
add-instance <project> <region> <target-pool> (-r <kv>)... [-p <v>]... [-o <out>]
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <target-pool> [-p <v>]... [-o <out>]
get <project> <region> <target-pool> [-p <v>]... [-o <out>]
get-health <project> <region> <target-pool> (-r <kv>)... [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
remove-health-check <project> <region> <target-pool> (-r <kv>)... [-p <v>]... [-o <out>]
remove-instance <project> <region> <target-pool> (-r <kv>)... [-p <v>]... [-o <out>]
set-backup <project> <region> <target-pool> (-r <kv>)... [-p <v>]... [-o <out>]
set-security-policy <project> <region> <target-pool> (-r <kv>)... [-p <v>]... [-o <out>]
target-ssl-proxies
delete <project> <target-ssl-proxy> [-p <v>]... [-o <out>]
get <project> <target-ssl-proxy> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
set-backend-service <project> <target-ssl-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
set-certificate-map <project> <target-ssl-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
set-proxy-header <project> <target-ssl-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
set-ssl-certificates <project> <target-ssl-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
set-ssl-policy <project> <target-ssl-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
target-tcp-proxies
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <target-tcp-proxy> [-p <v>]... [-o <out>]
get <project> <target-tcp-proxy> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
set-backend-service <project> <target-tcp-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
set-proxy-header <project> <target-tcp-proxy> (-r <kv>)... [-p <v>]... [-o <out>]
target-vpn-gateways
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <target-vpn-gateway> [-p <v>]... [-o <out>]
get <project> <region> <target-vpn-gateway> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
set-labels <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
url-maps
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <url-map> [-p <v>]... [-o <out>]
get <project> <url-map> [-p <v>]... [-o <out>]
insert <project> (-r <kv>)... [-p <v>]... [-o <out>]
invalidate-cache <project> <url-map> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
patch <project> <url-map> (-r <kv>)... [-p <v>]... [-o <out>]
update <project> <url-map> (-r <kv>)... [-p <v>]... [-o <out>]
validate <project> <url-map> (-r <kv>)... [-p <v>]... [-o <out>]
vpn-gateways
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <vpn-gateway> [-p <v>]... [-o <out>]
get <project> <region> <vpn-gateway> [-p <v>]... [-o <out>]
get-status <project> <region> <vpn-gateway> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
set-labels <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
test-iam-permissions <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
vpn-tunnels
aggregated-list <project> [-p <v>]... [-o <out>]
delete <project> <region> <vpn-tunnel> [-p <v>]... [-o <out>]
get <project> <region> <vpn-tunnel> [-p <v>]... [-o <out>]
insert <project> <region> (-r <kv>)... [-p <v>]... [-o <out>]
list <project> <region> [-p <v>]... [-o <out>]
set-labels <project> <region> <resource> (-r <kv>)... [-p <v>]... [-o <out>]
zone-operations
delete <project> <zone> <operation> [-p <v>]...
get <project> <zone> <operation> [-p <v>]... [-o <out>]
list <project> <zone> [-p <v>]... [-o <out>]
wait <project> <zone> <operation> [-p <v>]... [-o <out>]
zones
get <project> <zone> [-p <v>]... [-o <out>]
list <project> [-p <v>]... [-o <out>]
compute1 --help
Configuration:
[--scope <url>]...
Specify the authentication a method should be executed in. Each scope
requires the user to grant this application permission to use it.
If unset, it defaults to the shortest scope url for a particular method.
--config-dir <folder>
A directory into which we will store our persistent data. Defaults to
a user-writable directory that we will create during the first invocation.
[default: ~/.google-service-cli]
配置
程序将在 ~/.google-service-cli
目录中存储所有持久数据,该目录中的文件以 compute1-
为前缀。您可以使用 --config-dir
标志在每个调用的基础上更改用于存储配置的目录。
以下段落中提供了有关各种持久数据类型的更多信息。
身份验证
大多数API要求用户对任何请求进行身份验证。如果是这样,作用域 确定了授予的权限集。这些的粒度通常不超过 只读 或 完全访问。
如果未设置,系统将自动选择最小的可行范围,例如在调用只读方法时,它只会请求只读范围。您可以使用--scope
标志直接指定范围。所有适用的范围在相应方法的CLI文档中有说明。
第一次使用范围时,用户会被要求授权。根据CLI的指示授予权限,或拒绝。
如果用户验证了范围,相关信息将被存储在配置目录中,例如~/.google-service-cli/compute1-token-<scope-hash>.json
中的JSON格式。无需手动管理这些令牌。
要撤销授予的认证,请参阅官方文档。
应用程序密钥
为了允许任何应用程序使用Google服务,它需要使用Google开发者控制台进行注册。然后逐个为应用程序启用可用的API。大多数API都可以免费使用,并且有每日配额。
为了在不强迫任何人注册自己的应用程序的情况下更方便地使用CLI,CLI自带了一个默认的应用程序密钥,相应的配置已经完成。这也意味着全球范围内的重度使用可能会耗尽每日配额。
您可以通过在此位置放置自己的密钥文件来解决这个问题:~/.google-service-cli/compute1-secret.json
,假设已为它启用了所需的compute API。这样的密钥文件可以在Google开发者控制台的APIs & auth -> Credentials -> Download JSON中下载并直接使用。
有关如何设置Google项目和启用API的更多信息,请参阅官方文档。
调试
尽管CLI会尽力提供可用的错误消息,但有时可能希望知道导致特定问题的确切原因。这是通过允许所有客户端-服务器通信以标准错误原样输出来完成的。
--debug
标志将以Debug
表示形式将错误打印到标准错误。
您可以考虑将标准错误重定向到文件以方便使用,例如compute1 --debug <resource> <method> [options] 2>debug.txt
。
依赖项
~19–32MB
~594K SLoC