# Anypoint Security Policies API Manage edge security policies, TLS contexts, virtual servers, and deployments for Anypoint Security. - **Version:** 2.0.0 - **Category:** Security - **OpenAPI Spec:** [api.yaml](https://dev-portal.mulesoft.com/apis/anypoint-security-policies/api.yaml) ## Servers - `https://anypoint.mulesoft.com/securityfabric/api/{version}/organizations` - `https://{region}.anypoint.mulesoft.com/securityfabric/api/{version}/organizations` - `https://{region}.platform.mulesoft.com/securityfabric/api/{version}/organizations` ## Operations (16) ### DELETE /{organizationId} **Operation ID:** `deleteByOrganizationid` Deletes all the data belonging to an organization, sub-organization from Security Fabric Edge and Anypoint Security Policies **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | ### DELETE /{organizationId}/environments/{envId} **Operation ID:** `deleteByOrganizationidEnvironmentsByEnvid` Deletes all the data belonging to an environments from Security Fabric Edge **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | | `envId` | query | The ID of the environment in which the query will be executed | required | ### GET /{organizationId}/environments/{envId}/agents/{agentId}/domains **Operation ID:** `getByOrganizationidEnvironmentsByEnvidAgentsByAgentidDomains` Get all CN (common name) and SANs (Subject Alternate Name) list **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | | `envId` | query | The ID of the environment in which the query will be executed | required | | `agentId` | query | The agent ID to identify the target resource. | required | ### GET /{organizationId}/environments/{envId}/tlsContexts **Operation ID:** `getByOrganizationidEnvironmentsByEnvidTlscontexts` Get TLS contexts configured for the enviorment **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | | `envId` | query | The ID of the environment in which the query will be executed | required | ### GET /{organizationId}/agents/{agentId}/virtualServers **Operation ID:** `getByOrganizationidAgentsByAgentidVirtualservers` Get all configured virtual servers for a given agent **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | | `agentId` | query | The agent ID to identify the target resource. | required | ### GET /{organizationId}/agents/{agentId}/edge **Operation ID:** `getByOrganizationidAgentsByAgentidEdge` Get edge configured for the given runtime fabric id **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | | `agentId` | query | The agent ID to identify the target resource. | required | ### POST /{organizationId}/agents/{agentId}/edge **Operation ID:** `createByOrganizationidAgentsByAgentidEdge` create Edge configuration for the given runtime fabric **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | | `agentId` | query | The agent ID to identify the target resource. | required | ### PUT /{organizationId}/agents/{agentId}/edge/{edgeConfigId} **Operation ID:** `updateByOrganizationidAgentsByAgentidEdgeByEdgeconfigid` Update Edge configuration details for the given edge configurtaion id d **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | | `agentId` | query | The agent ID to identify the target resource. | required | | `edgeConfigId` | query | The edgeConfig ID to identify the target resource. | required | ### PATCH /{organizationId}/agents/{agentId}/edge/{edgeConfigId} **Operation ID:** `patchByOrganizationidAgentsByAgentidEdgeByEdgeconfigid` Except TLS config, update other configuration if PEM/JKS is selected d **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | | `agentId` | query | The agent ID to identify the target resource. | required | | `edgeConfigId` | query | The edgeConfig ID to identify the target resource. | required | ### DELETE /{organizationId}/agents/{agentId}/edge/{edgeConfigId} **Operation ID:** `deleteByOrganizationidAgentsByAgentidEdgeByEdgeconfigid` Delete Edge configuration for the given edge configuration id **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | | `agentId` | query | The agent ID to identify the target resource. | required | | `edgeConfigId` | query | The edgeConfig ID to identify the target resource. | required | ### GET /{organizationId}/agents/{agentId}/edge/{edgeConfigId}/deployments **Operation ID:** `getByOrganizationidAgentsByAgentidEdgeByEdgeconfigidDeployments` Get the edge deployement status **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | | `agentId` | query | The agent ID to identify the target resource. | required | | `edgeConfigId` | query | The edgeConfig ID to identify the target resource. | required | ### GET /{organizationId}/policies **Operation ID:** `getByOrganizationidPolicies` Get all the policies **Parameters:** | `type` | query | Filter polices based on type. If type does not match return all policies. | required | | `organizationId` | query | The organization ID to identify the target resource. | required | ### POST /{organizationId}/policies **Operation ID:** `createByOrganizationidPolicies` Create new policy with type 'DOS (Denial of Service)' or 'CAP (Content Attack Prevention)' or 'ACL(Access Control List)' or 'WAF (Web Application Firewall), SID (Sensitive Information Detection)' **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | ### GET /{organizationId}/policies/{policyId} **Operation ID:** `getByOrganizationidPoliciesByPolicyid` Get policy using id **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | | `policyId` | query | Applied policy instance id on this API instance. | required | ### PUT /{organizationId}/policies/{policyId} **Operation ID:** `updateByOrganizationidPoliciesByPolicyid` Update policy by id **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | | `policyId` | query | Applied policy instance id on this API instance. | required | ### DELETE /{organizationId}/policies/{policyId} **Operation ID:** `deleteByOrganizationidPoliciesByPolicyid` Delete policy by id **Parameters:** | `organizationId` | query | The organization ID to identify the target resource. | required | | `policyId` | query | Applied policy instance id on this API instance. | required |