This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator (vRO) action sample | |
// | |
// Relocates a VM when hosts do not share storage. | |
// Tested with vSphere 6.0. Does not require VM to be powered off | |
// | |
// For vRO/vRA 7.0+ | |
// | |
// Action Inputs: | |
// vm - VC:VirtualMachine | |
// datastore - VC:Datastore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import boto3 | |
import argparse | |
import string | |
parser = argparse.ArgumentParser('Find duplicate objects in an aws s3 bucket') | |
parser.add_argument('--bucket', dest='myBucket', default='yourBucketName', help='S3 Bucket to search') | |
cliArgs = parser.parse_args() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import argparse | |
import string | |
parser = argparse.ArgumentParser('Change storage class of s3 objects') | |
parser.add_argument('--bucket', dest='myBucket', default='yourBucketName', help='S3 Bucket to search') | |
parser.add_argument('--from', dest='fromPath', default='', help='s3 path to start search from') | |
cliArgs = parser.parse_args() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Scriptable Tasks Inputs: | |
// | |
// | |
//Scriptable Tasks Outputs: | |
// | |
// script - String - script to execute with guest script manager | |
script = "/usr/lib/vmware-vmafd/bin/vecs-cli entry getcert --store MACHINE_SSL_CERT --alias __MACHINE_CERT --output /usr/lib/vmware-vmafd/bin/original.crt\n"; | |
script += "/usr/bin/openssl x509 -in /usr/lib/vmware-vmafd/bin/original.crt -noout -sha1 -fingerprint | /usr/bin/cut -d= -f 2"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# In the local directory 3 files are required | |
# new_cert.crt - new machine certificate | |
# new_cert.key - private key for certificate | |
# intermediary.crt - certificate chain of the signing authority for new_cert.crt | |
# | |
# Run commands on the vCSA shell: | |
# import intermediary authority cert: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator (vRO) action sample | |
// | |
// Assign license key to ESXi Host (HostSystem) | |
// | |
// For vRO v7.0+ | |
// | |
// Action Inputs: | |
// host - VC:HostSystem | |
// license - string | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator (vRO) action sample | |
// | |
// Attach existing VMDK disk to vCenter VM | |
// | |
// For vRO/vRA 7.0+ | |
// | |
// Action Inputs: | |
// vcVm - VC:VirtualMachine | |
// diskPath - string | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator (vRO) action sample | |
// | |
// Get IDs of Properties of a Software Component | |
// | |
// For vRO/vRA 7.0+ | |
// | |
// Action Inputs: | |
// host - vCACCAFE:VCACHost | |
// componentId - string | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator (vRO) action sample | |
// | |
// Get details about at Software Component Property | |
// | |
// For vRO/vRA 7.0+ | |
// | |
// Action Inputs: | |
// host - vCACCAFE:VCACHost | |
// componentId - string | |
// propertyId - string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator (vRO) action sample | |
// | |
// Returns the vCenter VM for a vCAC/vRA VM | |
// | |
// For vRO/vRA 7.0+ | |
// | |
// Action Inputs: | |
// vCACVm - vCAC:VirtualMachine | |
// | |
// Return type: VC:VirtualMachine |