<!--
{
  "documentType" : "article",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/scdynamicstorekey",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "SCDynamicStoreKey"
}
-->

# SCDynamicStoreKey

## Overview

The `SCDynamicStoreKey` programming interface provides convenience functions that an application can use to create a correctly formatted dynamic store key for accessing specific items in the dynamic store. An application can then use the resulting string in any function that requires a dynamic store key.

## Topics

### Group

[`CFStringRefSCDynamicStoreKeyCreate(CFAllocatorRef allocator, CFStringRef fmt, ...);`](/documentation/SystemConfiguration/SCDynamicStoreKeyCreate)

Creates a dynamic store key using the specified format.

[`func SCDynamicStoreKeyCreateNetworkGlobalEntity(CFAllocator?, CFString, CFString) -> CFString`](/documentation/SystemConfiguration/SCDynamicStoreKeyCreateNetworkGlobalEntity(_:_:_:))

Creates a dynamic store key that can be used to access a specific global (as opposed to a per-service or per-interface) network configuration entity.

[`func SCDynamicStoreKeyCreateNetworkInterface(CFAllocator?, CFString) -> CFString`](/documentation/SystemConfiguration/SCDynamicStoreKeyCreateNetworkInterface(_:_:))

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

[`func SCDynamicStoreKeyCreateNetworkInterfaceEntity(CFAllocator?, CFString, CFString, CFString?) -> CFString`](/documentation/SystemConfiguration/SCDynamicStoreKeyCreateNetworkInterfaceEntity(_:_:_:_:))

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

[`func SCDynamicStoreKeyCreateNetworkServiceEntity(CFAllocator?, CFString, CFString, CFString?) -> CFString`](/documentation/SystemConfiguration/SCDynamicStoreKeyCreateNetworkServiceEntity(_:_:_:_:))

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

[`func SCDynamicStoreKeyCreateComputerName(CFAllocator?) -> CFString`](/documentation/SystemConfiguration/SCDynamicStoreKeyCreateComputerName(_:))

Creates a key that can be used to receive notifications when the current computer name changes.

[`func SCDynamicStoreKeyCreateConsoleUser(CFAllocator?) -> CFString`](/documentation/SystemConfiguration/SCDynamicStoreKeyCreateConsoleUser(_:))

Creates a key that can be used to receive notifications when the current console user changes.

[`func SCDynamicStoreKeyCreateHostNames(CFAllocator?) -> CFString`](/documentation/SystemConfiguration/SCDynamicStoreKeyCreateHostNames(_:))

Creates a key that can be used to receive notifications when the `HostNames` entity changes.

[`func SCDynamicStoreKeyCreateLocation(CFAllocator?) -> CFString`](/documentation/SystemConfiguration/SCDynamicStoreKeyCreateLocation(_:))

Creates a key that can be used to receive notifications when the location identifier changes.

[`func SCDynamicStoreKeyCreateProxies(CFAllocator?) -> CFString`](/documentation/SystemConfiguration/SCDynamicStoreKeyCreateProxies(_:))

Creates a key that can be used to receive notifications when the current network proxy settings are changed.



---

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)