Skip to content

Commit 1695da8

Browse files
authored
Merge pull request #198282 from schaffererin/acrp-reference-docs
Edits to ACRP docs - Reference
2 parents 257a28e + 3b9d22e commit 1695da8

File tree

3 files changed

+59
-59
lines changed

3 files changed

+59
-59
lines changed

articles/azure-resource-manager/custom-providers/proxy-cache-resource-endpoint-reference.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ description: Custom resource cache reference for Azure Custom Resource Providers
44
ms.topic: conceptual
55
ms.author: jobreen
66
author: jjbfour
7-
ms.date: 06/20/2019
7+
ms.date: 05/13/2022
88
---
99

10-
# Custom Resource Cache Reference
10+
# Custom resource cache reference
1111

12-
This article will go through the requirements for endpoints implementing cache custom resources. If you are unfamiliar with Azure Custom Resource Providers, see [the overview on custom resource providers](overview.md).
12+
This article will go through the requirements for endpoints implementing cache custom resources. If you're unfamiliar with Azure Custom Resource Providers, see [the overview on custom resource providers](overview.md).
1313

14-
## How to define a cache resource endpoint
14+
## Define a cache resource endpoint
1515

16-
A proxy resource can be created by specifying the **routingType** to "Proxy, Cache".
16+
A proxy resource can be created by specifying the `routingType` to "Proxy, Cache".
1717

18-
Sample custom resource provider:
18+
**Sample custom resource provider**:
1919

2020
```JSON
2121
{
@@ -35,17 +35,17 @@ Sample custom resource provider:
3535
}
3636
```
3737

38-
## Building proxy resource endpoint
38+
## Build a proxy resource endpoint
3939

40-
An **endpoint** that implements a "Proxy, Cache" resource **endpoint** must handle the request and response for the new API in Azure. In this case, the **resourceType** will generate a new Azure resource API for `PUT`, `GET`, and `DELETE` to perform CRUD on a single resource, as well as `GET` to retrieve all existing resources:
40+
An endpoint that implements a "Proxy, Cache" resource endpoint must handle the request and response for the new API in Azure. In this case, the **resourceType** will generate a new Azure resource API for `PUT`, `GET`, and `DELETE` to perform CRUD on a single resource, as well as `GET` to retrieve all existing resources.
4141

4242
> [!NOTE]
43-
> The Azure API will generate the request methods `PUT`, `GET`, and `DELETE`, but the cache **endpoint** only needs to handle `PUT` and `DELETE`.
44-
> We recommended that the **endpoint** also implements `GET`.
43+
> The Azure API will generate the request methods `PUT`, `GET`, and `DELETE`, but the cache endpoint only needs to handle `PUT` and `DELETE`.
44+
> We recommended that the endpoint also implements `GET`.
4545
4646
### Create a custom resource
4747

48-
Azure API Incoming Request:
48+
**Azure API incoming request**:
4949

5050
``` HTTP
5151
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/myCustomResources/{myCustomResourceName}?api-version=2018-09-01-preview
@@ -62,7 +62,7 @@ Content-Type: application/json
6262
}
6363
```
6464

65-
This request will then be forwarded to the **endpoint** in the form:
65+
This request will then be forwarded to the endpoint in the form:
6666

6767
``` HTTP
6868
PUT https://{endpointURL}/?api-version=2018-09-01-preview
@@ -79,14 +79,14 @@ X-MS-CustomProviders-RequestPath: /subscriptions/{subscriptionId}/resourceGroups
7979
}
8080
```
8181

82-
Similarly, the response from the **endpoint** is then forwarded back to the customer. The response from the endpoint should return:
82+
The response from the endpoint is then forwarded back to the customer. The response should return:
8383

8484
- A valid JSON object document. All arrays and strings should be nested under a top object.
8585
- The `Content-Type` header should be set to "application/json; charset=utf-8".
8686
- The custom resource provider will overwrite the `name`, `type`, and `id` fields for the request.
8787
- The custom resource provider will only return fields under the `properties` object for a cache endpoint.
8888

89-
**Endpoint** Response:
89+
**Endpoint response**:
9090

9191
``` HTTP
9292
HTTP/1.1 200 OK
@@ -104,7 +104,7 @@ Content-Type: application/json; charset=utf-8
104104

105105
The `name`, `id`, and `type` fields will automatically be generated for the custom resource by the custom resource provider.
106106

107-
Azure Custom Resource Provider Response:
107+
**Azure Custom Resource Provider response**:
108108

109109
``` HTTP
110110
HTTP/1.1 200 OK
@@ -125,36 +125,36 @@ Content-Type: application/json; charset=utf-8
125125

126126
### Remove a custom resource
127127

128-
Azure API Incoming Request:
128+
**Azure API incoming request**:
129129

130130
``` HTTP
131131
Delete https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/myCustomResources/{myCustomResourceName}?api-version=2018-09-01-preview
132132
Authorization: Bearer eyJ0e...
133133
Content-Type: application/json
134134
```
135135

136-
This request will then be forwarded to the **endpoint** in the form:
136+
This request will then be forwarded to the endpoint in the form:
137137

138138
``` HTTP
139139
Delete https://{endpointURL}/?api-version=2018-09-01-preview
140140
Content-Type: application/json
141141
X-MS-CustomProviders-RequestPath: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/myCustomResources/{myCustomResourceName}
142142
```
143143

144-
Similarly ,the response from the **endpoint** is then forwarded back to the customer. The response from the endpoint should return:
144+
The response from the endpoint is then forwarded back to the customer. The response should return:
145145

146146
- A valid JSON object document. All arrays and strings should be nested under a top object.
147147
- The `Content-Type` header should be set to "application/json; charset=utf-8".
148-
- The Azure Custom Resource Provider will only remove the item from its cache if a 200-level response is returned. Even if the resource does not exist, the **endpoint** should return 204.
148+
- The Azure Custom Resource Provider will only remove the item from its cache if a 200-level response is returned. Even if the resource doesn't exist, the endpoint should return 204.
149149

150-
**Endpoint** Response:
150+
**Endpoint response**:
151151

152152
``` HTTP
153153
HTTP/1.1 200 OK
154154
Content-Type: application/json; charset=utf-8
155155
```
156156

157-
Azure Custom Resource Provider Response:
157+
**Azure Custom Resource Provider response**:
158158

159159
``` HTTP
160160
HTTP/1.1 200 OK
@@ -163,17 +163,17 @@ Content-Type: application/json; charset=utf-8
163163

164164
### Retrieve a custom resource
165165

166-
Azure API Incoming Request:
166+
**Azure API incoming request**:
167167

168168
``` HTTP
169169
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/myCustomResources/{myCustomResourceName}?api-version=2018-09-01-preview
170170
Authorization: Bearer eyJ0e...
171171
Content-Type: application/json
172172
```
173173

174-
The request will **not** be forwarded to the **endpoint**.
174+
The request will **not** be forwarded to the endpoint.
175175

176-
Azure Custom Resource Provider Response:
176+
Azure Custom Resource Provider response:
177177

178178
``` HTTP
179179
HTTP/1.1 200 OK
@@ -194,17 +194,17 @@ Content-Type: application/json; charset=utf-8
194194

195195
### Enumerate all custom resources
196196

197-
Azure API Incoming Request:
197+
**Azure API incoming request**:
198198

199199
``` HTTP
200200
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/myCustomResources?api-version=2018-09-01-preview
201201
Authorization: Bearer eyJ0e...
202202
Content-Type: application/json
203203
```
204204

205-
This request will **not** be forwarded to the **endpoint**.
205+
The request will **not** be forwarded to the endpoint.
206206

207-
Azure Custom Resource Provider Response:
207+
**Azure Custom Resource Provider response**:
208208

209209
``` HTTP
210210
HTTP/1.1 200 OK

articles/azure-resource-manager/custom-providers/proxy-resource-endpoint-reference.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ description: Custom resource proxy reference for Azure Custom Resource Providers
44
ms.topic: conceptual
55
ms.author: jobreen
66
author: jjbfour
7-
ms.date: 06/20/2019
7+
ms.date: 05/13/2022
88
---
99

10-
# Custom Resource Proxy Reference
10+
# Custom resource proxy reference
1111

12-
This article will go through the requirements for endpoints implementing proxy custom resources. If you are unfamiliar with Azure Custom Resource Providers, see [the overview on custom resource providers](overview.md).
12+
This article will go through the requirements for endpoints implementing proxy custom resources. If you're unfamiliar with Azure Custom Resource Providers, see [the overview on custom resource providers](overview.md).
1313

14-
## How to define a proxy resource endpoint
14+
## Define a proxy resource endpoint
1515

16-
A proxy resource can be created by specifying the **routingType** to "Proxy".
16+
A proxy resource can be created by specifying the `routingType` to "Proxy".
1717

18-
Sample custom resource provider:
18+
### Sample custom resource provider:
1919

2020
```JSON
2121
{
@@ -35,14 +35,14 @@ Sample custom resource provider:
3535
}
3636
```
3737

38-
## Building proxy resource endpoint
38+
## Build a proxy resource endpoint
3939

40-
An **endpoint** that implements a "Proxy" resource **endpoint** must handle the request and response for the new API in Azure. In this case, the **resourceType** will generate a new Azure resource API for `PUT`, `GET`, and `DELETE` to perform CRUD on a single resource, as well as `GET` to retrieve all existing resources.
40+
An endpoint that implements a "Proxy" resource endpoint must handle the request and response for the new API in Azure. In this case, the #*resourceType** will generate a new Azure resource API for `PUT`, `GET`, and `DELETE` to perform CRUD on a single resource, as well as `GET` to retrieve all existing resources.
4141

4242
> [!NOTE]
43-
> The `id`, `name`, and `type` fields are not required, but are needed to integrate the custom resource with existing Azure ecosystem.
43+
> The `id`, `name`, and `type` fields are not required, but they're needed to integrate the custom resource with an existing Azure ecosystem.
4444
45-
Sample resource:
45+
**Sample resource**:
4646

4747
``` JSON
4848
{
@@ -58,7 +58,7 @@ Sample resource:
5858
}
5959
```
6060

61-
Parameter reference:
61+
**Parameter reference**:
6262

6363
Property | Sample | Description
6464
---|---|---
@@ -68,7 +68,7 @@ id | '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/<br>pro
6868

6969
### Create a custom resource
7070

71-
Azure API Incoming Request:
71+
**Azure API incoming request**:
7272

7373
``` HTTP
7474
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resource-provider-name}/myCustomResources/{myCustomResourceName}?api-version=2018-09-01-preview
@@ -85,7 +85,7 @@ Content-Type: application/json
8585
}
8686
```
8787

88-
This request will then be forwarded to the **endpoint** in the form:
88+
This request will then be forwarded to the endpoint in the form:
8989

9090
``` HTTP
9191
PUT https://{endpointURL}/?api-version=2018-09-01-preview
@@ -102,12 +102,12 @@ X-MS-CustomProviders-RequestPath: /subscriptions/{subscriptionId}/resourceGroups
102102
}
103103
```
104104

105-
Similarly, the response from the **endpoint** is then forwarded back to the customer. The response from the endpoint should return:
105+
The response from the endpoint is then forwarded back to the customer. The response should return:
106106

107107
- A valid JSON object document. All arrays and strings should be nested under a top object.
108108
- The `Content-Type` header should be set to "application/json; charset=utf-8".
109109

110-
**Endpoint** Response:
110+
**Endpoint response**:
111111

112112
``` HTTP
113113
HTTP/1.1 200 OK
@@ -126,7 +126,7 @@ Content-Type: application/json; charset=utf-8
126126
}
127127
```
128128

129-
Azure Custom Resource Provider Response:
129+
**Azure Custom Resource Provider response**:
130130

131131
``` HTTP
132132
HTTP/1.1 200 OK
@@ -147,35 +147,35 @@ Content-Type: application/json; charset=utf-8
147147

148148
### Remove a custom resource
149149

150-
Azure API Incoming Request:
150+
**Azure API incoming request**:
151151

152152
``` HTTP
153153
Delete https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/myCustomResources/{myCustomResourceName}?api-version=2018-09-01-preview
154154
Authorization: Bearer eyJ0e...
155155
Content-Type: application/json
156156
```
157157

158-
This request will then be forwarded to the **endpoint** in the form:
158+
This request will then be forwarded to the endpoint in the form:
159159

160160
``` HTTP
161161
Delete https://{endpointURL}/?api-version=2018-09-01-preview
162162
Content-Type: application/json
163163
X-MS-CustomProviders-RequestPath: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/myCustomResources/{myCustomResourceName}
164164
```
165165

166-
Similarly the response from the **endpoint** is then forwarded back to the customer. The response from the endpoint should return:
166+
The response from the endpoint is then forwarded back to the customer. The response should return:
167167

168168
- Valid JSON object document. All arrays and strings should be nested under a top object.
169169
- The `Content-Type` header should be set to "application/json; charset=utf-8".
170170

171-
**Endpoint** Response:
171+
**Endpoint response**:
172172

173173
``` HTTP
174174
HTTP/1.1 200 OK
175175
Content-Type: application/json; charset=utf-8
176176
```
177177

178-
Azure Custom Resource Provider Response:
178+
**Azure Custom Resource Provider response**:
179179

180180
``` HTTP
181181
HTTP/1.1 200 OK
@@ -184,28 +184,28 @@ Content-Type: application/json; charset=utf-8
184184

185185
### Retrieve a custom resource
186186

187-
Azure API Incoming Request:
187+
**Azure API incoming request**:
188188

189189
``` HTTP
190190
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/myCustomResources/{myCustomResourceName}?api-version=2018-09-01-preview
191191
Authorization: Bearer eyJ0e...
192192
Content-Type: application/json
193193
```
194194

195-
This request will then be forwarded to the **endpoint** in the form:
195+
This request will then be forwarded to the endpoint in the form:
196196

197197
``` HTTP
198198
GET https://{endpointURL}/?api-version=2018-09-01-preview
199199
Content-Type: application/json
200200
X-MS-CustomProviders-RequestPath: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/myCustomResources/{myCustomResourceName}
201201
```
202202

203-
Similarly, the response from the **endpoint** is then forwarded back to the customer. The response from the endpoint should return:
203+
The response from the endpoint is then forwarded back to the customer. The response should return:
204204

205205
- A valid JSON object document. All arrays and strings should be nested under a top object.
206206
- The `Content-Type` header should be set to "application/json; charset=utf-8".
207207

208-
**Endpoint** Response:
208+
**Endpoint response**:
209209

210210
``` HTTP
211211
HTTP/1.1 200 OK
@@ -224,7 +224,7 @@ Content-Type: application/json; charset=utf-8
224224
}
225225
```
226226

227-
Azure Custom Resource Provider Response:
227+
**Azure Custom Resource Provider response**:
228228

229229
``` HTTP
230230
HTTP/1.1 200 OK
@@ -245,29 +245,29 @@ Content-Type: application/json; charset=utf-8
245245

246246
### Enumerate all custom resources
247247

248-
Azure API Incoming Request:
248+
**Azure API incoming request**:
249249

250250
``` HTTP
251251
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/myCustomResources?api-version=2018-09-01-preview
252252
Authorization: Bearer eyJ0e...
253253
Content-Type: application/json
254254
```
255255

256-
This request will then be forwarded to the **endpoint** in the form:
256+
This request will then be forwarded to the endpoint in the form:
257257

258258
``` HTTP
259259
GET https://{endpointURL}/?api-version=2018-09-01-preview
260260
Content-Type: application/json
261261
X-MS-CustomProviders-RequestPath: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomProviders/resourceProviders/{resourceProviderName}/myCustomResources
262262
```
263263

264-
Similarly, the response from the **endpoint** is then forwarded back to the customer. The response from the endpoint should return:
264+
The response from the endpoint is then forwarded back to the customer. The response should return:
265265

266266
- A valid JSON object document. All arrays and strings should be nested under a top object.
267267
- The `Content-Type` header should be set to "application/json; charset=utf-8".
268268
- The list of resources should be placed under the top-level `value` property.
269269

270-
**Endpoint** Response:
270+
**Endpoint response**:
271271

272272
``` HTTP
273273
HTTP/1.1 200 OK
@@ -290,7 +290,7 @@ Content-Type: application/json; charset=utf-8
290290
}
291291
```
292292

293-
Azure Custom Resource Provider Response:
293+
**Azure Custom Resource Provider response**:
294294

295295
``` HTTP
296296
HTTP/1.1 200 OK

articles/azure-resource-manager/custom-providers/reference-custom-providers-csharp-endpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.topic: conceptual
55
ms.custom: devx-track-csharp
66
ms.author: jobreen
77
author: jjbfour
8-
ms.date: 01/14/2021
8+
ms.date: 05/15/2022
99
---
1010

1111
# Custom provider C# RESTful endpoint reference

0 commit comments

Comments
 (0)