diff --git a/src/current/_includes/cockroachcloud/backups/cloud-api-backup-settings.md b/src/current/_includes/cockroachcloud/backups/cloud-api-backup-settings.md index 6d749af5f33..64c6c80bf27 100644 --- a/src/current/_includes/cockroachcloud/backups/cloud-api-backup-settings.md +++ b/src/current/_includes/cockroachcloud/backups/cloud-api-backup-settings.md @@ -1,17 +1,17 @@ ### Get information on backup settings -To retrieve information about a specific cluster, make a `GET` request to the `/v1/clusters/{cluster_id}/backups/config` endpoint. +To retrieve information about a specific cluster, make a `GET` request to the `/v1/clusters/{cluster_id}/backups-config` endpoint. {% include_cached copy-clipboard.html %} ~~~ shell curl --request GET \ ---url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/backups/config \ ---header 'Authorization: Bearer {secret_key}' +--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/backups-config \ +--header "Authorization: Bearer {secret_key}" ~~~ Set the following: -- `{cluster_id}` is the unique ID of the cluster. Use this ID when making API requests. You can find the cluster ID in the cluster's Cloud Console page. Find your cluster ID in the URL of the single cluster overview page: `https://cockroachlabs.cloud/cluster/{your_cluster_id}/overview`. The ID should resemble `f78b7feb-b6cf-4396-9d7f-494982d7d81e`. +- `{cluster_id}` is the unique ID of the cluster. This ID is written in a UUID format similar to `f78b7feb-b6cf-4396-9d7f-494982d7d81e` and is returned by a [GET request against the `/v1/clusters` endpoint]({% link cockroachcloud/cloud-api.md %}#list-all-clusters-in-an-organization). You can also find the cluster ID in the Cloud Console, in the URL of the single cluster overview page: `https://cockroachlabs.cloud/cluster/{your_cluster_id}/overview`. - `{secret_key}` is your API key. Refer to [API Access]({% link cockroachcloud/managing-access.md %}#api-access) for more details. If the request is successful, the API will return details about the managed backup settings: @@ -36,19 +36,19 @@ If the request is successful, the API will return details about the managed back {% include cockroachcloud/backups/review-settings.md %} -To configure the frequency and retention of managed backups, send a `PUT` request to the `/v1/clusters/{cluster_id}/backups/config` endpoint. +To configure the frequency and retention of managed backups, send a `PUT` request to the `/v1/clusters/{cluster_id}/backups-config` endpoint. {% include_cached copy-clipboard.html %} ~~~ shell curl --request PUT \ ---url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/backups/config \ ---header 'Authorization: Bearer {secret_key}' \ ---data '{"enabled": true, "frequency_minutes": 30, "retention_days": 2}' +--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/backups-config \ +--header "Authorization: Bearer {secret_key}" \ +--data "{"enabled": true, "frequency_minutes": 30, "retention_days": 2}" ~~~ Set the following: -- `{cluster_id}` is the unique ID of the cluster. Use this ID when making API requests. You can find the cluster ID in the cluster's Cloud Console page. Find your cluster ID in the URL of the single cluster overview page: `https://cockroachlabs.cloud/cluster/{your_cluster_id}/overview`. The ID should resemble `f78b7feb-b6cf-4396-9d7f-494982d7d81e`. +- `{cluster_id}` is the unique ID of the cluster. This ID is written in a UUID format similar to `f78b7feb-b6cf-4396-9d7f-494982d7d81e` and is returned by a [GET request against the `/v1/clusters` endpoint]({% link cockroachcloud/cloud-api.md %}#list-all-clusters-in-an-organization). You can also find the cluster ID in the Cloud Console, in the URL of the single cluster overview page: `https://cockroachlabs.cloud/cluster/{your_cluster_id}/overview`. - `{enabled}` controls whether managed backups are enabled or disabled. If you are disabling managed backups, you cannot set backup frequency or retention. Possible values are: `true`, `false`. - `{frequency_minutes}` determines [how often](#frequency) the managed backup will run in minutes. Possible values are: `5`, `10`, `15`, `30`, `60`, `240` (4 hours), `1440` (24 hours). - `{retention_days}` sets the number of days Cockroach Labs will [retain](#retention) the managed backup in storage. You can change `retention_days` for the cluster **once** (whether in the Cloud API or [Cloud Console](#cloud-console)). Possible values are: `2`, `7`, `30`, `90`, `365`. diff --git a/src/current/_includes/cockroachcloud/backups/cloud-api-backup-view.md b/src/current/_includes/cockroachcloud/backups/cloud-api-backup-view.md index 627a382ce49..bec051d8e5d 100644 --- a/src/current/_includes/cockroachcloud/backups/cloud-api-backup-view.md +++ b/src/current/_includes/cockroachcloud/backups/cloud-api-backup-view.md @@ -10,7 +10,7 @@ To view a list of managed backups on a cluster with timestamps and their respect ~~~ shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/backups \ ---header 'Authorization: Bearer {secret_key}' \ +--header "Authorization: Bearer {secret_key}" \ ~~~ If the request is successful, the client recieves a JSON response listing backups with their unique `{id}`. The `{as_of_time}` timestamp describes the system time of the cluster when the backup was created: diff --git a/src/current/_includes/cockroachcloud/backups/cloud-api-restore-endpoint.md b/src/current/_includes/cockroachcloud/backups/cloud-api-restore-endpoint.md index 114b727afa4..16a55c02ac9 100644 --- a/src/current/_includes/cockroachcloud/backups/cloud-api-restore-endpoint.md +++ b/src/current/_includes/cockroachcloud/backups/cloud-api-restore-endpoint.md @@ -23,12 +23,12 @@ To restore a cluster to a recent managed backup, send a `POST` request to the `/ {% include_cached copy-clipboard.html %} ~~~ shell curl --request POST \ ---url 'https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores' \ +--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores \ --header "Authorization: Bearer {secret_key}" \ ---json '{ - "source_cluster_id": "{cluster_id}" +--json "{ + "source_cluster_id": "{cluster_id}", "type": "CLUSTER" -}' +}" ~~~ By default, the restore job uses the most recent backup stored within the last 7 days on the cluster specified in `source_cluster_id`. To restore a specific backup, include the `backup_id` field and specify a backup ID from the [managed backups list](#view-managed-backups): @@ -36,12 +36,12 @@ By default, the restore job uses the most recent backup stored within the last 7 {% include_cached copy-clipboard.html %} ~~~ shell curl --request POST \ ---url 'https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores' \ +--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores \ --header "Authorization: Bearer {secret_key}" \ ---json '{ +--json "{ "backup_id": "example-2d25-4a64-8172-28af7a0d41cc", "type": "CLUSTER" -}' +}" ~~~ {% if page.name == "managed-backups-advanced.md" %} @@ -50,12 +50,12 @@ To restore a cluster backup into a different cluster, ensure that the destinatio {% include_cached copy-clipboard.html %} ~~~ shell curl --request POST \ ---url 'https://cockroachlabs.cloud/api/v1/clusters/{destination_cluster_id}/restores' \ +--url https://cockroachlabs.cloud/api/v1/clusters/{destination_cluster_id}/restores \ --header "Authorization: Bearer {secret_key}" \ ---json '{ +--json "{ "source_cluster_id": "{source_cluster_id}", "type": "CLUSTER" -}' +}" ~~~ You can specify additional options for the restore job in the `restore_opts` object. For more information, see the [API endpoint documentation](https://www.cockroachlabs.com/docs/api/cloud/v1#get-/api/v1/clusters/-cluster_id-/restores-config). @@ -83,10 +83,10 @@ To restore one or more databases from a cluster's managed backup, send a `POST` {% include_cached copy-clipboard.html %} ~~~ shell curl --request POST \ ---url 'https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores' \ +--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores \ --header "Authorization: Bearer {secret_key}" \ ---json '{ - "source_cluster_id": "{cluster_id}" +--json "{ + "source_cluster_id": "{cluster_id}", "type": "DATABASE", "objects": [ { @@ -96,7 +96,7 @@ curl --request POST \ "database": "movr" } ] -}' +}" ~~~ By default, the database is restored into the original database name from the managed backup. To restore the database contents into a new database, include the field `restore_opts.new_db_name` with the new database name. You can only restore one database at a time when using this option. @@ -104,10 +104,10 @@ By default, the database is restored into the original database name from the ma {% include_cached copy-clipboard.html %} ~~~ shell curl --request POST \ ---url 'https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores' \ +--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores \ --header "Authorization: Bearer {secret_key}" \ ---json '{ - "source_cluster_id": "{cluster_id}" +--json "{ + "source_cluster_id": "{cluster_id}", "type": "DATABASE", "objects": [ { @@ -117,7 +117,7 @@ curl --request POST \ "restore_opts": { "new_db_name": "tpcc2" } -}' +}" ~~~ To restore from a specific backup rather than the most recently created managed backup, include the `backup_id` field specifying a backup ID: @@ -125,17 +125,17 @@ To restore from a specific backup rather than the most recently created managed {% include_cached copy-clipboard.html %} ~~~ shell curl --request POST \ ---url 'https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores' \ +--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores \ --header "Authorization: Bearer {secret_key}" \ ---json '{ +--json "{ "backup_id": "example-2d25-4a64-8172-28af7a0d41cc", "type": "DATABASE", "objects": [ { "database": "tpcc" } - ], -}' + ] +}" ~~~ To restore a database from a source cluster's managed backup into a different cluster, send the restore request to the destination cluster ID. Specify the ID of the backup's cluster as `source_cluster_id`. Both the source cluster and the destination cluster must use the Advanced plan. @@ -143,17 +143,17 @@ To restore a database from a source cluster's managed backup into a different cl {% include_cached copy-clipboard.html %} ~~~ shell curl --request POST \ ---url 'https://cockroachlabs.cloud/api/v1/clusters/{destination_cluster_id}/restores' \ +--url https://cockroachlabs.cloud/api/v1/clusters/{destination_cluster_id}/restores \ --header "Authorization: Bearer {secret_key}" \ ---json '{ +--json "{ "source_cluster_id": "{source_cluster_id}", "type": "DATABASE", "objects": [ { "database": "tpcc" } - ], -}' + ] +}" ~~~ You can specify additional options for the restore jobs in the `restore_opts` object. For more information, see the [API endpoint documentation](https://www.cockroachlabs.com/docs/api/cloud/v1#get-/api/v1/clusters/-cluster_id-/restores-config). @@ -178,10 +178,10 @@ To restore a one or more tables from a cluster's managed backup, send a `POST` r {% include_cached copy-clipboard.html %} ~~~ shell curl --request POST \ ---url 'https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores' \ +--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores \ --header "Authorization: Bearer {secret_key}" \ ---json '{ - "source_cluster_id": "{cluster_id}" +--json "{ + "source_cluster_id": "{cluster_id}", "type": "TABLE", "objects": [ { @@ -195,7 +195,7 @@ curl --request POST \ "table": "customer" } ] -}' +}" ~~~ By default, the table is restored into the original database name from the managed backup. To restore the table into a different database, include the field `restore_opts.into_db` with the desired database name. The following example restores the `tpcc.public.warehouse` table from the most recent managed backup into `tpcc2.public.warehouse` on the cluster: @@ -203,10 +203,10 @@ By default, the table is restored into the original database name from the manag {% include_cached copy-clipboard.html %} ~~~ shell curl --request POST \ ---url 'https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores' \ +--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores \ --header "Authorization: Bearer {secret_key}" \ ---json '{ - "source_cluster_id": "{cluster_id}" +--json "{ + "source_cluster_id": "{cluster_id}", "type": "TABLE", "objects": [ { @@ -223,7 +223,7 @@ curl --request POST \ "restore_opts": { "into_db": "tpcc2" } -}' +}" ~~~ To restore from a specific backup rather than the most recently created managed backup, include the `backup_id` field specifying a backup ID: @@ -231,9 +231,9 @@ To restore from a specific backup rather than the most recently created managed {% include_cached copy-clipboard.html %} ~~~ shell curl --request POST \ ---url 'https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores' \ +--url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores \ --header "Authorization: Bearer {secret_key}" \ ---json '{ +--json "{ "backup_id": "example-2d25-4a64-8172-28af7a0d41cc", "type": "TABLE", "objects": [ @@ -243,7 +243,7 @@ curl --request POST \ "table": "warehouse" } ] -}' +}" ~~~ To restore a table from a source cluster's managed backup into a different cluster, send the restore request to the destination cluster ID. Specify the ID of the backup's cluster as `source_cluster_id`. Both the source cluster and the destination cluster must use the Advanced plan. @@ -251,9 +251,9 @@ To restore a table from a source cluster's managed backup into a different clust {% include_cached copy-clipboard.html %} ~~~ shell curl --request POST \ ---url 'https://cockroachlabs.cloud/api/v1/clusters/{destination_cluster_id}/restores' \ +--url https://cockroachlabs.cloud/api/v1/clusters/{destination_cluster_id}/restores \ --header "Authorization: Bearer {secret_key}" \ ---json '{ +--json "{ "source_cluster_id": "{source_cluster_id}", "type": "TABLE", "objects": [ @@ -263,7 +263,7 @@ curl --request POST \ "table": "warehouse" } ] -}' +}" ~~~ You can specify additional options for the restore jobs in the `restore_opts` object. For more information, see the [API endpoint documentation](https://www.cockroachlabs.com/docs/api/cloud/v1#get-/api/v1/clusters/-cluster_id-/restores-config). @@ -294,7 +294,7 @@ To view the status of a restore job using the cloud API, send a `GET` request to ~~~ shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/restores/{restore_id} \ ---header 'Authorization: Bearer {secret_key}' \ +--header "Authorization: Bearer {secret_key}" ~~~ If the request is successful, the client recieves a response containing JSON describing the status of the specified request operation: diff --git a/src/current/cockroachcloud/aws-privatelink.md b/src/current/cockroachcloud/aws-privatelink.md index 4a1d021e1f6..954fe71ca23 100644 --- a/src/current/cockroachcloud/aws-privatelink.md +++ b/src/current/cockroachcloud/aws-privatelink.md @@ -78,9 +78,9 @@ To [add a private endpoint trusted owner](https://www.cockroachlabs.com/docs/api ~~~ shell curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/networking/private-endpoint-trusted-owners \ - --header 'Authorization: Bearer {bearer_token' \ - --header 'content-type: application/json' \ - --data '{"external_owner_id":"{aws_account_id}","type":"AWS_ACCOUNT_ID"}' + --header "Authorization: Bearer {bearer_token}" \ + --header "content-type: application/json" \ + --data "{"external_owner_id":"{aws_account_id}","type":"AWS_ACCOUNT_ID"}" ~~~ Replace: @@ -101,7 +101,7 @@ To [list private endpoint trusted owners](https://www.cockroachlabs.com/docs/api ~~~ shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/networking/private-endpoint-trusted-owners \ - --header 'Authorization: Bearer {bearer_token}' + --header "Authorization: Bearer {bearer_token}" ~~~ Replace: @@ -117,7 +117,7 @@ To [get details about a private endpoint trusted owner](https://www.cockroachlab ~~~ shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/networking/private-endpoint-trusted-owners/{owner_id} \ - --header 'Authorization: Bearer {bearer_token}' + --header "Authorization: Bearer {bearer_token}" ~~~ Replace: @@ -134,7 +134,7 @@ To [remove a private endpoint trusted owner](https://www.cockroachlabs.com/docs/ ~~~ shell curl --request DELETE \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/networking/private-endpoint-trusted-owners/{owner_id} \ - --header 'Authorization: {bearer_token}' + --header "Authorization: {bearer_token}" ~~~ Replace: diff --git a/src/current/cockroachcloud/client-certs-advanced.md b/src/current/cockroachcloud/client-certs-advanced.md index 99686a863c5..8a3e3cfbff6 100644 --- a/src/current/cockroachcloud/client-certs-advanced.md +++ b/src/current/cockroachcloud/client-certs-advanced.md @@ -183,7 +183,7 @@ The [Cluster Admin]({% link cockroachcloud/authorization.md %}#cluster-admin) or curl --request POST \ --url ${COCKROACH_SERVER}/api/v1/clusters/${CLUSTER_ID}/client-ca-cert \ --header "Authorization: Bearer ${API_KEY}" \ - --header 'content-type: application/json' \ + --header "content-type: application/json" \ --data "@cockroach_client_ca_cert.json" ~~~ @@ -263,7 +263,7 @@ The [Cluster Admin]({% link cockroachcloud/authorization.md %}#cluster-admin) or curl --request PATCH \ --url ${COCKROACH_SERVER}/api/v1/clusters/${CLUSTER_ID}/client-ca-cert \ --header "Authorization: Bearer ${API_KEY}" \ - --header 'content-type: application/json' \ + --header "content-type: application/json" \ --data "@cockroach_client_ca_cert.json" ~~~ diff --git a/src/current/cockroachcloud/cloud-api.md b/src/current/cockroachcloud/cloud-api.md index 8e82bee91d0..59fa3160951 100644 --- a/src/current/cockroachcloud/cloud-api.md +++ b/src/current/cockroachcloud/cloud-api.md @@ -36,8 +36,8 @@ To send the secret key when making an API call, add the secret key to the `Autho {% include_cached copy-clipboard.html %} ~~~ shell curl --request GET \ - --url 'https://cockroachlabs.cloud/api/v1/clusters' \ - --header 'Authorization: Bearer {secret_key}' + --url https://cockroachlabs.cloud/api/v1/clusters \ + --header "Authorization: Bearer {secret_key}" ~~~ @@ -68,9 +68,9 @@ If you set an invalid version, you recieve an HTTP 400 response with the message {% include_cached copy-clipboard.html %} ~~~ shell curl --request GET \ - --url 'https://cockroachlabs.cloud/api/v1/clusters' \ - --header 'Authorization: Bearer {secret_key}' \ - --header 'Cc-Version: {version}' + --url https://cockroachlabs.cloud/api/v1/clusters \ + --header "Authorization: Bearer {secret_key}" \ + --header "Cc-Version: {version}" ~~~ @@ -107,8 +107,8 @@ The service account associated with the secret key must have the Cluster Admin o ~~~ shell curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters \ - --header 'Authorization: Bearer {secret_key}' \ - --json '{"name":"{cluster_name}","provider":"{cloud_provider}","plan":"BASIC","spec":{"serverless":{"regions":["{region_name}"]}}}' + --header "Authorization: Bearer {secret_key}" \ + --json "{"name":"{cluster_name}","provider":"{cloud_provider}","plan":"BASIC","spec":{"serverless":{"regions":["{region_name}"]}}}" ~~~ @@ -153,8 +153,8 @@ For example, to create a new Basic cluster named `basic-test` using GCP as the c ~~~ shell curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters \ - --header 'Authorization: Bearer {secret_key}' \ - --json '{"name":"basic-test","provider":"GCP","plan":"BASIC","spec":{"serverless":{"regions":["us-central1"]}}}' + --header "Authorization: Bearer {secret_key}" \ + --json "{"name":"basic-test","provider":"GCP","plan":"BASIC","spec":{"serverless":{"regions":["us-central1"]}}}" ~~~ @@ -202,8 +202,8 @@ The service account associated with the secret key must have the Cluster Admin o ~~~ shell curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters \ - --header 'Authorization: Bearer {secret_key}' \ - --json '{"name":"{cluster_name}","provider":"{cloud_provider}","plan":"STANDARD","spec":{"serverless":{"regions":["{region_name}"],"usage_limits":{"provisioned_virtual_cpus":"2"}}}}' + --header "Authorization: Bearer {secret_key}" \ + --json "{"name":"{cluster_name}","provider":"{cloud_provider}","plan":"STANDARD","spec":{"serverless":{"regions":["{region_name}"],"usage_limits":{"provisioned_virtual_cpus":"2"}}}}" ~~~ @@ -252,8 +252,8 @@ For example, to create a new Standard cluster named `notorious-moose` using the ~~~ shell curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters \ - --header 'Authorization: Bearer {secret_key}' \ - --json '{"name":"notorious-moose","provider":"GCP","plan":"STANDARD","spec":{"serverless":{"regions":["us-central1"],"usage_limits":{"provisioned_virtual_cpus":"2"}}}}' + --header "Authorization: Bearer {secret_key}" \ + --json "{"name":"notorious-moose","provider":"GCP","plan":"STANDARD","spec":{"serverless":{"regions":["us-central1"],"usage_limits":{"provisioned_virtual_cpus":"2"}}}}" ~~~ @@ -304,8 +304,8 @@ The service account associated with the secret key must have the Cluster Admin o ~~~ shell curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters \ - --header 'Authorization: Bearer {secret_key}' \ - --json '{"name":"{cluster_name}","provider":"{cloud_provider}","plan":"ADVANCED","spec":{"dedicated":{"region_nodes":{"{region_name}":3},"hardware":{"machine_spec":{"num_virtual_cpus":{num_vcpus}}},"cockroach_version":"{version}"}}}' + --header "Authorization: Bearer {secret_key}" \ + --json "{"name":"{cluster_name}","provider":"{cloud_provider}","plan":"ADVANCED","spec":{"dedicated":{"region_nodes":{"{region_name}":3},"hardware":{"machine_spec":{"num_virtual_cpus":{num_vcpus}}},"cockroach_version":"{version}"}}}" ~~~ @@ -359,8 +359,8 @@ For example, to create a new Advanced cluster named `advanced-test` using AWS as ~~~ shell curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters \ - --header 'Authorization: Bearer {secret_key}' \ - --json '{"name":"advanced-test","provider":"AWS","plan":"ADVANCED","spec":{"dedicated":{"region_nodes":{"us-east-1":3},"hardware":{"machine_spec":{"num_virtual_cpus":4}},"cockroach_version":"v23.1.2"}}}' + --header "Authorization: Bearer {secret_key}" \ + --json "{"name":"advanced-test","provider":"AWS","plan":"ADVANCED","spec":{"dedicated":{"region_nodes":{"us-east-1":3},"hardware":{"machine_spec":{"num_virtual_cpus":4}},"cockroach_version":"v23.1.2"}}}" ~~~ @@ -407,7 +407,7 @@ The service account associated with the secret key must have the Cluster Admin o ~~~ shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id} \ - --header 'Authorization: Bearer {secret_key}' + --header "Authorization: Bearer {secret_key}" ~~~ Where: @@ -434,7 +434,7 @@ The service account associated with the secret key must have the Cluster Admin o ~~~ shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/nodes \ - --header 'Authorization: Bearer {secret_key}' + --header "Authorization: Bearer {secret_key}" ~~~ Where: @@ -496,8 +496,8 @@ The service account associated with the secret key must have the Cluster Admin o ~~~ shell curl --request PATCH \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id} \ - --header 'Authorization: Bearer {secret_key}' \ - --json '{"serverless":{"usage_limits":{"storage_mib_limit":"5242880","request_unit_limit":"50000000"}}}' + --header "Authorization: Bearer {secret_key}" \ + --json "{"serverless":{"usage_limits":{"storage_mib_limit":"5242880","request_unit_limit":"50000000"}}}" ~~~ @@ -555,8 +555,8 @@ The service account associated with the secret key must have the Cluster Admin o ~~~ shell curl --request PATCH \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id} \ - --header 'Authorization: Bearer {secret_key}' \ - --json '{"serverless":{"usage_limits":{"provisioned_virtual_cpus":"{provisioned_virtual_cpus}"}}}' + --header "Authorization: Bearer {secret_key}" \ + --json "{"serverless":{"usage_limits":{"provisioned_virtual_cpus":"{provisioned_virtual_cpus}"}}}" ~~~ @@ -599,8 +599,8 @@ For example, to change the number of vCPUs per node to 8: ~~~ shell curl --request PATCH \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id} \ - --header 'Authorization: Bearer {secret_key}' \ - --json '{ + --header "Authorization: Bearer {secret_key}" \ + --json "{ "spec": { "dedicated": { "hardware": { @@ -610,7 +610,7 @@ curl --request PATCH \ } } } - }' + }" ~~~ To change the number of nodes in a region: @@ -619,8 +619,8 @@ To change the number of nodes in a region: ~~~ shell curl --request PATCH \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id} \ - --header 'Authorization: Bearer {secret_key}' \ - --json '{ + --header "Authorization: Bearer {secret_key}" \ + --json "{ "spec": { "dedicated": { "region_nodes": { @@ -628,7 +628,7 @@ curl --request PATCH \ } } } - }' + }" ~~~ Where `{cluster_id}` is the ID of your cluster and `{secret_key}` is your API key. @@ -676,7 +676,7 @@ Sending a `DELETE` request permanently deletes the cluster and all the data with ~~~ shell curl --request DELETE \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id} \ - --header 'Authorization: Bearer {secret_key}' + --header "Authorization: Bearer {secret_key}" ~~~ Where: @@ -706,9 +706,9 @@ The service account associated with the secret key must have the Cluster Admin [ {% include_cached copy-clipboard.html %} ~~~ shell curl --request GET \ - --url 'https://cockroachlabs.cloud/api/v1/auditlogevents?starting_from={timestamp}&sort_order={sort_order}&limit={limit}' \ - --header 'Authorization: Bearer {secret_key}' \ - --header 'Cc-Version: {api_version}' + --url https://cockroachlabs.cloud/api/v1/auditlogevents?starting_from={timestamp}&sort_order={sort_order}&limit={limit} \ + --header "Authorization: Bearer {secret_key}" \ + --header "Cc-Version: {api_version}" ~~~ Where: @@ -752,7 +752,7 @@ The service account associated with the secret key must have the Billing Coordin ~~~ shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/invoices \ - --header 'Authorization: Bearer {secret_key}' + --header "Authorization: Bearer {secret_key}" ~~~ If the request is successful, the client receives a list of invoices billed to the organization. Each invoice object includes the start and end of the corresponding billing period, with each past invoice showing a `status` of `FINALIZED`. An invoice object is also returned for the current billing period showing usage so far with a `status` of `DRAFT`. @@ -774,7 +774,7 @@ You can request a specific invoice by providing the invoice ID in a `GET` reques ~~~ shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/invoices/{invoice_id} \ - --header 'Authorization: Bearer {secret_key}' + --header "Authorization: Bearer {secret_key}" ~~~ ~~~ json { @@ -796,8 +796,8 @@ The service account associated with the secret key must have the Cluster Admin o {% include_cached copy-clipboard.html %} ~~~ shell curl --request GET \ - --url 'https://cockroachlabs.cloud/api/v1/clusters' \ - --header 'Authorization: Bearer {secret_key}' + --url https://cockroachlabs.cloud/api/v1/clusters \ + --header "Authorization: Bearer {secret_key}" ~~~ To return both active clusters and clusters that have been deleted or failed to initialize, send the `show_inactive=true` query parameter. @@ -805,8 +805,8 @@ To return both active clusters and clusters that have been deleted or failed to {% include_cached copy-clipboard.html %} ~~~ shell curl --request GET \ - --url 'https://cockroachlabs.cloud/api/v1/clusters?show_inactive=true' \ - --header 'Authorization: Bearer {secret_key}' + --url https://cockroachlabs.cloud/api/v1/clusters?show_inactive=true \ + --header "Authorization: Bearer {secret_key}" ~~~ Where: @@ -837,8 +837,8 @@ The service account associated with the secret key must have the Cluster Admin o {% include_cached copy-clipboard.html %} ~~~ shell curl --request GET \ - --url 'https://cockroachlabs.cloud/api/v1/clusters/available-regions?provider={cloud_provider}' \ - --header 'Authorization: Bearer {secret_key}' + --url https://cockroachlabs.cloud/api/v1/clusters/available-regions?provider={cloud_provider} \ + --header "Authorization: Bearer {secret_key}" ~~~ Where: @@ -871,8 +871,8 @@ The service account associated with the secret key must have the Cluster Admin o {% include_cached copy-clipboard.html %} ~~~ shell curl --request GET \ - --url 'https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/sql-users' \ - --header 'Authorization: Bearer {secret_key}' + --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/sql-users \ + --header "Authorization: Bearer {secret_key}" ~~~ Where: @@ -922,9 +922,9 @@ When possible, it is best practice to [limit each user's privileges]({% link coc {% include_cached copy-clipboard.html %} ~~~ shell curl --request POST \ - --url 'https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/sql-users' \ - --header 'Authorization: Bearer {secret_key}' \ - --json '{"name":"{sql_username}","password":"{password}"}' + --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/sql-users \ + --header "Authorization: Bearer {secret_key}" \ + --json "{"name":"{sql_username}","password":"{password}"}" ~~~ Where: @@ -962,8 +962,8 @@ The service account associated with the secret key must have the Cluster Admin o {% include_cached copy-clipboard.html %} ~~~ shell curl --request DELETE \ - --url 'https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/sql-users/{sql_username}' \ - --header 'Authorization: Bearer {secret_key}' + --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/sql-users/{sql_username} \ + --header "Authorization: Bearer {secret_key}" ~~~ Where: @@ -999,8 +999,8 @@ The service account associated with the secret key must have the Cluster Admin o ~~~ shell curl --request PUT \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/sql-users/{sql_username}/password \ - --header 'Authorization: Bearer {secret_key}' \ - --json '{"password":"{new_password}"}' + --header "Authorization: Bearer {secret_key}" \ + --json "{"password":"{new_password}"}" ~~~ Where: @@ -1034,8 +1034,8 @@ The service account associated with the secret key must have the Cluster Admin o ~~~ shell curl --request PUT \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/maintenance-window \ - --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \ - --json '{"offset_duration":"{offset_duration}","window_duration":"{window_duration}"}' + --header "Authorization: Bearer REPLACE_BEARER_TOKEN" \ + --json "{"offset_duration":"{offset_duration}","window_duration":"{window_duration}"}" ~~~ Where: @@ -1053,7 +1053,7 @@ To view a cluster's existing maintenance window, send a `GET` request to the `/a ~~~ shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/maintenance-window \ - --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' + --header "Authorization: Bearer REPLACE_BEARER_TOKEN" ~~~ ~~~ json @@ -1069,7 +1069,7 @@ To remove a cluster's maintenance window, send a `DELETE` request to the `/api/v ~~~ shell curl --request DELETE \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/maintenance-window \ - --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' + --header "Authorization: Bearer REPLACE_BEARER_TOKEN" ~~~ ~~~ json @@ -1093,8 +1093,8 @@ The service account associated with the secret key must have the Cluster Admin o ~~~ shell curl --request PUT \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/version-deferral \ - --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \ - --json '{"deferral_policy":"{deferral_policy}"}' + --header "Authorization: Bearer REPLACE_BEARER_TOKEN" \ + --json "{"deferral_policy":"{deferral_policy}"}" ~~~ Where: @@ -1111,7 +1111,7 @@ To view the existing patch deferral policy and current patch upgrade deferrals, ~~~ shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/version-deferral \ - --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' + --header "Authorization: Bearer REPLACE_BEARER_TOKEN" ~~~ ~~~ json diff --git a/src/current/cockroachcloud/cloud-org-audit-logs.md b/src/current/cockroachcloud/cloud-org-audit-logs.md index 004f7e7b5f1..be3088b032f 100644 --- a/src/current/cockroachcloud/cloud-org-audit-logs.md +++ b/src/current/cockroachcloud/cloud-org-audit-logs.md @@ -17,9 +17,9 @@ This example requests audit logs without defining the starting timestamp, sort o {% include_cached copy-clipboard.html %} ~~~ shell curl --request GET \ - --url 'https://cockroachlabs.cloud/api/v1/auditlogevents' \ - --header 'Authorization: Bearer {secret_key}' \ - --header 'Cc-Version: {api_version}' + --url https://cockroachlabs.cloud/api/v1/auditlogevents \ + --header "Authorization: Bearer {secret_key}" \ + --header "Cc-Version: {api_version}" ~~~ By default, the earliest 200 audit logs for your CockroachDB {{ site.data.products.cloud }} organization are returned in ascending order, starting from when the organization was created. If more records are available, the response will include the field `next_starting_from` with a timestamp. To export the next batch of entries, send a second request and set `starting_from` to the value of `next_starting_from`. @@ -27,9 +27,9 @@ By default, the earliest 200 audit logs for your CockroachDB {{ site.data.produc {% include_cached copy-clipboard.html %} ~~~ shell curl --request GET \ - --url 'https://cockroachlabs.cloud/api/v1/auditlogevents?starting_from=2022-10-09T02:40:35.054818Z' \ - --header 'Authorization: Bearer {secret_key}' \ - --header 'Cc-Version: {api_version}' + --url https://cockroachlabs.cloud/api/v1/auditlogevents?starting_from=2022-10-09T02:40:35.054818Z \ + --header "Authorization: Bearer {secret_key}" \ + --header "Cc-Version: {api_version}" ~~~ ## Export audit logs in descending order @@ -39,9 +39,9 @@ This example requests the 300 most recent audit logs, starting from the current {% include_cached copy-clipboard.html %} ~~~ shell curl --request GET \ - --url 'https://cockroachlabs.cloud/api/v1/auditlogevents?sort_order=DESC&limit=300' \ - --header 'Authorization: Bearer {secret_key}' \ - --header 'Cc-Version: {api_version}' + --url https://cockroachlabs.cloud/api/v1/auditlogevents?sort_order=DESC&limit=300 \ + --header "Authorization: Bearer {secret_key}" \ + --header "Cc-Version: {api_version}" ~~~ To request the next batch of entries in the same direction, send a second request with the same values for `sort_order` and `limit` and set `starting_from` to the value of `next_starting_from`. When there are no more results to fetch (because you have reached when your CockroachDB {{ site.data.products.cloud }} organization was created), no `next_starting_from` field is returned. @@ -55,9 +55,9 @@ First, retrieve roughly 200 entries for the specified timestamp and later. {% include_cached copy-clipboard.html %} ~~~ shell curl --request GET \ - --url 'https://cockroachlabs.cloud/api/v1/auditlogevents?starting_from=2022-10-09T02:40:00.262143Z&sort_order=ASC' \ - --header 'Authorization: Bearer {secret_key}' \ - --header 'Cc-Version: {api_version}' + --url https://cockroachlabs.cloud/api/v1/auditlogevents?starting_from=2022-10-09T02:40:00.262143Z&sort_order=ASC \ + --header "Authorization: Bearer {secret_key}" \ + --header "Cc-Version: {api_version}" ~~~ Next, retrieve roughly 200 less recent entries for the specified timestamp and earlier. @@ -65,9 +65,9 @@ Next, retrieve roughly 200 less recent entries for the specified timestamp and e {% include_cached copy-clipboard.html %} ~~~ shell curl --request GET \ - --url 'https://cockroachlabs.cloud/api/v1/auditlogevents?starting_from=2022-10-09T02:40:00.262143Z&sort_order=DESC' \ - --header 'Authorization: Bearer {secret_key}' \ - --header 'Cc-Version: {api_version}' + --url https://cockroachlabs.cloud/api/v1/auditlogevents?starting_from=2022-10-09T02:40:00.262143Z&sort_order=DESC \ + --header "Authorization: Bearer {secret_key}" \ + --header "Cc-Version: {api_version}" ~~~ All entries for the timestamp itself are included in both sets of results. Duplicated entries have the same `id`. diff --git a/src/current/cockroachcloud/egress-perimeter-controls.md b/src/current/cockroachcloud/egress-perimeter-controls.md index 8fa261c7d8e..46d3f5c37bb 100644 --- a/src/current/cockroachcloud/egress-perimeter-controls.md +++ b/src/current/cockroachcloud/egress-perimeter-controls.md @@ -62,7 +62,7 @@ The operations described in this page require an API key with very broad permiss ~~~shell curl --request GET \ --header "Authorization: Bearer $CC_API_KEY" \ - --url "https://cockroachlabs.cloud/api/v1/clusters/$CLUSTER_ID" + --url https://cockroachlabs.cloud/api/v1/clusters/$CLUSTER_ID ~~~ ~~~json @@ -113,9 +113,9 @@ Essential external traffic destined to resources managed by Cockroach Labs is al ~~~shell curl --request POST \ --header "Authorization: Bearer $CC_API_KEY" \ - --header 'Cc-Version: latest' \ - --url "https://cockroachlabs.cloud/api/v1/clusters/$CLUSTER_ID/networking/egress-rules/egress-traffic-policy" \ - --data '{"allow_all":false}' + --header "Cc-Version: latest" \ + --url https://cockroachlabs.cloud/api/v1/clusters/$CLUSTER_ID/networking/egress-rules/egress-traffic-policy \ + --data "{"allow_all":false}" ~~~ ~~~txt @@ -210,12 +210,12 @@ The following steps create one FQDN rule and one CIDR rule. ~~~shell curl --request POST \ --header "Authorization: Bearer $CC_API_KEY" \ - --url "https://cockroachlabs.cloud/api/v1/clusters/$CLUSTER_ID/networking/egress-rules" \ + --url https://cockroachlabs.cloud/api/v1/clusters/$CLUSTER_ID/networking/egress-rules \ --data "@egress-rule1.json" curl --request POST \ --header "Authorization: Bearer $CC_API_KEY" \ - --url "https://cockroachlabs.cloud/api/v1/clusters/$CLUSTER_ID/networking/egress-rules" \ + --url https://cockroachlabs.cloud/api/v1/clusters/$CLUSTER_ID/networking/egress-rules \ --data "@egress-rule2.json" ~~~ @@ -269,8 +269,8 @@ Refer to the list of [rule statuses](#rule-statuses). ~~~shell curl --request GET \ --header "Authorization: Bearer $CC_API_KEY" \ ---header 'Cc-Version: 2022-09-20' \ ---url "https://cockroachlabs.cloud/api/v1/clusters/$CLUSTER_ID/networking/egress-rules/$RULE_ID" +--header "Cc-Version: 2022-09-20" \ +--url https://cockroachlabs.cloud/api/v1/clusters/$CLUSTER_ID/networking/egress-rules/$RULE_ID ~~~ ~~~txt @@ -302,7 +302,7 @@ Consult the glossary of [rule statuses](#rule-statuses). curl --request GET \ --header "Authorization: Bearer $CC_API_KEY" \ --header 'Cc-Version: 2022-09-20' \ ---url "https://cockroachlabs.cloud/api/v1/clusters/$CLUSTER_ID/networking/egress-rules" +--url https://cockroachlabs.cloud/api/v1/clusters/$CLUSTER_ID/networking/egress-rules ~~~ @@ -356,7 +356,7 @@ Your cluster's firewall behavior is enforced asynchronously after the API respon curl --request DELETE \ --header "Authorization: Bearer $CC_API_KEY" \ --header 'Cc-Version: 2022-09-20' \ ---url "https://cockroachlabs.cloud/api/v1/clusters/$CLUSTER_ID/networking/egress-rules/$RULE_ID" +--url https://cockroachlabs.cloud/api/v1/clusters/$CLUSTER_ID/networking/egress-rules/$RULE_ID ~~~ ~~~txt diff --git a/src/current/cockroachcloud/egress-private-endpoints.md b/src/current/cockroachcloud/egress-private-endpoints.md index c9a2f679330..79d62fc5408 100644 --- a/src/current/cockroachcloud/egress-private-endpoints.md +++ b/src/current/cockroachcloud/egress-private-endpoints.md @@ -41,7 +41,7 @@ You can use the following API call to retrieve your CockroachDB {{ site.data.pro ~~~ shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id} \ - --header 'Authorization: Bearer {secret_key}' | jq .account_id + --header "Authorization: Bearer {secret_key}" | jq .account_id ~~~ ### AWS MSK @@ -82,7 +82,7 @@ The following prerequisites apply to the Google Cloud VPC service: ~~~ shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id} \ - --header 'Authorization: Bearer {secret_key}' | jq .account_id + --header "Authorization: Bearer {secret_key}" | jq .account_id ~~~ - Enable [consumer global access](https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#compatibility) on the service load balancer or forwarding rule. @@ -121,7 +121,7 @@ The following example `POST` requests assume that an API key has been created fo ~~~ shell curl https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/networking/egress-private-endpoints \ -X POST \ --H 'Authorization: Bearer {secret_key}' \ +-H "Authorization: Bearer {secret_key}" \ -H 'Content-Type: application/json' \ -d '{ "cluster_id": "{cluster_id}", @@ -137,7 +137,7 @@ curl https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/networking/egress- ~~~ shell curl https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/networking/egress-private-endpoints \ -X POST \ --H 'Authorization: Bearer {secret_key}' \ +-H "Authorization: Bearer {secret_key}" \ -H 'Content-Type: application/json' \ -d '{ "cluster_id": "{cluster_id}", @@ -153,7 +153,7 @@ curl https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/networking/egress- ~~~ shell curl https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/networking/egress-private-endpoints \ -X POST \ --H 'Authorization: Bearer {secret_key}' \ +-H "Authorization: Bearer {secret_key}" \ -H 'Content-Type: application/json' \ -d '{ "cluster_id": "{cluster_id}", @@ -198,7 +198,7 @@ For example: ~~~ shell curl https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/networking/egress-private-endpoints/{endpoint_id}/domain-names \ -X PATCH \ --H 'Authorization: Bearer {secret_key}' \ +-H "Authorization: Bearer {secret_key}" \ -H 'Content-Type: application/json' \ -d '{ "cluster_id": "{cluster_id}", diff --git a/src/current/cockroachcloud/export-logs-advanced.md b/src/current/cockroachcloud/export-logs-advanced.md index cf3767dcccd..cd40aeabff5 100644 --- a/src/current/cockroachcloud/export-logs-advanced.md +++ b/src/current/cockroachcloud/export-logs-advanced.md @@ -78,7 +78,7 @@ Perform the following steps to enable log export from your CockroachDB {{ site.d ~~~shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{your_cluster_id} \ - --header 'Authorization: Bearer {secret_key}' | jq .account_id + --header "Authorization: Bearer {secret_key}" | jq .account_id ~~~ Refer to [API Access]({% link cockroachcloud/managing-access.md %}) for instructions on generating the `{secret_key}`. @@ -151,7 +151,7 @@ Perform the following steps to enable log export from your CockroachDB {{ site.d curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/logexport \ --header "Authorization: Bearer {secret_key}" \ - --data '{"type": "AWS_CLOUDWATCH", "log_name": "{log_group_name}", "auth_principal": "{role_arn}"}' + --data "{"type": "AWS_CLOUDWATCH", "log_name": "{log_group_name}", "auth_principal": "{role_arn}"}" ~~~ Where: @@ -211,7 +211,7 @@ Perform the following steps to enable log export from your CockroachDB {{ site.d curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/logexport \ --header "Authorization: Bearer {secret_key}" \ - --data '{"type":"AWS_CLOUDWATCH","log_name":"default","auth_principal":"{role_arn}","redact":true,"region":"","omitted_channels":["SESSIONS","SQL_PERF"],"groups":[{"log_name":"sql","channels":["SQL_SCHEMA","SQL_EXEC"],"redact":false},{"log_name":"devops","channels":["OPS","HEALTH","STORAGE"],"min_level":"WARNING"}]}' + --data "{"type":"AWS_CLOUDWATCH","log_name":"default","auth_principal":"{role_arn}","redact":true,"region":"","omitted_channels":["SESSIONS","SQL_PERF"],"groups":[{"log_name":"sql","channels":["SQL_SCHEMA","SQL_EXEC"],"redact":false},{"log_name":"devops","channels":["OPS","HEALTH","STORAGE"],"min_level":"WARNING"}]}" ~~~ Where: @@ -252,7 +252,7 @@ Perform the following steps to enable log export from your CockroachDB {{ site.d ~~~shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{your_cluster_id} \ - --header 'Authorization: Bearer {secret_key}' | jq '("crl-logging-user-" + (.id | split("-"))[4] + "@" + .account_id + ".iam.gserviceaccount.com")' + --header "Authorization: Bearer {secret_key}" | jq '("crl-logging-user-" + (.id | split("-"))[4] + "@" + .account_id + ".iam.gserviceaccount.com")' ~~~ Where: @@ -293,7 +293,7 @@ Perform the following steps to enable log export from your CockroachDB {{ site.d curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/logexport \ --header "Authorization: Bearer {secret_key}" \ - --data '{"type": "GCP_CLOUD_LOGGING", "log_name": "{log_name}", "auth_principal": "{gcp_project_id}"}' + --data "{"type": "GCP_CLOUD_LOGGING", "log_name": "{log_name}", "auth_principal": "{gcp_project_id}"}" ~~~ Where: @@ -353,7 +353,7 @@ Perform the following steps to enable log export from your CockroachDB {{ site.d curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/logexport \ --header "Authorization: Bearer {secret_key}" \ - --data '{"type":"GCP_CLOUD_LOGGING","log_name":"default","auth_principal":"{gcp_project_id}","redact":true,"region":"","omitted_channels":["SESSIONS","SQL_PERF"],"groups":[{"log_name":"sql","channels":["SQL_SCHEMA","SQL_EXEC"],"redact":false},{"log_name":"devops","channels":["OPS","HEALTH","STORAGE"],"min_level":"WARNING"}]}' + --data "{"type":"GCP_CLOUD_LOGGING","log_name":"default","auth_principal":"{gcp_project_id}","redact":true,"region":"","omitted_channels":["SESSIONS","SQL_PERF"],"groups":[{"log_name":"sql","channels":["SQL_SCHEMA","SQL_EXEC"],"redact":false},{"log_name":"devops","channels":["OPS","HEALTH","STORAGE"],"min_level":"WARNING"}]}" ~~~ Where: @@ -410,7 +410,7 @@ To enable log export for your CockroachDB {{ site.data.products.advanced }} clus curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/logexport \ --header "Authorization: Bearer {secret_key}" \ ---data '{"type": "AZURE_LOG_ANALYTICS", "log_name": "{log_prefix}", "auth_principal": "{workspace_id}", "azure_shared_key": "{primary_or_secondary_key}"}' +--data "{"type": "AZURE_LOG_ANALYTICS", "log_name": "{log_prefix}", "auth_principal": "{workspace_id}", "azure_shared_key": "{primary_or_secondary_key}"}" ~~~ Where: @@ -475,7 +475,7 @@ To enable log export for your CockroachDB {{ site.data.products.advanced }} clus curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/logexport \ --header "Authorization: Bearer {secret_key}" \ - --data '{"type":"AZURE_LOG_ANALYTICS","log_name":"default","auth_principal":"{workspace_id}","azure_shared_key":"{primary_or_secondary_key}","redact":true,"region":"","omitted_channels":["SESSIONS","SQL_PERF"],"groups":[{"log_name":"sql","channels":["SQL_SCHEMA","SQL_EXEC"],"redact":false},{"log_name":"devops","channels":["OPS","HEALTH","STORAGE"],"min_level":"WARNING"}]}' + --data "{"type":"AZURE_LOG_ANALYTICS","log_name":"default","auth_principal":"{workspace_id}","azure_shared_key":"{primary_or_secondary_key}","redact":true,"region":"","omitted_channels":["SESSIONS","SQL_PERF"],"groups":[{"log_name":"sql","channels":["SQL_SCHEMA","SQL_EXEC"],"redact":false},{"log_name":"devops","channels":["OPS","HEALTH","STORAGE"],"min_level":"WARNING"}]}" ~~~ Where: diff --git a/src/current/cockroachcloud/export-logs.md b/src/current/cockroachcloud/export-logs.md index c1ca6569b7e..57e7ef40d53 100644 --- a/src/current/cockroachcloud/export-logs.md +++ b/src/current/cockroachcloud/export-logs.md @@ -75,7 +75,7 @@ Perform the following steps to enable log export from your CockroachDB {{ site.d ~~~shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{your_cluster_id} \ - --header 'Authorization: Bearer {secret_key}' | jq .keychain_config.aws_account_id + --header "Authorization: Bearer {secret_key}" | jq .keychain_config.aws_account_id ~~~ Where: @@ -151,7 +151,7 @@ Perform the following steps to enable log export from your CockroachDB {{ site.d curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/logexport \ --header "Authorization: Bearer {secret_key}" \ - --data '{"type": "AWS_CLOUDWATCH", "log_name": "{log_group_name}", "auth_principal": "{role_arn}"}' + --data "{"type": "AWS_CLOUDWATCH", "log_name": "{log_group_name}", "auth_principal": "{role_arn}"}" ~~~ Where: @@ -211,7 +211,7 @@ Perform the following steps to enable log export from your CockroachDB {{ site.d curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/logexport \ --header "Authorization: Bearer {secret_key}" \ - --data '{"type":"AWS_CLOUDWATCH","log_name":"default","auth_principal":"{role_arn}","redact":true,"region":"","omitted_channels":["SESSIONS","SQL_PERF"],"groups":[{"log_name":"sql","channels":["SQL_SCHEMA","SQL_EXEC"],"redact":false},{"log_name":"devops","channels":["OPS","HEALTH","STORAGE"],"min_level":"WARNING"}]}' + --data "{"type":"AWS_CLOUDWATCH","log_name":"default","auth_principal":"{role_arn}","redact":true,"region":"","omitted_channels":["SESSIONS","SQL_PERF"],"groups":[{"log_name":"sql","channels":["SQL_SCHEMA","SQL_EXEC"],"redact":false},{"log_name":"devops","channels":["OPS","HEALTH","STORAGE"],"min_level":"WARNING"}]}" ~~~ Where: @@ -252,7 +252,7 @@ Perform the following steps to enable log export from your CockroachDB {{ site.d ~~~shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{your_cluster_id} \ - --header 'Authorization: Bearer {secret_key}' | jq .keychain_config.gcp_auth_principal + --header "Authorization: Bearer {secret_key}" | jq .keychain_config.gcp_auth_principal ~~~ Where: @@ -302,7 +302,7 @@ Perform the following steps to enable log export from your CockroachDB {{ site.d curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/logexport \ --header "Authorization: Bearer {secret_key}" \ - --data '{"type": "GCP_CLOUD_LOGGING", "log_name": "{log_name}", "auth_principal": "{service_account_email}"}' + --data "{"type": "GCP_CLOUD_LOGGING", "log_name": "{log_name}", "auth_principal": "{service_account_email}"}" ~~~ Where: @@ -362,7 +362,7 @@ Perform the following steps to enable log export from your CockroachDB {{ site.d curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/logexport \ --header "Authorization: Bearer {secret_key}" \ - --data '{"type":"GCP_CLOUD_LOGGING","log_name":"default","auth_principal":"{service_account_email}","redact":true,"region":"","omitted_channels":["SESSIONS","SQL_PERF"],"groups":[{"log_name":"sql","channels":["SQL_SCHEMA","SQL_EXEC"],"redact":false},{"log_name":"devops","channels":["OPS","HEALTH","STORAGE"],"min_level":"WARNING"}]}' + --data "{"type":"GCP_CLOUD_LOGGING","log_name":"default","auth_principal":"{service_account_email}","redact":true,"region":"","omitted_channels":["SESSIONS","SQL_PERF"],"groups":[{"log_name":"sql","channels":["SQL_SCHEMA","SQL_EXEC"],"redact":false},{"log_name":"devops","channels":["OPS","HEALTH","STORAGE"],"min_level":"WARNING"}]}" ~~~ Where: diff --git a/src/current/cockroachcloud/export-metrics-advanced.md b/src/current/cockroachcloud/export-metrics-advanced.md index 374335446b6..9cbc7798b96 100644 --- a/src/current/cockroachcloud/export-metrics-advanced.md +++ b/src/current/cockroachcloud/export-metrics-advanced.md @@ -80,7 +80,7 @@ Perform the following steps to enable metrics export from your CockroachDB {{ si ~~~shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{your_cluster_id} \ - --header 'Authorization: Bearer {secret_key}' | jq .account_id + --header "Authorization: Bearer {secret_key}" | jq .account_id ~~~ Where: @@ -144,7 +144,7 @@ Perform the following steps to enable metrics export from your CockroachDB {{ si curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/metricexport/cloudwatch \ --header "Authorization: Bearer {secret_key}" \ - --data '{"target_region": "{aws_region}", "role_arn": "arn:aws:iam::{role_arn}:role/CockroachCloudMetricsExportRole", "log_group_name": "{log_group_name}", "external_id": "{external_id}"}' + --data "{"target_region": "{aws_region}", "role_arn": "arn:aws:iam::{role_arn}:role/CockroachCloudMetricsExportRole", "log_group_name": "{log_group_name}", "external_id": "{external_id}"}" ~~~ Where: @@ -197,7 +197,7 @@ OR curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/metricexport/datadog \ --header "Authorization: Bearer {secret_key}" \ - --data '{"site": "{datadog_site}", "api_key": "{datadog_api_key}"}' + --data "{"site": "{datadog_site}", "api_key": "{datadog_api_key}"}" ~~~ Where: @@ -382,7 +382,7 @@ To enable metrics export to Azure Monitor: curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/metricexport/azuremonitor \ --header "Authorization: Bearer {secret_key}" \ - --data '{ "application_id": "{application_id}", "tenant_id": "{tenant_id}", "ingestion_endpoint": "{ingestion_endpoint}", "instrumentation_key": "{instrumentation_key}", "certificate": "{combined_certificate_and_key}" }' + --data "{ "application_id": "{application_id}", "tenant_id": "{tenant_id}", "ingestion_endpoint": "{ingestion_endpoint}", "instrumentation_key": "{instrumentation_key}", "certificate": "{combined_certificate_and_key}" }" ~~~ Where: diff --git a/src/current/cockroachcloud/export-metrics.md b/src/current/cockroachcloud/export-metrics.md index c8c20cbecb6..69a329cf33d 100644 --- a/src/current/cockroachcloud/export-metrics.md +++ b/src/current/cockroachcloud/export-metrics.md @@ -78,7 +78,7 @@ Perform the following steps to enable metrics export from your CockroachDB {{ si ~~~shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{your_cluster_id} \ - --header 'Authorization: Bearer {secret_key}' | jq .keychain_config.aws_account_id + --header "Authorization: Bearer {secret_key}" | jq .keychain_config.aws_account_id ~~~ Where: @@ -142,7 +142,7 @@ Perform the following steps to enable metrics export from your CockroachDB {{ si curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/metricexport/cloudwatch \ --header "Authorization: Bearer {secret_key}" \ - --data '{"target_region": "{aws_region}", "role_arn": "arn:aws:iam::{role_arn}:role/CockroachCloudMetricsExportRole", "log_group_name": "{log_group_name}"}' + --data "{"target_region": "{aws_region}", "role_arn": "arn:aws:iam::{role_arn}:role/CockroachCloudMetricsExportRole", "log_group_name": "{log_group_name}"}" ~~~ Where: @@ -198,7 +198,7 @@ OR curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/metricexport/datadog \ --header "Authorization: Bearer {secret_key}" \ - --data '{"site": "{datadog_site}", "api_key": "{datadog_api_key}"}' + --data "{"site": "{datadog_site}", "api_key": "{datadog_api_key}"}" ~~~ Where: diff --git a/src/current/cockroachcloud/managing-cmek.md b/src/current/cockroachcloud/managing-cmek.md index 4acc924f50c..52aa2920903 100644 --- a/src/current/cockroachcloud/managing-cmek.md +++ b/src/current/cockroachcloud/managing-cmek.md @@ -42,7 +42,7 @@ This section shows how to enable CMEK on a CockroachDB {{ site.data.products.adv ~~~shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{YOUR_CLUSTER_ID} \ - --header 'Authorization: Bearer {YOUR_API_KEY}' | jq .account_id + --header "Authorization: Bearer {YOUR_API_KEY}" | jq .account_id ~~~ In the response, verify that the `id` field matches the cluster ID you specified, then make a note of the `account_id`, which is the ID for the cross-account IAM role. @@ -129,7 +129,7 @@ Follow these steps to create a cross-account IAM role and give it permission to ~~~shell curl --request GET \ --url https://cockroachlabs.cloud/api/v1/clusters/{YOUR_CLUSTER_ID} \ - --header 'Authorization: Bearer {YOUR_API_KEY}' + --header "Authorization: Bearer {YOUR_API_KEY}" ~~~ In the response, the ID is stored in the `account_id` field. @@ -526,7 +526,7 @@ API_KEY= #{ your API key } curl --request POST \ --url https://cockroachlabs.cloud/api/v1/clusters/${CLUSTER_ID}/cmek \ --header "Authorization: Bearer ${API_KEY}" \ - --header 'content-type: application/json' \ + --header "content-type: application/json" \ --data "@cmek_config.json" ~~~ @@ -562,7 +562,7 @@ To rotate a CMEK key: curl --request PUT \ --url https://cockroachlabs.cloud/api/v1/clusters/${CLUSTER_ID}/cmek \ --header "Authorization: Bearer ${API_KEY}" \ - --header 'content-type: application/json' \ + --header "content-type: application/json" \ --data "@cmek_config.json" ~~~ @@ -579,9 +579,9 @@ To add a region to a cluster that already has CMEK enabled: CLUSTER_ID= #{ your cluster ID } API_KEY= #{ your API key } curl --request PATCH \ - --url "https://cockroachlabs.cloud/api/v1/clusters/${CLUSTER_ID}" \ + --url https://cockroachlabs.cloud/api/v1/clusters/${CLUSTER_ID} \ --header "Authorization: Bearer ${API_KEY}" \ - --header 'content-type: application/json' \ + --header "content-type: application/json" \ --data "@cmek_config.json" ~~~ @@ -606,8 +606,8 @@ Within your KMS, **do not revoke** access to a CMEK that is in use by one or mor curl --request PATCH \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id}/cmek \ --header "Authorization: Bearer ${API_KEY}" \ - --header 'content-type: application/json' \ - --data '{"action":"REVOKE"}' + --header "content-type: application/json" \ + --data "{"action":"REVOKE"}" ~~~ 1. [Check your CMEK status](#check-cmek-status) to confirm the revocation has taken effect. diff --git a/src/current/cockroachcloud/physical-cluster-replication.md b/src/current/cockroachcloud/physical-cluster-replication.md index f0f85b48c47..32bf11289f9 100644 --- a/src/current/cockroachcloud/physical-cluster-replication.md +++ b/src/current/cockroachcloud/physical-cluster-replication.md @@ -65,8 +65,8 @@ To use PCR, it is necessary to set the `supports_cluster_virtualization` field t ~~~ shell curl --location --request POST 'https://cockroachlabs.cloud/api/v1/clusters' \ --header "Authorization: Bearer {api_secret_key}" \ - --header 'Content-Type: application/json' \ - --data '{ + --header "content-type: application/json" \ + --data "{ "name": "{primary_cluster_name}", "provider": "AWS", "spec": { @@ -84,7 +84,7 @@ To use PCR, it is necessary to set the `supports_cluster_virtualization` field t "supports_cluster_virtualization": true } } - }' + }" ~~~ Replace: @@ -100,8 +100,8 @@ Ensure that you replace each of the values for the cluster specification as per ~~~ shell curl --location --request POST 'https://cockroachlabs.cloud/api/v1/clusters' \ --header "Authorization: Bearer {api_secret_key}" \ - --header 'Content-Type: application/json' \ - --data '{ + --header "content-type: application/json" \ + --data "{ "name": "{standby_cluster_name}", "provider": "AWS", "spec": { @@ -118,7 +118,7 @@ Ensure that you replace each of the values for the cluster specification as per "supports_cluster_virtualization": true } } - }' + }" ~~~ Replace: @@ -144,12 +144,12 @@ With the primary and standby clusters set up, you can now start a PCR stream. {% include_cached copy-clipboard.html %} ~~~ shell -curl --request POST --url 'https://cockroachlabs.cloud/api/v1/physical-replication-streams' \ +curl --request POST --url https://cockroachlabs.cloud/api/v1/physical-replication-streams \ --header "Authorization: Bearer {api_secret_key}" \ ---json '{ +--json "{ "primary_cluster_id": "{primary_cluster_id}", "standby_cluster_id": "{standby_cluster_id}" -}' +}" ~~~ Replace: @@ -254,11 +254,11 @@ To fail over to the latest consistent time, you only need to include `"status": {% include_cached copy-clipboard.html %} ~~~ shell -curl --request PATCH --url "https://cockroachlabs.cloud/api/v1/physical-replication-streams/{job_id}" \ +curl --request PATCH --url https://cockroachlabs.cloud/api/v1/physical-replication-streams/{job_id} \ --header "Authorization: Bearer {api_secret_key}" \ ---json '{ +--json "{ "status": "FAILING_OVER" -}' +}" ~~~ ~~~json { @@ -278,9 +278,9 @@ To specify a timestamp, send a `PATCH` [request](https://www.cockroachlabs.com/d ~~~ shell curl --request PATCH "https://cockroachlabs.cloud/api/v1/physical-replication-streams/{job_id}" \ --header "Authorization: Bearer {api_secret_key}" \ ---json '{ +--json "{ "status": "STARTING", "failover_at": "2025-05-01T19:39:39.731939Z" -}' +}" ~~~ ~~~json { diff --git a/src/current/cockroachcloud/provision-a-cluster-with-terraform.md b/src/current/cockroachcloud/provision-a-cluster-with-terraform.md index ee90ae9f3bc..f585ce27236 100644 --- a/src/current/cockroachcloud/provision-a-cluster-with-terraform.md +++ b/src/current/cockroachcloud/provision-a-cluster-with-terraform.md @@ -276,8 +276,8 @@ To use the CockroachDB {{ site.data.products.cloud }} API to switch a cluster's {% include_cached copy-clipboard.html %} ~~~ shell curl --request PATCH \ --url https://cockroachlabs.cloud/api/v1/clusters/{cluster_id} \ ---header 'Authorization: Bearer ' \ ---json '{"plan":"STANDARD","serverless":{"usage_limits":{"provisioned_virtual_cpus": 2}}}' +--header "Authorization: Bearer " \ +--json "{"plan":"STANDARD","serverless":{"usage_limits":{"provisioned_virtual_cpus": 2}}}" ~~~ ## Delete a cluster diff --git a/src/current/v20.1/build-a-python-app-with-cockroachdb-django.md b/src/current/v20.1/build-a-python-app-with-cockroachdb-django.md index ce928b1c064..ba3e86bc42e 100644 --- a/src/current/v20.1/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v20.1/build-a-python-app-with-cockroachdb-django.md @@ -374,7 +374,7 @@ For example, in a new terminal, you can use `curl` to send a POST request to the ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ ---data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ +--data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ You can then send a GET request to read from that table: diff --git a/src/current/v20.2/build-a-python-app-with-cockroachdb-django.md b/src/current/v20.2/build-a-python-app-with-cockroachdb-django.md index 64e22ba054f..fbae8063c5d 100644 --- a/src/current/v20.2/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v20.2/build-a-python-app-with-cockroachdb-django.md @@ -286,7 +286,7 @@ Lastly, define some [URL routes](https://docs.djangoproject.com/en/3.1/topics/ht ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v20.2/deploy-app-gcr.md b/src/current/v20.2/deploy-app-gcr.md index e6579ca101d..2831471e625 100644 --- a/src/current/v20.2/deploy-app-gcr.md +++ b/src/current/v20.2/deploy-app-gcr.md @@ -152,7 +152,7 @@ Before starting the tutorial, do the following: ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v21.1/build-a-python-app-with-cockroachdb-django.md b/src/current/v21.1/build-a-python-app-with-cockroachdb-django.md index 64e22ba054f..fbae8063c5d 100644 --- a/src/current/v21.1/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v21.1/build-a-python-app-with-cockroachdb-django.md @@ -286,7 +286,7 @@ Lastly, define some [URL routes](https://docs.djangoproject.com/en/3.1/topics/ht ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v21.1/deploy-app-gcr.md b/src/current/v21.1/deploy-app-gcr.md index 03f773deb19..f9069007cf0 100644 --- a/src/current/v21.1/deploy-app-gcr.md +++ b/src/current/v21.1/deploy-app-gcr.md @@ -152,7 +152,7 @@ Before starting the tutorial, do the following: ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v21.2/build-a-python-app-with-cockroachdb-django.md b/src/current/v21.2/build-a-python-app-with-cockroachdb-django.md index 0b8befd1c4c..b1520c5b83c 100644 --- a/src/current/v21.2/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v21.2/build-a-python-app-with-cockroachdb-django.md @@ -204,7 +204,7 @@ This initializes the tables defined in `models.py`, in addition to some other ta ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v21.2/deploy-app-gcr.md b/src/current/v21.2/deploy-app-gcr.md index b8cbc6c0ee0..7c4cb18dd0e 100644 --- a/src/current/v21.2/deploy-app-gcr.md +++ b/src/current/v21.2/deploy-app-gcr.md @@ -153,7 +153,7 @@ Before starting the tutorial, do the following: ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v22.1/build-a-python-app-with-cockroachdb-django.md b/src/current/v22.1/build-a-python-app-with-cockroachdb-django.md index 24d40e95d8c..0e1fce5b2cc 100644 --- a/src/current/v22.1/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v22.1/build-a-python-app-with-cockroachdb-django.md @@ -203,7 +203,7 @@ This initializes the tables defined in `models.py`, in addition to some other ta ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v22.1/deploy-app-gcr.md b/src/current/v22.1/deploy-app-gcr.md index d2594f70a61..4adad289e36 100644 --- a/src/current/v22.1/deploy-app-gcr.md +++ b/src/current/v22.1/deploy-app-gcr.md @@ -153,7 +153,7 @@ Before starting the tutorial, do the following: ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v22.2/build-a-python-app-with-cockroachdb-django.md b/src/current/v22.2/build-a-python-app-with-cockroachdb-django.md index 24d40e95d8c..0e1fce5b2cc 100644 --- a/src/current/v22.2/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v22.2/build-a-python-app-with-cockroachdb-django.md @@ -203,7 +203,7 @@ This initializes the tables defined in `models.py`, in addition to some other ta ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v22.2/cloud-storage-authentication.md b/src/current/v22.2/cloud-storage-authentication.md index 5412b2f09dd..1b0479a8561 100644 --- a/src/current/v22.2/cloud-storage-authentication.md +++ b/src/current/v22.2/cloud-storage-authentication.md @@ -266,7 +266,7 @@ You can find the AWS account ID and your cluster's ID using the [Cloud API](../c {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Combine the last 12 digits of your cluster's `id` and the full 12-digit `account_id` in the following fashion to form the ARN: @@ -551,7 +551,7 @@ You can find the GCP project ID and your cluster's ID using the [Cloud API](../c {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Use the last 12 digits of your cluster's `id` and the `account_id` to form the service account. (Note that the `account_id` in your cluster's details becomes the GCP `{project id}`.) diff --git a/src/current/v22.2/deploy-app-gcr.md b/src/current/v22.2/deploy-app-gcr.md index 8fe0fcfc354..ec0227c57b7 100644 --- a/src/current/v22.2/deploy-app-gcr.md +++ b/src/current/v22.2/deploy-app-gcr.md @@ -153,7 +153,7 @@ Before starting the tutorial, do the following: ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v23.1/build-a-python-app-with-cockroachdb-django.md b/src/current/v23.1/build-a-python-app-with-cockroachdb-django.md index 88320dbb3fa..7d698de0e45 100644 --- a/src/current/v23.1/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v23.1/build-a-python-app-with-cockroachdb-django.md @@ -203,7 +203,7 @@ This initializes the tables defined in `models.py`, in addition to some other ta ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v23.1/cloud-storage-authentication.md b/src/current/v23.1/cloud-storage-authentication.md index eb978a363f5..9c660fbde52 100644 --- a/src/current/v23.1/cloud-storage-authentication.md +++ b/src/current/v23.1/cloud-storage-authentication.md @@ -258,7 +258,7 @@ You can find the AWS account ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Combine the last 12 digits of your cluster's `id` and the full 12-digit `account_id` in the following fashion to form the ARN: @@ -551,7 +551,7 @@ You can find the GCP project ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Use the last 12 digits of your cluster's `id` and the `account_id` to form the service account. (Note that the `account_id` in your cluster's details becomes the GCP `{project id}`.) diff --git a/src/current/v23.1/deploy-app-gcr.md b/src/current/v23.1/deploy-app-gcr.md index eeca4c16f8b..ba6378bdb01 100644 --- a/src/current/v23.1/deploy-app-gcr.md +++ b/src/current/v23.1/deploy-app-gcr.md @@ -153,7 +153,7 @@ Before starting the tutorial, do the following: ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v23.2/build-a-python-app-with-cockroachdb-django.md b/src/current/v23.2/build-a-python-app-with-cockroachdb-django.md index 88320dbb3fa..7d698de0e45 100644 --- a/src/current/v23.2/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v23.2/build-a-python-app-with-cockroachdb-django.md @@ -203,7 +203,7 @@ This initializes the tables defined in `models.py`, in addition to some other ta ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v23.2/cloud-storage-authentication.md b/src/current/v23.2/cloud-storage-authentication.md index 7eb8732c79c..1ff78325e69 100644 --- a/src/current/v23.2/cloud-storage-authentication.md +++ b/src/current/v23.2/cloud-storage-authentication.md @@ -276,7 +276,7 @@ You can find the AWS account ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Combine the last 12 digits of your cluster's `id` and the full 12-digit `account_id` in the following fashion to form the ARN: @@ -556,7 +556,7 @@ You can find the GCP project ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Use the last 12 digits of your cluster's `id` and the `account_id` to form the service account. (Note that the `account_id` in your cluster's details becomes the GCP `{project id}`.) diff --git a/src/current/v23.2/deploy-app-gcr.md b/src/current/v23.2/deploy-app-gcr.md index eeca4c16f8b..ba6378bdb01 100644 --- a/src/current/v23.2/deploy-app-gcr.md +++ b/src/current/v23.2/deploy-app-gcr.md @@ -153,7 +153,7 @@ Before starting the tutorial, do the following: ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v24.1/build-a-python-app-with-cockroachdb-django.md b/src/current/v24.1/build-a-python-app-with-cockroachdb-django.md index 88320dbb3fa..7d698de0e45 100644 --- a/src/current/v24.1/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v24.1/build-a-python-app-with-cockroachdb-django.md @@ -203,7 +203,7 @@ This initializes the tables defined in `models.py`, in addition to some other ta ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v24.1/cloud-storage-authentication.md b/src/current/v24.1/cloud-storage-authentication.md index d6b1742113e..207aadb7673 100644 --- a/src/current/v24.1/cloud-storage-authentication.md +++ b/src/current/v24.1/cloud-storage-authentication.md @@ -276,7 +276,7 @@ You can find the AWS account ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Combine the last 12 digits of your cluster's `id` and the full 12-digit `account_id` in the following fashion to form the ARN: @@ -556,7 +556,7 @@ You can find the GCP project ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Use the last 12 digits of your cluster's `id` and the `account_id` to form the service account. (Note that the `account_id` in your cluster's details becomes the GCP `{project id}`.) diff --git a/src/current/v24.1/deploy-app-gcr.md b/src/current/v24.1/deploy-app-gcr.md index eeca4c16f8b..ba6378bdb01 100644 --- a/src/current/v24.1/deploy-app-gcr.md +++ b/src/current/v24.1/deploy-app-gcr.md @@ -153,7 +153,7 @@ Before starting the tutorial, do the following: ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v24.2/build-a-python-app-with-cockroachdb-django.md b/src/current/v24.2/build-a-python-app-with-cockroachdb-django.md index 85644de65ed..4f96089d6df 100644 --- a/src/current/v24.2/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v24.2/build-a-python-app-with-cockroachdb-django.md @@ -203,7 +203,7 @@ This initializes the tables defined in `models.py`, in addition to some other ta ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v24.2/cloud-storage-authentication.md b/src/current/v24.2/cloud-storage-authentication.md index abaa126fbf0..51d96925d57 100644 --- a/src/current/v24.2/cloud-storage-authentication.md +++ b/src/current/v24.2/cloud-storage-authentication.md @@ -276,7 +276,7 @@ You can find the AWS account ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Combine the last 12 digits of your cluster's `id` and the full 12-digit `account_id` in the following fashion to form the ARN: @@ -556,7 +556,7 @@ You can find the GCP project ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Use the last 12 digits of your cluster's `id` and the `account_id` to form the service account. (Note that the `account_id` in your cluster's details becomes the GCP `{project id}`.) diff --git a/src/current/v24.2/deploy-app-gcr.md b/src/current/v24.2/deploy-app-gcr.md index d7610d5aa3c..e8d0e6c0791 100644 --- a/src/current/v24.2/deploy-app-gcr.md +++ b/src/current/v24.2/deploy-app-gcr.md @@ -152,7 +152,7 @@ Before starting the tutorial, do the following: ~~~ shell curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v24.3/build-a-python-app-with-cockroachdb-django.md b/src/current/v24.3/build-a-python-app-with-cockroachdb-django.md index 85644de65ed..4f96089d6df 100644 --- a/src/current/v24.3/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v24.3/build-a-python-app-with-cockroachdb-django.md @@ -203,7 +203,7 @@ This initializes the tables defined in `models.py`, in addition to some other ta ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v24.3/cloud-storage-authentication.md b/src/current/v24.3/cloud-storage-authentication.md index abaa126fbf0..51d96925d57 100644 --- a/src/current/v24.3/cloud-storage-authentication.md +++ b/src/current/v24.3/cloud-storage-authentication.md @@ -276,7 +276,7 @@ You can find the AWS account ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Combine the last 12 digits of your cluster's `id` and the full 12-digit `account_id` in the following fashion to form the ARN: @@ -556,7 +556,7 @@ You can find the GCP project ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Use the last 12 digits of your cluster's `id` and the `account_id` to form the service account. (Note that the `account_id` in your cluster's details becomes the GCP `{project id}`.) diff --git a/src/current/v24.3/deploy-app-gcr.md b/src/current/v24.3/deploy-app-gcr.md index d7610d5aa3c..e8d0e6c0791 100644 --- a/src/current/v24.3/deploy-app-gcr.md +++ b/src/current/v24.3/deploy-app-gcr.md @@ -152,7 +152,7 @@ Before starting the tutorial, do the following: ~~~ shell curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v25.1/build-a-python-app-with-cockroachdb-django.md b/src/current/v25.1/build-a-python-app-with-cockroachdb-django.md index 85644de65ed..4f96089d6df 100644 --- a/src/current/v25.1/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v25.1/build-a-python-app-with-cockroachdb-django.md @@ -203,7 +203,7 @@ This initializes the tables defined in `models.py`, in addition to some other ta ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v25.1/cloud-storage-authentication.md b/src/current/v25.1/cloud-storage-authentication.md index 8d225a6e2fb..c05cf5b18d6 100644 --- a/src/current/v25.1/cloud-storage-authentication.md +++ b/src/current/v25.1/cloud-storage-authentication.md @@ -280,7 +280,7 @@ You can find the AWS account ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Combine the last 12 digits of your cluster's `id` and the full 12-digit `account_id` in the following fashion to form the ARN: @@ -560,7 +560,7 @@ You can find the GCP project ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Use the last 12 digits of your cluster's `id` and the `account_id` to form the service account. (Note that the `account_id` in your cluster's details becomes the GCP `{project id}`.) diff --git a/src/current/v25.1/deploy-app-gcr.md b/src/current/v25.1/deploy-app-gcr.md index d7610d5aa3c..e8d0e6c0791 100644 --- a/src/current/v25.1/deploy-app-gcr.md +++ b/src/current/v25.1/deploy-app-gcr.md @@ -152,7 +152,7 @@ Before starting the tutorial, do the following: ~~~ shell curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v25.2/build-a-python-app-with-cockroachdb-django.md b/src/current/v25.2/build-a-python-app-with-cockroachdb-django.md index 85644de65ed..4f96089d6df 100644 --- a/src/current/v25.2/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v25.2/build-a-python-app-with-cockroachdb-django.md @@ -203,7 +203,7 @@ This initializes the tables defined in `models.py`, in addition to some other ta ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v25.2/cloud-storage-authentication.md b/src/current/v25.2/cloud-storage-authentication.md index 6a81d6ec648..0772097978d 100644 --- a/src/current/v25.2/cloud-storage-authentication.md +++ b/src/current/v25.2/cloud-storage-authentication.md @@ -280,7 +280,7 @@ You can find the AWS account ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Combine the last 12 digits of your cluster's `id` and the full 12-digit `account_id` in the following fashion to form the ARN: @@ -560,7 +560,7 @@ You can find the GCP project ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Use the last 12 digits of your cluster's `id` and the `account_id` to form the service account. (Note that the `account_id` in your cluster's details becomes the GCP `{project id}`.) diff --git a/src/current/v25.2/deploy-app-gcr.md b/src/current/v25.2/deploy-app-gcr.md index d7610d5aa3c..e8d0e6c0791 100644 --- a/src/current/v25.2/deploy-app-gcr.md +++ b/src/current/v25.2/deploy-app-gcr.md @@ -152,7 +152,7 @@ Before starting the tutorial, do the following: ~~~ shell curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v25.3/build-a-python-app-with-cockroachdb-django.md b/src/current/v25.3/build-a-python-app-with-cockroachdb-django.md index 85644de65ed..4f96089d6df 100644 --- a/src/current/v25.3/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v25.3/build-a-python-app-with-cockroachdb-django.md @@ -203,7 +203,7 @@ This initializes the tables defined in `models.py`, in addition to some other ta ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v25.3/cloud-storage-authentication.md b/src/current/v25.3/cloud-storage-authentication.md index 6a81d6ec648..0772097978d 100644 --- a/src/current/v25.3/cloud-storage-authentication.md +++ b/src/current/v25.3/cloud-storage-authentication.md @@ -280,7 +280,7 @@ You can find the AWS account ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Combine the last 12 digits of your cluster's `id` and the full 12-digit `account_id` in the following fashion to form the ARN: @@ -560,7 +560,7 @@ You can find the GCP project ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Use the last 12 digits of your cluster's `id` and the `account_id` to form the service account. (Note that the `account_id` in your cluster's details becomes the GCP `{project id}`.) diff --git a/src/current/v25.3/deploy-app-gcr.md b/src/current/v25.3/deploy-app-gcr.md index d7610d5aa3c..e8d0e6c0791 100644 --- a/src/current/v25.3/deploy-app-gcr.md +++ b/src/current/v25.3/deploy-app-gcr.md @@ -152,7 +152,7 @@ Before starting the tutorial, do the following: ~~~ shell curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v25.4/build-a-python-app-with-cockroachdb-django.md b/src/current/v25.4/build-a-python-app-with-cockroachdb-django.md index 85644de65ed..4f96089d6df 100644 --- a/src/current/v25.4/build-a-python-app-with-cockroachdb-django.md +++ b/src/current/v25.4/build-a-python-app-with-cockroachdb-django.md @@ -203,7 +203,7 @@ This initializes the tables defined in `models.py`, in addition to some other ta ~~~ shell $ curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table. diff --git a/src/current/v25.4/cloud-storage-authentication.md b/src/current/v25.4/cloud-storage-authentication.md index 6a81d6ec648..0772097978d 100644 --- a/src/current/v25.4/cloud-storage-authentication.md +++ b/src/current/v25.4/cloud-storage-authentication.md @@ -280,7 +280,7 @@ You can find the AWS account ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Combine the last 12 digits of your cluster's `id` and the full 12-digit `account_id` in the following fashion to form the ARN: @@ -560,7 +560,7 @@ You can find the GCP project ID and your cluster's ID using the [Cloud API]({% l {% include_cached copy-clipboard.html %} ~~~shell -curl --request GET --url 'https://cockroachlabs.cloud/api/v1/clusters' --header 'Authorization: Bearer {secret key}' +curl --request GET --url https://cockroachlabs.cloud/api/v1/clusters --header "Authorization: Bearer {secret key}" ~~~ Use the last 12 digits of your cluster's `id` and the `account_id` to form the service account. (Note that the `account_id` in your cluster's details becomes the GCP `{project id}`.) diff --git a/src/current/v25.4/deploy-app-gcr.md b/src/current/v25.4/deploy-app-gcr.md index d7610d5aa3c..e8d0e6c0791 100644 --- a/src/current/v25.4/deploy-app-gcr.md +++ b/src/current/v25.4/deploy-app-gcr.md @@ -152,7 +152,7 @@ Before starting the tutorial, do the following: ~~~ shell curl --header "Content-Type: application/json" \ --request POST \ - --data '{"name":"Carl"}' http://0.0.0.0:8000/customer/ + --data "{"name":"Carl"}" http://0.0.0.0:8000/customer/ ~~~ This request inserts a new row into the `cockroach_example_customers` table.