Skip to content

Commit 7d09dd0

Browse files
committed
stash commit
1 parent 993548d commit 7d09dd0

File tree

2 files changed

+21
-23
lines changed

2 files changed

+21
-23
lines changed

content/operate/rc/api/_index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ You can use the API to:
3636
- [Create database]({{< relref "/operate/rc/api/examples/create-database" >}})
3737
- [Update database]({{< relref "/operate/rc/api/examples/update-database.md" >}})
3838
- [Back up and import data]({{< relref "/operate/rc/api/examples/back-up-and-import-data.md" >}})
39-
1. [Manage cloud accounts]({{< relref "/operate/rc/api/examples/manage-cloud-accounts.md" >}})
4039
1. [Estimate costs]({{< relref "/operate/rc/api/examples/dryrun-cost-estimates.md" >}})
41-
1. [View account info]({{< relref "/operate/rc/api/examples/view-account-information.md" >}})
4240

4341
## More info
4442

content/operate/rc/api/examples/manage-subscriptions.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The Redis Cloud REST API lets you create and manage all kinds of subscriptions.
1515

1616
### Create an Essentials subscription
1717

18-
Use `POST /v1/fixed/subscriptions` to create an Essentials subscription.
18+
Use [`POST /v1/fixed/subscriptions`]({{< relref "/operate/rc/api/api-reference#tag/Subscriptions-Essentials/operation/createSubscription_1" >}}) to create an Essentials subscription.
1919

2020
```sh
2121
POST "https://[host]/v1/fixed/subscriptions"
@@ -30,27 +30,27 @@ Modify the following parameters in the sample JSON document to create a subscrip
3030

3131
- **`paymentMethodId`** - Specify a payment method connected to your account.
3232

33-
Use `GET /v1/payment-methods` to find a payment method ID.
33+
Use [`GET /v1/payment-methods`]({{< relref "/operate/rc/api/api-reference#tag/Account/operation/getAccountPaymentMethods" >}}) to find a payment method ID.
3434

3535
You don't need to pass this field in your API request if you subscribed to Redis Cloud through a marketplace integration.
3636

3737
- **`planId`** - Specify an essentials plan to create.
3838

39-
Use `GET /v1/fixed/plans` to get a list of plan IDs.
39+
Use [`GET /v1/fixed/plans`]({{< relref "/operate/rc/api/api-reference#tag/Subscriptions-Essentials/operation/getAllFixedSubscriptionsPlans" >}}) to get a list of plan IDs.
4040

41-
After you create an Essentials subscription, you must use the `POST /v1/fixed/subscriptions/{subscriptionId}/databases` endpoint to create the database.
41+
After you create an Essentials subscription, you must use the [`POST /v1/fixed/subscriptions/{subscriptionId}/databases`]({{< relref "/operate/rc/api/api-reference#tag/Databases-Essentials/operation/createFixedDatabase" >}}) endpoint to create the database.
4242

43-
You can include the contents of the JSON document in the `POST /subscriptions` operation in the [Swagger UI](https://api.redislabs.com/v1/swagger-ui.html). See [Swagger user interface]({{< relref "/operate/rc/api/get-started/use-rest-api#swagger-user-interface" >}}) for more details.
43+
You can include the contents of the JSON document in the `POST /v1/fixed/subscriptions` operation in the [Swagger UI](https://api.redislabs.com/v1/swagger-ui.html). See [Swagger user interface]({{< relref "/operate/rc/api/get-started/use-rest-api#swagger-user-interface" >}}) for more details.
4444

4545
{{< note >}}
4646
The Swagger UI generates default JSON examples for `POST` and `PUT` operations. You can reference these examples and modify them to fit your specific needs and account settings. The examples will fail if used as-is.
4747
{{< /note >}}
4848

49-
The response body contains the `taskId` for the task that creates the subscription. You can use `GET /v1/tasks/{taskId}` to track the task's status.
49+
The response body contains the `taskId` for the task that creates the subscription. You can use [`GET /v1/tasks/{taskId}`]({{< relref "/operate/rc/api/api-reference#tag/Tasks/operation/getTaskById" >}}) to track the task's status.
5050

5151
### Update an Essentials subscription
5252

53-
Use `PUT /v1/fixed/subscriptions/{subscriptionId}` to update an Essentials subscription.
53+
Use [`PUT /v1/fixed/subscriptions/{subscriptionId}`]({{< relref "/operate/rc/api/api-reference#ADD-TAG" >}}) to update an Essentials subscription.
5454

5555
```sh
5656
PUT "https://[host]/v1/fixed/subscriptions/{subscriptionId}"
@@ -66,32 +66,32 @@ You can only change the following settings with this endpoint:
6666

6767
- **`planId`** - Specify a new Essentials plan to change to.
6868

69-
Use `GET /v1/fixed/plans` to get a list of plan IDs.
69+
Use [`GET /v1/fixed/plans`]({{< relref "/operate/rc/api/api-reference#tag/Subscriptions-Essentials/operation/getAllFixedSubscriptionsPlans" >}}) to get a list of plan IDs.
7070

7171
You can only change to a plan that:
7272
- Is in the same cloud provider and region of your current plan.
7373
- Has a compatible [High-availability option]({{< relref "/operate/rc/databases/configuration/high-availability" >}}) to your current plan. For example, if your current plan has single-zone replication, you cannot switch to a plan with multi-zone replication, but you can switch to a plan with no replication. If your current plan has multi-zone replication, you must switch to a plan with multi-zone replication.
7474

7575
- **`paymentMethodId`** - Specify a different payment method connected to your account.
7676

77-
Use `GET /v1/payment-methods` to find a payment method ID.
77+
Use [`GET /v1/payment-methods`]({{< relref "/operate/rc/api/api-reference#tag/Account/operation/getAccountPaymentMethods" >}}) to find a payment method ID.
7878

79-
The response body contains the `taskId` for the task that updates the subscription. You can use `GET /v1/tasks/{taskId}` to track the task's status.
79+
The response body contains the `taskId` for the task that updates the subscription. You can use [`GET /v1/tasks/{taskId}`]({{< relref "/operate/rc/api/api-reference#tag/Tasks/operation/getTaskById" >}}) to track the task's status.
8080

8181
### Delete an Essentials subscription
8282

83-
Use `DELETE /v1/subscriptions/<subscriptionId>` to delete a subscription.
83+
Use [`DELETE /v1/fixed/subscriptions/{subscriptionId}`]({{< relref "/operate/rc/api/api-reference#ADD-TAG" >}}) to delete a subscription.
8484

8585
```sh
8686
DELETE "https://[host]/v1/fixed/subscriptions/{subscriptionId}"
8787
```
88-
The response body contains the `taskId` for the task that deletes the subscription. You can use `GET /v1/tasks/<taskId>` to track the task's status.
88+
The response body contains the `taskId` for the task that deletes the subscription. You can use [`GET /v1/tasks/{taskId}`]({{< relref "/operate/rc/api/api-reference#tag/Tasks/operation/getTaskById" >}}) to track the task's status.
8989

9090
## Redis Cloud Pro
9191

9292
### Create a Pro subscription
9393

94-
Use `POST /v1/subscriptions` to create a Pro subscription.
94+
Use [`POST /v1/subscriptions`]({{< relref "/operate/rc/api/api-reference#ADD-TAG" >}}) to create a Pro subscription.
9595

9696
```sh
9797
POST "https://[host]/v1/subscriptions"
@@ -124,13 +124,13 @@ Modify the following parameters in the sample JSON document to create a subscrip
124124

125125
- **`paymentMethodId`** - Specify a payment method connected to your account.
126126

127-
Use `GET /v1/payment-methods` to find a payment method ID.
127+
Use [`GET /v1/payment-methods`]({{< relref "/operate/rc/api/api-reference#tag/Account/operation/getAccountPaymentMethods" >}}) to find a payment method ID.
128128

129129
You don't need to pass this field in your API request if you subscribed to Redis Cloud through a marketplace integration.
130130

131131
- **`cloudAccountId`** - Set a cloud account ID connected to your account.
132132

133-
To list cloud account IDs, use `GET /v1/cloud-accounts`.
133+
To list cloud account IDs, use [`GET /v1/cloud-accounts`]({{< relref "/operate/rc/api/api-reference#ADD-TAG" >}}).
134134

135135
You don't need to pass this field in your API request if you want to use internal resources.
136136

@@ -142,11 +142,11 @@ You can include the contents of the JSON document in the `POST /subscriptions` o
142142
The Swagger UI generates default JSON examples for `POST` and `PUT` operations. You can reference these examples and modify them to fit your specific needs and account settings. The examples will fail if used as-is.
143143
{{< /note >}}
144144

145-
The response body contains the `taskId` for the task that creates the subscription. You can use `GET /v1/tasks/{taskId}` to track the task's status.
145+
The response body contains the `taskId` for the task that creates the subscription. You can use [`GET /v1/tasks/{taskId}`]({{< relref "/operate/rc/api/api-reference#tag/Tasks/operation/getTaskById" >}}) to track the task's status.
146146

147147
### Update a Pro subscription
148148

149-
Use `PUT /v1/subscriptions/{subscriptionId}` to update a Pro subscription.
149+
Use [`PUT /v1/subscriptions/{subscriptionId}`]({{< relref "/operate/rc/api/api-reference#ADD-TAG" >}}) to update a Pro subscription.
150150

151151
```sh
152152
PUT "https://[host]/v1/subscriptions/{subscriptionId}"
@@ -161,15 +161,15 @@ You can only change the following settings with this endpoint:
161161

162162
- **`paymentMethodId`** - Specify a different payment method connected to your account.
163163

164-
Use `GET /v1/payment-methods` to find a payment method ID.
164+
Use [`GET /v1/payment-methods`]({{< relref "/operate/rc/api/api-reference#tag/Account/operation/getAccountPaymentMethods" >}}) to find a payment method ID.
165165

166-
The response body contains the `taskId` for the task that updates the subscription. You can use `GET /v1/tasks/{taskId}` to track the task's status.
166+
The response body contains the `taskId` for the task that updates the subscription. You can use [`GET /v1/tasks/{taskId}`]({{< relref "/operate/rc/api/api-reference#tag/Tasks/operation/getTaskById" >}}) to track the task's status.
167167

168168
### Delete a Pro subscription
169169

170-
Use `DELETE /v1/subscriptions/{subscriptionId}` to delete a subscription.
170+
Use [`DELETE /v1/subscriptions/{subscriptionId}`]({{< relref "/operate/rc/api/api-reference#ADD-TAG" >}}) to delete a subscription.
171171

172172
```sh
173173
DELETE "https://[host]/v1/subscriptions/{subscriptionId}"
174174
```
175-
The response body contains the `taskId` for the task that deletes the subscription. You can use `GET /v1/tasks/{taskId}` to track the task's status.
175+
The response body contains the `taskId` for the task that deletes the subscription. You can use [`GET /v1/tasks/{taskId}`]({{< relref "/operate/rc/api/api-reference#tag/Tasks/operation/getTaskById" >}}) to track the task's status.

0 commit comments

Comments
 (0)