LibrarySubscriptionsCreateSpecSubscribedLibrary
The Subscriptions.CreateSpecSubscribedLibrary structure defines the subscribed library information used to create the subscription.
Properties
The Subscriptions.Location enumerated type defines the location of subscribed library relative to the published library.
LOCAL : The subscribed library belongs to the same vCenter instance as the published library.
REMOTE : The subscribed library belongs to a different vCenter instance than the published library.
Possible values are: LOCAL , REMOTE
Specification for creating a new subscribed library associated with the subscription. This field is optional and it is only relevant when the value of Subscriptions.CreateSpecSubscribedLibrary.target is CREATE_NEW.
Placement specification for the virtual machine template library items on the subscribed library. This field is currently required. In future, if this is unset, the system will attempt to choose a suitable placement specification for the virtual machine template items; if a placement specification cannot be chosen, publish of virtual machine template items will fail.
Identifier of the existing subscribed library to associate with the subscription. Only the subscribed libraries for which SubscriptionInfo.subscription-url property is set to the PublishInfo.publish-url of the published library can be associated with the subscription. This field is optional and it is only relevant when the value of Subscriptions.CreateSpecSubscribedLibrary.target is USE_EXISTING. 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. 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.
The Subscriptions.CreateSpecSubscribedLibrary.Target enumerated type defines the options related to the target subscribed library which will be associated with the subscription.
CREATE_NEW : Create a new subscribed library.
USE_EXISTING : Use the specified existing subscribed library.
Possible values are: CREATE_NEW , USE_EXISTING
Specification for the subscribed library’s vCenter Server instance. This field is optional and it is only relevant when the value of Subscriptions.CreateSpecSubscribedLibrary.location is REMOTE.
JSON Example
{
"location": "LOCAL",
"placement": {
"folder": "string",
"resource_pool": "string"
},
"target": "CREATE_NEW"
}