# SwaggerClient::SystemsApi All URIs are relative to *http://localhost:4010* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_system**](SystemsApi.md#get_system) | **GET** /api/systems/{systemId} | Get system information for a specific system [**get_systems**](SystemsApi.md#get_systems) | **GET** /api/systems | Get system information # **get_system** > SystemResponse get_system(system_id, opts) Get system information for a specific system Returns the system matching provided parameters ### Example ```ruby # load the gem require 'swagger_client' # setup authorization SwaggerClient.configure do |config| # Configure API key authorization: apikey config.api_key['api-key'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['api-key'] = 'Bearer' # Configure API key authorization: mockType config.api_key['Prefer'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['Prefer'] = 'Bearer' # Configure API key authorization: userid config.api_key['user-uid'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['user-uid'] = 'Bearer' end api_instance = SwaggerClient::SystemsApi.new system_id = 56 # Integer | **System Id**: The unique system record identifier. opts = { include_package: true, # BOOLEAN | **Include Package**: Indicates if additional packages information is retrieved for queried system. policy: 'rmf' # String | **System Policy**: Filter query by system policy. If no value is specified and more than one policy is available, the default return is the RMF policy information. } begin #Get system information for a specific system result = api_instance.get_system(system_id, opts) p result rescue SwaggerClient::ApiError => e puts "Exception when calling SystemsApi->get_system: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **system_id** | **Integer**| **System Id**: The unique system record identifier. | **include_package** | **BOOLEAN**| **Include Package**: Indicates if additional packages information is retrieved for queried system. | [optional] [default to true] **policy** | **String**| **System Policy**: Filter query by system policy. If no value is specified and more than one policy is available, the default return is the RMF policy information. | [optional] [default to rmf] ### Return type [**SystemResponse**](SystemResponse.md) ### Authorization [apikey](../README.md#apikey), [mockType](../README.md#mockType), [userid](../README.md#userid) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json # **get_systems** > SystemResponse get_systems(opts) Get system information Returns all system(s) that match the query parameters ### Example ```ruby # load the gem require 'swagger_client' # setup authorization SwaggerClient.configure do |config| # Configure API key authorization: apikey config.api_key['api-key'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['api-key'] = 'Bearer' # Configure API key authorization: mockType config.api_key['Prefer'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['Prefer'] = 'Bearer' # Configure API key authorization: userid config.api_key['user-uid'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['user-uid'] = 'Bearer' end api_instance = SwaggerClient::SystemsApi.new opts = { include_package: true, # BOOLEAN | **Include Package**: Indicates if additional packages information is retrieved for queried system. registration_type: 'regular', # String | **Registration Type**: Filter record by selected registration type (single value or comma delimited values). *Available values:* assessAndAuthorize, assessOnly, guest, regular, functional, cloudServiceProvider, commonControlProvider ditpr_id: 'ditpr_id_example', # String | **DITPR ID**: Filter query by DoD Information Technology (IT) Portfolio Repository (DITPR). coams_id: 'coams_id_example', # String | **COAMS ID**: Filter query by Cyber Operational Attributes Management System (COAMS). policy: 'rmf', # String | **System Policy**: Filter query by system policy. If no value is specified and more than one policy is available, the default return is the RMF policy information. include_ditpr_metrics: false, # BOOLEAN | **Include DITPR**: Indicates if DITPR metrics are retrieved. This query string parameter can only be used in conjunction with the following parameters:
include_decommissioned: true, # BOOLEAN | **Include Decommissioned Systems**: Indicates if decommissioned systems are retrieved. If no value is specified, the default returns true to include decommissioned systems. reports_for_scorecard: true # BOOLEAN | **DoD Cyber Hygiene Scorecard**: Indicates if the system reports to the DoD Cyber Hygiene Scorecard. } begin #Get system information result = api_instance.get_systems(opts) p result rescue SwaggerClient::ApiError => e puts "Exception when calling SystemsApi->get_systems: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **include_package** | **BOOLEAN**| **Include Package**: Indicates if additional packages information is retrieved for queried system. | [optional] [default to true] **registration_type** | **String**| **Registration Type**: Filter record by selected registration type (single value or comma delimited values). *Available values:* assessAndAuthorize, assessOnly, guest, regular, functional, cloudServiceProvider, commonControlProvider | [optional] [default to regular] **ditpr_id** | **String**| **DITPR ID**: Filter query by DoD Information Technology (IT) Portfolio Repository (DITPR). | [optional] **coams_id** | **String**| **COAMS ID**: Filter query by Cyber Operational Attributes Management System (COAMS). | [optional] **policy** | **String**| **System Policy**: Filter query by system policy. If no value is specified and more than one policy is available, the default return is the RMF policy information. | [optional] [default to rmf] **include_ditpr_metrics** | **BOOLEAN**| **Include DITPR**: Indicates if DITPR metrics are retrieved. This query string parameter can only be used in conjunction with the following parameters:<br> <ul> <li>registrationType</li> <li>policy</li> </ul> | [optional] [default to false] **include_decommissioned** | **BOOLEAN**| **Include Decommissioned Systems**: Indicates if decommissioned systems are retrieved. If no value is specified, the default returns true to include decommissioned systems. | [optional] [default to true] **reports_for_scorecard** | **BOOLEAN**| **DoD Cyber Hygiene Scorecard**: Indicates if the system reports to the DoD Cyber Hygiene Scorecard. | [optional] [default to true] ### Return type [**SystemResponse**](SystemResponse.md) ### Authorization [apikey](../README.md#apikey), [mockType](../README.md#mockType), [userid](../README.md#userid) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json