@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api FabricAdminClient
@base https://management.azure.com
@version 2016-05-01
@auth OAuth2
@endpoints 3
@toc subscriptions(3)

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/infraRoles/{infraRole}
@desc Returns the requested infrastructure role description.
@required {infraRole: any # Infrastructure role name.}
@returns(200) OK
@errors {404: NOT FOUND}

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/infraRoles
@desc Returns a list of all infrastructure roles at a location.
@returns(200) OK
@errors {404: NOT FOUND}

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/infraRoles/{infraRole}/Restart
@desc Restarts the requested infrastructure role.
@required {infraRole: any # Infrastructure role name.}
@returns(200) OK
@returns(202) ACCEPTED

@end
