Creating vCloud org with lease of storage Maximum strategy custom - VAPP model rental contract.

Hello guys!

I'm working on the use of the Orchestrator to activate the automatic configuration and customization of the vCloud.

My problem (I hope), remains the policy setting of the organization that is:

VAPP model lease:

Rental maximum storage (30 days)

It's the default, and apparently, the example of a workflow for the creation of an organization, has no way to change that!

I'm talking about this piece:

var leaseSettings = System.getModule("com.vmware.library.vCloud.Admin.Organization").createOrgLeaseSettings)
storageLeaseHours,
deploymentLeaseHours,
deleteOnStorageLeaseExpiration);

Apparently, the deleteOnStorageLeaseExpiration affects only storage cleaning: (move for expired items or permanently remove) - but not the lease of storage Maximum setting

The research of the library API, I found this and tried to do something:

var myVclOrgVAppTemplateLeaseSettings = new VclOrgVAppTemplateLeaseSettings();

myVclOrgVAppTemplateLeaseSettings.storageLeaseSeconds = 0;

myVclOrgVAppTemplateLeaseSettings.deleteOnStorageLeaseExpiration = deleteOnStorageLeaseExpiration;

However, when trying to use it in createOrgSettings, I get exception:
Cannot convert com.vmware.vmo.plugin.vcloud.model.schema.objects.OrgVAppTemplateLeaseSettings@731305e9 in com.vmware.vmo.plugin.vcloud.model.schema.objects.OrgEmailSettings (name of the dynamic Script Module: createOrgSettings #17)
How I don't use this, in order to customize the attribute of lease of storage Maximum for the policy of the Organization? It is not very clear...
Thank you!

Screenshot help SOOO much I understand now...

Well, working with the Org object alone won't get you where you need to go, you will also need to get the Organization Admin object

var adminOrg = myOrgObject.toAdminObject ();

now, with the adminOrg, you can call the method 'updateSetings' with a 'VclOrgSettings' object passed as parameter...

var orgSettings = new VclOrgSettings();

Look on the object VclOrgSettings in the Explorer in the api to find available properties - one of them is that you need: "vAppTemplateLeaseSettings" - so that the code you created will go here...

In view of the foregoing...

Create the Org as you're... Once you have the org created, the admin object so that org and update of the vAppTemplateLeaseSettings as you wish

Tags: VMware

Similar Questions

  • vCloud Director: create new Org with password policy settings

    Hello

    I'm looking for some advice or insight on how to define the strategy of password on an org on 'Activé' when creating and set the attempt to lock and the duration.

    By looking at information API, call the PS for the vCD format API should be what I have below, but when I run it in a script, it is passed over and not run.

    $lockout = $org. ExtensionData.Settings.GetPasswordPolicy)

    $lockout. AccountLockoutEnabled = $True

    $lockout. InvalidLoginsBeforeLockout = 6

    $lockout. AccountLockoutIntervalMinutes = 11

    If someone has an idea, I would be very grateful.

    Thank you

    Jkasalzuma

    Hello

    You were very close, you just need to enable the change. As your last line, perform the following steps:

    $lockout. UpdateServerData()

    Kind regards

    Dean

  • I bought Adobe Acrobat DC with the understanding that I could create a form with a text field that a customer could enter then several sentences, paragraph or several pages.  Working with the 'prepare form', I can create the text box, but it does not give

    http://www.gehendowment.org/

    Since the Web site please see Application to view the pdf file and scroll down to page 2 to see the text answer box and you can enter multiple lines of text.  That's what I need, so what's the correct software that goes to me.

    Ah ok. Just in case where it is not clear

    * Acrobat can't do MultiPage forms

    * Designer can do more powerful forms

    * Designer is now sold separately.

    Also be aware that the Forms Designer only show in Adobe software and others and cannot be used on portable devices more and most browsers.

  • help with bulk - update script vcloud Org

    Hi all

    I need to update the following script to edit only all VMs in a single body... I don't want to touch to all environments...

    ForEach ($vm in (Get - VM)) {}

    $vmv = get - VM $vm | Get-View

    $name = $vmv. Name

    $guestid = $vmv. Summary.Config.GuestId

    $vmx = new-Object VMware.Vim.VirtualMachineConfigSpec

    $vmx.extraConfig += new-Object VMware.Vim.OptionValue

    $vmx.extraConfig [0] .key = "monitor_control.enable_softResetClearTSC."

    $vmx.extraConfig [0] .value = 'TRUE '.

    If ($guestid - like ' windows8 * Guest ') {}

    ($vmv). ReconfigVM_Task ($vmx)

    }

    }

    When I connect to the specified by connect-ciserver-Server xxxx - Org Org MyOrg and test, it tells me:

    Get - VM: 09/05/2016 15:40 Get - VM you are not currently connected

    on all servers. Sign in first with a cmdlet Connect.

    C:\scripts\TSCClear.ps1:1 char: 18

    + ForEach ($vm in (Get - VM)) {}

    +                  ~~~~~~

    + CategoryInfo: ResourceUnavailable: (:)) [Get - VM], ViServerConne)

    ctionException

    + FullyQualifiedErrorId: Core_BaseCmdlet_NotConnectedError, VMware.VimAuto

    mation.ViCore.Cmdlets.Commands.GetVM

    Not a script guru here, just trying to see if I can make this work in an Org with some modifications

    You get the error message because the cmdlet Get - VM work, you must be connected to a vCenter server. For the ReconfigVM_Task() method, you must be connected to a server vCenter as well. The following PowerCLI script connects to both a vCloud Director Server and vCenter server. The script uses the cmdlet Get-CIVM to recover virtual machines in the organization. Because the VirtualmachineConfigSpec is the same for each virtual machine, I took it out of the loop to make the script run faster.

    $Organization = 'MyOrg ".

    $CIServer = "vCloudDirectorServer".

    $VIServer = "vCenterServer".

    Connect-CIServer-Server $CIServer

    SE connect-VIServer-Server $VIServer

    $vmx = new-Object VMware.Vim.VirtualMachineConfigSpec

    $vmx.extraConfig += new-Object VMware.Vim.OptionValue

    $vmx.extraConfig [0] .key = "monitor_control.enable_softResetClearTSC."

    $vmx.extraConfig [0] .value = 'TRUE '.

    ForEach ($vmv in (Get-View - RelatedObject (Get-CIVM - Org $Organization). ExtensionData)) {}

    $name = $vmv. Name

    $guestid = $vmv. Summary.Config.GuestId

    If ($guestid - like ' windows8 * Guest ') {}

    ($vmv). ReconfigVM_Task ($vmx)

    }

    }

  • Create new Orgs by using the API (hr_organization_api.create_hr_organization) and details additional Org Unit

    Hello

    I created some orgs again using the API (hr_organization_api.create_hr_organization)

    I also want to create additional details Org Unit FDF but not sure which API to use.

    I am trying to insert data into attriubute1, 2 and 3 of the table to hr_all_organization_units by using the API, however the hr_organization_api.create_hr_organization API only allows me to use a segments of1 to 30 in the parameters of the API and NOT the attribute columns

    Can someone please suggest.

    Thank you

    Hello

    As you have rightly noted, hr_organization_api.create_hr_organization is not the settings to meet the ATTRIBUTE?.

    You could try calling the hr_organization_api.update_organization with the "p_organization_id" returned by the API call 'create '.

    Kind regards

    Rajen

  • Can u create a tablespace with these settings?

    I use 12.1 DB. I need to create a tablespace with 1 data file (say abc.dbf), initial size is 10 MB, but I need grow no more than 1 GB.

    I tried the user guide. You can give the initial size of the DB using SIZE 10 M, but I couldn't find a way to give an upper limit for the tablespace.

    There are 2 settings in the DBA_TABLESPACES view.

    Maximum default MAX_EXTENTS NUMBER of extensions

    Maximum default size of max_size NUMBER of segments (in Oracle block)

    There is no clause in measure Network Management of the TABLESPACE CREATE & segment management of the sous-clauses to give a maximum number.

    Is how Oracle works is like, if you create a tablespace with a data file of 1 G, with autoextend NO, then it will grow to 1 G and then stops?

    If so, what did MAX_EXTENTS & MAX_SIZE really means?

    The physical limitations of the database for 12 c gives this information:

    Blocks of databaseMaximum per data fileLoad platform; generally 222 - 1 blocks

    So, if my block size is 8 k, then the maximum size for the data file is just 8192) /(1024*1024*1024) ((2^22-1) * = 32 GB, which is very low for a single file of data?)

    SQL > create tablespace foo

    2 datafile 'c:\temp\foo.dbf' size 10 m autoextend on maxsize 1 g;

    Created tablespace.

  • double control system - storage vmotion with or without storage in common?

    If I have a cluster of existing (vsphere 5.1), where 5 guests are all connected to the FC storage, and then I create a new cluster (managed by the same vcenter) with its own storage space, and leaders of each group DO NOT access other cluster storage:

    I can storage vmotion a computer virtual from one cluster to another?

    Y at - he of the opposition? Takes if press the company or company longer? The servers are in the same cluster, or is simply to be managed by the same sufficient vcenter?

    Hello

    It is possible to check this: VMware vSphere 5.1

  • Problem with adding new storage to the CDV provider profile

    Hi all

    I have problem with adding new storage to the CDV provider profile.

    My ENV:

    VCD Version 5.5 latest

    vCenter 5.5

    VCDDB - SQL

    I created the environment with two profiles of storage for the first time and it's work well (the storage profile created before I joined the vCenter on the VCD)

    I created tags and he attributed to the data store and I see the new VM storage through the vSphere web client policy.

    I can also see VMS on the VCDDB the dbo.storage_profile_inv the new storage policy table and when I create new provider TDC I can't.

    What I'm trying:

    1 Refresh the storage via the VCD (right click on the attached vCenter) profile

    2. restart the inventory and the profile based on the vCenter servers

    3. restart the VCD and vCenter servers

    Help, please

    You can just follow KB 2075366.

  • Create a CD with jpg files in Windows 7 to be read on Mac

    I am aware that most advanced users would scoff, but yes, I work under WIndows and my only hope is that the quantity huge knowledge, professionalism and kindness, combined with inquiring minds, that I find on this forum, could help me find the solution. I am trying to create a CD with photos in JPG format. The CD must be red on a Mac. The only thing I know about Apple is that the o/s is different from Windows. MAC user doesn't know much on his computer and said that usually, when you insert the CD, it appears on the desktop. Those that I created in Windows are not. Could someone help? Thanks in advance.

    Well, I just answered my own question and am posting this just in case someone else had the same problem. The new format of files is universal, so, basically, if you work in a newer Windows (Vista, 7) and Mac is at least version 9.0, it would not have problems playing disks in Windows. I had a problem because the Mac machine that I was trying to read the disc of Windows was old. If anyone is interested to learn more about, here's a link to an array of explaing the o/s formats

    http://en.Wikipedia.org/wiki/Universal_Disk_Format

  • create a materialized with sizes of specific columns view

    Hi all

    I am creating a materialized with a specific column size view. Something like
    create materialized view test_mv
    refresh force on demand
    as
    select id, 
           cast(my_compound_field as nvarchar2(50))
    from ( select id, 
                  field1 || field2 my_compound_field
           from   my_table);
    But Oracle seems to ignore the cast and takes the maximum size it finds for field1 | Field2 in the select query. The resulting table has a nvarchar2 (44) instead of nvarchar2 column (50).

    Which can be a problem when the display is updated... There could be new data that exceeds the current size, which is where length(field1 || field2) > 44.

    How can I change the size of the column to a field in a materialized view?

    Edit: Some extra info to clarify my case:
    Field1 and Field2 are defined as nvarchar2 (25). Field1 | Field2 can theoretically have a length of 50, but currently there is no data in my table that results from this length, the max is 44. I fear that in the future there is data that is greater than 44, which results in an error when the MV is refreshed!

    Published by: Pleiadian on January 25, 2011 14:06

    Try the substr function.

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17118/functions181.htm#i87066

  • Unable to Misc Rcpt in a newly created Inv Org

    Hi people,

    while trying to test several new features, I created a new Inv Org and also created a new Inv Sub under that.

    now, I'm unable to perform Misc Rcpt in the inv / sub.

    one of the things I noticed is that this org inv did not have all the items assigned to it. When I tried to affect an element existing in this org inv, I wasn't yet able to see the org inv newly created tab org assignments. I had to create something completely inv. and now, I am not able to assign only a new element to the org of STD.

    I need to be able to perform some org inv and void / inv transfers, where all this exercise. I am the service area and soak with a stock to test some new features in R12. Please forgive my questions and help me if you can.

    Kind regards.

    Go to inventory > installation > organization > settings.
    Check what is the org master for the new org you created?
    Do that watch org! is new org.
    Enter the correct value for master org.

    Sandeep Gandhi

  • I created a document with textedit, and now need to add a password

    I created a document with textedit, and now need to add a password to this document that exists.  Is it possible to do?

    I'm afraid that there is not.

  • 5.1.7 server on El Capitan: create a user with a personalized folder location

    I've recently upgraded to El Capitan on my server once an apple advisor told me that 5.1.7 server had a bunch of bug fixes for Open Directory(which I plan on using down the road). Given that the Working Group Manager is not compatible with 10.11...

    Is there a way to create a user with a personalized folder location? When I create a user on the server, I can choose to create a home folder, with or without limitation in the disc or make the service of the user only. My problem is that I have no way (that I know) in the window of creating user to change the location of this folder.

    I tried to create a model of a user with a basic 'tailor-made' folder location (Volume/promised Pegasus/Home 2016 / etc...) but when I create the user, the home folder is not in the specified path.

    The "work around" I found for this batch of user is to create in the default location then move them on my raid Promise Pegasus, change the path to the advanced option to the each user and reassign the appropriate permissions.

    It is not so much a problem if I would deal with users 10. But I have to manage/create about 130-150 users every 5-6 months.

    I guess that there is an easier way to create a user with a custom home folder location. It would make sense that apple removes the Workgroup Manager and does not replace its characteristics.

    Best case scenario is that I do evil and do not hesitate to let me know if this is the case!

    Thank you

    Francis

    I may be wrong, but it seems that Workgroup Manager version 10.8 works under El Capitan: I can certainly start the application and query users / groups that are there.  I guess maybe it's on the machine as a rest to be updated periodically since days Lion... but it also shows that if you can find a copy, you may be able to run on your machine.

    HTH

  • I created an account with Hightail (and received and responded to the verification email) but when I click on the down arrow next to Lacrosse "join".

    I created an account with Hightail (and received responded to the verification email), but when I click on the arrow next to the button "join" the 'link' button does not appear.

    Have you added hightail in the menu (alt + T) tools > options > Annexes > out.

  • Create a ringtone with garageband

    Hi all, trying to create a ringtone with GarageBand on my MacBook Pro, I know how to move the song in the window to the left, but I don't understand the timing top thingie, I can't seem to be able to separate the song for 40 seconds with a value of ringtone.

    Geochurchi wrote:

    ... but I don't understand the timing top thingie, I can't seem to be able to separate the song for 40 seconds with a value of ringtone.

    You use GarageBand 10?   Click in the display in the toolbar of the GarageBand window on the metronome to change the time display.

    Then click on the region of cycle button (two arrows of return) to activate the sequence in a loop and select the 40 seconds by dragging on the top of the timeline.

    Then use the button share to export the ringtone in iTunes.

Maybe you are looking for