export IAM_TOKEN=`ibmcloud iam oauth-tokens | head -n 1 | awk '{print $4}'`
echo $IAM_TOKEN
{ | |
"first": { | |
"href": "https://directlink.cloud.ibm.com/v1/ports?limit=100" | |
}, | |
"limit": 100, | |
"next": { | |
"href": "https://directlink.cloud.ibm.com/v1/ports?limit=100&start=aeef25be-1c7a-4ec2-a71b-9c20e3e12f40", | |
"start": "aeef25be-1c7a-4ec2-a71b-9c20e3e12f40" | |
}, | |
"total_count": 140, |
{ | |
"first": { | |
"href": "https://directlink.cloud.ibm.com/v1/ports?limit=150" | |
}, | |
"limit": 150, | |
"total_count": 140, | |
"ports": [ | |
{ | |
"id": "65512333-a253-453b-8b15-0b085a6a1aa1", | |
"direct_link_count": 0, |
{ | |
".123" : "application/vnd.lotus-1-2-3", | |
".3dml" : "text/vnd.in3d.3dml", | |
".3g2" : "video/3gpp2", | |
".3gp" : "video/3gpp", | |
".a" : "application/octet-stream", | |
".aab" : "application/x-authorware-bin", | |
".aac" : "audio/x-aac", | |
".aam" : "application/x-authorware-map", | |
".aas" : "application/x-authorware-seg", |