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

Method UpdateAppFeature

api/cloudcontroller/ccv3/application_feature.go:38–48  ·  view source on GitHub ↗

UpdateAppFeature enables/disables the ability to ssh for a given application.

(appGUID string, enabled bool, featureName string)

Source from the content-addressed store, hash-verified

36
37// UpdateAppFeature enables/disables the ability to ssh for a given application.
38func (client *Client) UpdateAppFeature(appGUID string, enabled bool, featureName string) (Warnings, error) {
39 _, warnings, err := client.MakeRequest(RequestParams{
40 RequestName: internal.PatchApplicationFeaturesRequest,
41 RequestBody: struct {
42 Enabled bool `json:"enabled"`
43 }{Enabled: enabled},
44 URIParams: internal.Params{"app_guid": appGUID, "name": featureName},
45 })
46
47 return warnings, err
48}

Callers

nothing calls this directly

Calls 1

MakeRequestMethod · 0.65

Tested by

no test coverage detected