Skip to content

Commit

Permalink
rotate passwords for AVS 2020-07-17-preview (#12290)
Browse files Browse the repository at this point in the history
* rotate passwords for AVS 2020-07-17-preview

* add 204 responses
  • Loading branch information
cataggar authored Jan 13, 2021
1 parent 46a7ad1 commit c7a5ce9
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2020-07-17-preview",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1"
},
"responses": {
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2020-07-17-preview",
"subscriptionId": "{subscription-id}",
"resourceGroupName": "group1",
"privateCloudName": "cloud1"
},
"responses": {
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
"properties": {
"managementCluster": {
"clusterSize": 4
},
"vcenterPassword": "OnetimeRotate",
"nsxtPassword": "OnetimeRotate"
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,92 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword": {
"post": {
"operationId": "PrivateClouds_RotateVcenterPassword",
"tags": [
"PrivateClouds"
],
"summary": "Rotate the vCenter password",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/privateCloudName"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
}
],
"x-ms-long-running-operation": true,
"responses": {
"202": {
"description": "The password rotation has started"
},
"204": {
"description": "The password rotation was successful"
},
"default": {
"description": "Error response describing why the operation failed",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"PrivateClouds_RotateVcenterPassword": {
"$ref": "./examples/PrivateClouds_RotateVcenterPassword.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateNsxtPassword": {
"post": {
"operationId": "PrivateClouds_RotateNsxtPassword",
"tags": [
"PrivateClouds"
],
"summary": "Rotate the NSX-T Manager password",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/privateCloudName"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
}
],
"x-ms-long-running-operation": true,
"responses": {
"202": {
"description": "The password rotation has started"
},
"204": {
"description": "The password rotation was successful"
},
"default": {
"description": "Error response describing why the operation failed",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"PrivateClouds_RotateNsxtPassword": {
"$ref": "./examples/PrivateClouds_RotateNsxtPassword.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters": {
"get": {
"operationId": "Clusters_List",
Expand Down Expand Up @@ -3930,28 +4016,6 @@
"items": {
"$ref": "#/definitions/IdentitySource"
}
},
"vcenterPassword": {
"description": "Indicate to rotate the vCenter admin password for the private cloud",
"type": "string",
"enum": [
"OnetimeRotate"
],
"x-ms-enum": {
"name": "VcsaAdminRotateEnum",
"modelAsString": true
}
},
"nsxtPassword": {
"description": "Indicate to rotate the NSX-T Manager password for the private cloud",
"type": "string",
"enum": [
"OnetimeRotate"
],
"x-ms-enum": {
"name": "NsxtAdminRotateEnum",
"modelAsString": true
}
}
}
},
Expand Down

0 comments on commit c7a5ce9

Please sign in to comment.