0

Get a Beta program

by
Published Oct 17, 2025

Display information about a Beta Program. This operation can be used to access inactive as well as active Beta Programs. Only unrestricted Users can access this operation. > --- - __CLI__. ``` linode-cli betas view $betaId ``` [Learn more...](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)

Script linode Verified

The script

Submitted by hugo697 Bun
Verified 235 days ago
1
//native
2
type Linode = {
3
  token: string;
4
};
5
/**
6
 * Get a Beta program
7
 * Display information about a Beta Program. This operation can be used to access inactive as well as active Beta Programs.
8

9
Only unrestricted Users can access this operation.
10

11

12
>
13

14
---
15

16

17
- __CLI__.
18

19
    ```
20
    linode-cli betas view $betaId
21
    ```
22

23
    [Learn more...](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)
24
 */
25
export async function main(
26
  auth: Linode,
27
  apiVersion: "v4" | "v4beta",
28
  betaId: string,
29
) {
30
  const url = new URL(`https://api.linode.com/${apiVersion}/betas/${betaId}`);
31

32
  const response = await fetch(url, {
33
    method: "GET",
34
    headers: {
35
      Authorization: "Bearer " + auth.token,
36
    },
37
    body: undefined,
38
  });
39
  if (!response.ok) {
40
    const text = await response.text();
41
    throw new Error(`${response.status} ${text}`);
42
  }
43
  return await response.json();
44
}
45