Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.52 KB

ResourcesApi.md

File metadata and controls

58 lines (39 loc) · 1.52 KB

ResourcesApi

All URIs are relative to http://localhost/nifi-api

Method HTTP request Description
getResources GET /resources Gets the available resources that support access/authorization policies

getResources

ResourcesEntity getResources()

Gets the available resources that support access/authorization policies

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.ResourcesApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

ResourcesApi apiInstance = new ResourcesApi();
try {
    ResourcesEntity result = apiInstance.getResources();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ResourcesApi#getResources");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

ResourcesEntity

Authorization

auth

HTTP request headers

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