MCPcopy Index your code
hub / github.com/cloudfoundry/cli / SetApplicationDroplet

Method SetApplicationDroplet

api/cloudcontroller/ccv3/relationship.go:48–59  ·  view source on GitHub ↗

SetApplicationDroplet sets the specified droplet on the given application.

(appGUID string, dropletGUID string)

Source from the content-addressed store, hash-verified

46
47// SetApplicationDroplet sets the specified droplet on the given application.
48func (client *Client) SetApplicationDroplet(appGUID string, dropletGUID string) (resources.Relationship, Warnings, error) {
49 var responseBody resources.Relationship
50
51 _, warnings, err := client.MakeRequest(RequestParams{
52 RequestName: internal.PatchApplicationCurrentDropletRequest,
53 URIParams: internal.Params{"app_guid": appGUID},
54 RequestBody: resources.Relationship{GUID: dropletGUID},
55 ResponseBody: &responseBody,
56 })
57
58 return responseBody, warnings, err
59}
60
61// UpdateOrganizationDefaultIsolationSegmentRelationship sets the default isolation segment
62// for an organization on the controller.

Callers

nothing calls this directly

Calls 1

MakeRequestMethod · 0.65

Tested by

no test coverage detected