Skip to content

Commit

Permalink
chore: syntax highlighting
Browse files Browse the repository at this point in the history
removing in code links, which we don't do anymore
  • Loading branch information
brnhensley authored Jan 22, 2025
1 parent afac5e8 commit 6909678
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ This generates a list of users on our [original user model](/docs/accounts/origi

To obtain a list of all users on the [original user model](/docs/accounts/original-accounts-billing/original-product-based-pricing/overview-user-models) for your account, use this command:

```
```sh
curl -X GET 'https://api.newrelic.com/v2/users.json' \
-H "x-api-key:<a href='/docs/apis/rest-api-v2/getting-started/introduction-new-relic-rest-api-v2#api_key'>$API_KEY</a>" -i
-H "x-api-key:$API_KEY" -i
```

The output will appear similar to this:

```
```json
HTTP/1.1 200 OK
Content-Type: application/json

Expand Down Expand Up @@ -70,9 +70,9 @@ If you know all or part of the user's email, you can use this command to return

<DNT>**Note:**</DNT> Character matching is a simple string. No regular expression capability is available, so multiple matches may occur if the selected string is not unique.

```
```sh
curl -X GET 'https://api.newrelic.com/v2/users.json' \
-H "x-api-key:<a href='/docs/apis/rest-api-v2/getting-started/introduction-new-relic-rest-api-v2#api_key'>$API_KEY</a>" -i \
-H "x-api-key:$API_KEY" -i \
-d 'filter[email]=my.name'
```

Expand All @@ -82,17 +82,17 @@ The output for this command will be the same as the first entry in the [Listing

If you know the user `id`, you can use this command to return the role, name, and email. The `filter[ids]=` clause specifies the user `id`.

```
```sh
curl -X GET 'https://api.newrelic.com/v2/users.json' \
-H "x-api-key:<a href='/docs/apis/rest-api-v2/getting-started/introduction-new-relic-rest-api-v2#api_key'>$API_KEY</a>" -i \
-H "x-api-key:$API_KEY" -i \
-d 'filter[ids]=123456'
```

You can also use this command, which embeds the user `id` in the URL and omits the filter.

```
```sh
curl -X GET 'https://api.newrelic.com/v2/users/123456.json' \
-H "x-api-key:<a href='/docs/apis/rest-api-v2/getting-started/introduction-new-relic-rest-api-v2#api_key'>$API_KEY</a>" -i
-H "x-api-key:$API_KEY" -i
```

The output for this command will be the same as the first entry in the [Listing all account users](#list_all_users) example.

0 comments on commit 6909678

Please sign in to comment.