Class OrganizationSecurityPoliciesResource
The "organizationSecurityPolicies" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class OrganizationSecurityPoliciesResource
Constructors
OrganizationSecurityPoliciesResource(IClientService)
Constructs a new resource.
Declaration
public OrganizationSecurityPoliciesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
AddAssociation(SecurityPolicyAssociation, string)
Inserts an association for the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.addAssociation instead if possible.
Declaration
public virtual OrganizationSecurityPoliciesResource.AddAssociationRequest AddAssociation(SecurityPolicyAssociation body, string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| SecurityPolicyAssociation | body | The body of the request. |
| string | securityPolicy | Name of the security policy to update. |
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.AddAssociationRequest |
AddRule(SecurityPolicyRule, string)
Inserts a rule into a security policy.
Declaration
public virtual OrganizationSecurityPoliciesResource.AddRuleRequest AddRule(SecurityPolicyRule body, string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| SecurityPolicyRule | body | The body of the request. |
| string | securityPolicy | Name of the security policy to update. |
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.AddRuleRequest |
CopyRules(string)
Copies rules to the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.copyRules instead.
Declaration
public virtual OrganizationSecurityPoliciesResource.CopyRulesRequest CopyRules(string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | securityPolicy | Name of the security policy to update. |
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.CopyRulesRequest |
Delete(string)
Deletes the specified policy. Use of this API to remove firewall policies is deprecated. Use firewallPolicies.delete instead.
Declaration
public virtual OrganizationSecurityPoliciesResource.DeleteRequest Delete(string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | securityPolicy | Name of the security policy to delete. |
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.DeleteRequest |
Get(string)
List all of the ordered rules present in a single specified policy. Use of this API to read firewall policies is deprecated. Use firewallPolicies.get instead.
Declaration
public virtual OrganizationSecurityPoliciesResource.GetRequest Get(string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | securityPolicy | Name of the security policy to get. |
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.GetRequest |
GetAssociation(string)
Gets an association with the specified name. Use of this API to read firewall policies is deprecated. Use firewallPolicies.getAssociation instead if possible.
Declaration
public virtual OrganizationSecurityPoliciesResource.GetAssociationRequest GetAssociation(string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | securityPolicy | Name of the security policy to which the queried rule belongs. |
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.GetAssociationRequest |
GetRule(string)
Gets a rule at the specified priority. Use of this API to read firewall policies is deprecated. Use firewallPolicies.getRule instead.
Declaration
public virtual OrganizationSecurityPoliciesResource.GetRuleRequest GetRule(string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | securityPolicy | Name of the security policy to which the queried rule belongs. |
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.GetRuleRequest |
Insert(SecurityPolicy)
Creates a new policy in the specified project using the data included in the request. Use of this API to insert firewall policies is deprecated. Use firewallPolicies.insert instead.
Declaration
public virtual OrganizationSecurityPoliciesResource.InsertRequest Insert(SecurityPolicy body)
Parameters
| Type | Name | Description |
|---|---|---|
| SecurityPolicy | body | The body of the request. |
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.InsertRequest |
List()
List all the policies that have been configured for the specified project. Use of this API to read firewall policies is deprecated. Use firewallPolicies.list instead.
Declaration
public virtual OrganizationSecurityPoliciesResource.ListRequest List()
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.ListRequest |
ListAssociations()
Lists associations of a specified target, i.e., organization or folder. Use of this API to read firewall policies is deprecated. Use firewallPolicies.listAssociations instead if possible.
Declaration
public virtual OrganizationSecurityPoliciesResource.ListAssociationsRequest ListAssociations()
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.ListAssociationsRequest |
ListPreconfiguredExpressionSets()
Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
Declaration
public virtual OrganizationSecurityPoliciesResource.ListPreconfiguredExpressionSetsRequest ListPreconfiguredExpressionSets()
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.ListPreconfiguredExpressionSetsRequest |
Move(string)
Moves the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.move instead.
Declaration
public virtual OrganizationSecurityPoliciesResource.MoveRequest Move(string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | securityPolicy | Name of the security policy to update. |
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.MoveRequest |
Patch(SecurityPolicy, string)
Patches the specified policy with the data included in the request. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.patch instead.
Declaration
public virtual OrganizationSecurityPoliciesResource.PatchRequest Patch(SecurityPolicy body, string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| SecurityPolicy | body | The body of the request. |
| string | securityPolicy | Name of the security policy to update. |
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.PatchRequest |
PatchRule(SecurityPolicyRule, string)
Patches a rule at the specified priority. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.patchRule instead.
Declaration
public virtual OrganizationSecurityPoliciesResource.PatchRuleRequest PatchRule(SecurityPolicyRule body, string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| SecurityPolicyRule | body | The body of the request. |
| string | securityPolicy | Name of the security policy to update. |
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.PatchRuleRequest |
RemoveAssociation(string)
Removes an association for the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.removeAssociation instead if possible.
Declaration
public virtual OrganizationSecurityPoliciesResource.RemoveAssociationRequest RemoveAssociation(string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | securityPolicy | Name of the security policy to update. |
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.RemoveAssociationRequest |
RemoveRule(string)
Deletes a rule at the specified priority.
Declaration
public virtual OrganizationSecurityPoliciesResource.RemoveRuleRequest RemoveRule(string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | securityPolicy | Name of the security policy to update. |
Returns
| Type | Description |
|---|---|
| OrganizationSecurityPoliciesResource.RemoveRuleRequest |