Click or drag to resize

IWsEndUserSetEnqueueModifyPrivateCloudResources Method

By the method SetEnqueueModifyPrivateCloudResources you can modify a resouces quantity

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult SetEnqueueModifyPrivateCloudResources(
	ModifyPrivateCloudResources request
)

Parameters

request
Type: Aruba.Cloud.Provisioning.Entities.PrivateCloudModifyPrivateCloudResources

Return Value

Type: WsResult
Remarks
The WsEndUser authenticates the user and retrieves the wcfPlatform by first performing a data validation. After the validation of input data, are added to the prices of individual resources aggioranre, the wcfBilling verifies that the user has sufficient credit for the purchase. After a successful validation, the wcfPlatform deals with the update of the required tables in the privateCloud, entering a new job in the Job table of operation, and reserve the ModifyPrivateCloud credit through wcfBilling.
Examples
        /// IWsEndUser.SetEnqueueModifyPrivateCloudResources Method (c# .NET)
public static string SetEnqueueModifyPrivateCloudResources(WsEndUserClient client,
    ModifyPrivateCloudResources modifyPrivateCloudResources)
{
    //specify the account login details 
    client.ClientCredentials.UserName.UserName = "ARU-0000";
    client.ClientCredentials.UserName.Password = "0123456789";

    StringBuilder stringBuilder = new StringBuilder();

    try
    {
    // call method SetEnqueueModifyPrivateCloudResources 
    // obtaining a WsResultOfint item
    WsResult result = 
        client.SetEnqueueModifyPrivateCloudResources(modifyPrivateCloudResources);

    //if the call is Success print value
    if (result.Success)
    {
        // get Value returned from server
        stringBuilder.Append(" Operation ends successfully. Result Code : ");
        stringBuilder.Append(result.ResultCode);
    }
    else
    {
        throw new ApplicationException(result.ResultMessage);
    }
    }
    catch (Exception ex)
    {
    // re-run the error
    throw new ApplicationException(ex.Message);
    }

    return stringBuilder.ToString();
}
See Also