Class OrganizationSecurityPoliciesResource
The "organizationSecurityPolicies" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.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. This has billing implications. Projects in the hierarchy with effective hierarchical security policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.addAssociation instead.
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. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.addRule instead.
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 this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.cloneRules 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 this API to remove Cloud Armor policies. Previously, alpha and beta versions of this API were used to remove firewall policies. This usage is now disabled for most organizations. 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 this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. 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 this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.getAssociation instead.
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 this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. 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 organization using the data included in the request. Use this API to add Cloud Armor policies. Previously, alpha and beta versions of this API were used to add firewall policies. This usage is now disabled for most organizations. 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 organization. Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. 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 this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.listAssociations instead.
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 this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. 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 this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. 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 this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. 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 this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.removeAssociation instead.
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. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.removeRule instead.
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 |