Sample Exchange

 View Only

List services in VMware Cloud Services Platform using cURL 

Jul 23, 2018 09:56 PM

A sample that connects to the VMware Cloud Services Platform (CSP) REST API with Refresh Token and retrieves the CSP Access Token and list all available services for given user. 

./vmware-list-csp-services.sh $REFRESH_TOKEN

VMware Code Stream

VMware Cost Insight

VMware Kubernetes Engine [Beta]

VMware Discovery

VMware Service Broker

VMware Cloud on AWS

VMware Log Intelligence

VMware Hybrid Cloud Extension

VMware Cloud Assembly

VMware Usage Meter Service

VMware Network Insight
vmware-list-csp-services.sh $REFRESH_TOKEN
VMware Code Stream
VMware Cost Insight
VMware Kubernetes Engine [Beta]
VMware Discovery
VMware Service Broker
VMware Cloud on AWS
VMware Log Intelligence
VMware Hybrid Cloud Extension
VMware Cloud Assembly
VMware Usage Meter Service
VMware Network Insight

#csp
#Apache2.0
#CloudServicesPlatform
#VMwareCloudServicesPlatform(CSP)
#VMwareCloudonAWSAPI
#ShellScript
#VMwareCloudonAWS
#VMwareCloudonAWSAPI

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
sh file
vmware-list-csp-services.sh   808 B   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Comments

Mar 17, 2020 10:27 AM

There is a syntax error in the code on line 8. The ampersand "&" and greater than ">" characters are in the incorrect positions. This error causes the bash script to fail 100% of the time, and create an unwanted file in the current working directory named "1" containing the bash error. Line 8 should read as follows:
type jq > /dev/null 2>&1

Related Entries and Links

No Related Resource entered.