// Get retreives data for the given stack resource. func Get(c *gophercloud.ServiceClient, stackName, stackID, resourceName, eventID string) GetResult { var res GetResult _, res.Err = c.Get(getURL(c, stackName, stackID, resourceName, eventID), &res.Body, &gophercloud.RequestOpts{ OkCodes: []int{200}, }) return res }
// Get requests details on a single server, by ID. func Get(client *gophercloud.ServiceClient, id string) GetResult { var result GetResult _, result.Err = client.Get(getURL(client, id), &result.Body, &gophercloud.RequestOpts{ OkCodes: []int{200, 203}, ErrorContext: &ServerError{id: id}, }) return result }
// Metadata retreives the metadata for the given stack resource. func Metadata(c *gophercloud.ServiceClient, stackName, stackID, resourceName string) MetadataResult { var res MetadataResult // Send request to API _, res.Err = c.Get(metadataURL(c, stackName, stackID, resourceName), &res.Body, &gophercloud.RequestOpts{ OkCodes: []int{200}, }) return res }
// Template retreives the template representation for the given resource type. func Template(c *gophercloud.ServiceClient, resourceType string) TemplateResult { var res TemplateResult // Send request to API _, res.Err = c.Get(templateURL(c, resourceType), &res.Body, &gophercloud.RequestOpts{ OkCodes: []int{200}, }) return res }
// Schema retreives the schema for the given resource type. func Schema(c *gophercloud.ServiceClient, resourceType string) SchemaResult { var res SchemaResult // Send request to API _, res.Err = c.Get(schemaURL(c, resourceType), &res.Body, &gophercloud.RequestOpts{ OkCodes: []int{200}, }) return res }
// Get validates and retrieves information about another token. func Get(c *gophercloud.ServiceClient, token string) GetResult { var result GetResult var response *http.Response response, result.Err = c.Get(tokenURL(c), &result.Body, &gophercloud.RequestOpts{ MoreHeaders: subjectTokenHeaders(c, token), OkCodes: []int{200, 203}, }) if result.Err != nil { return result } result.Header = response.Header return result }
// Get retreives a stack based on the stack name and stack ID. func Get(c *gophercloud.ServiceClient, stackName, stackID string) GetResult { var res GetResult _, res.Err = c.Get(getURL(c, stackName, stackID), &res.Body, nil) return res }
// Metadata requests all the metadata for the given server ID. func Metadata(client *gophercloud.ServiceClient, id string) GetMetadataResult { var res GetMetadataResult _, res.Err = client.Get(metadataURL(client, id), &res.Body, nil) return res }
// Get acquires additional detail about a specific image by ID. // Use ExtractImage() to interpret the result as an openstack Image. func Get(client *gophercloud.ServiceClient, id string) GetResult { var result GetResult _, result.Err = client.Get(getURL(client, id), &result.Body, nil) return result }
// Get retrieves a specific port based on its unique ID. func Get(c *gophercloud.ServiceClient, id string) GetResult { var res GetResult _, res.Err = c.Get(getURL(c, id), &res.Body, nil) return res }
// Get returns public data about a previously created VolumeAttachment. func Get(client *gophercloud.ServiceClient, serverId, aId string) GetResult { var res GetResult _, res.Err = client.Get(getURL(client, serverId, aId), &res.Body, nil) return res }