vcenter ovf import session: create spec
The
create_spec
structure contains information about the import parameters.Representation:
{
"push_source_content_type" : "OVF_SOURCE",
"import_flags" : [
"string",
"string"
],
"push_source_ovf_option" : "MANIFEST",
"ssl_certificate_thumbprint" : "string",
"pull_source" : "http://myurl.com",
"content_library_item" : "obj-103",
"source_type" : "PUSH_SOURCE",
"locale" : "string"
}
"push_source_content_type" : "OVF_SOURCE",
"import_flags" : [
"string",
"string"
],
"push_source_ovf_option" : "MANIFEST",
"ssl_certificate_thumbprint" : "string",
"pull_source" : "http://myurl.com",
"content_library_item" : "obj-103",
"source_type" : "PUSH_SOURCE",
"locale" : "string"
}
Attributes:
Name | Type | Description |
---|---|---|
Required | ||
import_flags | string[] | Array of selected import flags. The supported flags are:
|
source_type | string | Type of import source. Defines the type of source. Value is one of: PUSH_SOURCE: The client is uploading content using HTTP(S) PUT requests. PULL_SOURCE: The server is pulling content from a URL. CONTENT_LIBRARY_SOURCE: The server is pulling content from a library item. |
Optional | ||
locale | string | The locale that should be used for parsing the OVF descriptor. This defaults to the server locale if not specified. Optional. This defaults to the server locale if not specified. |
pull_source | URI | If type is PULL_SOURCE, this is the source URL. Optional. It is only relevant when source_type has value PULL_SOURCE. This field is optional and it is only relevant when the value of source_type is PULL_SOURCE. |
ssl_certificate_thumbprint | string | Thumbprint of the expected SSL certificate for PULL_SOURCE. It is only used for HTTPS connections, otherwise it will be ignored. The thumbprint is the SHA-1 hash of the DER encoding of the remote endpoint's SSL certificate. If set, the remote endpoint's SSL certificate is only accepted if it matches this thumbprint, and no other certificate validation is performed. Optional. It is only relevant when source_type has value PULL_SOURCE. If not specified, standard certificate validation is performed. |
push_source_content_type | string | This is the source content type for PUSH_SOURCE, . The default source content type is OVF_SOURCE. Optional. It is only relevant when source_type has value PUSH_SOURCE. This field is optional and it is only relevant when the value of source_type is PUSH_SOURCE. |
push_source_ovf_option | string | This specifies the vcenter.ovf.import_session.push_source_ovf_option for OVF_SOURCE. This defaults to NONE if not specified. Optional. It is only relevant when push_source_content_type has value OVF_SOURCE. This field is optional and it is only relevant when the value of push_source_content_type is OVF_SOURCE. |
content_library_item | string | If type is CONTENT_LIBRARY_SOURCE, this is the identifier of source content library item. Optional. It is only relevant when source_type has value CONTENT_LIBRARY_SOURCE. This field is optional and it is only relevant when the value of source_type is CONTENT_LIBRARY_SOURCE.When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.content.library.Item . When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.content.library.Item . |