Skip to content

Latest commit

 

History

History
92 lines (63 loc) · 2.08 KB

File metadata and controls

92 lines (63 loc) · 2.08 KB

GatewaysApi

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

getGatewayById

Gateway getGatewayById(gatewayId)

Returns the specified gateway

Example

// 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();
}

Parameters

Name Type Description Notes
gatewayId String The gateway id

Return type

Gateway

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getGateways

ODataResponseListGateway getGateways()

Returns a list of gateways

Example

// 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();
}

Parameters

This endpoint does not need any parameter.

Return type

ODataResponseListGateway

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json