<!--
{
  "availability" : [
    "macOS: 10.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/SCDynamicStoreKeyCreateNetworkServiceEntity(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "System Configuration"
    ],
    "preciseIdentifier" : "c:@F@SCDynamicStoreKeyCreateNetworkServiceEntity"
  },
  "title" : "SCDynamicStoreKeyCreateNetworkServiceEntity(_:_:_:_:)"
}
-->

# SCDynamicStoreKeyCreateNetworkServiceEntity(_:_:_:_:)

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

```
func SCDynamicStoreKeyCreateNetworkServiceEntity(_ allocator: CFAllocator?, _ domain: CFString, _ serviceID: 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.

`serviceID`

The service ID or a regular expression pattern.

`entity`

The specific global entity, such as IPv4 or DNS.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)