InstanceTemplates
class InstanceTemplates extends Resource (View source)
The "instanceTemplates" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$instanceTemplates = $computeService->instanceTemplates;
Methods
Retrieves the list of all InstanceTemplates resources, regional and global,
available to the specified project. To prevent failure, Google recommends
that you set the returnPartialSuccess
parameter to true
.
Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed instance group. (instanceTemplates.delete)
Returns the specified instance template. (instanceTemplates.get)
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (instanceTemplates.getIamPolicy)
Creates an instance template in the specified project using the data that is included in the request. If you are creating a new template to update an existing instance group, your new instance template must use the same network or, if applicable, the same subnetwork as the original template.
Retrieves a list of instance templates that are contained within the specified project. (instanceTemplates.listInstanceTemplates)
Sets the access control policy on the specified resource. Replaces any existing policy. (instanceTemplates.setIamPolicy)
Returns permissions that a caller has on the specified resource.
Details
InstanceTemplateAggregatedList
aggregatedList(string $project, array $optParams = [])
Retrieves the list of all InstanceTemplates resources, regional and global,
available to the specified project. To prevent failure, Google recommends
that you set the returnPartialSuccess
parameter to true
.
(instanceTemplates.aggregatedList)
Operation
delete(string $project, string $instanceTemplate, array $optParams = [])
Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed instance group. (instanceTemplates.delete)
InstanceTemplate
get(string $project, string $instanceTemplate, array $optParams = [])
Returns the specified instance template. (instanceTemplates.get)
Policy
getIamPolicy(string $project, string $resource, array $optParams = [])
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (instanceTemplates.getIamPolicy)
Operation
insert(string $project, InstanceTemplate $postBody, array $optParams = [])
Creates an instance template in the specified project using the data that is included in the request. If you are creating a new template to update an existing instance group, your new instance template must use the same network or, if applicable, the same subnetwork as the original template.
(instanceTemplates.insert)
InstanceTemplateList
listInstanceTemplates(string $project, array $optParams = [])
Retrieves a list of instance templates that are contained within the specified project. (instanceTemplates.listInstanceTemplates)
Policy
setIamPolicy(string $project, string $resource, GlobalSetPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any existing policy. (instanceTemplates.setIamPolicy)
TestPermissionsResponse
testIamPermissions(string $project, string $resource, TestPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource.
(instanceTemplates.testIamPermissions)