cheet sheet
You can’t using > < to compare value in string, even they are numbers, using regex instead. ``` jsonPayload.duration=~".*[0-9][0-9][0-9][0-9]" ```
cheet sheet
You can’t using > < to compare value in string, even they are numbers, using regex instead. ``` jsonPayload.duration=~".*[0-9][0-9][0-9][0-9]" ```
gsutil versioning get gs://xxx-infra
gs://xxx-infra: Suspended
如果没开启,打开 versioning,Enabling Object Versioning increases storage costs
gsutil versioning set on gs://xxx-infra
gsutil versioning get gs://xxx-infra
gs://xxx-infra: : Enabled
查看所有版本的所有文件
gsutil ls -a gs://xxx-infra
恢复某一个版本的文件
gsutil cp gs://xxx-infra/subnet_list.json#1607987168023139 gs://xxx-infra/subnet_list.json
安装 sdk
curl https://sdk.cloud.google.com | bash
查看当前授权
gcloud auth list
列出用过的 projects
gcloud projects list