Skip to content

Instantly share code, notes, and snippets.

@igm
Created May 27, 2014 19:12
Show Gist options
  • Save igm/20a659e9c471efe00459 to your computer and use it in GitHub Desktop.
Save igm/20a659e9c471efe00459 to your computer and use it in GitHub Desktop.
CLI issue log
$ CF_TRACE=true cf org-users igormihalik.com
VERSION:
6.1.0-1af592a
REQUEST: [2014-05-27T20:11:10+01:00]
GET /v2/organizations?q=name%3Aigormihalik.com&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.1.0-1af592a / darwin
RESPONSE: [2014-05-27T20:11:10+01:00]
HTTP/1.1 200 OK
Content-Length: 12675
Connection: keep-alive
Content-Type: application/json;charset=utf-8
Date: Tue, 27 May 2014 19:11:10 GMT
Server: nginx
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: bfd39b2c-f0ff-4a8f-6364-da224ceedd5e::07b0906c-f20c-409d-bfad-ba628751c86c
{
"total_results": 1,
"total_pages": 1,
"prev_url": null,
"next_url": null,
"resources": [
{
"metadata": {
"guid": "ba8beb65-aa97-4708-bb3a-1925ea805d96",
"url": "/v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96",
"created_at": "2013-05-20T19:22:41+00:00",
"updated_at": "2013-05-20T19:25:01+00:00"
},
"entity": {
"name": "igormihalik.com",
"billing_enabled": true,
"quota_definition_guid": "7dbdcbb7-edb6-4246-a217-2031a75388f7",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/7dbdcbb7-edb6-4246-a217-2031a75388f7",
"quota_definition": {
"metadata": {
"guid": "7dbdcbb7-edb6-4246-a217-2031a75388f7",
"url": "/v2/quota_definitions/7dbdcbb7-edb6-4246-a217-2031a75388f7",
"created_at": "2013-11-19T18:53:48+00:00",
"updated_at": "2013-11-19T19:34:57+00:00"
},
"entity": {
"name": "paid",
"non_basic_services_allowed": true,
"total_services": -1,
"total_routes": 1000,
"memory_limit": 10240,
"trial_db_allowed": false
}
},
"spaces_url": "/v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96/spaces",
"spaces": [
{
"metadata": {
"guid": "03a812cd-7974-4d8b-843a-00752bc5ae74",
"url": "/v2/spaces/03a812cd-7974-4d8b-843a-00752bc5ae74",
"created_at": "2013-05-20T19:22:42+00:00",
"updated_at": null
},
"entity": {
"name": "development",
"organization_guid": "ba8beb65-aa97-4708-bb3a-1925ea805d96",
"organization_url": "/v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96",
"developers_url": "/v2/spaces/03a812cd-7974-4d8b-843a-00752bc5ae74/developers",
"managers_url": "/v2/spaces/03a812cd-7974-4d8b-843a-00752bc5ae74/managers",
"auditors_url": "/v2/spaces/03a812cd-7974-4d8b-843a-00752bc5ae74/auditors",
"apps_url": "/v2/spaces/03a812cd-7974-4d8b-843a-00752bc5ae74/apps",
"routes_url": "/v2/spaces/03a812cd-7974-4d8b-843a-00752bc5ae74/routes",
"domains_url": "/v2/spaces/03a812cd-7974-4d8b-843a-00752bc5ae74/domains",
"service_instances_url": "/v2/spaces/03a812cd-7974-4d8b-843a-00752bc5ae74/service_instances",
"app_events_url": "/v2/spaces/03a812cd-7974-4d8b-843a-00752bc5ae74/app_events",
"events_url": "/v2/spaces/03a812cd-7974-4d8b-843a-00752bc5ae74/events"
}
},
{
"metadata": {
"guid": "2bdc9a8a-5192-40dc-8ead-51a95881c806",
"url": "/v2/spaces/2bdc9a8a-5192-40dc-8ead-51a95881c806",
"created_at": "2013-05-20T19:22:42+00:00",
"updated_at": null
},
"entity": {
"name": "production",
"organization_guid": "ba8beb65-aa97-4708-bb3a-1925ea805d96",
"organization_url": "/v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96",
"developers_url": "/v2/spaces/2bdc9a8a-5192-40dc-8ead-51a95881c806/developers",
"managers_url": "/v2/spaces/2bdc9a8a-5192-40dc-8ead-51a95881c806/managers",
"auditors_url": "/v2/spaces/2bdc9a8a-5192-40dc-8ead-51a95881c806/auditors",
"apps_url": "/v2/spaces/2bdc9a8a-5192-40dc-8ead-51a95881c806/apps",
"routes_url": "/v2/spaces/2bdc9a8a-5192-40dc-8ead-51a95881c806/routes",
"domains_url": "/v2/spaces/2bdc9a8a-5192-40dc-8ead-51a95881c806/domains",
"service_instances_url": "/v2/spaces/2bdc9a8a-5192-40dc-8ead-51a95881c806/service_instances",
"app_events_url": "/v2/spaces/2bdc9a8a-5192-40dc-8ead-51a95881c806/app_events",
"events_url": "/v2/spaces/2bdc9a8a-5192-40dc-8ead-51a95881c806/events"
}
},
{
"metadata": {
"guid": "02343b5e-9e80-415c-b569-ca1f646d90bb",
"url": "/v2/spaces/02343b5e-9e80-415c-b569-ca1f646d90bb",
"created_at": "2013-05-20T19:22:42+00:00",
"updated_at": null
},
"entity": {
"name": "staging",
"organization_guid": "ba8beb65-aa97-4708-bb3a-1925ea805d96",
"organization_url": "/v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96",
"developers_url": "/v2/spaces/02343b5e-9e80-415c-b569-ca1f646d90bb/developers",
"managers_url": "/v2/spaces/02343b5e-9e80-415c-b569-ca1f646d90bb/managers",
"auditors_url": "/v2/spaces/02343b5e-9e80-415c-b569-ca1f646d90bb/auditors",
"apps_url": "/v2/spaces/02343b5e-9e80-415c-b569-ca1f646d90bb/apps",
"routes_url": "/v2/spaces/02343b5e-9e80-415c-b569-ca1f646d90bb/routes",
"domains_url": "/v2/spaces/02343b5e-9e80-415c-b569-ca1f646d90bb/domains",
"service_instances_url": "/v2/spaces/02343b5e-9e80-415c-b569-ca1f646d90bb/service_instances",
"app_events_url": "/v2/spaces/02343b5e-9e80-415c-b569-ca1f646d90bb/app_events",
"events_url": "/v2/spaces/02343b5e-9e80-415c-b569-ca1f646d90bb/events"
}
}
],
"domains_url": "/v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96/domains",
"domains": [
{
"metadata": {
"guid": "17e95460-85da-49d5-9133-b3c1e931d331",
"url": "/v2/domains/17e95460-85da-49d5-9133-b3c1e931d331",
"created_at": "2013-05-20T19:25:52+00:00",
"updated_at": "2013-06-10T14:49:02+00:00"
},
"entity": {
"name": "cf.igormihalik.com",
"owning_organization_guid": "ba8beb65-aa97-4708-bb3a-1925ea805d96",
"owning_organization_url": "/v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96",
"spaces_url": "/v2/domains/17e95460-85da-49d5-9133-b3c1e931d331/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"
}
}
],
"private_domains_url": "/v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96/private_domains",
"private_domains": [
{
"metadata": {
"guid": "17e95460-85da-49d5-9133-b3c1e931d331",
"url": "/v2/private_domains/17e95460-85da-49d5-9133-b3c1e931d331",
"created_at": "2013-05-20T19:25:52+00:00",
"updated_at": "2013-06-10T14:49:02+00:00"
},
"entity": {
"name": "cf.igormihalik.com",
"owning_organization_guid": "ba8beb65-aa97-4708-bb3a-1925ea805d96",
"owning_organization_url": "/v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96"
}
}
],
"users_url": "/v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96/users",
"users": [
{
"metadata": {
"guid": "da9fa3d4-9bca-4b7d-a9db-826608d91e70",
"url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70",
"created_at": "2013-05-20T19:22:38+00:00",
"updated_at": "2014-04-14T21:16:37+00:00"
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": null,
"spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/spaces",
"organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/organizations",
"managed_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/managed_organizations",
"billing_managed_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/billing_managed_organizations",
"audited_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/audited_organizations",
"managed_spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/managed_spaces",
"audited_spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/audited_spaces"
}
}
],
"managers_url": "/v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96/managers",
"managers": [
{
"metadata": {
"guid": "da9fa3d4-9bca-4b7d-a9db-826608d91e70",
"url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70",
"created_at": "2013-05-20T19:22:38+00:00",
"updated_at": "2014-04-14T21:16:37+00:00"
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": null,
"spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/spaces",
"organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/organizations",
"managed_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/managed_organizations",
"billing_managed_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/billing_managed_organizations",
"audited_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/audited_organizations",
"managed_spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/managed_spaces",
"audited_spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/audited_spaces"
}
}
],
"billing_managers_url": "/v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96/billing_managers",
"billing_managers": [
{
"metadata": {
"guid": "da9fa3d4-9bca-4b7d-a9db-826608d91e70",
"url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70",
"created_at": "2013-05-20T19:22:38+00:00",
"updated_at": "2014-04-14T21:16:37+00:00"
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": null,
"spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/spaces",
"organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/organizations",
"managed_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/managed_organizations",
"billing_managed_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/billing_managed_organizations",
"audited_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/audited_organizations",
"managed_spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/managed_spaces",
"audited_spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/audited_spaces"
}
}
],
"auditors_url": "/v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96/auditors",
"auditors": [
{
"metadata": {
"guid": "da9fa3d4-9bca-4b7d-a9db-826608d91e70",
"url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70",
"created_at": "2013-05-20T19:22:38+00:00",
"updated_at": "2014-04-14T21:16:37+00:00"
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": null,
"spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/spaces",
"organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/organizations",
"managed_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/managed_organizations",
"billing_managed_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/billing_managed_organizations",
"audited_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/audited_organizations",
"managed_spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/managed_spaces",
"audited_spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/audited_spaces"
}
}
],
"app_events_url": "/v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96/app_events"
}
}
]
}
Getting users in org igormihalik.com as imihalik@gopivotal.com...
REQUEST: [2014-05-27T20:11:10+01:00]
GET /v2/organizations/ba8beb65-aa97-4708-bb3a-1925ea805d96/managers HTTP/1.1
Host: api.run.pivotal.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.1.0-1af592a / darwin
RESPONSE: [2014-05-27T20:11:11+01:00]
HTTP/1.1 200 OK
Content-Length: 1184
Connection: keep-alive
Content-Type: application/json;charset=utf-8
Date: Tue, 27 May 2014 19:11:11 GMT
Server: nginx
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 2e677685-f09c-40fd-41d3-749ac051923f::222bcdfc-b407-402a-8777-6b3fe23173cd
{
"total_results": 1,
"total_pages": 1,
"prev_url": null,
"next_url": null,
"resources": [
{
"metadata": {
"guid": "da9fa3d4-9bca-4b7d-a9db-826608d91e70",
"url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70",
"created_at": "2013-05-20T19:22:38+00:00",
"updated_at": "2014-04-14T21:16:37+00:00"
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": null,
"spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/spaces",
"organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/organizations",
"managed_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/managed_organizations",
"billing_managed_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/billing_managed_organizations",
"audited_organizations_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/audited_organizations",
"managed_spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/managed_spaces",
"audited_spaces_url": "/v2/users/da9fa3d4-9bca-4b7d-a9db-826608d91e70/audited_spaces"
}
}
]
}
REQUEST: [2014-05-27T20:11:11+01:00]
GET /Users?attributes=id,userName&filter=Id+eq+%22da9fa3d4-9bca-4b7d-a9db-826608d91e70%22 HTTP/1.1
Host: uaa.run.pivotal.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.1.0-1af592a / darwin
RESPONSE: [2014-05-27T20:11:11+01:00]
HTTP/1.1 403 Forbidden
Content-Length: 64
Cache-Control: no-store
Connection: keep-alive
Content-Type: application/json
Date: Tue, 27 May 2014 19:11:11 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
{"error":"access_denied","error_description":"Access is denied"}
ORG MANAGER
FAILED
Failed fetching org-users for role Server error, status code: 403, error code: access_denied, message: Access is denied.
ORG MANAGER
FAILED
Failed fetching org-users for role Server error, status code: 403, error code: access_denied, message: Access is denied.
ORG MANAGER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment