Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "resRg",
"clusterName": "myCluster",
"api-version": "2016-09-01"
},
"responses": {
"200": {},
"204":{}
}
}
167 changes: 167 additions & 0 deletions arm-servicefabric/2016-09-01/examples/ClusterGetOperation_example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "resRg",
"clusterName": "myCluster",
"api-version": "2016-09-01"
},
"responses": {
"200": {
"headers": {},
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster",
"location": "southcentralus",
"name": "myCluster",
"properties": {
"provisioningState": "Succeeded",
"clusterId": "1a1acec2-8d75-424a-81af-2fb83dd1cac8",
"clusterCodeVersion": "5.5.149.9494",
"clusterState": "Ready",
"managementEndpoint": "https://myCluster.southcentralus.cloudapp.azure.com:19080",
"clusterEndpoint": "https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/1a1acec2-8d75-424a-81af-2fb83dd1cac8",
"certificate": {
"thumbprint": "1901CF0F76AF711BEE53DF39941092BDAC8D9050",
"x509StoreName": "My"
},
"clientCertificateThumbprints": [],
"clientCertificateCommonNames": [],
"fabricSettings": [
{
"name": "Security",
"parameters": [
{
"name": "ClusterProtectionLevel",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these parameters hold any string, or are these candidate for enum

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is string in our service.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I am assuming your service accepts any string for this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, all are string for fabricSettings

"value": "EncryptAndSign"
}
]
}
],
"upgradeDescription": {
"overrideUserUpgradePolicy": false,
"forceRestart": true,
"upgradeReplicaSetCheckTimeout": "10675199.02:48:05.4775807",
"healthCheckWaitDuration": "00:05:00",
"healthCheckStableDuration": "00:05:00",
"healthCheckRetryTimeout": "00:45:00",
"upgradeTimeout": "12:00:00",
"upgradeDomainTimeout": "02:00:00",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like for duration RP is using C# TimeSpan format, if that is the case please log a bug in your system to use ISO8601 duration type instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add TODO.

"healthPolicy": {
"maxPercentUnhealthyNodes": 100,
"maxPercentUnhealthyApplications": 100
},
"deltaHealthPolicy": {
"maxPercentDeltaUnhealthyNodes": 0,
"maxPercentUpgradeDomainDeltaUnhealthyNodes": 0,
"maxPercentDeltaUnhealthyApplications": 0
}
},
"diagnosticsStorageAccountConfig": {
"storageAccountName": "3nrb4ixoj6ogq2",
"protectedAccountKeyName": "StorageAccountKey1",
"blobEndpoint": "https://3nrb4ixoj6ogq2.blob.core.windows.net/",
"queueEndpoint": "https://3nrb4ixoj6ogq2.queue.core.windows.net/",
"tableEndpoint": "https://3nrb4ixoj6ogq2.table.core.windows.net/"
},
"nodeTypes": [
{
"name": "nt1vm",
"clientConnectionEndpointPort": 19000,
"httpGatewayEndpointPort": 19080,
"applicationPorts": {
"startPort": 20000,
"endPort": 30000
},
"ephemeralPorts": {
"startPort": 49152,
"endPort": 65534
},
"isPrimary": true,
"vmInstanceCount": 5,
"durabilityLevel": "Bronze"
}
],
"vmImage": "Windows",
"reliabilityLevel": "Silver",
"upgradeMode": "Automatic",
"availableClusterVersions": [
{
"codeVersion": "5.1.158.9590",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
},
{
"codeVersion": "5.2.0.100",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
},
{
"codeVersion": "5.2.207.9590",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
},
{
"codeVersion": "5.3.121.9494",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
},
{
"codeVersion": "5.3.311.9590",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
},
{
"codeVersion": "5.4.30.100",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
},
{
"codeVersion": "5.4.35.100",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
},
{
"codeVersion": "5.4.38.100",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
},
{
"codeVersion": "5.4.118.9494",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
},
{
"codeVersion": "5.4.132.9494",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
},
{
"codeVersion": "5.4.145.9494",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
},
{
"codeVersion": "5.4.164.9494",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
},
{
"codeVersion": "5.5.67.9494",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

time does not seems to be ISO 8601

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chingchenmsft please make sure this issue is tracked in your system.

"environment": "Windows"
},
{
"codeVersion": "5.5.149.9494",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
}
]
},
"tags": {
"clusterName": "myCluster",
"resourceType": "Service Fabric"
},
"type": "Microsoft.ServiceFabric/clusters"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "resRg",
"api-version": "2016-09-01"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"type": "Microsoft.ServiceFabric/clusters",
"location": "southcentralus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/psrg1/providers/Microsoft.ServiceFabric/clusters/testcluster",
"name": "testcluster",
"tags": {
"resourceType": "Service Fabric",
"clusterName": "testcluster"
},
"properties": {
"provisioningState": "Succeeded",
"clusterId": "29cfe945-7ff1-4234-b567-09871226d4f6",
"clusterCodeVersion": "5.5.216.0",
"clusterState": "Ready",
"managementEndpoint": "https://testcluster.southcentralus.cloudapp.azure.com:19080",
"clusterEndpoint": "https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/29cfe945-7ff1-4234-b567-09871226d4f6",
"certificate": {
"thumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A",
"x509StoreName": "My"
},
"clientCertificateThumbprints": [],
"clientCertificateCommonNames": [],
"fabricSettings": [
{
"name": "Security",
"parameters": [
{
"name": "ClusterProtectionLevel",
"value": "EncryptAndSign"
}
]
}
],
"upgradeDescription": {
"overrideUserUpgradePolicy": false,
"forceRestart": false,
"upgradeReplicaSetCheckTimeout": "10675199.02:48:05.4775807",
"healthCheckWaitDuration": "00:05:00",
"healthCheckStableDuration": "00:05:00",
"healthCheckRetryTimeout": "00:45:00",
"upgradeTimeout": "12:00:00",
"upgradeDomainTimeout": "02:00:00",
"healthPolicy": {
"maxPercentUnhealthyNodes": 100,
"maxPercentUnhealthyApplications": 100
},
"deltaHealthPolicy": {
"maxPercentDeltaUnhealthyNodes": 0,
"maxPercentUpgradeDomainDeltaUnhealthyNodes": 0,
"maxPercentDeltaUnhealthyApplications": 0
}
},
"diagnosticsStorageAccountConfig": {
"storageAccountName": "sflogppe231337596",
"protectedAccountKeyName": "StorageAccountKey1",
"blobEndpoint": "https://sflogppe231337596.blob.core.windows.net/",
"queueEndpoint": "https://sflogppe231337596.queue.core.windows.net/",
"tableEndpoint": "https://sflogppe231337596.table.core.windows.net/"
},
"nodeTypes": [
{
"name": "n1",
"clientConnectionEndpointPort": 19000,
"httpGatewayEndpointPort": 19080,
"applicationPorts": {
"startPort": 20000,
"endPort": 30000
},
"ephemeralPorts": {
"startPort": 49152,
"endPort": 65534
},
"isPrimary": true,
"vmInstanceCount": 5,
"durabilityLevel": "Silver"
}
],
"vmImage": "Windows",
"reliabilityLevel": "Silver",
"upgradeMode": "Automatic",
"availableClusterVersions": [
{
"codeVersion": "5.4.145.9494",
"supportExpiryUtc": "2017-05-10T00:00:00",
"environment": "Windows"
},
{
"codeVersion": "5.4.164.9494",
"supportExpiryUtc": "2017-05-10T00:00:00",
"environment": "Windows"
},
{
"codeVersion": "5.5.216.0",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
},
{
"codeVersion": "5.5.219.0",
"supportExpiryUtc": "9999-12-31T23:59:59.9999999",
"environment": "Windows"
}
]
}
}
]
}
}
}
}
Loading