Console, CLI, SDK and API
Four ways to operate a cloud
A cloud console is a graphical interface in a browser. A command-line interface (CLI) accepts text commands. A software development kit (SDK) supplies libraries for applications to call services. An application programming interface (API) is the contract through which software sends requests and receives results. A console and a CLI may use APIs behind the scenes; they are not four different clouds.
Imagine a bookstore administrator who wants to see whether a storage resource exists. A console can display it, a CLI can list it, and an SDK can fetch its metadata for an inventory report. Each method still needs appropriate authorization. A CLI is useful for repeatable operations; a console is useful for exploration; an SDK is useful when an application needs to integrate with a service. None is automatically more privileged.
Read commands without running cloud requests
The following are documentation-discovery commands, not deployment commands. They are illustrative for AWS CLI v2, Azure CLI and Google Cloud CLI; installed versions and local help prerequisites vary. No CLI installation or execution is required for this lesson. In an approved offline environment with the tools already installed, inspect local help only; do not authenticate, install extensions or invoke resource commands. If help needs an unavailable pager, use the official reference instead.
aws ec2 describe-instances helpaz group list --helpgcloud compute instances list --helpEach command names a service or command group, then an operation. Help describes required parameters, flags and output formats. Removing the help argument can turn these examples into authenticated remote inventory requests; do not do that in an unknown account. The commands shown do not list equivalent resource types: Azure's group list lists resource groups, not virtual machines.
Control plane versus data plane
The control plane manages infrastructure and configuration, such as creating a bucket, updating a firewall policy or inspecting a VM's configuration. The data plane performs the workload's actual operations, such as reading an object or serving a web request. Some management calls are read-only; a read is not automatically a data-plane operation.
Consider a fictional storage service: changing the bucket access policy is control plane; downloading catalog.html from that bucket is data plane. A control-plane incident might prevent configuration changes while existing workloads still serve traffic, but this depends on the service and failure. Azure Resource Manager is an example of a distinct management interface. Do not assume identical boundaries or endpoints across providers.
Scope, identity and a mock inventory
Before an authorized real call, identify the account or subscription or project, region or zone when relevant, resource ID, principal, permitted action and endpoint. Names are not always globally unique. A resource name is not a credential. Prefer temporary credentials and do not paste tokens or secrets into code, logs, commands or examples.
Here are invented, normalized records representing three fictional inventory transcripts, NOT actual provider output schemas or commands to execute:
[ { "interface": "aws", "scope": "demo-account", "kind": "vm", "name": "books-test", "location": "demo-zone-a" }, { "interface": "az", "scope": "demo-subscription", "kind": "resource-group", "name": "books-test", "location": "demo-region" }, { "interface": "gcloud", "scope": "demo-project", "kind": "vm", "name": "books-test", "location": "demo-zone-b" }]There are three records, not three VMs. The Azure record is a grouping container. The matching names do not prove that the resources are related. For real APIs, consult the specific schema and use the full identifier and scope.
HTTP responses and asynchronous changes
Many cloud APIs use HTTP with structured request and response data, often JSON. A REST-style interface commonly uses GET to retrieve a representation and POST to submit an operation, but each API defines its exact semantics. A successful response may represent acceptance, not finished work. For instance, Compute Engine returns an operation resource for mutating API calls, which can be checked for completion.
In this fictional API sequence a create request returns 202 Accepted with operation op-demo-1. The first status read returns PENDING, the next DONE with no error. A separate read confirms the resource exists. A health check then confirms it serves the expected response. The acceptance, completion and workload readiness are three different observations. If DONE includes an error, the operation failed in this teaching model. Never repeat a create request blindly after a timeout; check the documented idempotency and operation status first.
Pagination: inventory may have more pages
Pagination divides a large result into smaller responses. A continuation token identifies how to request the next part; treat it as opaque. An AWS CLI command may automatically collect pages; direct APIs and SDKs may expose tokens or iterators. Google Cloud Storage listings can return nextPageToken when more results remain.
Offline example: page one contains index.html, style.css and token p2. Page two contains logo.svg and no token. The complete fixture contains three objects. Reading just the first page undercounts inventory by one. Keep filters and scope consistent, and stop on the documented terminal condition; a changing live inventory need not behave like an immutable snapshot.
Diagnose before changing anything
A 401 response commonly means authentication is missing or invalid; 403 commonly indicates the request is forbidden. Exact semantics vary, and providers sometimes conceal existence. A 429 can indicate rate limiting; follow documented retry guidance with bounded attempts and backoff. An HTTP success code alone does not establish resource or application readiness. Capture a sanitized operation ID, scope and error message; never log credentials.
Practice: classify a VM configuration read, a public HTML download and a bucket policy update. Then explain why a list showing a continuation token cannot be treated as complete. Next you will use these distinctions in an offline website project.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Console, CLI, SDK and API — knowledge check
Choose the best answer for each offline scenario.
Which interface is a library used inside a program?
Which operation is control plane?
A create response is accepted and the operation is PENDING. What is known?
Page 1 has two objects and a continuation token. Page 2 has one object and no token. How many in this fixed fixture?
Two records share a resource name across different scopes. What should you do?