content library: subscription info
subscription_info
structure defines the subscription behavior for a subscribed library.Representations:
"authentication_method": "BASIC",
"automatic_sync_enabled": true,
"on_demand": true,
"password": "secret string",
"ssl_thumbprint": "string",
"subscription_url": "http://myurl.com",
"user_name": "string"
}
<ns0:SubscriptionInfo xmlns:ns0="http://vmware.com/content/library" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user_name>string</user_name>
<ssl_thumbprint>string</ssl_thumbprint>
<on_demand>true</on_demand>
<automatic_sync_enabled>true</automatic_sync_enabled>
<subscription_url>http://myurl.com</subscription_url>
<authentication_method>BASIC</authentication_method>
<password>secret string</password>
</ns0:SubscriptionInfo>
Attributes:
Name | Type | Description |
---|---|---|
Optional | ||
authentication_method | string | Indicate how the subscribed library should authenticate (BASIC , NONE ) with the published library endpoint. Indicate how the subscribed library should authenticate with the published library endpoint. Value is one of:BASIC: Require HTTP Basic authentication matching a specified username and password. NONE: Require no authentication.Optional. This field must be provided for the create operation. It will always be present in the result of the get or list operations. It is optional for the update operation. |
automatic_sync_enabled | boolean | Whether the library should participate in automatic library synchronization. In order for automatic synchronization to happen, the global content.configuration_model.automatic_sync_enabled option must also be true. The subscription is still active even when automatic synchronization is turned off, but synchronization is only activated with an explicit call to sync or sync. In other words, manual synchronization is still available even when automatic synchronization is disabled. Optional. This field must be provided for the create operation. It will always be present in the result of the get or list operations. It is optional for the update operation. |
on_demand | boolean | Indicates whether a library item's content will be synchronized only on demand. If this is set to Items without synchronized content can be forcefully synchronized in advance using the sync call with If this value is set to create operation. It will always be present in the result of the get or list operations. It is optional for the update operation. |
password | secret | The password to use when authenticating. The password must be set when using a password-based authentication method; empty strings are not allowed. Optional. This field is optional for thecreate operation. It will not be present in the result of the get or list operations. It is optional for the update operation. |
ssl_thumbprint | string | An optional SHA-1 hash of the SSL certificate for the remote endpoint. If this value is defined the SSL certificate will be verified by comparing it to the SSL thumbprint. The SSL certificate must verify against the thumbprint. When specified, the standard certificate chain validation behavior is not used. The certificate chain is validated normally if this value is unset. Optional. This field is optional for thecreate operation. It will not be present in the result of the get or list operations. It is optional for the update operation. |
subscription_url | URI | The URL of the endpoint where the metadata for the remotely published library is being served. This URL can be the content.library.publish_info.publish_url of the published library (for example, https://server/path/lib.json). If the source content comes from a published library with content.library.publish_info.persist_json_enabled, the subscription URL can be a URL pointing to the library JSON file on a datastore or remote file system. The supported formats are: vSphere 6.5
vSphere 6.0
When you specify a DS subscription URL, the datastore must be on the same vCenter Server as the subscribed library. When you specify an NFS or SMB subscription URL, the content.library.storage_backing.storage_uri of the subscribed library must be on the same remote file server and should share a common parent path with the subscription URL. Optional. This field must be provided for thecreate operation. It will always be present in the result of the get or list operations. It is optional for the update operation. |
user_name | string | The username to use when authenticating. The username must be set when using a password-based authentication method. Empty strings are allowed for usernames. Optional. This field is optional for thecreate operation. It is optional in the result of the get or list operations. It is optional for the update operation. |