Files
server_debian_macro/node_modules/@azure/keyvault-keys/dist/browser/identifier.d.ts
2025-02-18 22:59:07 +00:00

42 lines
1.2 KiB
TypeScript

/**
* Represents the segments that compose a Key Vault Key Id.
*/
export interface KeyVaultKeyIdentifier {
/**
* The complete representation of the Key Vault Key Id. For example:
*
* https://<keyvault-name>.vault.azure.net/keys/<key-name>/<unique-version-id>
*
*/
sourceId: string;
/**
* The URL of the Azure Key Vault instance to which the Key belongs.
*/
vaultUrl: string;
/**
* The version of Key Vault Key. Might be undefined.
*/
version?: string;
/**
* The name of the Key Vault Key.
*/
name: string;
}
/**
* Parses the given Key Vault Key Id. An example is:
*
* https://<keyvault-name>.vault.azure.net/keys/<key-name>/<unique-version-id>
*
* On parsing the above Id, this function returns:
*```ts
* {
* sourceId: "https://<keyvault-name>.vault.azure.net/keys/<key-name>/<unique-version-id>",
* vaultUrl: "https://<keyvault-name>.vault.azure.net",
* version: "<unique-version-id>",
* name: "<key-name>"
* }
*```
* @param id - The Id of the Key Vault Key.
*/
export declare function parseKeyVaultKeyIdentifier(id: string): KeyVaultKeyIdentifier;
//# sourceMappingURL=identifier.d.ts.map