MCPcopy
hub / github.com/cloudfoundry/cli / GetSpaceGUID

Function GetSpaceGUID

integration/helpers/org_and_space.go:108–112  ·  view source on GitHub ↗

GetSpaceGUID gets the GUID of a space with the given name.

(spaceName string)

Source from the content-addressed store, hash-verified

106
107// GetSpaceGUID gets the GUID of a space with the given name.
108func GetSpaceGUID(spaceName string) string {
109 session := CF("space", "--guid", spaceName)
110 Eventually(session).Should(Exit(0))
111 return strings.TrimSpace(string(session.Out.Contents()))
112}
113
114// QuickDeleteOrg deletes the org with the given name, if provided, using
115// 'cf curl /v3/organizations... -X DELETE'.

Callers 4

QuickDeleteSpaceFunction · 0.85

Calls 1

CFFunction · 0.85

Tested by

no test coverage detected