Skip to content

Commit 23cda89

Browse files
fore5fire00Kai0
authored andcommitted
Add missing private link fields for CDN version 2020-04-15 (Azure#9858)
* Add missing private link fields for CDN version 2020-04-15. * Fix examples for CDN endpoint get, list, and update in 2020-04-15 * Fix CDN Endpoints_Update example.
1 parent ff6f670 commit 23cda89

File tree

5 files changed

+48
-8
lines changed

5 files changed

+48
-8
lines changed

specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/cdn.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4227,6 +4227,22 @@
42274227
"enabled": {
42284228
"description": "Origin is enabled for load balancing or not. By default, origin is always enabled.",
42294229
"type": "boolean"
4230+
},
4231+
"privateLinkAlias": {
4232+
"description": "The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'",
4233+
"type": "string"
4234+
},
4235+
"privateLinkResourceId": {
4236+
"description": "The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'",
4237+
"type": "string"
4238+
},
4239+
"privateLinkLocation": {
4240+
"description": "The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated",
4241+
"type": "string"
4242+
},
4243+
"privateLinkApprovalMessage": {
4244+
"description": "A custom message to be included in the approval request to connect to the Private Link.",
4245+
"type": "string"
42304246
}
42314247
},
42324248
"x-ms-azure-resource": true

specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Create.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@
8686
"originHostHeader": "www.someDomain1.net",
8787
"priority": 1,
8888
"weight": 50,
89-
"enabled": true
89+
"enabled": true,
90+
"privateLinkResourceId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
91+
"privateLinkLocation": "eastus",
92+
"privateLinkApprovalMessage": "Please approve the connection request for this Private Link"
9093
}
9194
},
9295
{
@@ -162,7 +165,10 @@
162165
"originHostHeader": "www.someDomain1.net",
163166
"priority": 1,
164167
"weight": 50,
165-
"enabled": true
168+
"enabled": true,
169+
"privateLinkResourceId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
170+
"privateLinkLocation": "eastus",
171+
"privateLinkApprovalMessage": "Please approve the connection request for this Private Link"
166172
}
167173
},
168174
{
@@ -298,7 +304,10 @@
298304
"originHostHeader": "www.someDomain1.net",
299305
"priority": 1,
300306
"weight": 50,
301-
"enabled": true
307+
"enabled": true,
308+
"privateLinkResourceId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
309+
"privateLinkLocation": "eastus",
310+
"privateLinkApprovalMessage": "Please approve the connection request for this Private Link"
302311
}
303312
},
304313
{
@@ -434,7 +443,10 @@
434443
"originHostHeader": "www.someDomain1.net",
435444
"priority": 1,
436445
"weight": 50,
437-
"enabled": true
446+
"enabled": true,
447+
"privateLinkResourceId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
448+
"privateLinkLocation": "eastus",
449+
"privateLinkApprovalMessage": "Please approve the connection request for this Private Link"
438450
}
439451
},
440452
{

specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Get.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
"originHostHeader": "www.someDomain2.net",
3434
"priority": 2,
3535
"weight": 50,
36-
"enabled": true
36+
"enabled": true,
37+
"privateLinkResourceId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
38+
"privateLinkLocation": "eastus",
39+
"privateLinkApprovalMessage": "Please approve the connection request for this Private Link"
3740
}
3841
}
3942
],

specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_ListByProfile.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
"originHostHeader": "www.someDomain2.net",
3535
"priority": 2,
3636
"weight": 50,
37-
"enabled": true
37+
"enabled": true,
38+
"privateLinkResourceId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
39+
"privateLinkLocation": "eastus",
40+
"privateLinkApprovalMessage": "Please approve the connection request for this Private Link"
3841
}
3942
}
4043
],

specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Update.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@
4040
"originHostHeader": "www.someDomain2.net",
4141
"priority": 2,
4242
"weight": 50,
43-
"enabled": true
43+
"enabled": true,
44+
"privateLinkResourceId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
45+
"privateLinkLocation": "eastus",
46+
"privateLinkApprovalMessage": "Please approve the connection request for this Private Link"
4447
}
4548
}
4649
],
@@ -101,7 +104,10 @@
101104
"originHostHeader": "www.someDomain2.net",
102105
"priority": 2,
103106
"weight": 50,
104-
"enabled": true
107+
"enabled": true,
108+
"privateLinkResourceId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
109+
"privateLinkLocation": "eastus",
110+
"privateLinkApprovalMessage": "Please approve the connection request for this Private Link"
105111
}
106112
}
107113
],

0 commit comments

Comments
 (0)