SecurityPolicies
class SecurityPolicies extends Resource (View source)
The "securityPolicies" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$securityPolicies = $computeService->securityPolicies;
Methods
Inserts a rule into a security policy. (securityPolicies.addRule)
Retrieves the list of all SecurityPolicy 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 policy. (securityPolicies.delete)
List all of the ordered rules present in a single specified policy.
Gets a rule at the specified priority. (securityPolicies.getRule)
Creates a new policy in the specified project using the data included in the request. (securityPolicies.insert)
List all the policies that have been configured for the specified project.
Gets the current list of preconfigured Web Application Firewall (WAF) expressions. (securityPolicies.listPreconfiguredExpressionSets)
Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.
Deletes a rule at the specified priority. (securityPolicies.removeRule)
Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation. (securityPolicies.setLabels)
Details
Operation
addRule(string $project, string $securityPolicy, SecurityPolicyRule $postBody, array $optParams = [])
Inserts a rule into a security policy. (securityPolicies.addRule)
SecurityPoliciesAggregatedList
aggregatedList(string $project, array $optParams = [])
Retrieves the list of all SecurityPolicy resources, regional and global,
available to the specified project. To prevent failure, Google recommends
that you set the returnPartialSuccess
parameter to true
.
(securityPolicies.aggregatedList)
Operation
delete(string $project, string $securityPolicy, array $optParams = [])
Deletes the specified policy. (securityPolicies.delete)
SecurityPolicy
get(string $project, string $securityPolicy, array $optParams = [])
List all of the ordered rules present in a single specified policy.
(securityPolicies.get)
SecurityPolicyRule
getRule(string $project, string $securityPolicy, array $optParams = [])
Gets a rule at the specified priority. (securityPolicies.getRule)
Operation
insert(string $project, SecurityPolicy $postBody, array $optParams = [])
Creates a new policy in the specified project using the data included in the request. (securityPolicies.insert)
SecurityPolicyList
listSecurityPolicies(string $project, array $optParams = [])
List all the policies that have been configured for the specified project.
(securityPolicies.listSecurityPolicies)
SecurityPoliciesListPreconfiguredExpressionSetsResponse
listPreconfiguredExpressionSets(string $project, array $optParams = [])
Gets the current list of preconfigured Web Application Firewall (WAF) expressions. (securityPolicies.listPreconfiguredExpressionSets)
Operation
patch(string $project, string $securityPolicy, SecurityPolicy $postBody, array $optParams = [])
Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
(securityPolicies.patch)
Operation
patchRule(string $project, string $securityPolicy, SecurityPolicyRule $postBody, array $optParams = [])
Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.
(securityPolicies.patchRule)
Operation
removeRule(string $project, string $securityPolicy, array $optParams = [])
Deletes a rule at the specified priority. (securityPolicies.removeRule)
Operation
setLabels(string $project, string $resource, GlobalSetLabelsRequest $postBody, array $optParams = [])
Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation. (securityPolicies.setLabels)