Work with metadata vCloud in PowerCLI

Based on the post of Jake Robinson to GeekAfterFive - Infrastructure as a Code, it seems that the sample scripts in Alan Renoufof March 30, 2012 post on the Blog of VMware PowerCLI, working with metadata in PowerCLI vCloud, won't work with vCloud Director 5.1. Nobody has changed the Get-CIMetaData function to return the value of the TypedValue element? After removing the Select-Object cmdlet (to select all the properties and see what is returned):

PS > Get-Org-name CloudSandbox | Get-CIVM | Get-CIMetaData

Domain: VMware.VimAutomation.Cloud.Views.MetadataDomainTag

Key: Test key

Value:

TypedValue: VMware.VimAutomation.Cloud.Views.MetadataStringValue

Client: VMware.VimAutomation.Cloud.Views.CloudClient

HREF: [removed]/metadata/SYSTEM/Test%20Key

Type: application/vnd.vmware.vcloud.metadata.value+xml

Link            : {, , }

Get_anyattr:

VCloudExtension:

The type of the value is provided (MetadataStringValue), but so far I could not get the value of TypedValue element. What Miss me?

After walking away from it for a bit, I realized that a simple update to the process of the Alan code block would get me what I'm after:

{In process

{Foreach ($Object in $CIObject)

If {($Key)

($Object.ExtensionData.GetMetadata ()). MetadataEntry | Where {$_.} Key - eq $key} | Select @{N = "CIObject"; {E = {$Object.Name}}, ExpandProperty - TypedValue of key

} Else {}

($Object.ExtensionData.GetMetadata ()). MetadataEntry | Select @{N = "CIObject"; {E = {$Object.Name}}, ExpandProperty - TypedValue of key

}

}

Tags: VMware

Similar Questions

  • Work with multiple vCenter servers in PowerCLI

    VI the value of multiple server mode:

    Game-PowerCLIConfiguration - multiple DefaultVIServerMode - confirm: $false

    Connect to two servers vCenter:

    SE connect-VIServer-Server vc1, vc2-userid of the user

    Find the cluster and do not specify a VC:

    Get-Data Center-Cluster clusterA

    Cluster data center is displayed correctly:

    name of the data center in VC1

    name of the data center by VC2

    Try to specify what VC of query:

    Get-Data Center-Cluster cluster - server VC2

    the names of three data centers are returned which makes no sense (only one contains the cluster)

    Trying to figure out how better to work with the simultaneous connections of VC in a script and dictate what VC I want to execute a command against rather than disconnect and reconnect etc.

    I think there could be a problem with the cmdlet.

    You are using PowerCLI 5.5 R2 I guess?

    When you try like this

    Get-Data Center-Cluster (Cluster-Get-name ClusterA-Server VC1)

    is it returns 1 datacenter or 2?

  • LR is going very slowly with metadata

    After working with a few photos, change of name, address, etc... I closed LR and the next opening of LR will extremely slow. Goes image anotxer metadata one, change a few minutes after. Can someone help me?

    Please upgrade to the latest version of Lightroom 6.6.1

    See maintaining Lightroom to update to Lightroom.

    ~ Assani

  • WebService to Check - in with metadata only

    Hello

    I want to check in the new metadata only document in WCC by WebService.

    I tried using "createPrimaryMetaFile" but it doesn't work.

    < chec:property >

    < chec:name > createPrimaryMetaFile < / chec:name >

    true < failure: value > < / failure: value >

    < / chec:property >

    Only metadata option is enabled in the configuration and when the user perform check-in to check in the page with metadata only checked it works perfectly.

    How can I do the same thing in a WebService call?

    Thank you.

    I think that the fundamental error here is that the parameter is added to the application filed in Soap UI manually or according to the IDE you use.

    You must do the following steps:

    1. open the Console of the AAU and navigate to Administration - Soap WSDL - CheckIn - Edit - CheckinUniversal - Edit - from the top of the menu page drop down select request update settings

    2. now, under the application the following must be true:

    Name: createPrimaryMetaFile

    Type: area: boolean

    Leave the rest of the fields as-is.

    3 update

    4. Select WSDL in the upper left corner

    5. under Actions - select Generate WSDL and confirm that it shows "the WSDL files have been generated successfully."

    6. now download the CheckinWSDL from the Complutense University of Madrid

    7 import in the IDE and recreate the request

    8. here you will see the createPrimaryMetaFile option (by default it is like this:)

    ?

    9. change the '? ' to 1 and run the query.

    Confirm if it works well or not.

    I gave these steps in the event that it has not been done, if done then just re - confirm the steps.

    I even tested on my internal test environment, it worked fine.

    I hope this helps.

    Thank you

    Srinath

  • VOD works with HTTP but not RTMP

    I have a few FLV videos that I can't work with RTMP streaming using VOD app and player of strobe.  Locally, they play fine in VLC media player.  It will also play properly in the flash drive so accessible with an HTTP request.  When I try to listen to using the RTMP protocol, reading seems to be normal and I can get to anywhere in the video.  However, playback will stop randomly at different points in the middle of the video.  If the player to debug, I see that NetStreamTimeTrait becomes NetStreamCodes.NETSTREAM_PLAY_COMPLETE.

    Can someone tell me how can I solve the FLV file, or what steps I can take to understand why playback will stop at the beginning?

    These videos were captured using the Wowza DVR app, and I used a HDS capture utility to recompose the video in a FLV.  The resulting FLV file was missing the duration metadata, so I used "yamdi" to inject the missing metadata.  I also tried "flvfix" utility without effect.

    Extension .mp4 as renaming does not work... You will have a tool to convert your FLV to mp4 videos.

  • As prelude does not work with red images, how can I add logging information to a file in Premiere Pro

    As prelude does not work with red images, how can I add logging information to a file in Premiere Pro CS6?

    RED footage has a restriction on the metadata.  We are looking into what it would take to get the metadata full support in our system, but you cannot mark red footage at this time.

  • ITunes and the AppStore do not work with Sierra

    I upgraded to El Capitan Sierra and now ITunes and AppStore do not work. The message says something wrong with the internet connection and not able to connect.

    I tried to disconnect and connection that worked with the AppStore, but still can not.

    ITunes does not allow a reconnect.

    Any help appreciated.

    Thank you

    Aurore

    Try the following steps:

    OS x: "Unable to connect" or "unable to connect to the App Store. An internet connection is required"- Apple Support

    Advanced steps for fixing problems with iTunes Store - Apple Support connection

  • image capture does not work with the epson scanner after macOS sierra upgraded

    Image capture no longer works with epson scanner v800 after upgrade. I installed the new drivers from epson, and it still does not work. Just says: "waiting for scanner", but nothing ever happens.

    Drivers Epson macOS 10.12.x specific https://www.epson.com/cgi-bin/Store/support/supDetail.jsp?oid=256062 & infoType = Do wnloads & platform = OSF_M_X12 do not work?

  • I downloaded a windows file. I want to work with the document. I want to insert the information. How can I do this

    How can I work with a pdf file of windows? I want to insert the information. Edit the file etc.

    You may be lucky with select all > copy > paste into a new document in a robust word-processing or text-editing application

    A PDF is designed to be READ (for the most part)-only "areas" can be "filled" and printed/saved

    After the first, you can then save it as a PDF from the application you are using - usually the function print rather than the Save as function

  • Final cut 7 works with macOS Sierra

    Hi guys,.

    Final cut 7 works with macOS Sierra.

    Thank you.

    Yes. Very well! But I can't work my plugin.

  • Updated and now the phone won't work online only works with 4G

    Download ios 10 and now my phone does not work online only work with 4G

    Hello thomas.friar,

    Thanks for asking for help with your iPhone to connect to the internet via wi - fi since the upgrade to iOS 10. We don't like to hear about the problems that occur after an upgrade. Here's what I recommend.

    The first thing we want to make sure that all of your data on the Mac and the iPhone is safe. For iPhone, you can perform a backup in iCloud or iTunes using this article: backing up your iPhone, iPad, and iPod touch.

    Then, follow the steps in this link: If your iPhone, iPad or iPod touch connects to a Wi-Fi network

    Thanks again and have a great rest of your day.

  • InDesign CS5 will work with MacOS Sierra?

    Has anyone tried to see if InDesign CS5 will work with MacOS Sierra? I have creative cloud and CS5 on my machine, but due to some of the things that I have to work that only work with CS5 to CS6 I have to keep my old software. I hesitate to upgrade to Sierra until I know if InDesign CS5 will work or not.

    If anyone has tested this, I would be recognizing the return flow, thank you.

    It really depends what you do with it, and a large part of the framework has changes in the operating system for how the application is designed to run in. Your workflow can cause problems when the application works for others or you might be able to use it, but keep in mind has more no support for CS5 Adobe or Apple, so do not expect to solve any problems that you can discover.

  • Opening works with Sierra

    How the opening has worked with Sierra?

    Basically the same as on El Capitan. The seeds of same as before.  He started and we can change, but some tools are behaving unexpectedly.  Some users report that the opening is now crashing mode full screen.

    I can't reproduce this problem, it might be the dependent platform.

    See this discussion: Re: work will be opening 3.6 in Mac OS Sierra?

  • iMovie 9 will work with Sierra?

    I want to continue to work with iMovie 11 (or as it is also referred to as version 9).  I would also like to upgrade to Mac OS Sierra.  IMovie 11 will continue to operate in the Sierra if I update?

    I have no idea, but since it already has problems running under El Capitan I would not set my hopes high.  If you want to try, make a clone bootable for your operating system on an external drive or separate the partition before update so that you can come back if Sierra is giving problems.

    Geoff.

  • Since macos sierra my isight FireWire doesn´t work with Facetime

    Until El Capitan works my FireWire iSight without problem with Facetime. After the upgrade to sierra, my iSight FireWire doesn´t work with Facetime, only with Photobooth!

    Fact the iSight camera please about this Mac-> System Report-> Firewire? What is the year/model of your Mac?

Maybe you are looking for