github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/api/cloudcontroller/ccv3/relationship_list.go (about) 1 package ccv3 2 3 import ( 4 "code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/internal" 5 "code.cloudfoundry.org/cli/resources" 6 ) 7 8 // EntitleIsolationSegmentToOrganizations will create a link between the 9 // isolation segment and the list of organizations provided. 10 func (client *Client) EntitleIsolationSegmentToOrganizations(isolationSegmentGUID string, organizationGUIDs []string) (resources.RelationshipList, Warnings, error) { 11 var responseBody resources.RelationshipList 12 13 _, warnings, err := client.MakeRequest(RequestParams{ 14 RequestName: internal.PostIsolationSegmentRelationshipOrganizationsRequest, 15 URIParams: internal.Params{"isolation_segment_guid": isolationSegmentGUID}, 16 RequestBody: resources.RelationshipList{GUIDs: organizationGUIDs}, 17 ResponseBody: &responseBody, 18 }) 19 20 return responseBody, warnings, err 21 }