Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Scripting and JSON Output With BTP, the SAP Business Technology Platform CLI

SAP via YouTube

Overview

Dive deep into scripting and JSON output with the SAP Business Technology Platform CLI (btp) in this comprehensive video tutorial. Explore advanced techniques for working with the btp CLI, including JSON output manipulation and effective scripting practices. Learn to navigate and extract data from complex JSON structures using tools like jq and fx. Discover how to leverage GUIDs for targeting subaccounts and directories, and gain insights into improving shell scripting skills with industry-standard guidelines. Master the use of bash debugging techniques and explore the powerful jqte tool for JSON exploration. Enhance your ability to interact with and manage SAP BTP resources efficiently through command-line operations and scripting.

Syllabus

Welcome and introduction
Logging in to our Hands-on SAP Dev account and examining btpgo
Looking at the tmux status configuration and how btpctx feeds the status
Examining the detail of btp get accounts/global-account
Different ways of grabbing a property value from the output subdomain
Reflecting on the trend of JSON output for commands that produce rich content
Our first use of --format json
Starting to use jq for the JSON data
Introducing fx to navigate JSON structures
Useless use of cat award!
Comparing the detailed global-account output of JSON vs non-JSON
Understanding the output for btp get accounts/global-account --show-hierarchy
Re-examining the bgu function and the btpguid script
Recognizing that we need to use GUIDs often
Using bgu to target subaccounts or directories
Referring to the Google Shell Scripting Guidelines, shellcheck and shfmt via https://qmacro.org/2020/10/05/improving-my-shell-scripting/
Using bash -x to look at what's going on in detail and digging into the btpguid main function
A brief look at jqte - a tmux-powered jq explorer

Taught by

SAP Developers

Reviews

Start your review of Scripting and JSON Output With BTP, the SAP Business Technology Platform CLI

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.