All URIs are relative to https://api.powerbi.com
| Method | HTTP request | Description |
|---|---|---|
| getGatewayById | GET /v1.0/myorg/gateways/{gatewayId} | Returns the specified gateway |
| getGateways | GET /v1.0/myorg/gateways | Returns a list of gateways |
Gateway getGatewayById(gatewayId)
Returns the specified gateway
// Import classes:
//import com.microsoft.powerbi.ApiException;
//import com.microsoft.powerbi.api.GatewaysApi;
GatewaysApi apiInstance = new GatewaysApi();
String gatewayId = "gatewayId_example"; // String | The gateway id
try {
Gateway result = apiInstance.getGatewayById(gatewayId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GatewaysApi#getGatewayById");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| gatewayId | String | The gateway id |
No authorization required
- Content-Type: Not defined
- Accept: application/json
ODataResponseListGateway getGateways()
Returns a list of gateways
// Import classes:
//import com.microsoft.powerbi.ApiException;
//import com.microsoft.powerbi.api.GatewaysApi;
GatewaysApi apiInstance = new GatewaysApi();
try {
ODataResponseListGateway result = apiInstance.getGateways();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GatewaysApi#getGateways");
e.printStackTrace();
}This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json