Skip to content

Commit 217d7d8

Browse files
committed
numbering
1 parent f656cd7 commit 217d7d8

File tree

3 files changed

+108
-3
lines changed

3 files changed

+108
-3
lines changed

articles/key-vault/certificates/quick-create-node.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,40 @@ This code uses the following [Key Vault Certificate classes and methods](/javasc
234234
node index.js
235235
```
236236

237+
238+
1. The create and get methods return a full JSON object for the certificate:
239+
240+
```JSON
241+
{
242+
"keyId": undefined,
243+
"secretId": undefined,
244+
"name": "YOUR-CERTIFICATE-NAME",
245+
"reuseKey": false,
246+
"keyCurveName": undefined,
247+
"exportable": true,
248+
"issuerName": 'Self',
249+
"certificateType": undefined,
250+
"certificateTransparency": undefined
251+
},
252+
"properties": {
253+
"createdOn": 2021-11-29T20:17:45.000Z,
254+
"updatedOn": 2021-11-29T20:17:45.000Z,
255+
"expiresOn": 2022-11-29T20:17:45.000Z,
256+
"id": "https://YOUR-KEY-VAULT-NAME-ENDPOINT/certificates/YOUR-CERTIFICATE-NAME/YOUR-CERTIFICATE-VERSION",
257+
"enabled": false,
258+
"notBefore": 2021-11-29T20:07:45.000Z,
259+
"recoveryLevel": "Recoverable+Purgeable",
260+
"name": "YOUR-CERTIFICATE-NAME",
261+
"vaultUrl": "https://YOUR-KEY-VAULT-NAME-ENDPOINT",
262+
"version": "YOUR-CERTIFICATE-VERSION",
263+
"tags": undefined,
264+
"x509Thumbprint": undefined,
265+
"recoverableDays": 90
266+
}
267+
}
268+
```
269+
270+
237271
::: zone-end
238272
::: zone pivot="programming-language-typescript"
239273
1. Create new text file and paste the following code into the **index.ts** file.
@@ -253,7 +287,6 @@ This code uses the following [Key Vault Certificate classes and methods](/javasc
253287
```terminal
254288
node index.js
255289
```
256-
::: zone-end
257290

258291
1. The create and get methods return a full JSON object for the certificate:
259292

@@ -287,6 +320,8 @@ This code uses the following [Key Vault Certificate classes and methods](/javasc
287320
}
288321
```
289322

323+
::: zone-end
324+
290325

291326
## Integrating with App Configuration
292327

articles/key-vault/keys/quick-create-node.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,40 @@ This code uses the following [Key Vault Secret classes and methods](/javascript/
233233
node index.js
234234
```
235235

236+
1. The create and get methods return a full JSON object for the key:
237+
238+
```JSON
239+
"key": {
240+
"key": {
241+
"kid": "https://YOUR-KEY-VAULT-ENDPOINT/keys/YOUR-KEY-NAME/YOUR-KEY-VERSION",
242+
"kty": "YOUR-KEY-TYPE",
243+
"keyOps": [ ARRAY-OF-VALID-OPERATIONS ],
244+
... other properties based on key type
245+
},
246+
"id": "https://YOUR-KEY-VAULT-ENDPOINT/keys/YOUR-KEY-NAME/YOUR-KEY-VERSION",
247+
"name": "YOUR-KEY-NAME",
248+
"keyOperations": [ ARRAY-OF-VALID-OPERATIONS ],
249+
"keyType": "YOUR-KEY-TYPE",
250+
"properties": {
251+
"tags": undefined,
252+
"enabled": true,
253+
"notBefore": undefined,
254+
"expiresOn": undefined,
255+
"createdOn": 2021-11-29T18:29:11.000Z,
256+
"updatedOn": 2021-11-29T18:29:11.000Z,
257+
"recoverableDays": 90,
258+
"recoveryLevel": "Recoverable+Purgeable",
259+
"exportable": undefined,
260+
"releasePolicy": undefined,
261+
"vaultUrl": "https://YOUR-KEY-VAULT-ENDPOINT",
262+
"version": "YOUR-KEY-VERSION",
263+
"name": "YOUR-KEY-VAULT-NAME",
264+
"managed": undefined,
265+
"id": "https://YOUR-KEY-VAULT-ENDPOINT/keys/YOUR-KEY-NAME/YOUR-KEY-VERSION"
266+
}
267+
}
268+
```
269+
236270
::: zone-end
237271
::: zone pivot="programming-language-typescript"
238272
1. Create new text file and paste the following code into the **index.ts** file.
@@ -252,7 +286,6 @@ This code uses the following [Key Vault Secret classes and methods](/javascript/
252286
```terminal
253287
node index.js
254288
```
255-
::: zone-end
256289

257290
1. The create and get methods return a full JSON object for the key:
258291

@@ -287,6 +320,9 @@ This code uses the following [Key Vault Secret classes and methods](/javascript/
287320
}
288321
}
289322
```
323+
::: zone-end
324+
325+
290326

291327
## Integrating with App Configuration
292328

articles/key-vault/secrets/quick-create-node.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,39 @@ This code uses the following [Key Vault Secret classes and methods](/javascript/
208208
```terminal
209209
node index.js
210210
```
211+
1. The create and get methods return a full JSON object for the secret:
212+
213+
```JSON
214+
{
215+
"value": "MySecretValue",
216+
"name": "secret1637692472606",
217+
"properties": {
218+
"createdOn": "2021-11-23T18:34:33.000Z",
219+
"updatedOn": "2021-11-23T18:34:33.000Z",
220+
"enabled": true,
221+
"recoverableDays": 90,
222+
"recoveryLevel": "Recoverable+Purgeable",
223+
"id": "https: //YOUR-KEYVAULT-ENDPOINT.vault.azure.net/secrets/secret1637692472606/YOUR-VERSION",
224+
"vaultUrl": "https: //YOUR-KEYVAULT-ENDPOINT.vault.azure.net",
225+
"version": "YOUR-VERSION",
226+
"name": "secret1637692472606"
227+
}
228+
}
229+
```
230+
231+
The update method returns the **properties** name/values pairs:
211232

233+
```JSON
234+
"createdOn": "2021-11-23T18:34:33.000Z",
235+
"updatedOn": "2021-11-23T18:34:33.000Z",
236+
"enabled": true,
237+
"recoverableDays": 90,
238+
"recoveryLevel": "Recoverable+Purgeable",
239+
"id": "https: //YOUR-KEYVAULT-ENDPOINT/secrets/secret1637692472606/YOUR-VERSION",
240+
"vaultUrl": "https: //YOUR-KEYVAULT-ENDPOINT",
241+
"version": "YOUR-VERSION",
242+
"name": "secret1637692472606"
243+
```
212244
::: zone-end
213245
::: zone pivot="programming-language-typescript"
214246
1. Create new text file and paste the following code into the **index.ts** file.
@@ -228,7 +260,6 @@ This code uses the following [Key Vault Secret classes and methods](/javascript/
228260
```terminal
229261
node index.js
230262
```
231-
::: zone-end
232263

233264
1. The create and get methods return a full JSON object for the secret:
234265

@@ -263,6 +294,9 @@ This code uses the following [Key Vault Secret classes and methods](/javascript/
263294
"version": "YOUR-VERSION",
264295
"name": "secret1637692472606"
265296
```
297+
::: zone-end
298+
299+
266300

267301

268302

0 commit comments

Comments
 (0)