cli icon indicating copy to clipboard operation
cli copied to clipboard

Demand for a GUID discovery command

Open goehmen opened this issue 9 years ago • 8 comments

This exists today --> for the app/service/org/space commands, you can pass a --GUID flag and the command returns the GUID of the object.

e.g.

➜  ~ cf app jerry-app --guid
3b26c810-1120-4219-9c35-d288d5e90f9e

There may be strong demand for the opposite based on the fact that most cf logs include a GUID and not an app/org/space name. I think there is more demand for logs to include app/org/space but some use cases could possibly be served by having something like:

cf discover-guid -n (GUID_NAME)

where the cli loops through the possible objects the GUID could be (app/service/space/org) and returns whatever discoverable info there is to be discovered for a given object:

if app, return app name and it's org and space if space, return space name and org it is in if org, return org name if service, return service name

e.g.

➜  ~ cf discover-guid -n 3b26c810-1120-4219-9c35-d288d5e90f9e
That GUID is an app.  

App: Jerry-app 
Org: user-org
Space: fun-apps

goehmen avatar Dec 06 '16 22:12 goehmen

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/135654247

The labels on this github issue will be updated when the story is started.

cf-gitbot avatar Dec 06 '16 22:12 cf-gitbot

Hey @goehmen

Interesting idea! You write There may be strong demand - this is the first time I hear about it but I'll ask around. Do you hear people bring it up a lot? In what kind of situation does a user have a guid (where did they get it from?) and not know what resource type it is?

dkoper avatar Dec 15 '16 12:12 dkoper

+1

Sent from my iPhone

On Dec 15, 2016, at 4:46 AM, Dies Koper [email protected] wrote:

Hey @goehmen

Interesting idea! You write There may be strong demand - this is the first time I hear about it but I'll ask around. Do you hear people bring it up a lot? In what kind of situation does a user have a guid (where did they get it from?) and not know what resource type it is?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

cppforlife avatar Dec 15 '16 17:12 cppforlife

I am not sure if this is the same thing. When we create RabbitMQ service instance, it translates to creating a virtual host (vhost) in Rabbit. Such vhost's name is a GUID, so it is not clear at all which service instance in which space this vhost represents from Rabbit's standpoint.

uvzubovs avatar Dec 28 '16 05:12 uvzubovs

The cf CLI will not be able to identify GUIDs from Rabbit, only from CF resources.

dkoper avatar Jan 01 '17 23:01 dkoper

+1

manikvashisht avatar Sep 14 '17 19:09 manikvashisht

@goehmen @uvzubovs @manikvashisht Hi. I'm considering closing this issue. Could you please help me understand the use case? Why would an app developer want this feature? What's the current closest solution? Why isn't that sufficient? Thanks!

jbpivotal avatar Jan 12 '18 04:01 jbpivotal

Thanks @goehmen for creating this issue. We think this is a great idea for a plugin. We are closing this issue due to inactivity.

XenoPhex avatar Apr 16 '18 18:04 XenoPhex