Skip to content

Latest commit

 

History

History
83 lines (62 loc) · 3.69 KB

AnsibleInventoryScanIngestApi.md

File metadata and controls

83 lines (62 loc) · 3.69 KB

AnsibleInventoryScanIngestApi

All URIs are relative to http://localhost

Method HTTP request Description
ansibleInventoryScanIngestIngestAnsibleInventoryScan POST /api/v{version}/Ingest/AnsibleInventoryScan

ansibleInventoryScanIngestIngestAnsibleInventoryScan

ansibleInventoryScanIngestIngestAnsibleInventoryScan(writeLayerID, searchLayerIDs, version, ansibleInventoryScanDTO)

Example

// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.AnsibleInventoryScanIngestApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("http://localhost");
    
    // Configure OAuth2 access token for authorization: oauth2
    OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
    oauth2.setAccessToken("YOUR ACCESS TOKEN");

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

    AnsibleInventoryScanIngestApi apiInstance = new AnsibleInventoryScanIngestApi(defaultClient);
    String writeLayerID = "writeLayerID_example"; // String | 
    List<String> searchLayerIDs = Arrays.asList(); // List<String> | 
    String version = "version_example"; // String | 
    AnsibleInventoryScanDTO ansibleInventoryScanDTO = new AnsibleInventoryScanDTO(); // AnsibleInventoryScanDTO | 
    try {
      apiInstance.ansibleInventoryScanIngestIngestAnsibleInventoryScan(writeLayerID, searchLayerIDs, version, ansibleInventoryScanDTO);
    } catch (ApiException e) {
      System.err.println("Exception when calling AnsibleInventoryScanIngestApi#ansibleInventoryScanIngestIngestAnsibleInventoryScan");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
writeLayerID String
searchLayerIDs List<String>
version String
ansibleInventoryScanDTO AnsibleInventoryScanDTO

Return type

null (empty response body)

Authorization

oauth2, oauth2

HTTP request headers

  • Content-Type: application/json, application/json;odata.metadata=minimal;odata.streaming=true, application/json;odata.metadata=minimal;odata.streaming=false, application/json;odata.metadata=minimal, application/json;odata.metadata=full;odata.streaming=true, application/json;odata.metadata=full;odata.streaming=false, application/json;odata.metadata=full, application/json;odata.metadata=none;odata.streaming=true, application/json;odata.metadata=none;odata.streaming=false, application/json;odata.metadata=none, application/json;odata.streaming=true, application/json;odata.streaming=false, application/xml, text/plain, text/json, application/*+json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 Success -