swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector OEPResourcePartition API schemes: - https tags: - name: OEPResourcePartition paths: ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}/addPartition : post: tags: - OEPResourcePartition description: Method that gets called if new partition is to be added in a resource. operationId: microsoftAzureEnergyservicesAddpartition x-ms-long-running-operation: true parameters: - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter - in: path name: resourceName description: The resource name. required: true type: string - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter - in: body name: body description: add partition action payload schema: description: Request body. $ref: '#/definitions/DataPartitionAddOrRemoveRequest' responses: '202': description: The data partitions will be created asynchronously schema: $ref: '#/definitions/DataPartitionAddOrRemoveRequest' default: description: Error response describing the reason for operation failure. 404 - NotFound (Confidential Ledger could not be created/updated) schema: $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse x-ms-examples: EnergyServices_AddPartition_MaximumSet_Gen: $ref: ./examples/EnergyServices_AddPartition_MaximumSet_Gen.json summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Openenergyplatform Energyservices Resourcename Addpartition ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}/removePartition : post: tags: - OEPResourcePartition description: Method that gets called if new partition is to be removed from a resource. operationId: microsoftAzureEnergyservicesRemovepartition x-ms-long-running-operation: true parameters: - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter - in: path name: resourceName description: The resource name. required: true type: string - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter - in: body name: body description: remove partition action payload schema: description: Request body. $ref: '#/definitions/DataPartitionAddOrRemoveRequest' responses: '202': description: The data partitions will be deleted asynchronously schema: $ref: '#/definitions/DataPartitionAddOrRemoveRequest' default: description: Error response describing the reason for operation failure. 404 - NotFound (Confidential Ledger could not be created/updated) schema: $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse x-ms-examples: EnergyServices_RemovePartition_MaximumSet_Gen: $ref: ./examples/EnergyServices_RemovePartition_MaximumSet_Gen.json summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Openenergyplatform Energyservices Resourcename Removepartition ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}/listPartitions : post: tags: - OEPResourcePartition description: Method that gets called when list of partitions is requested. operationId: microsoftAzureEnergyservicesListpartitions parameters: - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter - in: path name: resourceName description: The resource name. required: true type: string - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter responses: '200': description: Success schema: $ref: '#/definitions/DataPartitionsListResult' default: description: Error response describing the reason for operation failure. 404 - NotFound (Confidential Ledger could not be created/updated) schema: $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse x-ms-examples: EnergyServices_ListPartitions_MaximumSet_Gen: $ref: ./examples/EnergyServices_ListPartitions_MaximumSet_Gen.json summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Openenergyplatform Energyservices Resourcename Listpartitions definitions: DataPartitionNames: type: object description: The list of Energy services resource's Data Partition Names. properties: name: type: string DataPartitionAddOrRemoveRequest: description: Defines the partition add/ delete action properties. type: object properties: name: $ref: '#/definitions/DataPartitionNames' DataPartitionsListResult: type: object description: List of data partitions. properties: dataPartitionInfo: type: array description: List of data partitions along with their properties in a given OEP resource. items: $ref: '#/definitions/DataPartitionProperties' x-ms-identifiers: [] DataPartitionProperties: description: Defines the properties of an individual data partition. type: object properties: name: description: Name of the data partition type: string provisioningState: description: Name of the data partition type: string x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'