---
title: "SCDynamicStoreKeyCreateNetworkInterfaceEntity(_:_:_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scdynamicstorekeycreatenetworkinterfaceentity(_:_:_:_:)"
---

# SCDynamicStoreKeyCreateNetworkInterfaceEntity(_:_:_:_:)

Creates a dynamic store key that can be used to access the per-interface network configuration information in the dynamic store.

## Declaration

```swift
func SCDynamicStoreKeyCreateNetworkInterfaceEntity(_ allocator: CFAllocator?, _ domain: CFString, _ ifname: CFString, _ entity: CFString?) -> CFString
```

## Parameters

- `allocator`: The allocator that should be used to allocate memory for this key. This parameter may be NULL in which case the current default allocator is used. If this value is not a valid doc://com.apple.documentation/documentation/CoreFoundation/CFAllocator, the behavior is undefined.
- `domain`: The desired domain, such as the requested configuration or the current state.
- `ifname`: The interface name or a regular expression pattern.
- `entity`: The specific global entity, such as IPv4 or DNS.

## Return Value

Return Value A string containing the formatted key.

## See Also

### Group

- [SCDynamicStoreKeyCreateNetworkGlobalEntity(_:_:_:)](systemconfiguration/scdynamicstorekeycreatenetworkglobalentity(_:_:_:).md)
- [SCDynamicStoreKeyCreateNetworkInterface(_:_:)](systemconfiguration/scdynamicstorekeycreatenetworkinterface(_:_:).md)
- [SCDynamicStoreKeyCreateNetworkServiceEntity(_:_:_:_:)](systemconfiguration/scdynamicstorekeycreatenetworkserviceentity(_:_:_:_:).md)
- [SCDynamicStoreKeyCreateComputerName(_:)](systemconfiguration/scdynamicstorekeycreatecomputername(_:).md)
- [SCDynamicStoreKeyCreateConsoleUser(_:)](systemconfiguration/scdynamicstorekeycreateconsoleuser(_:).md)
- [SCDynamicStoreKeyCreateHostNames(_:)](systemconfiguration/scdynamicstorekeycreatehostnames(_:).md)
- [SCDynamicStoreKeyCreateLocation(_:)](systemconfiguration/scdynamicstorekeycreatelocation(_:).md)
- [SCDynamicStoreKeyCreateProxies(_:)](systemconfiguration/scdynamicstorekeycreateproxies(_:).md)
