What is the purpose of default value of "-1" for --rev?
kurtkanaskie opened this issue · 0 comments
kurtkanaskie commented
Attempting to delete a proxy without specifying --rev results in an error.
Is this expected or does "-1" have special meaning, like the latest revision or deployed revision?
$ apigeecli -t $TOKEN --org $ORG apis delete --name example-v1
ERROR: 2021/11/04 13:30:31 httpclient.go:335: status code 404, error in response: {
"error": {
"code": 404,
"message": "resource organizations/ngsaas-5g-kurt/apis/example-v1/revisions/-1 not found",
"status": "NOT_FOUND",
"details": [
{
"@type": "type.googleapis.com/google.rpc.RequestInfo",
"requestId": "5855357083254557074"
}
]
}
}