Skip to content

Instantly share code, notes, and snippets.

View khayama-zz's full-sized avatar

Kyouhei Hayama khayama-zz

View GitHub Profile
@khayama-zz
khayama-zz / dl.json
Created February 2, 2021 02:42 — forked from greyhoundforty/dl.json
direct link 2.0 ports
{
"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,
@khayama-zz
khayama-zz / dl2-port.json
Created February 2, 2021 02:42 — forked from greyhoundforty/dl2-port.json
Full DL 2.0 Port List
{
"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,
@khayama-zz
khayama-zz / billing-pull.md
Last active August 18, 2020 13:52 — forked from greyhoundforty/billing-pull.md
Pull Billing information via API and export in CSV format

Generate IAM Token

export IAM_TOKEN=`ibmcloud iam oauth-tokens | head -n 1 | awk '{print $4}'`
echo $IAM_TOKEN

Get Account ID

{
".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",