swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector ClusterOperations API schemes: - https tags: - name: ClusterOperations paths: ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/restart : post: description: Restarts all nodes in the cluster. tags: - ClusterOperations operationId: microsoftAzureClustersRestart x-ms-long-running-operation: true x-ms-long-running-operation-options: final-state-via: location x-ms-examples: Restart all servers in the cluster: $ref: ./examples/ClusterRestart.json parameters: - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter - $ref: '#/parameters/ClusterNameParameter' responses: '202': description: Accepted headers: location: type: string azure-async-operation: type: string default: description: Error response describing why the operation failed. schema: $ref: ../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Dbforpostgresql Servergroupsv2 Clustername Restart ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/start : post: description: Starts stopped compute on all cluster nodes. tags: - ClusterOperations operationId: microsoftAzureClustersStart x-ms-long-running-operation: true x-ms-long-running-operation-options: final-state-via: location x-ms-examples: Start all servers in the cluster: $ref: ./examples/ClusterStart.json parameters: - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter - $ref: '#/parameters/ClusterNameParameter' responses: '200': description: OK '202': description: Accepted headers: location: type: string azure-async-operation: type: string default: description: Error response describing why the operation failed. schema: $ref: ../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Dbforpostgresql Servergroupsv2 Clustername Start ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/stop : post: description: Stops compute on all cluster nodes. tags: - ClusterOperations operationId: microsoftAzureClustersStop x-ms-long-running-operation: true x-ms-long-running-operation-options: final-state-via: location x-ms-examples: Stop all servers in the cluster: $ref: ./examples/ClusterStop.json parameters: - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter - $ref: '#/parameters/ClusterNameParameter' responses: '200': description: OK '202': description: Accepted headers: location: type: string azure-async-operation: type: string default: description: Error response describing why the operation failed. schema: $ref: ../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Dbforpostgresql Servergroupsv2 Clustername Stop ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/promote : post: description: Promotes read replica cluster to an independent read-write cluster. tags: - ClusterOperations operationId: microsoftAzureClustersPromotereadreplica x-ms-long-running-operation: true x-ms-long-running-operation-options: final-state-via: location x-ms-examples: Promote read replica cluster to an independent read-write cluster.: $ref: ./examples/ClusterPromoteReadReplica.json parameters: - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter - $ref: '#/parameters/ClusterNameParameter' - name: promoteRequest in: body schema: $ref: '#/definitions/PromoteRequest' description: The parameter for enabling geo-redundant backup while promoting read replica. responses: '202': description: Accepted headers: location: type: string azure-async-operation: type: string default: description: Error response describing why the operation failed. schema: $ref: ../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Dbforpostgresql Servergroupsv2 Clustername Promote definitions: PromoteRequest: description: Request from client to promote geo-redundant replica type: object properties: enableGeoBackup: type: boolean description: Cluster name to verify. parameters: ClusterNameParameter: name: clusterName in: path required: true type: string description: The name of the cluster. pattern: ^(?![0-9]+$)(?!-)[a-z0-9-]{3,40}(?