# ApiKeyAccessPolicyDTO

Access policy configuration for this API key. Controls which AccountInformationDTO fields are visible and which endpoints are accessible.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**allowedCorsOrigins** | **Array&lt;string&gt;** | List of allowed CORS (Cross-Origin Resource Sharing) domains. If specified, only requests from these origins will be allowed. Supports wildcards. Examples: \&#39;https://example.com\&#39;, \&#39;https://_*.example.com\&#39;, \&#39;http://localhost:3000\&#39;. If null or empty, all origins are allowed. | [optional] [default to undefined]
**allowedIpAddresses** | **Array&lt;string&gt;** | List of allowed IP addresses or CIDR subnets. If specified, only requests from these IPs will be allowed. Supports both IPv4 and IPv6. Examples: \&#39;192.168.1.100\&#39;, \&#39;10.0.0.0/24\&#39;, \&#39;2001:db8::/32\&#39;. If null or empty, all IPs are allowed. | [optional] [default to undefined]
**enabled** | **boolean** | Whether the access policy is enabled. If false, all restrictions are disabled and the API key has full access. Default is true. | [optional] [default to undefined]
**endpointPolicyMode** | **string** | Endpoint access policy mode: ALLOW_LIST (only listed endpoints are accessible) or DENY_LIST (listed endpoints are blocked). Default is ALLOW_LIST if not specified. | [optional] [default to undefined]
**endpoints** | [**Array&lt;ApiKeyEndpointDTO&gt;**](ApiKeyEndpointDTO.md) | List of REST endpoints with their HTTP methods. Supports wildcards: \&#39;*\&#39; for single segment, \&#39;**\&#39; for multiple segments, \&#39;{variable}\&#39; for path variables. Examples: \&#39;/rest/api/v1/projects/_*\&#39; matches any direct child, \&#39;/rest/api/v1/projects/_**\&#39; matches all descendants. Behavior depends on endpointPolicyMode: ALLOW_LIST &#x3D; only these endpoints accessible, DENY_LIST &#x3D; these endpoints blocked. | [optional] [default to undefined]
**fieldPolicyMode** | **string** | Field access policy mode: ALLOW_LIST (only listed fields are visible) or DENY_LIST (listed fields are hidden). Default is DENY_LIST if not specified. | [optional] [default to undefined]
**fields** | [**Array&lt;FieldMetadataDTO&gt;**](FieldMetadataDTO.md) | List of DTO fields with their class name and field name. Allows filtering fields from multiple DTOs. Behavior depends on fieldPolicyMode: ALLOW_LIST &#x3D; only these fields visible, DENY_LIST &#x3D; these fields hidden. If null or empty and mode is ALLOW_LIST, no fields are visible. If null or empty and mode is DENY_LIST, all fields are visible. | [optional] [default to undefined]
**hiddenFrontendFeatures** | **Array&lt;string&gt;** | List of frontend features to hide from the user interface. Frontend application should check this list and hide corresponding UI components. Examples: FINANCIAL_OVERVIEW to hide balance, equity, profit displays. | [optional] [default to undefined]

## Example

```typescript
import { ApiKeyAccessPolicyDTO } from 'js-metacopier-api';

const instance: ApiKeyAccessPolicyDTO = {
    allowedCorsOrigins,
    allowedIpAddresses,
    enabled,
    endpointPolicyMode,
    endpoints,
    fieldPolicyMode,
    fields,
    hiddenFrontendFeatures,
};
```

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
