From 6909678874bb5829cf32e6737f99b9f91f43dedf Mon Sep 17 00:00:00 2001 From: Brian Hensley <48165493+brnhensley@users.noreply.github.com> Date: Wed, 22 Jan 2025 13:29:42 -0800 Subject: [PATCH] chore: syntax highlighting removing in code links, which we don't do anymore --- .../listing-users-your-account.mdx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/content/docs/apis/rest-api-v2/account-examples-v2/listing-users-your-account.mdx b/src/content/docs/apis/rest-api-v2/account-examples-v2/listing-users-your-account.mdx index 7ec103a52ee..bd79599aca4 100644 --- a/src/content/docs/apis/rest-api-v2/account-examples-v2/listing-users-your-account.mdx +++ b/src/content/docs/apis/rest-api-v2/account-examples-v2/listing-users-your-account.mdx @@ -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:$API_KEY" -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 @@ -70,9 +70,9 @@ If you know all or part of the user's email, you can use this command to return **Note:** 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:$API_KEY" -i \ + -H "x-api-key:$API_KEY" -i \ -d 'filter[email]=my.name' ``` @@ -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:$API_KEY" -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:$API_KEY" -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.