summaryrefslogtreecommitdiff
path: root/distro/common/html/_sources/knife_data_bag.txt
blob: 369baab2b7d498b092a2c2ecf54ab256683f3a04 (plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
=====================================================
knife data bag 
=====================================================

.. include:: ../../includes_data_bag/includes_data_bag.rst

.. include:: ../../includes_data_bag/includes_data_bag_encryption.rst

.. include:: ../../includes_knife/includes_knife_data_bag.rst

.. note:: Review the list of :doc:`common options </knife_common_options>` available to this (and all) |knife| subcommands and plugins.

create
=====================================================
.. include:: ../../includes_knife/includes_knife_data_bag_create.rst

Syntax
-----------------------------------------------------
.. include:: ../../includes_knife/includes_knife_data_bag_create_syntax.rst

Options
-----------------------------------------------------
.. include:: ../../release_chef_12-0/includes_knife_data_bag_create_options.rst

Examples
-----------------------------------------------------
The following examples show how to use this |knife| subcommand:

**Create a data bag**

.. include:: ../../step_knife/step_knife_data_bag_create.rst

delete
=====================================================
.. include:: ../../includes_knife/includes_knife_data_bag_delete.rst

Syntax
-----------------------------------------------------
.. include:: ../../includes_knife/includes_knife_data_bag_delete_syntax.rst

Options
-----------------------------------------------------
.. include:: ../../includes_knife/includes_knife_data_bag_delete_options.rst

Examples
-----------------------------------------------------
The following examples show how to use this |knife| subcommand:

**Delete a data bag**

.. include:: ../../step_knife/step_knife_data_bag_delete.rst

**Delete a data bag item**

.. include:: ../../step_knife/step_knife_data_bag_delete_item.rst

edit
=====================================================
.. include:: ../../includes_knife/includes_knife_data_bag_edit.rst

Syntax
-----------------------------------------------------
.. include:: ../../includes_knife/includes_knife_data_bag_edit_syntax.rst

Options
-----------------------------------------------------
.. include:: ../../release_chef_12-0/includes_knife_data_bag_edit_options.rst

Examples
-----------------------------------------------------
The following examples show how to use this |knife| subcommand:

**Edit a data bag**

.. include:: ../../step_knife/step_knife_data_bag_edit.rst

**Edit a data bag item**

.. include:: ../../step_knife/step_knife_data_bag_edit_item.rst

from file
=====================================================
.. include:: ../../includes_knife/includes_knife_data_bag_from_file.rst

Syntax
-----------------------------------------------------
.. include:: ../../includes_knife/includes_knife_data_bag_from_file_syntax.rst

Options
-----------------------------------------------------
.. include:: ../../release_chef_12-0/includes_knife_data_bag_from_file_options.rst

Examples
-----------------------------------------------------
The following examples show how to use this |knife| subcommand:

**Create a data bag from a file**

.. include:: ../../step_knife/step_knife_data_bag_from_file_create.rst

**Create an encrypted data bag from a file**

.. include:: ../../step_knife/step_knife_data_bag_from_file_create_encrypted.rst


list
=====================================================
.. include:: ../../includes_knife/includes_knife_data_bag_list.rst

Syntax
-----------------------------------------------------
.. include:: ../../includes_knife/includes_knife_data_bag_list_syntax.rst

Options
-----------------------------------------------------
.. include:: ../../includes_knife/includes_knife_data_bag_list_options.rst

Examples
-----------------------------------------------------
The following examples show how to use this |knife| subcommand:

**View a list of data bags**

.. include:: ../../step_knife/step_knife_data_bag_list.rst

show
=====================================================
.. include:: ../../includes_knife/includes_knife_data_bag_show.rst

Syntax
-----------------------------------------------------
.. include:: ../../includes_knife/includes_knife_data_bag_show_syntax.rst

Options
-----------------------------------------------------
.. include:: ../../release_chef_12-0/includes_knife_data_bag_show_options.rst

Examples
-----------------------------------------------------
The following examples show how to use this |knife| subcommand:

**Show a data bag**

.. include:: ../../step_knife/step_knife_data_bag_show.rst

**Show a data bag item**

.. include:: ../../step_knife/step_knife_data_bag_show_item.rst

**Show a data bag, encrypted**

.. include:: ../../step_knife/step_knife_data_bag_show_item_encrypted.rst

**Show a data bag, decrypted**

.. include:: ../../step_knife/step_knife_data_bag_show_item_decrypted.rst

**Show a data bag as JSON**

.. include:: ../../step_knife/step_knife_data_bag_show_as_json.rst