public Task CreateTask(TaskType taskType) { string requestString = SerializationUtil.SerializeObject <TaskType>(taskType, "com.vmware.vcloud.api.rest.schema"); Logger.Log(TraceLevel.Information, SdkUtil.GetI18nString(SdkMessage.POST_URL_MSG) + " - " + this.GetTasksListRef().href); return(new Task(this.VcloudClient, SdkUtil.Post <TaskType>(this.VcloudClient, this.GetTasksListRef().href, requestString, "application/vnd.vmware.vcloud.task+xml", 200))); }
public Task MoveCatalogItem(string name, string description, ReferenceType sourceRef) { CopyOrMoveCatalogItemParamsType catalogItemParamsType = new CopyOrMoveCatalogItemParamsType(); catalogItemParamsType.name = name; catalogItemParamsType.Description = description; catalogItemParamsType.Source = sourceRef; return(new Task(this.VcloudClient, SdkUtil.Post <TaskType>(this.VcloudClient, this.Resource.href + "/action/move", SerializationUtil.SerializeObject <CopyOrMoveCatalogItemParamsType>(catalogItemParamsType, "com.vmware.vcloud.api.rest.schema"), "application/vnd.vmware.vcloud.copyOrMoveCatalogItemParams+xml", 202))); }
private static VappTemplate ExecuteVappTemplateUpload( vCloudClient client, string vdcActionUrl, string reqPayload, string contentType) { ReferenceType entity = new CatalogItem(client, SdkUtil.Post <CatalogItemType>(client, vdcActionUrl, reqPayload, contentType, 201)).Resource.Entity; return(VappTemplate.GetVappTemplateByReference(client, entity)); }
public Task Consolidate() { try { return(new Task(this.VcloudClient, SdkUtil.Post <TaskType>(this.VcloudClient, this.Reference.href + "/action/consolidate", (string)null, (string)null, 202))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public void ClearUnusedLocalizationBundles() { try { SdkUtil.Post <BundleUploadSocketType>(this._client, this._client.VCloudApiURL + "/admin/extension/service/action/clearunusedlocalizationbundles", (string)null, (string)null, 204); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public AdminService CreateService(AdminServiceType serviceParams) { try { return(new AdminService(this._client, SdkUtil.Post <AdminServiceType>(this._client, this._client.VCloudApiURL + "/admin/extension/service", SerializationUtil.SerializeObject <AdminServiceType>(serviceParams, "com.vmware.vcloud.api.rest.schema"), "application/vnd.vmware.admin.service+xml", 201))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public static Task RevertToCurrentSnapshot(vCloudClient client, ReferenceType refer) { try { return(new Task(client, SdkUtil.Post <TaskType>(client, refer.href + "/action/revertToCurrentSnapshot", (string)null, (string)null, 202))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public static Task Reboot(vCloudClient client, ReferenceType _ref) { try { return(new Task(client, SdkUtil.Post <TaskType>(client, _ref.href + "/power/action/reboot", (string)null, (string)null, 202))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public Task ForceVMWVimServerReconnect() { try { return(new Task(this.VcloudClient, SdkUtil.Post <TaskType>(this.VcloudClient, this.Reference.href + "/action/forcevimserverreconnect", (string)null, (string)null, 202))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public void ResetVcTrustsore() { try { SdkUtil.Post <TaskType>(this._client, this._client.VCloudApiURL + "/admin/extension/settings/general/action/resetVcTrustsore", (string)null, (string)null, 204); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public void ResetAmqpCertificate() { try { SdkUtil.Post <TaskType>(this._client, this._client.VCloudApiURL + "/admin/extension/settings/amqp/action/resetAmqpCertificate", (string)null, (string)null, 204); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public bool TestAmqpConnection() { try { return(SdkUtil.Post <AmqpSettingsTestType>(this._client, this._client.VCloudApiURL + "/admin/extension/settings/amqp/action/test", SerializationUtil.SerializeObject <AmqpSettingsType>(this.GetAmqpSettings(), "com.vmware.vcloud.api.rest.schema"), "application/vnd.vmware.admin.amqpSettings+xml", 200).Valid); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public static Task Reset(vCloudClient client, ReferenceType externalNetworkReference) { try { return(new Task(client, SdkUtil.Post <TaskType>(client, externalNetworkReference.href + "/action/reset", (string)null, (string)null, 202))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public Task Reset() { try { return(new Task(this.VcloudClient, SdkUtil.Post <TaskType>(this.VcloudClient, this.GetExternalNetworkReference().href + "/action/reset", (string)null, (string)null, 202))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public AdminCatalog CreateCatalog(AdminCatalogType adminCatalogType) { try { return(new AdminCatalog(this.VcloudClient, SdkUtil.Post <AdminCatalogType>(this.VcloudClient, this.Resource.href + "/catalogs", SerializationUtil.SerializeObject <AdminCatalogType>(adminCatalogType, "com.vmware.vcloud.api.rest.schema"), "application/vnd.vmware.admin.catalog+xml", 201))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public Task UnregisterVMWVimServer() { try { return(new Task(this.VcloudClient, SdkUtil.Post <TaskType>(this.VcloudClient, this.Reference.href + "/action/unregister", (string)null, (string)null, 202))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public Task RefreshStorageProfiles() { try { return(new Task(this.VcloudClient, SdkUtil.Post <TaskType>(this.VcloudClient, this.Reference.href + "/action/refreshStorageProfiles", (string)null, (string)null, 202))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public void ResetLdapSspiKeytab() { try { SdkUtil.Post <TaskType>(this._client, this._client.VCloudApiURL + "/admin/extension/settings/ldapSettings/action/resetLdapSspiKeytab", (string)null, (string)null, 204); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public Task Shutdown() { try { return(new Task(this.VcloudClient, SdkUtil.Post <TaskType>(this.VcloudClient, this.Reference.href + "/power/action/shutdown", (string)null, (string)null, 202))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public void DisableMaintenance() { try { SdkUtil.Post <TaskType>(this.VcloudClient, this.Reference.href + "/action/exitMaintenanceMode", (string)null, (string)null, 204); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public Task RevertToCurrentSnapshot() { try { return(new Task(this.VcloudClient, SdkUtil.Post <TaskType>(this.VcloudClient, this.Reference.href + "/action/revertToCurrentSnapshot", (string)null, (string)null, 202))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public AdminAclRule RegisterAdminAclRule(AclRuleType aclRuleParams) { try { return(new AdminAclRule(this.VcloudClient, SdkUtil.Post <AclRuleType>(this.VcloudClient, this.Resource.href + "/aclrules", SerializationUtil.SerializeObject <AclRuleType>(aclRuleParams, "com.vmware.vcloud.api.rest.schema"), "application/vnd.vmware.admin.aclRule+xml", 201))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public Task RegisterVapp(RegisterVAppParamsType registerVappParams) { try { return(new Task(this.VcloudClient, SdkUtil.Post <TaskType>(this.VcloudClient, this.Resource.href + "/action/registerVApp", SerializationUtil.SerializeObject <RegisterVAppParamsType>(registerVappParams, "com.vmware.vcloud.api.rest.schema"), "application/vnd.vmware.admin.registerVAppParams+xml", 202))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public CatalogItem AddCatalogItem(CatalogItemType catalogItemType) { try { return(new CatalogItem(this.VcloudClient, SdkUtil.Post <CatalogItemType>(this.VcloudClient, this.Reference.href.Replace("/admin", "") + "/catalogItems", SerializationUtil.SerializeObject <CatalogItemType>(catalogItemType, "com.vmware.vcloud.api.rest.schema"), "application/vnd.vmware.vcloud.catalogItem+xml", 201))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public void ClearUnusedRights() { try { SdkUtil.Post <RightType>(this._client, this._client.VCloudApiURL + "/admin/extension/service/action/clearunusedrights", (string)null, (string)null, 204); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public void PublishCatalog(PublishCatalogParamsType publishCatalogParamsType) { try { SdkUtil.Post <PublishCatalogParamsType>(this.VcloudClient, this.Reference.href + "/action/publish", SerializationUtil.SerializeObject <PublishCatalogParamsType>(publishCatalogParamsType, "com.vmware.vcloud.api.rest.schema"), "application/vnd.vmware.admin.publishCatalogParams+xml", 204); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public void DisableDownload() { try { SdkUtil.Post <TaskType>(this.VcloudClient, this.Reference.href + "/action/disableDownload", (string)null, (string)null, 204); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public static void Unlock(vCloudClient client, ReferenceType userRef) { try { SdkUtil.Post <TaskType>(client, userRef.href + "/action/unlock", (string)null, (string)null, 204); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public static Task Consolidate(vCloudClient client, ReferenceType vappTemplateVmRef) { try { return(new Task(client, SdkUtil.Post <TaskType>(client, vappTemplateVmRef.href + "/action/consolidate", (string)null, (string)null, 202))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public Task SyncSyslogServer() { try { return(new Task(this.VcloudClient, SdkUtil.Post <TaskType>(this.VcloudClient, this.Reference.href + "/action/syncSyslogServerSettings", (string)null, (string)null, 202))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }