apigee / apigeecli

This is a tool to interact with Apigee APIs. The tool lets you manage (create, del, get, list) environments, proxies, etc.
Apache License 2.0
51 stars 29 forks source link

organizations export --all fails for PAYG org with mixed environment types #449

Closed kurtkanaskie closed 5 months ago

kurtkanaskie commented 5 months ago

Trying to export an organization with mixed env types for PAYG fails even with continue-on-error

apigeecli organizations export --org $ORG --all --continue-on-error
...
    Exporting debugmask configuration...
{
  "error": {
    "code": 400,
    "message": "distributed tracing not enabled for environment \"bu1-test\" with type \"INTERMEDIATE\"",
    "status": "FAILED_PRECONDITION",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.RequestInfo",
        "requestId": "4862877826912272096"
      }
    ]
  }
}

Error: Bad Request - malformed request syntax

Commenting out those commands, then get error on BASE env

    Exporting KV Map names for environment dev-base...
{
  "error": {
    "code": 400,
    "message": "Operation not supported for env dev-base",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.RequestInfo",
        "requestId": "10886773693895084559"
      }
    ]
  }
}

Error: Bad Request - malformed request syntax