File: CustomizationSpecManager.rst

package info (click to toggle)
python-pyvmomi 6.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,980 kB
  • sloc: python: 9,206; xml: 77; makefile: 9
file content (328 lines) | stat: -rw-r--r-- 5,697 bytes parent folder | download | duplicates (5)
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
.. _int: https://docs.python.org/2/library/stdtypes.html

.. _str: https://docs.python.org/2/library/stdtypes.html

.. _bool: https://docs.python.org/2/library/stdtypes.html

.. _vim.Task: ../vim/Task.rst

.. _vim.fault.NotFound: ../vim/fault/NotFound.rst

.. _vim.fault.AlreadyExists: ../vim/fault/AlreadyExists.rst

.. _vim.CustomizationSpecInfo: ../vim/CustomizationSpecInfo.rst

.. _vim.CustomizationSpecItem: ../vim/CustomizationSpecItem.rst

.. _vim.fault.ConcurrentAccess: ../vim/fault/ConcurrentAccess.rst

.. _vim.fault.CustomizationFault: ../vim/fault/CustomizationFault.rst

.. _vim.fault.UncustomizableGuest: ../vim/fault/UncustomizableGuest.rst

.. _vim.fault.CannotDecryptPasswords: ../vim/fault/CannotDecryptPasswords.rst

.. _vim.fault.MissingLinuxCustResources: ../vim/fault/MissingLinuxCustResources.rst

.. _vim.fault.MissingWindowsCustResources: ../vim/fault/MissingWindowsCustResources.rst


vim.CustomizationSpecManager
============================
  The CustomizationSpecManager managed object is used to manage customization specifications stored on the VirtualCenter server.




Attributes
----------
    info ([`vim.CustomizationSpecInfo`_]):
      privilege: VirtualMachine.Provisioning.ReadCustSpecs
       Gets a list of information on available specifications.
    encryptionKey ([`int`_]):
      privilege: System.View
       Gets a binary public encryption key that can be used to encrypt passwords in stored specifications.


Methods
-------


DoesCustomizationSpecExist(name):
   Whether or not a specification exists.


  Privilege:
               VirtualMachine.Provisioning.ReadCustSpecs



  Args:
    name (`str`_):




  Returns:
    `bool`_:
         


GetCustomizationSpec(name):
   Obtains a specification for the given name.


  Privilege:
               VirtualMachine.Provisioning.ReadCustSpecs



  Args:
    name (`str`_):
       Unique name identifying the requested customization specification.




  Returns:
    `vim.CustomizationSpecItem`_:
         

  Raises:

    `vim.fault.NotFound`_: 
       vim.fault.NotFound


CreateCustomizationSpec(item):
   Creates a new specification.


  Privilege:
               VirtualMachine.Provisioning.ModifyCustSpecs



  Args:
    item (`vim.CustomizationSpecItem`_):




  Returns:
    None
         

  Raises:

    `vim.fault.CustomizationFault`_: 
       vim.fault.CustomizationFault

    `vim.fault.AlreadyExists`_: 
       vim.fault.AlreadyExists

    `vim.fault.CannotDecryptPasswords`_: 
       vim.fault.CannotDecryptPasswords


OverwriteCustomizationSpec(item):
   Overwrites an existing specification, possibly after retrieving (by using 'get') and editing it. If, based on the item's changeVersion value, the overwrite process detects that the specification has changed since its retrieval, then the API uses the SpecModified exception to warn the client that he might overwrite another client's change.


  Privilege:
               VirtualMachine.Provisioning.ModifyCustSpecs



  Args:
    item (`vim.CustomizationSpecItem`_):




  Returns:
    None
         

  Raises:

    `vim.fault.CustomizationFault`_: 
       vim.fault.CustomizationFault

    `vim.fault.NotFound`_: 
       vim.fault.NotFound

    `vim.fault.ConcurrentAccess`_: 
       vim.fault.ConcurrentAccess

    `vim.fault.CannotDecryptPasswords`_: 
       vim.fault.CannotDecryptPasswords


DeleteCustomizationSpec(name):
   Deletes a specification.


  Privilege:
               VirtualMachine.Provisioning.ModifyCustSpecs



  Args:
    name (`str`_):




  Returns:
    None
         

  Raises:

    `vim.fault.NotFound`_: 
       vim.fault.NotFound


DuplicateCustomizationSpec(name, newName):
   Duplicates a specification.


  Privilege:
               VirtualMachine.Provisioning.ModifyCustSpecs



  Args:
    name (`str`_):


    newName (`str`_):




  Returns:
    None
         

  Raises:

    `vim.fault.NotFound`_: 
       vim.fault.NotFound

    `vim.fault.AlreadyExists`_: 
       vim.fault.AlreadyExists


RenameCustomizationSpec(name, newName):
   Renames a specification.


  Privilege:
               VirtualMachine.Provisioning.ModifyCustSpecs



  Args:
    name (`str`_):


    newName (`str`_):




  Returns:
    None
         

  Raises:

    `vim.fault.NotFound`_: 
       vim.fault.NotFound

    `vim.fault.AlreadyExists`_: 
       vim.fault.AlreadyExists


CustomizationSpecItemToXml(item):
   Converts a specification item to XML text


  Privilege:
               System.View



  Args:
    item (`vim.CustomizationSpecItem`_):




  Returns:
    `str`_:
         


XmlToCustomizationSpecItem(specItemXml):
   Converts an XML string to a specification item


  Privilege:
               System.View



  Args:
    specItemXml (`str`_):




  Returns:
    `vim.CustomizationSpecItem`_:
         

  Raises:

    `vim.fault.CustomizationFault`_: 
       vim.fault.CustomizationFault


CheckCustomizationResources(guestOs):
   Validate that required resources are available on the server to customize a particular guest operating system. These would include sysprep for Windows and the debugfs and changefs volume editors for Linux guests.


  Privilege:
               System.View



  Args:
    guestOs (`str`_):
       Short name from the guest OS descriptor list describing the OS we intend to customize.




  Returns:
    None
         

  Raises:

    `vim.fault.CustomizationFault`_: 
       vim.fault.CustomizationFault

    `vim.fault.MissingLinuxCustResources`_: 
       vim.fault.MissingLinuxCustResources

    `vim.fault.MissingWindowsCustResources`_: 
       vim.fault.MissingWindowsCustResources

    `vim.fault.UncustomizableGuest`_: 
       vim.fault.UncustomizableGuest