VRA CONTENT Commands


DescriptionCommand
Content details     vra content detail
Exports content as a zip file using an internal identifier or a combination of public content id and type     vra content export
Import content(s) from a zip file     vra content import
List all content     vra content list
Export content without dependencies using an internal identifier or a combination of public content id and type     vra content simple export
Import single content file. NOTE: This only supports non zip files like *.yaml     vra content simple import


Content details

vra content detail

Parameter--id (The internal content identifier - the id field)
Mandatorytrue

Parameter--export (Provide a file to export all results)
Mandatoryfalse

Parameter--format (Supported formats include: TABLE, JSON, CSV)
Mandatoryfalse

Parameter--columns (Customized columns to include in TABLE or CSV rendering. Regex allowed. Eg: p1,p2,collectionA:c3,collectionA:c4)
Mandatoryfalse


Exports content as a zip file using an internal identifier or a combination of public content id and type

vra content export

Parameter--path (Absolute path to the folder where the zip is to be generated. If the supplied path is a file then the zip is created with the that name else a zip with name contentId-contentTypeId.zip is generated. If a file with name contentId-contentTypeId.zip already exists at the path then a zip with name contentId-contentTypeId-***.zip is generated where * represent randomly generated numeric digits.)
Mandatorytrue

Parameter--id (The internal content identifier - the id field)
Mandatoryfalse

Parameter--content-id (The public human readable content id - the contentId field)
Mandatoryfalse

Parameter--type (Content type. Choose from [composite-blueprint, property-definition, property-group, software-component, xaas-blueprint, xaas-bundle-content, xaas-resource-action, xaas-resource-mapping, xaas-resource-type]. Please note that global property-definition and property-group won't be listed)
Mandatoryfalse

Parameter--secure (A flag to exclude or include secure data such as passwords. true - Exclude secure data from the exported content. false - Include secure data in the exported plain text content. Including secure data in plain text poses a security risk. If you choose to include passwords in the exported content, you agree to accept that risk.)
Mandatoryfalse

Parameter--verbose (Show detailed output for the export. [Yes or No])
Mandatoryfalse

Parameter--precheck (OFF = no precheck ,ON = stop on first warning encountered and WARN = proceed in case of warnings and stop on first failure.)
Mandatoryfalse


Import content(s) from a zip file

vra content import

Parameter--path (Absolute path to the zip file)
Mandatorytrue

Parameter--resolution (Conflict resolution method to be used when a match is found for the content. This method applies to all the components during import. Options are: 1) OVERWRITE: Overwrite the existing content with the new content. You may choose to run with --precheck WARN to proceed with import even when there is warning. 2) SKIP: Skip importing the new content and reuse the existing content.)
Mandatorytrue

Parameter--dry-run (Validate package contents [Yes or No])
Mandatoryfalse

Parameter--verbose (Show detailed output for the export. [Yes or No])
Mandatoryfalse

Parameter--precheck (OFF = no precheck ,ON = stop on first warning encountered and WARN = proceed in case of warnings and stop on first failure.)
Mandatoryfalse


List all content

vra content list

Parameter--type (Content type. Choose from [composite-blueprint, property-definition, property-group, software-component, xaas-blueprint, xaas-bundle-content, xaas-resource-action, xaas-resource-mapping, xaas-resource-type]. Please note that global property-definition and property-group won't be listed)
Mandatoryfalse

Parameter--page (page number)
Mandatoryfalse

Parameter--pageSize (Page size)
Mandatoryfalse

Parameter--export (Provide a file to export all results)
Mandatoryfalse

Parameter--format (Supported formats include: TABLE, JSON, CSV)
Mandatoryfalse

Parameter--columns (Customized columns to include in TABLE or CSV rendering. Regex allowed. Eg: p1,p2,collectionA:c3,collectionA:c4)
Mandatoryfalse


Export content without dependencies using an internal identifier or a combination of public content id and type

vra content simple export

Parameter--path (Absolute path to the folder where the file is to be generated. If the supplied path is a file then the file is created with the that name else a file with name . is generated. If a file with name contentId.extension already exists at the path then it will be overwritten.)
Mandatorytrue

Parameter--id (The internal content identifier - the id field)
Mandatoryfalse

Parameter--content-id (The public human readable content id - the contentId field)
Mandatoryfalse

Parameter--type (Content type. Choose from [composite-blueprint, property-definition, property-group, software-component, xaas-blueprint, xaas-bundle-content, xaas-resource-action, xaas-resource-mapping, xaas-resource-type]. Please note that global property-definition and property-group won't be listed)
Mandatoryfalse

Parameter--secure (A flag to exclude or include secure data such as passwords. true - Exclude secure data from the exported content. false - Include secure data in the exported plain text content. Including secure data in plain text poses a security risk. If you choose to include passwords in the exported content, you agree to accept that risk.)
Mandatoryfalse

Parameter--verbose (Show detailed output for the export. [Yes or No])
Mandatoryfalse


Import single content file. NOTE: This only supports non zip files like *.yaml

vra content simple import

Parameter--type (Content type. Choose from [composite-blueprint, property-definition, property-group, software-component, xaas-blueprint, xaas-bundle-content, xaas-resource-action, xaas-resource-mapping, xaas-resource-type]. Please note that global property-definition and property-group won't be listed)
Mandatorytrue

Parameter--path (Absolute path to the content file)
Mandatorytrue

Parameter--verbose (Show detailed output for the export. [Yes or No])
Mandatoryfalse


Copyright 2016 VMware, Inc. All rights reserved.