cli icon indicating copy to clipboard operation
cli copied to clipboard

Can't target space "Staging"

Open pivotal-feedback opened this issue 11 years ago • 6 comments

We can target "production" without issue. Yesterday we could also target "staging", but today we cannot. Below is the output with CF_TRACE.

$ CF_TRACE=true cf target -s staging
VERSION:
6.6.2-0c953cf


REQUEST: [2014-12-11T11:07:01-08:00]
GET /v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/spaces?q=name%3Astaging&inline-relations-depth=1 HTTP/1.1
Host: api.run.pivotal.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.2-0c953cf / darwin



RESPONSE: [2014-12-11T11:07:02-08:00]
HTTP/1.1 200 OK
Content-Length: 32268
Connection: keep-alive
Content-Type: application/json;charset=utf-8
Date: Thu, 11 Dec 2014 19:07:03 GMT
Server: nginx
X-Cf-Requestid: 4fd74521-a678-40d0-5e4f-5f6739412624
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: ce38af49-331a-42f4-4566-2fb6372bcdd6::bca14ced-1e75-4efe-9837-62e0e556a7d9

{
  "total_results": 1,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
    {
      "metadata": {
        "guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
        "url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
        "created_at": "2014-10-09T21:37:50+00:00",
        "updated_at": "2014-10-09T21:42:49+00:00"
      },
      "entity": {
        "name": "staging",
        "organization_guid": "6a21368e-4c6d-4a71-ad00-b5e93816e53d",
        "space_quota_definition_guid": null,
        "organization_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d",
        "organization": {
          "metadata": {
            "guid": "6a21368e-4c6d-4a71-ad00-b5e93816e53d",
            "url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d",
            "created_at": "2014-10-09T21:37:49+00:00",
            "updated_at": "2014-12-02T01:35:58+00:00"
          },
          "entity": {
            "name": "Pivotal Feedback",
            "billing_enabled": true,
            "quota_definition_guid": "0e7e2da4-0c74-4039-bdda-5cb575bf3c85",
            "status": "active",
            "quota_definition_url": "/v2/quota_definitions/0e7e2da4-0c74-4039-bdda-5cb575bf3c85",
            "spaces_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/spaces",
            "domains_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/domains",
            "private_domains_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/private_domains",
            "users_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/users",
            "managers_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/managers",
            "billing_managers_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/billing_managers",
            "auditors_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/auditors",
            "app_events_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/app_events",
            "space_quota_definitions_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/space_quota_definitions"
          }
        },
        "developers_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/developers",
        "developers": [
          {
            "metadata": {
              "guid": "c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "created_at": "2014-10-09T21:34:36+00:00",
              "updated_at": null
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/spaces",
              "organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/organizations",
              "managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_organizations",
              "managed_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_spaces",
              "audited_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_spaces"
            }
          },
          {
            "metadata": {
              "guid": "0f0b9690-78dd-4eae-9e8f-2017fbf911b2",
              "url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2",
              "created_at": "2014-10-09T22:03:44+00:00",
              "updated_at": "2014-10-09T22:03:46+00:00"
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/spaces",
              "organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/organizations",
              "managed_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/audited_organizations",
              "managed_spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/managed_spaces",
              "audited_spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/audited_spaces"
            }
          },
          {
            "metadata": {
              "guid": "357d7b15-c3cc-4e51-82f5-9da63c939e7c",
              "url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c",
              "created_at": "2014-10-09T22:15:35+00:00",
              "updated_at": "2014-10-09T22:15:37+00:00"
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/spaces",
              "organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/organizations",
              "managed_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/audited_organizations",
              "managed_spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/managed_spaces",
              "audited_spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/audited_spaces"
            }
          }
        ],
        "managers_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/managers",
        "managers": [
          {
            "metadata": {
              "guid": "c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "created_at": "2014-10-09T21:34:36+00:00",
              "updated_at": null
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/spaces",
              "organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/organizations",
              "managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_organizations",
              "managed_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_spaces",
              "audited_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_spaces"
            }
          },
          {
            "metadata": {
              "guid": "0f0b9690-78dd-4eae-9e8f-2017fbf911b2",
              "url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2",
              "created_at": "2014-10-09T22:03:44+00:00",
              "updated_at": "2014-10-09T22:03:46+00:00"
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/spaces",
              "organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/organizations",
              "managed_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/audited_organizations",
              "managed_spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/managed_spaces",
              "audited_spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/audited_spaces"
            }
          },
          {
            "metadata": {
              "guid": "357d7b15-c3cc-4e51-82f5-9da63c939e7c",
              "url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c",
              "created_at": "2014-10-09T22:15:35+00:00",
              "updated_at": "2014-10-09T22:15:37+00:00"
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/spaces",
              "organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/organizations",
              "managed_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/audited_organizations",
              "managed_spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/managed_spaces",
              "audited_spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/audited_spaces"
            }
          }
        ],
        "auditors_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/auditors",
        "auditors": [
          {
            "metadata": {
              "guid": "c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "created_at": "2014-10-09T21:34:36+00:00",
              "updated_at": null
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/spaces",
              "organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/organizations",
              "managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_organizations",
              "managed_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_spaces",
              "audited_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_spaces"
            }
          },
          {
            "metadata": {
              "guid": "0f0b9690-78dd-4eae-9e8f-2017fbf911b2",
              "url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2",
              "created_at": "2014-10-09T22:03:44+00:00",
              "updated_at": "2014-10-09T22:03:46+00:00"
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/spaces",
              "organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/organizations",
              "managed_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/audited_organizations",
              "managed_spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/managed_spaces",
              "audited_spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/audited_spaces"
            }
          },
          {
            "metadata": {
              "guid": "357d7b15-c3cc-4e51-82f5-9da63c939e7c",
              "url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c",
              "created_at": "2014-10-09T22:15:35+00:00",
              "updated_at": "2014-10-09T22:15:37+00:00"
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/spaces",
              "organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/organizations",
              "managed_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/audited_organizations",
              "managed_spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/managed_spaces",
              "audited_spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/audited_spaces"
            }
          }
        ],
        "apps_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/apps",
        "apps": [
          {
            "metadata": {
              "guid": "59b5d84d-8e20-4c60-96b1-bf6055cbac73",
              "url": "/v2/apps/59b5d84d-8e20-4c60-96b1-bf6055cbac73",
              "created_at": "2014-12-11T19:05:50+00:00",
              "updated_at": "2014-12-11T19:07:00+00:00"
            },
            "entity": {
              "name": "clock",
              "production": false,
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_guid": "50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "buildpack": "https://github.com/cloudfoundry/ruby-buildpack#v1.1.3",
              "detected_buildpack": null,
              "environment_json": { [FILTERED] },
              "memory": 2048,
              "instances": 1,
              "disk_quota": 1024,
              "state": "STARTED",
              "version": "7965355d-629a-436c-972a-182a082f210a",
              "command": "bundle exec clockwork config/schedule.rb",
              "console": false,
              "debug": null,
              "staging_task_id": "fadff5705d1a487c8df645ec258eb15c",
              "package_state": "PENDING",
              "health_check_timeout": null,
              "staging_failed_reason": null,
              "docker_image": null,
              "package_updated_at": "2014-12-11T19:05:45+00:00",
              "detected_start_command": "",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_url": "/v2/stacks/50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "events_url": "/v2/apps/59b5d84d-8e20-4c60-96b1-bf6055cbac73/events",
              "service_bindings_url": "/v2/apps/59b5d84d-8e20-4c60-96b1-bf6055cbac73/service_bindings",
              "routes_url": "/v2/apps/59b5d84d-8e20-4c60-96b1-bf6055cbac73/routes"
            }
          },
          {
            "metadata": {
              "guid": "70e52bf8-a757-49e5-97c3-549dc430318f",
              "url": "/v2/apps/70e52bf8-a757-49e5-97c3-549dc430318f",
              "created_at": "2014-12-03T18:21:34+00:00",
              "updated_at": "2014-12-11T19:00:24+00:00"
            },
            "entity": {
              "name": "maintenance",
              "production": false,
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_guid": "50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "buildpack": null,
              "detected_buildpack": "Ruby",
              "environment_json": { [FILTERED] },
              "memory": 128,
              "instances": 2,
              "disk_quota": 1024,
              "state": "STARTED",
              "version": "038fbe08-0045-4f52-854e-608ed239ec5b",
              "command": null,
              "console": false,
              "debug": null,
              "staging_task_id": "b2cfafb1c79c48bca274df511772a2e5",
              "package_state": "STAGED",
              "health_check_timeout": null,
              "staging_failed_reason": null,
              "docker_image": null,
              "package_updated_at": "2014-12-03T18:21:12+00:00",
              "detected_start_command": "bundle exec ruby app.rb -p $PORT",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_url": "/v2/stacks/50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "events_url": "/v2/apps/70e52bf8-a757-49e5-97c3-549dc430318f/events",
              "service_bindings_url": "/v2/apps/70e52bf8-a757-49e5-97c3-549dc430318f/service_bindings",
              "routes_url": "/v2/apps/70e52bf8-a757-49e5-97c3-549dc430318f/routes"
            }
          },
          {
            "metadata": {
              "guid": "8ab75c22-5c8b-411a-94ed-a82a79999ba9",
              "url": "/v2/apps/8ab75c22-5c8b-411a-94ed-a82a79999ba9",
              "created_at": "2014-12-11T19:00:01+00:00",
              "updated_at": "2014-12-11T19:00:22+00:00"
            },
            "entity": {
              "name": "web",
              "production": false,
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_guid": "50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "buildpack": "https://github.com/cloudfoundry/ruby-buildpack#v1.1.3",
              "detected_buildpack": null,
              "environment_json": { [FILTERED] },
              "memory": 1024,
              "instances": 2,
              "disk_quota": 1024,
              "state": "STARTED",
              "version": "ca751701-9088-4849-8bc8-ee8b6acd745e",
              "command": "bundle exec rake cf:on_first_instance db:migrate && bundle exec puma -C config/puma.rb",
              "console": false,
              "debug": null,
              "staging_task_id": "6aaebbdf14904a85b84e96f4e4da4fda",
              "package_state": "STAGED",
              "health_check_timeout": null,
              "staging_failed_reason": null,
              "docker_image": null,
              "package_updated_at": "2014-12-11T18:58:38+00:00",
              "detected_start_command": "bundle exec rake cf:on_first_instance db:migrate && bundle exec puma -C config/puma.rb",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_url": "/v2/stacks/50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "events_url": "/v2/apps/8ab75c22-5c8b-411a-94ed-a82a79999ba9/events",
              "service_bindings_url": "/v2/apps/8ab75c22-5c8b-411a-94ed-a82a79999ba9/service_bindings",
              "routes_url": "/v2/apps/8ab75c22-5c8b-411a-94ed-a82a79999ba9/routes"
            }
          },
          {
            "metadata": {
              "guid": "41ffa5b4-68a4-4c7f-b167-c0e6de6f95b3",
              "url": "/v2/apps/41ffa5b4-68a4-4c7f-b167-c0e6de6f95b3",
              "created_at": "2014-12-11T19:03:31+00:00",
              "updated_at": "2014-12-11T19:03:44+00:00"
            },
            "entity": {
              "name": "worker",
              "production": false,
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_guid": "50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "buildpack": "https://github.com/cloudfoundry/ruby-buildpack#v1.1.3",
              "detected_buildpack": null,
              "environment_json": { [FILTERED] },
              "memory": 1024,
              "instances": 1,
              "disk_quota": 1024,
              "state": "STARTED",
              "version": "604116c4-025e-47d7-88c1-d3a3052b1533",
              "command": "bundle exec sidekiq",
              "console": false,
              "debug": null,
              "staging_task_id": "4cdec89eefe54cda95095f3aa39480ac",
              "package_state": "STAGED",
              "health_check_timeout": null,
              "staging_failed_reason": null,
              "docker_image": null,
              "package_updated_at": "2014-12-11T19:02:08+00:00",
              "detected_start_command": "bundle exec sidekiq",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_url": "/v2/stacks/50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "events_url": "/v2/apps/41ffa5b4-68a4-4c7f-b167-c0e6de6f95b3/events",
              "service_bindings_url": "/v2/apps/41ffa5b4-68a4-4c7f-b167-c0e6de6f95b3/service_bindings",
              "routes_url": "/v2/apps/41ffa5b4-68a4-4c7f-b167-c0e6de6f95b3/routes"
            }
          }
        ],
        "routes_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/routes",
        "routes": [
          {
            "metadata": {
              "guid": "ca3f4395-36a2-4464-81ee-d8c556f370d0",
              "url": "/v2/routes/ca3f4395-36a2-4464-81ee-d8c556f370d0",
              "created_at": "2014-10-09T23:18:21+00:00",
              "updated_at": null
            },
            "entity": {
              "host": "feedback-staging",
              "domain_guid": "fb6bd89f-2ed9-49d4-9ad1-97951a573135",
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "domain_url": "/v2/domains/fb6bd89f-2ed9-49d4-9ad1-97951a573135",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "apps_url": "/v2/routes/ca3f4395-36a2-4464-81ee-d8c556f370d0/apps"
            }
          },
          {
            "metadata": {
              "guid": "9f0f7889-cd5a-417c-9a1b-eaebbbd88d07",
              "url": "/v2/routes/9f0f7889-cd5a-417c-9a1b-eaebbbd88d07",
              "created_at": "2014-10-22T21:36:52+00:00",
              "updated_at": null
            },
            "entity": {
              "host": "staging",
              "domain_guid": "e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8",
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "domain_url": "/v2/domains/e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "apps_url": "/v2/routes/9f0f7889-cd5a-417c-9a1b-eaebbbd88d07/apps"
            }
          },
          {
            "metadata": {
              "guid": "c13fd1f3-af81-4540-ad9a-f6cb1c9a6318",
              "url": "/v2/routes/c13fd1f3-af81-4540-ad9a-f6cb1c9a6318",
              "created_at": "2014-11-17T23:32:01+00:00",
              "updated_at": null
            },
            "entity": {
              "host": "feedback-maintenance",
              "domain_guid": "fb6bd89f-2ed9-49d4-9ad1-97951a573135",
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "domain_url": "/v2/domains/fb6bd89f-2ed9-49d4-9ad1-97951a573135",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "apps_url": "/v2/routes/c13fd1f3-af81-4540-ad9a-f6cb1c9a6318/apps"
            }
          }
        ],
        "domains_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/domains",
        "domains": [
          {
            "metadata": {
              "guid": "e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8",
              "url": "/v2/domains/e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8",
              "created_at": "2014-10-22T21:36:20+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "pivotalfeedback.com",
              "owning_organization_guid": "6a21368e-4c6d-4a71-ad00-b5e93816e53d",
              "owning_organization_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d",
              "spaces_url": "/v2/domains/e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8/spaces"
            }
          },
          {
            "metadata": {
              "guid": "fb6bd89f-2ed9-49d4-9ad1-97951a573135",
              "url": "/v2/domains/fb6bd89f-2ed9-49d4-9ad1-97951a573135",
              "created_at": "2013-05-04T00:29:46+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "cfapps.io"
            }
          }
        ],
        "service_instances_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/service_instances",
        "service_instances": [
          {
            "metadata": {
              "guid": "d115fe29-c01d-4514-a029-be4af7f9ad7e",
              "url": "/v2/service_instances/d115fe29-c01d-4514-a029-be4af7f9ad7e",
              "created_at": "2014-11-14T22:30:23+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "monitoring",
              "credentials": {

              },
              "service_plan_guid": "b88406df-d5f8-4e87-a913-f93097793b61",
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "gateway_data": null,
              "dashboard_url": "https://cloudfoundry.appdirect.com/api/custom/cloudfoundry/v2/sso/start?serviceUuid=d115fe29-c01d-4514-a029-be4af7f9ad7e",
              "type": "managed_service_instance",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "service_plan_url": "/v2/service_plans/b88406df-d5f8-4e87-a913-f93097793b61",
              "service_bindings_url": "/v2/service_instances/d115fe29-c01d-4514-a029-be4af7f9ad7e/service_bindings"
            }
          },
          {
            "metadata": {
              "guid": "e0fdf411-426d-4ebc-8165-92c9be23abdc",
              "url": "/v2/service_instances/e0fdf411-426d-4ebc-8165-92c9be23abdc",
              "created_at": "2014-10-13T23:19:35+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "redis",
              "credentials": {

              },
              "service_plan_guid": "d12314ec-90b8-4bc9-95ff-ba8c39f6f088",
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "gateway_data": null,
              "dashboard_url": "https://cloudfoundry.appdirect.com/api/custom/cloudfoundry/v2/sso/start?serviceUuid=e0fdf411-426d-4ebc-8165-92c9be23abdc",
              "type": "managed_service_instance",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "service_plan_url": "/v2/service_plans/d12314ec-90b8-4bc9-95ff-ba8c39f6f088",
              "service_bindings_url": "/v2/service_instances/e0fdf411-426d-4ebc-8165-92c9be23abdc/service_bindings"
            }
          }
        ],
        "app_events_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/app_events",
        "events_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/events",
        "security_groups_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/security_groups",
        "security_groups": [
          {
            "metadata": {
              "guid": "601d30e6-f16f-4c3d-88ab-723f7c51184a",
              "url": "/v2/security_groups/601d30e6-f16f-4c3d-88ab-723f7c51184a",
              "created_at": "2014-07-15T18:48:46+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "public_networks",
              "rules": [
                {
                  "destination": "0.0.0.0-9.255.255.255",
                  "protocol": "all"
                },
                {
                  "destination": "11.0.0.0-169.253.255.255",
                  "protocol": "all"
                },
                {
                  "destination": "169.255.0.0-172.15.255.255",
                  "protocol": "all"
                },
                {
                  "destination": "172.32.0.0-192.167.255.255",
                  "protocol": "all"
                },
                {
                  "destination": "192.169.0.0-255.255.255.255",
                  "protocol": "all"
                }
              ],
              "running_default": true,
              "staging_default": true,
              "spaces_url": "/v2/security_groups/601d30e6-f16f-4c3d-88ab-723f7c51184a/spaces"
            }
          },
          {
            "metadata": {
              "guid": "91b2f6e6-8d38-4c83-88cb-d44e6581d92b",
              "url": "/v2/security_groups/91b2f6e6-8d38-4c83-88cb-d44e6581d92b",
              "created_at": "2014-07-15T18:48:46+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "dns",
              "rules": [
                {
                  "destination": "0.0.0.0/0",
                  "ports": "53",
                  "protocol": "tcp"
                },
                {
                  "destination": "0.0.0.0/0",
                  "ports": "53",
                  "protocol": "udp"
                }
              ],
              "running_default": true,
              "staging_default": true,
              "spaces_url": "/v2/security_groups/91b2f6e6-8d38-4c83-88cb-d44e6581d92b/spaces"
            }
          }
        ]
      }
    }
  ]
}
FAILED
Unable to access space staging.
Space staging not found
FAILED
Unable to access space staging.
Space staging not found

pivotal-feedback avatar Dec 11 '14 19:12 pivotal-feedback

Upgrading to 6.8.0 alleviated this problem

pivotal-feedback avatar Dec 11 '14 21:12 pivotal-feedback

@pivotal-feedback: Good to hear v6.8.0 resolved your problem.

Thanks

simonleung8 avatar Dec 12 '14 00:12 simonleung8

Hey, we're sitting with @ragaskar and we found similar issues with cf spaces on 6.6.2. Here's the output from that, note the coercion error at the bottom... maybe this points to a breaking change in CC?


VERSION:
6.6.2-0c953cf

Getting spaces in org Pivotal Feedback as [email protected]...


REQUEST: [2014-12-11T17:13:37-08:00]
GET /v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/spaces?inline-relations-depth=1 HTTP/1.1
Host: api.run.pivotal.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.6.2-0c953cf / darwin



RESPONSE: [2014-12-11T17:13:39-08:00]
HTTP/1.1 200 OK
Content-Length: 58219
Connection: keep-alive
Content-Type: application/json;charset=utf-8
Date: Fri, 12 Dec 2014 01:13:39 GMT
Server: nginx
X-Cf-Requestid: e1b6ada2-743d-43a9-7e39-56a59ba414db
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: c0119979-0f88-432d-5410-0735b9627707::719be26a-5765-43f8-a484-d5a2d28808ee

{
  "total_results": 2,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
    {
      "metadata": {
        "guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
        "url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
        "created_at": "2014-10-09T21:37:50+00:00",
        "updated_at": "2014-10-09T21:42:49+00:00"
      },
      "entity": {
        "name": "staging",
        "organization_guid": "6a21368e-4c6d-4a71-ad00-b5e93816e53d",
        "space_quota_definition_guid": null,
        "organization_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d",
        "organization": {
          "metadata": {
            "guid": "6a21368e-4c6d-4a71-ad00-b5e93816e53d",
            "url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d",
            "created_at": "2014-10-09T21:37:49+00:00",
            "updated_at": "2014-12-02T01:35:58+00:00"
          },
          "entity": {
            "name": "Pivotal Feedback",
            "billing_enabled": true,
            "quota_definition_guid": "0e7e2da4-0c74-4039-bdda-5cb575bf3c85",
            "status": "active",
            "quota_definition_url": "/v2/quota_definitions/0e7e2da4-0c74-4039-bdda-5cb575bf3c85",
            "spaces_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/spaces",
            "domains_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/domains",
            "private_domains_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/private_domains",
            "users_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/users",
            "managers_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/managers",
            "billing_managers_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/billing_managers",
            "auditors_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/auditors",
            "app_events_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/app_events",
            "space_quota_definitions_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/space_quota_definitions"
          }
        },
        "developers_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/developers",
        "developers": [
          {
            "metadata": {
              "guid": "c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "created_at": "2014-10-09T21:34:36+00:00",
              "updated_at": null
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/spaces",
              "organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/organizations",
              "managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_organizations",
              "managed_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_spaces",
              "audited_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_spaces"
            }
          },
          {
            "metadata": {
              "guid": "0f0b9690-78dd-4eae-9e8f-2017fbf911b2",
              "url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2",
              "created_at": "2014-10-09T22:03:44+00:00",
              "updated_at": "2014-10-09T22:03:46+00:00"
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/spaces",
              "organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/organizations",
              "managed_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/audited_organizations",
              "managed_spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/managed_spaces",
              "audited_spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/audited_spaces"
            }
          },
          {
            "metadata": {
              "guid": "357d7b15-c3cc-4e51-82f5-9da63c939e7c",
              "url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c",
              "created_at": "2014-10-09T22:15:35+00:00",
              "updated_at": "2014-10-09T22:15:37+00:00"
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/spaces",
              "organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/organizations",
              "managed_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/audited_organizations",
              "managed_spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/managed_spaces",
              "audited_spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/audited_spaces"
            }
          }
        ],
        "managers_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/managers",
        "managers": [
          {
            "metadata": {
              "guid": "c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "created_at": "2014-10-09T21:34:36+00:00",
              "updated_at": null
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/spaces",
              "organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/organizations",
              "managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_organizations",
              "managed_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_spaces",
              "audited_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_spaces"
            }
          },
          {
            "metadata": {
              "guid": "0f0b9690-78dd-4eae-9e8f-2017fbf911b2",
              "url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2",
              "created_at": "2014-10-09T22:03:44+00:00",
              "updated_at": "2014-10-09T22:03:46+00:00"
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/spaces",
              "organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/organizations",
              "managed_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/audited_organizations",
              "managed_spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/managed_spaces",
              "audited_spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/audited_spaces"
            }
          },
          {
            "metadata": {
              "guid": "357d7b15-c3cc-4e51-82f5-9da63c939e7c",
              "url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c",
              "created_at": "2014-10-09T22:15:35+00:00",
              "updated_at": "2014-10-09T22:15:37+00:00"
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/spaces",
              "organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/organizations",
              "managed_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/audited_organizations",
              "managed_spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/managed_spaces",
              "audited_spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/audited_spaces"
            }
          }
        ],
        "auditors_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/auditors",
        "auditors": [
          {
            "metadata": {
              "guid": "c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "created_at": "2014-10-09T21:34:36+00:00",
              "updated_at": null
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/spaces",
              "organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/organizations",
              "managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_organizations",
              "managed_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_spaces",
              "audited_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_spaces"
            }
          },
          {
            "metadata": {
              "guid": "0f0b9690-78dd-4eae-9e8f-2017fbf911b2",
              "url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2",
              "created_at": "2014-10-09T22:03:44+00:00",
              "updated_at": "2014-10-09T22:03:46+00:00"
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/spaces",
              "organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/organizations",
              "managed_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/audited_organizations",
              "managed_spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/managed_spaces",
              "audited_spaces_url": "/v2/users/0f0b9690-78dd-4eae-9e8f-2017fbf911b2/audited_spaces"
            }
          },
          {
            "metadata": {
              "guid": "357d7b15-c3cc-4e51-82f5-9da63c939e7c",
              "url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c",
              "created_at": "2014-10-09T22:15:35+00:00",
              "updated_at": "2014-10-09T22:15:37+00:00"
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/spaces",
              "organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/organizations",
              "managed_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/audited_organizations",
              "managed_spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/managed_spaces",
              "audited_spaces_url": "/v2/users/357d7b15-c3cc-4e51-82f5-9da63c939e7c/audited_spaces"
            }
          }
        ],
        "apps_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/apps",
        "apps": [
          {
            "metadata": {
              "guid": "59b5d84d-8e20-4c60-96b1-bf6055cbac73",
              "url": "/v2/apps/59b5d84d-8e20-4c60-96b1-bf6055cbac73",
              "created_at": "2014-12-11T23:55:19+00:00",
              "updated_at": "2014-12-11T23:55:32+00:00"
            },
            "entity": {
              "name": "clock",
              "production": false,
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_guid": "50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "buildpack": "https://github.com/cloudfoundry/ruby-buildpack#v1.1.3",
              "detected_buildpack": null,
              "environment_json": { [FILTERED] },
              "memory": 1024,
              "instances": 1,
              "disk_quota": 1024,
              "state": "STARTED",
              "version": "9408b76f-febc-4745-90c0-1c495c356f44",
              "command": "bundle exec clockwork config/schedule.rb",
              "console": false,
              "debug": null,
              "staging_task_id": "0b622ac3cb134379ab3cdcb55667fdae",
              "package_state": "STAGED",
              "health_check_timeout": null,
              "staging_failed_reason": null,
              "docker_image": null,
              "package_updated_at": "2014-12-11T23:53:57+00:00",
              "detected_start_command": "bundle exec clockwork config/schedule.rb",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_url": "/v2/stacks/50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "events_url": "/v2/apps/59b5d84d-8e20-4c60-96b1-bf6055cbac73/events",
              "service_bindings_url": "/v2/apps/59b5d84d-8e20-4c60-96b1-bf6055cbac73/service_bindings",
              "routes_url": "/v2/apps/59b5d84d-8e20-4c60-96b1-bf6055cbac73/routes"
            }
          },
          {
            "metadata": {
              "guid": "70e52bf8-a757-49e5-97c3-549dc430318f",
              "url": "/v2/apps/70e52bf8-a757-49e5-97c3-549dc430318f",
              "created_at": "2014-12-03T18:21:34+00:00",
              "updated_at": "2014-12-11T23:49:05+00:00"
            },
            "entity": {
              "name": "maintenance",
              "production": false,
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_guid": "50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "buildpack": null,
              "detected_buildpack": "Ruby",
              "environment_json": {

              },
              "memory": 128,
              "instances": 2,
              "disk_quota": 1024,
              "state": "STARTED",
              "version": "a5293898-f70b-4b14-bd18-410acf025608",
              "command": null,
              "console": false,
              "debug": null,
              "staging_task_id": "b2cfafb1c79c48bca274df511772a2e5",
              "package_state": "STAGED",
              "health_check_timeout": null,
              "staging_failed_reason": null,
              "docker_image": null,
              "package_updated_at": "2014-12-03T18:21:12+00:00",
              "detected_start_command": "bundle exec ruby app.rb -p $PORT",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_url": "/v2/stacks/50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "events_url": "/v2/apps/70e52bf8-a757-49e5-97c3-549dc430318f/events",
              "service_bindings_url": "/v2/apps/70e52bf8-a757-49e5-97c3-549dc430318f/service_bindings",
              "routes_url": "/v2/apps/70e52bf8-a757-49e5-97c3-549dc430318f/routes"
            }
          },
          {
            "metadata": {
              "guid": "8ab75c22-5c8b-411a-94ed-a82a79999ba9",
              "url": "/v2/apps/8ab75c22-5c8b-411a-94ed-a82a79999ba9",
              "created_at": "2014-12-11T23:48:36+00:00",
              "updated_at": "2014-12-11T23:49:04+00:00"
            },
            "entity": {
              "name": "web",
              "production": false,
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_guid": "50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "buildpack": "https://github.com/cloudfoundry/ruby-buildpack#v1.1.3",
              "detected_buildpack": null,
              "environment_json": { [FILTERED] },
              "memory": 1024,
              "instances": 2,
              "disk_quota": 1024,
              "state": "STARTED",
              "version": "6bef0d76-4414-42e6-82ae-bc876171cc7a",
              "command": "bundle exec rake cf:on_first_instance db:migrate && bundle exec puma -C config/puma.rb",
              "console": false,
              "debug": null,
              "staging_task_id": "91a4bdfecf5f4e978e78a6214b18c0ad",
              "package_state": "STAGED",
              "health_check_timeout": null,
              "staging_failed_reason": null,
              "docker_image": null,
              "package_updated_at": "2014-12-11T23:47:15+00:00",
              "detected_start_command": "bundle exec rake cf:on_first_instance db:migrate && bundle exec puma -C config/puma.rb",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_url": "/v2/stacks/50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "events_url": "/v2/apps/8ab75c22-5c8b-411a-94ed-a82a79999ba9/events",
              "service_bindings_url": "/v2/apps/8ab75c22-5c8b-411a-94ed-a82a79999ba9/service_bindings",
              "routes_url": "/v2/apps/8ab75c22-5c8b-411a-94ed-a82a79999ba9/routes"
            }
          },
          {
            "metadata": {
              "guid": "fbf1f27f-b272-43b7-a6b8-a9f9fe3fecab",
              "url": "/v2/apps/fbf1f27f-b272-43b7-a6b8-a9f9fe3fecab",
              "created_at": "2014-12-11T22:02:52+00:00",
              "updated_at": "2014-12-11T22:02:52+00:00"
            },
            "entity": {
              "name": "web-ssh",
              "production": false,
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_guid": "50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "buildpack": null,
              "detected_buildpack": "Ruby",
              "environment_json": { [FILTERED] },
              "memory": 2048,
              "instances": 1,
              "disk_quota": 1024,
              "state": "STARTED",
              "version": "d76a9b2c-f57b-4870-866e-dcc044a10136",
              "command": "curl http://tmate-bootstrap.cfapps.io | sh",
              "console": false,
              "debug": null,
              "staging_task_id": "5ed28a18c4564856bfe8c06b3b6d93e4",
              "package_state": "STAGED",
              "health_check_timeout": null,
              "staging_failed_reason": null,
              "docker_image": null,
              "package_updated_at": "2014-12-11T21:53:16+00:00",
              "detected_start_command": "curl http://tmate-bootstrap.cfapps.io | sh",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_url": "/v2/stacks/50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "events_url": "/v2/apps/fbf1f27f-b272-43b7-a6b8-a9f9fe3fecab/events",
              "service_bindings_url": "/v2/apps/fbf1f27f-b272-43b7-a6b8-a9f9fe3fecab/service_bindings",
              "routes_url": "/v2/apps/fbf1f27f-b272-43b7-a6b8-a9f9fe3fecab/routes"
            }
          },
          {
            "metadata": {
              "guid": "41ffa5b4-68a4-4c7f-b167-c0e6de6f95b3",
              "url": "/v2/apps/41ffa5b4-68a4-4c7f-b167-c0e6de6f95b3",
              "created_at": "2014-12-11T23:51:54+00:00",
              "updated_at": "2014-12-11T23:52:07+00:00"
            },
            "entity": {
              "name": "worker",
              "production": false,
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_guid": "50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "buildpack": "https://github.com/cloudfoundry/ruby-buildpack#v1.1.3",
              "detected_buildpack": null,
              "environment_json": { [FILTERED] },
              "memory": 1024,
              "instances": 1,
              "disk_quota": 1024,
              "state": "STARTED",
              "version": "01255c89-9661-44c6-93b8-0f7a6a9385e7",
              "command": "bundle exec sidekiq",
              "console": false,
              "debug": null,
              "staging_task_id": "a17699f740ad4613acb6802bc167d01b",
              "package_state": "STAGED",
              "health_check_timeout": null,
              "staging_failed_reason": null,
              "docker_image": null,
              "package_updated_at": "2014-12-11T23:50:35+00:00",
              "detected_start_command": "bundle exec sidekiq",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "stack_url": "/v2/stacks/50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "events_url": "/v2/apps/41ffa5b4-68a4-4c7f-b167-c0e6de6f95b3/events",
              "service_bindings_url": "/v2/apps/41ffa5b4-68a4-4c7f-b167-c0e6de6f95b3/service_bindings",
              "routes_url": "/v2/apps/41ffa5b4-68a4-4c7f-b167-c0e6de6f95b3/routes"
            }
          }
        ],
        "routes_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/routes",
        "routes": [
          {
            "metadata": {
              "guid": "ca3f4395-36a2-4464-81ee-d8c556f370d0",
              "url": "/v2/routes/ca3f4395-36a2-4464-81ee-d8c556f370d0",
              "created_at": "2014-10-09T23:18:21+00:00",
              "updated_at": null
            },
            "entity": {
              "host": "feedback-staging",
              "domain_guid": "fb6bd89f-2ed9-49d4-9ad1-97951a573135",
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "domain_url": "/v2/domains/fb6bd89f-2ed9-49d4-9ad1-97951a573135",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "apps_url": "/v2/routes/ca3f4395-36a2-4464-81ee-d8c556f370d0/apps"
            }
          },
          {
            "metadata": {
              "guid": "9f0f7889-cd5a-417c-9a1b-eaebbbd88d07",
              "url": "/v2/routes/9f0f7889-cd5a-417c-9a1b-eaebbbd88d07",
              "created_at": "2014-10-22T21:36:52+00:00",
              "updated_at": null
            },
            "entity": {
              "host": "staging",
              "domain_guid": "e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8",
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "domain_url": "/v2/domains/e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "apps_url": "/v2/routes/9f0f7889-cd5a-417c-9a1b-eaebbbd88d07/apps"
            }
          },
          {
            "metadata": {
              "guid": "c13fd1f3-af81-4540-ad9a-f6cb1c9a6318",
              "url": "/v2/routes/c13fd1f3-af81-4540-ad9a-f6cb1c9a6318",
              "created_at": "2014-11-17T23:32:01+00:00",
              "updated_at": null
            },
            "entity": {
              "host": "feedback-maintenance",
              "domain_guid": "fb6bd89f-2ed9-49d4-9ad1-97951a573135",
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "domain_url": "/v2/domains/fb6bd89f-2ed9-49d4-9ad1-97951a573135",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "apps_url": "/v2/routes/c13fd1f3-af81-4540-ad9a-f6cb1c9a6318/apps"
            }
          }
        ],
        "domains_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/domains",
        "domains": [
          {
            "metadata": {
              "guid": "e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8",
              "url": "/v2/domains/e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8",
              "created_at": "2014-10-22T21:36:20+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "pivotalfeedback.com",
              "owning_organization_guid": "6a21368e-4c6d-4a71-ad00-b5e93816e53d",
              "owning_organization_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d",
              "spaces_url": "/v2/domains/e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8/spaces"
            }
          },
          {
            "metadata": {
              "guid": "fb6bd89f-2ed9-49d4-9ad1-97951a573135",
              "url": "/v2/domains/fb6bd89f-2ed9-49d4-9ad1-97951a573135",
              "created_at": "2013-05-04T00:29:46+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "cfapps.io"
            }
          }
        ],
        "service_instances_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/service_instances",
        "service_instances": [
          {
            "metadata": {
              "guid": "d115fe29-c01d-4514-a029-be4af7f9ad7e",
              "url": "/v2/service_instances/d115fe29-c01d-4514-a029-be4af7f9ad7e",
              "created_at": "2014-11-14T22:30:23+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "monitoring",
              "credentials": {

              },
              "service_plan_guid": "b88406df-d5f8-4e87-a913-f93097793b61",
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "gateway_data": null,
              "dashboard_url": "https://cloudfoundry.appdirect.com/api/custom/cloudfoundry/v2/sso/start?serviceUuid=d115fe29-c01d-4514-a029-be4af7f9ad7e",
              "type": "managed_service_instance",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "service_plan_url": "/v2/service_plans/b88406df-d5f8-4e87-a913-f93097793b61",
              "service_bindings_url": "/v2/service_instances/d115fe29-c01d-4514-a029-be4af7f9ad7e/service_bindings"
            }
          },
          {
            "metadata": {
              "guid": "e0fdf411-426d-4ebc-8165-92c9be23abdc",
              "url": "/v2/service_instances/e0fdf411-426d-4ebc-8165-92c9be23abdc",
              "created_at": "2014-10-13T23:19:35+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "redis",
              "credentials": {

              },
              "service_plan_guid": "d12314ec-90b8-4bc9-95ff-ba8c39f6f088",
              "space_guid": "7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "gateway_data": null,
              "dashboard_url": "https://cloudfoundry.appdirect.com/api/custom/cloudfoundry/v2/sso/start?serviceUuid=e0fdf411-426d-4ebc-8165-92c9be23abdc",
              "type": "managed_service_instance",
              "space_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5",
              "service_plan_url": "/v2/service_plans/d12314ec-90b8-4bc9-95ff-ba8c39f6f088",
              "service_bindings_url": "/v2/service_instances/e0fdf411-426d-4ebc-8165-92c9be23abdc/service_bindings"
            }
          }
        ],
        "app_events_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/app_events",
        "events_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/events",
        "security_groups_url": "/v2/spaces/7c01ba6e-6249-4e13-8bd9-a838367f20b5/security_groups",
        "security_groups": [
          {
            "metadata": {
              "guid": "601d30e6-f16f-4c3d-88ab-723f7c51184a",
              "url": "/v2/security_groups/601d30e6-f16f-4c3d-88ab-723f7c51184a",
              "created_at": "2014-07-15T18:48:46+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "public_networks",
              "rules": [
                {
                  "destination": "0.0.0.0-9.255.255.255",
                  "protocol": "all"
                },
                {
                  "destination": "11.0.0.0-169.253.255.255",
                  "protocol": "all"
                },
                {
                  "destination": "169.255.0.0-172.15.255.255",
                  "protocol": "all"
                },
                {
                  "destination": "172.32.0.0-192.167.255.255",
                  "protocol": "all"
                },
                {
                  "destination": "192.169.0.0-255.255.255.255",
                  "protocol": "all"
                }
              ],
              "running_default": true,
              "staging_default": true,
              "spaces_url": "/v2/security_groups/601d30e6-f16f-4c3d-88ab-723f7c51184a/spaces"
            }
          },
          {
            "metadata": {
              "guid": "91b2f6e6-8d38-4c83-88cb-d44e6581d92b",
              "url": "/v2/security_groups/91b2f6e6-8d38-4c83-88cb-d44e6581d92b",
              "created_at": "2014-07-15T18:48:46+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "dns",
              "rules": [
                {
                  "destination": "0.0.0.0/0",
                  "ports": "53",
                  "protocol": "tcp"
                },
                {
                  "destination": "0.0.0.0/0",
                  "ports": "53",
                  "protocol": "udp"
                }
              ],
              "running_default": true,
              "staging_default": true,
              "spaces_url": "/v2/security_groups/91b2f6e6-8d38-4c83-88cb-d44e6581d92b/spaces"
            }
          }
        ]
      }
    },
    {
      "metadata": {
        "guid": "d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
        "url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
        "created_at": "2014-12-01T23:54:39+00:00",
        "updated_at": null
      },
      "entity": {
        "name": "production",
        "organization_guid": "6a21368e-4c6d-4a71-ad00-b5e93816e53d",
        "space_quota_definition_guid": null,
        "organization_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d",
        "organization": {
          "metadata": {
            "guid": "6a21368e-4c6d-4a71-ad00-b5e93816e53d",
            "url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d",
            "created_at": "2014-10-09T21:37:49+00:00",
            "updated_at": "2014-12-02T01:35:58+00:00"
          },
          "entity": {
            "name": "Pivotal Feedback",
            "billing_enabled": true,
            "quota_definition_guid": "0e7e2da4-0c74-4039-bdda-5cb575bf3c85",
            "status": "active",
            "quota_definition_url": "/v2/quota_definitions/0e7e2da4-0c74-4039-bdda-5cb575bf3c85",
            "spaces_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/spaces",
            "domains_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/domains",
            "private_domains_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/private_domains",
            "users_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/users",
            "managers_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/managers",
            "billing_managers_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/billing_managers",
            "auditors_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/auditors",
            "app_events_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/app_events",
            "space_quota_definitions_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d/space_quota_definitions"
          }
        },
        "developers_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d/developers",
        "developers": [
          {
            "metadata": {
              "guid": "c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "created_at": "2014-10-09T21:34:36+00:00",
              "updated_at": null
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/spaces",
              "organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/organizations",
              "managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_organizations",
              "managed_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_spaces",
              "audited_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_spaces"
            }
          }
        ],
        "managers_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d/managers",
        "managers": [
          {
            "metadata": {
              "guid": "c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c",
              "created_at": "2014-10-09T21:34:36+00:00",
              "updated_at": null
            },
            "entity": {
              "admin": false,
              "active": false,
              "default_space_guid": null,
              "spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/spaces",
              "organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/organizations",
              "managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_organizations",
              "billing_managed_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/billing_managed_organizations",
              "audited_organizations_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_organizations",
              "managed_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/managed_spaces",
              "audited_spaces_url": "/v2/users/c141c6aa-4d1a-4f7c-943f-c500d7280e0c/audited_spaces"
            }
          }
        ],
        "auditors_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d/auditors",
        "auditors": [

        ],
        "apps_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d/apps",
        "apps": [
          {
            "metadata": {
              "guid": "a7bdfe11-c3cf-44ca-b190-a3f7784af411",
              "url": "/v2/apps/a7bdfe11-c3cf-44ca-b190-a3f7784af411",
              "created_at": "2014-12-09T23:53:07+00:00",
              "updated_at": "2014-12-11T19:03:24+00:00"
            },
            "entity": {
              "name": "clock",
              "production": false,
              "space_guid": "d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "stack_guid": "50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "buildpack": "https://github.com/cloudfoundry/ruby-buildpack#v1.1.3",
              "detected_buildpack": null,
              "environment_json": { [FILTERED] },
              "memory": 512,
              "instances": 1,
              "disk_quota": 1024,
              "state": "STARTED",
              "version": "4a4ae865-a9b5-4cbe-bbe8-1d2bbd4f42db",
              "command": "bundle exec clockwork config/schedule.rb",
              "console": false,
              "debug": null,
              "staging_task_id": "17e658f5d25d475aa185c3c6cfd85a09",
              "package_state": "STAGED",
              "health_check_timeout": null,
              "staging_failed_reason": null,
              "docker_image": null,
              "package_updated_at": "2014-12-09T23:49:41+00:00",
              "detected_start_command": "bundle exec clockwork config/schedule.rb",
              "space_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "stack_url": "/v2/stacks/50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "events_url": "/v2/apps/a7bdfe11-c3cf-44ca-b190-a3f7784af411/events",
              "service_bindings_url": "/v2/apps/a7bdfe11-c3cf-44ca-b190-a3f7784af411/service_bindings",
              "routes_url": "/v2/apps/a7bdfe11-c3cf-44ca-b190-a3f7784af411/routes"
            }
          },
          {
            "metadata": {
              "guid": "89765dfb-f188-4821-82e1-b90b7e762aa6",
              "url": "/v2/apps/89765dfb-f188-4821-82e1-b90b7e762aa6",
              "created_at": "2014-12-02T17:36:06+00:00",
              "updated_at": "2014-12-09T23:43:02+00:00"
            },
            "entity": {
              "name": "maintenance",
              "production": false,
              "space_guid": "d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "stack_guid": "50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "buildpack": null,
              "detected_buildpack": "Ruby",
              "environment_json": {

              },
              "memory": 128,
              "instances": 2,
              "disk_quota": 1024,
              "state": "STARTED",
              "version": "6432c5da-5c05-497c-ab4e-79c752d11754",
              "command": null,
              "console": false,
              "debug": null,
              "staging_task_id": "f1192194f5de4a51a168d548265b764a",
              "package_state": "STAGED",
              "health_check_timeout": null,
              "staging_failed_reason": null,
              "docker_image": null,
              "package_updated_at": "2014-12-02T17:35:36+00:00",
              "detected_start_command": "bundle exec ruby app.rb -p $PORT",
              "space_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "stack_url": "/v2/stacks/50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "events_url": "/v2/apps/89765dfb-f188-4821-82e1-b90b7e762aa6/events",
              "service_bindings_url": "/v2/apps/89765dfb-f188-4821-82e1-b90b7e762aa6/service_bindings",
              "routes_url": "/v2/apps/89765dfb-f188-4821-82e1-b90b7e762aa6/routes"
            }
          },
          {
            "metadata": {
              "guid": "0e2d069d-8bbf-431c-9f36-1ab8fdecaca8",
              "url": "/v2/apps/0e2d069d-8bbf-431c-9f36-1ab8fdecaca8",
              "created_at": "2014-12-09T23:42:33+00:00",
              "updated_at": "2014-12-10T00:03:00+00:00"
            },
            "entity": {
              "name": "web",
              "production": false,
              "space_guid": "d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "stack_guid": "50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "buildpack": "https://github.com/cloudfoundry/ruby-buildpack#v1.1.3",
              "detected_buildpack": null,
              "environment_json": { [FILTERED] },
              "memory": 512,
              "instances": 2,
              "disk_quota": 1024,
              "state": "STARTED",
              "version": "b4167af0-a137-4f3e-b6ef-1a60f5892d55",
              "command": "bundle exec rake cf:on_first_instance db:migrate && bundle exec puma -C config/puma.rb",
              "console": false,
              "debug": null,
              "staging_task_id": "7d4babe45d5e445e9f51589ee9c16d81",
              "package_state": "STAGED",
              "health_check_timeout": null,
              "staging_failed_reason": null,
              "docker_image": null,
              "package_updated_at": "2014-12-09T23:38:56+00:00",
              "detected_start_command": "bundle exec rake cf:on_first_instance db:migrate && bundle exec puma -C config/puma.rb",
              "space_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "stack_url": "/v2/stacks/50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "events_url": "/v2/apps/0e2d069d-8bbf-431c-9f36-1ab8fdecaca8/events",
              "service_bindings_url": "/v2/apps/0e2d069d-8bbf-431c-9f36-1ab8fdecaca8/service_bindings",
              "routes_url": "/v2/apps/0e2d069d-8bbf-431c-9f36-1ab8fdecaca8/routes"
            }
          },
          {
            "metadata": {
              "guid": "7019f4be-a4be-41c9-8938-ee0b88137ef7",
              "url": "/v2/apps/7019f4be-a4be-41c9-8938-ee0b88137ef7",
              "created_at": "2014-12-09T23:47:56+00:00",
              "updated_at": "2014-12-09T23:48:10+00:00"
            },
            "entity": {
              "name": "worker",
              "production": false,
              "space_guid": "d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "stack_guid": "50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "buildpack": "https://github.com/cloudfoundry/ruby-buildpack#v1.1.3",
              "detected_buildpack": null,
              "environment_json": { [FILTERED] },
              "memory": 512,
              "instances": 1,
              "disk_quota": 1024,
              "state": "STARTED",
              "version": "3b5b045b-7b95-4e93-8dfa-9647e92b7461",
              "command": "bundle exec sidekiq",
              "console": false,
              "debug": null,
              "staging_task_id": "aaba6f0764084218b9154ff8fa1e7ccb",
              "package_state": "STAGED",
              "health_check_timeout": null,
              "staging_failed_reason": null,
              "docker_image": null,
              "package_updated_at": "2014-12-09T23:44:32+00:00",
              "detected_start_command": "bundle exec sidekiq",
              "space_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "stack_url": "/v2/stacks/50688ae5-9bfc-4bf6-a4bf-caadb21a32c6",
              "events_url": "/v2/apps/7019f4be-a4be-41c9-8938-ee0b88137ef7/events",
              "service_bindings_url": "/v2/apps/7019f4be-a4be-41c9-8938-ee0b88137ef7/service_bindings",
              "routes_url": "/v2/apps/7019f4be-a4be-41c9-8938-ee0b88137ef7/routes"
            }
          }
        ],
        "routes_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d/routes",
        "routes": [
          {
            "metadata": {
              "guid": "87187095-ccf4-4f61-a22f-c541cd97173c",
              "url": "/v2/routes/87187095-ccf4-4f61-a22f-c541cd97173c",
              "created_at": "2014-12-03T18:55:49+00:00",
              "updated_at": null
            },
            "entity": {
              "host": "app",
              "domain_guid": "e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8",
              "space_guid": "d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "domain_url": "/v2/domains/e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8",
              "space_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "apps_url": "/v2/routes/87187095-ccf4-4f61-a22f-c541cd97173c/apps"
            }
          },
          {
            "metadata": {
              "guid": "54d020ec-81e8-4b95-b956-96fc8eafefa0",
              "url": "/v2/routes/54d020ec-81e8-4b95-b956-96fc8eafefa0",
              "created_at": "2014-12-03T21:43:13+00:00",
              "updated_at": null
            },
            "entity": {
              "host": "",
              "domain_guid": "e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8",
              "space_guid": "d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "domain_url": "/v2/domains/e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8",
              "space_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "apps_url": "/v2/routes/54d020ec-81e8-4b95-b956-96fc8eafefa0/apps"
            }
          }
        ],
        "domains_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d/domains",
        "domains": [
          {
            "metadata": {
              "guid": "e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8",
              "url": "/v2/domains/e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8",
              "created_at": "2014-10-22T21:36:20+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "pivotalfeedback.com",
              "owning_organization_guid": "6a21368e-4c6d-4a71-ad00-b5e93816e53d",
              "owning_organization_url": "/v2/organizations/6a21368e-4c6d-4a71-ad00-b5e93816e53d",
              "spaces_url": "/v2/domains/e3a41e55-efd9-4cfe-9617-fbf9f0fc3fc8/spaces"
            }
          },
          {
            "metadata": {
              "guid": "fb6bd89f-2ed9-49d4-9ad1-97951a573135",
              "url": "/v2/domains/fb6bd89f-2ed9-49d4-9ad1-97951a573135",
              "created_at": "2013-05-04T00:29:46+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "cfapps.io"
            }
          }
        ],
        "service_instances_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d/service_instances",
        "service_instances": [
          {
            "metadata": {
              "guid": "3d8cd9b0-794c-458a-a0b7-7ef0779e5f0b",
              "url": "/v2/service_instances/3d8cd9b0-794c-458a-a0b7-7ef0779e5f0b",
              "created_at": "2014-12-02T01:19:38+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "monitoring",
              "credentials": {

              },
              "service_plan_guid": "b88406df-d5f8-4e87-a913-f93097793b61",
              "space_guid": "d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "gateway_data": null,
              "dashboard_url": "https://cloudfoundry.appdirect.com/api/custom/cloudfoundry/v2/sso/start?serviceUuid=3d8cd9b0-794c-458a-a0b7-7ef0779e5f0b",
              "type": "managed_service_instance",
              "space_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "service_plan_url": "/v2/service_plans/b88406df-d5f8-4e87-a913-f93097793b61",
              "service_bindings_url": "/v2/service_instances/3d8cd9b0-794c-458a-a0b7-7ef0779e5f0b/service_bindings"
            }
          },
          {
            "metadata": {
              "guid": "3a3e7a3b-74e6-42ba-abc4-34007c745559",
              "url": "/v2/service_instances/3a3e7a3b-74e6-42ba-abc4-34007c745559",
              "created_at": "2014-12-02T00:05:07+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "redis",
              "credentials": {

              },
              "service_plan_guid": "d12314ec-90b8-4bc9-95ff-ba8c39f6f088",
              "space_guid": "d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "gateway_data": null,
              "dashboard_url": "https://cloudfoundry.appdirect.com/api/custom/cloudfoundry/v2/sso/start?serviceUuid=3a3e7a3b-74e6-42ba-abc4-34007c745559",
              "type": "managed_service_instance",
              "space_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d",
              "service_plan_url": "/v2/service_plans/d12314ec-90b8-4bc9-95ff-ba8c39f6f088",
              "service_bindings_url": "/v2/service_instances/3a3e7a3b-74e6-42ba-abc4-34007c745559/service_bindings"
            }
          }
        ],
        "app_events_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d/app_events",
        "events_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d/events",
        "security_groups_url": "/v2/spaces/d1e1762c-345a-4523-8bcd-840b8b1c2b2d/security_groups",
        "security_groups": [
          {
            "metadata": {
              "guid": "601d30e6-f16f-4c3d-88ab-723f7c51184a",
              "url": "/v2/security_groups/601d30e6-f16f-4c3d-88ab-723f7c51184a",
              "created_at": "2014-07-15T18:48:46+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "public_networks",
              "rules": [
                {
                  "destination": "0.0.0.0-9.255.255.255",
                  "protocol": "all"
                },
                {
                  "destination": "11.0.0.0-169.253.255.255",
                  "protocol": "all"
                },
                {
                  "destination": "169.255.0.0-172.15.255.255",
                  "protocol": "all"
                },
                {
                  "destination": "172.32.0.0-192.167.255.255",
                  "protocol": "all"
                },
                {
                  "destination": "192.169.0.0-255.255.255.255",
                  "protocol": "all"
                }
              ],
              "running_default": true,
              "staging_default": true,
              "spaces_url": "/v2/security_groups/601d30e6-f16f-4c3d-88ab-723f7c51184a/spaces"
            }
          },
          {
            "metadata": {
              "guid": "91b2f6e6-8d38-4c83-88cb-d44e6581d92b",
              "url": "/v2/security_groups/91b2f6e6-8d38-4c83-88cb-d44e6581d92b",
              "created_at": "2014-07-15T18:48:46+00:00",
              "updated_at": null
            },
            "entity": {
              "name": "dns",
              "rules": [
                {
                  "destination": "0.0.0.0/0",
                  "ports": "53",
                  "protocol": "tcp"
                },
                {
                  "destination": "0.0.0.0/0",
                  "ports": "53",
                  "protocol": "udp"
                }
              ],
              "running_default": true,
              "staging_default": true,
              "spaces_url": "/v2/security_groups/91b2f6e6-8d38-4c83-88cb-d44e6581d92b/spaces"
            }
          }
        ]
      }
    }
  ]
}
name   
FAILED
Failed fetching spaces.
Error parsing JSON: json: cannot unmarshal number into Go value of type string
FAILED
Failed fetching spaces.
Error parsing JSON: json: cannot unmarshal number into Go value of type string

pivotal-feedback avatar Dec 12 '14 01:12 pivotal-feedback

@pivotal-feedback: if the problem is resolved after upgrading to v6.8.0, I suspect the error was coming from parsing anything that is non-string in environment variable, and that bug has been fixed in v6.8.0

Can you confirm that v6.8.0 resolved the issue?

simonleung8 avatar Dec 12 '14 18:12 simonleung8

Yes. 6.8.0 resolves the issue. I see an unquoted number in the JSON which confirms your suspicion. I know this isn't necessarily a CLI issue, but I'm surprised I can store an "environment variable" that isn't a string value. I expect those values to all get stringified when set in my environment, and not to preserve the type. I suspect this particular value was set by our manifest.yml on initial push.

  • export VARIABLE=value in bash saves it as a string
  • setting the value in web console saves it as a string
  • setting the value directly via the CLI saves it as a string

That I can store a datatype other than a string is surprising/unexpected.

"environment_json": {
                "FILTERED_STUFF": "...",
                "QUEUE_ALERT_SIZE": 50,
                "RAILS_ENV": "pws_staging"
              },

pivotal-feedback avatar Dec 12 '14 18:12 pivotal-feedback

I think it is also part 'golang' issue, the unmarshal function thinks numbers not in quotes a string, that is what causes the bug we fixed in v6.8.0.

I am closing this issue, feel free to re-open if needed

simonleung8 avatar Dec 12 '14 18:12 simonleung8