Demand for a GUID discovery command
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
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.
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?
+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.
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.
The cf CLI will not be able to identify GUIDs from Rabbit, only from CF resources.
+1
@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!
Thanks @goehmen for creating this issue. We think this is a great idea for a plugin. We are closing this issue due to inactivity.