-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy path_help.py
More file actions
61 lines (53 loc) · 2.15 KB
/
_help.py
File metadata and controls
61 lines (53 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------
# pylint: disable=line-too-long
# pylint: disable=too-many-lines
from knack.help_files import helps # pylint: disable=unused-import
helps['site key'] = """
type: group
short-summary: Manage Site Keys for Azure Edge sites.
"""
helps['site key create'] = """
type: command
short-summary: Create a site key linked to a site.
examples:
- name: Create a site key
text: az site key create --name TestSiteKeyName --resource-group TestRGName --site-name TestSiteName
- name: Create a site key with custom token expiry
text: az site key create --name TestSiteKeyName --resource-group TestRGName --site-name TestSiteName --token-expiry-date "2026-05-01T00:00:00Z"
"""
helps['site key delete'] = """
type: command
short-summary: Delete a site key.
examples:
- name: Delete a site key
text: az site key delete --name TestSiteKeyName --resource-group TestRGName
"""
helps['site key list'] = """
type: command
short-summary: List all site keys in a resource group.
examples:
- name: List site keys
text: az site key list --resource-group TestRGName
"""
helps['site key show'] = """
type: command
short-summary: Get details of a specific site key.
examples:
- name: Show a site key
text: az site key show --name TestSiteKeyName --resource-group TestRGName
"""
helps['site key download'] = """
type: command
short-summary: Download the token for a site key.
long-summary: Downloads the site key token and saves it to a file. If --file is not specified, the token is saved to <key-name>.SiteKey in the current directory.
examples:
- name: Download a site key token
text: az site key download --name TestSiteKeyName --resource-group TestRGName
- name: Download to a specific file
text: az site key download --name TestSiteKeyName --resource-group TestRGName --file ./my-token.SiteKey
"""