Class: Falcon::ExposureManagement
- Inherits:
-
Object
- Object
- Falcon::ExposureManagement
- Defined in:
- lib/crimson-falcon/api/exposure_management.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#aggregate_external_assets(body, opts = {}) ⇒ MsaAggregatesResponse
Returns external assets aggregates.
-
#aggregate_external_assets_with_http_info(body, opts = {}) ⇒ Array<(MsaAggregatesResponse, Integer, Hash)>
Returns external assets aggregates.
-
#blob_download_external_assets(asset_id, hash, opts = {}) ⇒ Array<Integer>
Download the entire contents of the blob.
-
#blob_download_external_assets_with_http_info(asset_id, hash, opts = {}) ⇒ Array<(Array<Integer>, Integer, Hash)>
Download the entire contents of the blob.
-
#blob_preview_external_assets(asset_id, hash, opts = {}) ⇒ DomainExternalAssetsBlobAPITypeV1
Download a preview of the blob.
-
#blob_preview_external_assets_with_http_info(asset_id, hash, opts = {}) ⇒ Array<(DomainExternalAssetsBlobAPITypeV1, Integer, Hash)>
Download a preview of the blob.
-
#combined_ecosystem_subsidiaries(opts = {}) ⇒ DomainFemEcosystemSubsidiariesEntitiesResponse
Retrieves a list of ecosystem subsidiaries with their detailed information.
-
#combined_ecosystem_subsidiaries_with_http_info(opts = {}) ⇒ Array<(DomainFemEcosystemSubsidiariesEntitiesResponse, Integer, Hash)>
Retrieves a list of ecosystem subsidiaries with their detailed information.
-
#delete_external_assets(ids, body, opts = {}) ⇒ MsaspecQueryResponse
Delete multiple external assets.
-
#delete_external_assets_with_http_info(ids, body, opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Delete multiple external assets.
-
#get_ecosystem_subsidiaries(ids, opts = {}) ⇒ DomainFemEcosystemSubsidiariesEntitiesResponse
Retrieves detailed information about ecosystem subsidiaries by ID.
-
#get_ecosystem_subsidiaries_with_http_info(ids, opts = {}) ⇒ Array<(DomainFemEcosystemSubsidiariesEntitiesResponse, Integer, Hash)>
Retrieves detailed information about ecosystem subsidiaries by ID.
-
#get_external_assets(ids, opts = {}) ⇒ DomainExternalAssetsAPITypeV1
Get details on external assets by providing one or more IDs.
-
#get_external_assets_with_http_info(ids, opts = {}) ⇒ Array<(DomainExternalAssetsAPITypeV1, Integer, Hash)>
Get details on external assets by providing one or more IDs.
-
#initialize(api_client = ApiClient.default) ⇒ ExposureManagement
constructor
A new instance of ExposureManagement.
-
#patch_external_assets(body, opts = {}) ⇒ DomainExternalAssetsAPITypeV1
Update the details of external assets.
-
#patch_external_assets_with_http_info(body, opts = {}) ⇒ Array<(DomainExternalAssetsAPITypeV1, Integer, Hash)>
Update the details of external assets.
-
#post_external_assets_inventory_v1(body, opts = {}) ⇒ InventoryapiUserExternalAssetCreateResponseV1
Add external assets for external asset scanning.
-
#post_external_assets_inventory_v1_with_http_info(body, opts = {}) ⇒ Array<(InventoryapiUserExternalAssetCreateResponseV1, Integer, Hash)>
Add external assets for external asset scanning.
-
#query_ecosystem_subsidiaries(opts = {}) ⇒ DomainFemEcosystemSubsidiariesQueryResponse
Retrieves a list of IDs for ecosystem subsidiaries.
-
#query_ecosystem_subsidiaries_with_http_info(opts = {}) ⇒ Array<(DomainFemEcosystemSubsidiariesQueryResponse, Integer, Hash)>
Retrieves a list of IDs for ecosystem subsidiaries.
-
#query_external_assets(opts = {}) ⇒ MsaspecQueryResponse
Get a list of external asset IDs that match the provided filter conditions.
-
#query_external_assets_v2(opts = {}) ⇒ DomainDiscoverAPIResponse
Get a list of external asset IDs that match the provided filter conditions.
-
#query_external_assets_v2_with_http_info(opts = {}) ⇒ Array<(DomainDiscoverAPIResponse, Integer, Hash)>
Get a list of external asset IDs that match the provided filter conditions.
-
#query_external_assets_with_http_info(opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Get a list of external asset IDs that match the provided filter conditions.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ ExposureManagement
Returns a new instance of ExposureManagement.
36 37 38 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 36 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
34 35 36 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 34 def api_client @api_client end |
Instance Method Details
#aggregate_external_assets(body, opts = {}) ⇒ MsaAggregatesResponse
Returns external assets aggregates. Returns external assets aggregates as specified via JSON in request body.
44 45 46 47 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 44 def aggregate_external_assets(body, opts = {}) data, _status_code, _headers = aggregate_external_assets_with_http_info(body, opts) data end |
#aggregate_external_assets_with_http_info(body, opts = {}) ⇒ Array<(MsaAggregatesResponse, Integer, Hash)>
Returns external assets aggregates. Returns external assets aggregates as specified via JSON in request body.
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 54 def aggregate_external_assets_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ExposureManagement.aggregate_external_assets ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ExposureManagement.aggregate_external_assets" end # resource path local_var_path = '/fem/aggregates/external-assets/v1' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'MsaAggregatesResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ExposureManagement.aggregate_external_assets", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ExposureManagement#aggregate_external_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#blob_download_external_assets(asset_id, hash, opts = {}) ⇒ Array<Integer>
Download the entire contents of the blob. The relative link to this endpoint is returned in the GET /entities/external-assets/v1 request. Download the entire contents of the blob.
113 114 115 116 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 113 def blob_download_external_assets(asset_id, hash, opts = {}) data, _status_code, _headers = blob_download_external_assets_with_http_info(asset_id, hash, opts) data end |
#blob_download_external_assets_with_http_info(asset_id, hash, opts = {}) ⇒ Array<(Array<Integer>, Integer, Hash)>
Download the entire contents of the blob. The relative link to this endpoint is returned in the GET /entities/external-assets/v1 request. Download the entire contents of the blob.
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 124 def blob_download_external_assets_with_http_info(asset_id, hash, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ExposureManagement.blob_download_external_assets ...' end # verify the required parameter 'asset_id' is set if @api_client.config.client_side_validation && asset_id.nil? fail ArgumentError, "Missing the required parameter 'asset_id' when calling ExposureManagement.blob_download_external_assets" end # verify the required parameter 'hash' is set if @api_client.config.client_side_validation && hash.nil? fail ArgumentError, "Missing the required parameter 'hash' when calling ExposureManagement.blob_download_external_assets" end # resource path local_var_path = '/fem/entities/blobs-download/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'assetId'] = asset_id query_params[:'hash'] = hash # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream', 'application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<Integer>' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ExposureManagement.blob_download_external_assets", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ExposureManagement#blob_download_external_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#blob_preview_external_assets(asset_id, hash, opts = {}) ⇒ DomainExternalAssetsBlobAPITypeV1
Download a preview of the blob. The relative link to this endpoint is returned in the GET /entities/external-assets/v1 request. Download a preview of the blob.
184 185 186 187 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 184 def blob_preview_external_assets(asset_id, hash, opts = {}) data, _status_code, _headers = blob_preview_external_assets_with_http_info(asset_id, hash, opts) data end |
#blob_preview_external_assets_with_http_info(asset_id, hash, opts = {}) ⇒ Array<(DomainExternalAssetsBlobAPITypeV1, Integer, Hash)>
Download a preview of the blob. The relative link to this endpoint is returned in the GET /entities/external-assets/v1 request. Download a preview of the blob.
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 195 def blob_preview_external_assets_with_http_info(asset_id, hash, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ExposureManagement.blob_preview_external_assets ...' end # verify the required parameter 'asset_id' is set if @api_client.config.client_side_validation && asset_id.nil? fail ArgumentError, "Missing the required parameter 'asset_id' when calling ExposureManagement.blob_preview_external_assets" end # verify the required parameter 'hash' is set if @api_client.config.client_side_validation && hash.nil? fail ArgumentError, "Missing the required parameter 'hash' when calling ExposureManagement.blob_preview_external_assets" end # resource path local_var_path = '/fem/entities/blobs-preview/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'assetId'] = asset_id query_params[:'hash'] = hash # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'DomainExternalAssetsBlobAPITypeV1' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ExposureManagement.blob_preview_external_assets", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ExposureManagement#blob_preview_external_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#combined_ecosystem_subsidiaries(opts = {}) ⇒ DomainFemEcosystemSubsidiariesEntitiesResponse
Retrieves a list of ecosystem subsidiaries with their detailed information.
257 258 259 260 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 257 def combined_ecosystem_subsidiaries(opts = {}) data, _status_code, _headers = combined_ecosystem_subsidiaries_with_http_info(opts) data end |
#combined_ecosystem_subsidiaries_with_http_info(opts = {}) ⇒ Array<(DomainFemEcosystemSubsidiariesEntitiesResponse, Integer, Hash)>
Retrieves a list of ecosystem subsidiaries with their detailed information.
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 270 def combined_ecosystem_subsidiaries_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ExposureManagement.combined_ecosystem_subsidiaries ...' end # resource path local_var_path = '/fem/combined/ecosystem-subsidiaries/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'version_id'] = opts[:'version_id'] if !opts[:'version_id'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'DomainFemEcosystemSubsidiariesEntitiesResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ExposureManagement.combined_ecosystem_subsidiaries", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ExposureManagement#combined_ecosystem_subsidiaries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_external_assets(ids, body, opts = {}) ⇒ MsaspecQueryResponse
Delete multiple external assets.
324 325 326 327 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 324 def delete_external_assets(ids, body, opts = {}) data, _status_code, _headers = delete_external_assets_with_http_info(ids, body, opts) data end |
#delete_external_assets_with_http_info(ids, body, opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Delete multiple external assets.
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 334 def delete_external_assets_with_http_info(ids, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ExposureManagement.delete_external_assets ...' end # verify the required parameter 'ids' is set if @api_client.config.client_side_validation && ids.nil? fail ArgumentError, "Missing the required parameter 'ids' when calling ExposureManagement.delete_external_assets" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ExposureManagement.delete_external_assets" end # resource path local_var_path = '/fem/entities/external-assets/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'ids'] = @api_client.build_collection_param(ids, :multi) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'MsaspecQueryResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ExposureManagement.delete_external_assets", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ExposureManagement#delete_external_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_ecosystem_subsidiaries(ids, opts = {}) ⇒ DomainFemEcosystemSubsidiariesEntitiesResponse
Retrieves detailed information about ecosystem subsidiaries by ID.
397 398 399 400 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 397 def get_ecosystem_subsidiaries(ids, opts = {}) data, _status_code, _headers = get_ecosystem_subsidiaries_with_http_info(ids, opts) data end |
#get_ecosystem_subsidiaries_with_http_info(ids, opts = {}) ⇒ Array<(DomainFemEcosystemSubsidiariesEntitiesResponse, Integer, Hash)>
Retrieves detailed information about ecosystem subsidiaries by ID.
407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 407 def get_ecosystem_subsidiaries_with_http_info(ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ExposureManagement.get_ecosystem_subsidiaries ...' end # verify the required parameter 'ids' is set if @api_client.config.client_side_validation && ids.nil? fail ArgumentError, "Missing the required parameter 'ids' when calling ExposureManagement.get_ecosystem_subsidiaries" end # resource path local_var_path = '/fem/entities/ecosystem-subsidiaries/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'ids'] = @api_client.build_collection_param(ids, :multi) query_params[:'version_id'] = opts[:'version_id'] if !opts[:'version_id'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'DomainFemEcosystemSubsidiariesEntitiesResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ExposureManagement.get_ecosystem_subsidiaries", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ExposureManagement#get_ecosystem_subsidiaries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_external_assets(ids, opts = {}) ⇒ DomainExternalAssetsAPITypeV1
Get details on external assets by providing one or more IDs.
461 462 463 464 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 461 def get_external_assets(ids, opts = {}) data, _status_code, _headers = get_external_assets_with_http_info(ids, opts) data end |
#get_external_assets_with_http_info(ids, opts = {}) ⇒ Array<(DomainExternalAssetsAPITypeV1, Integer, Hash)>
Get details on external assets by providing one or more IDs.
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 470 def get_external_assets_with_http_info(ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ExposureManagement.get_external_assets ...' end # verify the required parameter 'ids' is set if @api_client.config.client_side_validation && ids.nil? fail ArgumentError, "Missing the required parameter 'ids' when calling ExposureManagement.get_external_assets" end # resource path local_var_path = '/fem/entities/external-assets/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'ids'] = @api_client.build_collection_param(ids, :multi) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'DomainExternalAssetsAPITypeV1' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ExposureManagement.get_external_assets", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ExposureManagement#get_external_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_external_assets(body, opts = {}) ⇒ DomainExternalAssetsAPITypeV1
Update the details of external assets.
523 524 525 526 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 523 def patch_external_assets(body, opts = {}) data, _status_code, _headers = patch_external_assets_with_http_info(body, opts) data end |
#patch_external_assets_with_http_info(body, opts = {}) ⇒ Array<(DomainExternalAssetsAPITypeV1, Integer, Hash)>
Update the details of external assets.
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 532 def patch_external_assets_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ExposureManagement.patch_external_assets ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ExposureManagement.patch_external_assets" end # resource path local_var_path = '/fem/entities/external-assets/v1' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'DomainExternalAssetsAPITypeV1' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ExposureManagement.patch_external_assets", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ExposureManagement#patch_external_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_external_assets_inventory_v1(body, opts = {}) ⇒ InventoryapiUserExternalAssetCreateResponseV1
Add external assets for external asset scanning.
589 590 591 592 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 589 def post_external_assets_inventory_v1(body, opts = {}) data, _status_code, _headers = post_external_assets_inventory_v1_with_http_info(body, opts) data end |
#post_external_assets_inventory_v1_with_http_info(body, opts = {}) ⇒ Array<(InventoryapiUserExternalAssetCreateResponseV1, Integer, Hash)>
Add external assets for external asset scanning.
598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 598 def post_external_assets_inventory_v1_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ExposureManagement.post_external_assets_inventory_v1 ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ExposureManagement.post_external_assets_inventory_v1" end # resource path local_var_path = '/fem/entities/external-asset-inventory/v1' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'InventoryapiUserExternalAssetCreateResponseV1' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ExposureManagement.post_external_assets_inventory_v1", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ExposureManagement#post_external_assets_inventory_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#query_ecosystem_subsidiaries(opts = {}) ⇒ DomainFemEcosystemSubsidiariesQueryResponse
Retrieves a list of IDs for ecosystem subsidiaries. Use these IDs with the /entities/ecosystem-subsidiaries/v1 endpoints.
659 660 661 662 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 659 def query_ecosystem_subsidiaries(opts = {}) data, _status_code, _headers = query_ecosystem_subsidiaries_with_http_info(opts) data end |
#query_ecosystem_subsidiaries_with_http_info(opts = {}) ⇒ Array<(DomainFemEcosystemSubsidiariesQueryResponse, Integer, Hash)>
Retrieves a list of IDs for ecosystem subsidiaries. Use these IDs with the /entities/ecosystem-subsidiaries/v1 endpoints.
672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 672 def query_ecosystem_subsidiaries_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ExposureManagement.query_ecosystem_subsidiaries ...' end # resource path local_var_path = '/fem/queries/ecosystem-subsidiaries/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'version_id'] = opts[:'version_id'] if !opts[:'version_id'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'DomainFemEcosystemSubsidiariesQueryResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ExposureManagement.query_ecosystem_subsidiaries", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ExposureManagement#query_ecosystem_subsidiaries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#query_external_assets(opts = {}) ⇒ MsaspecQueryResponse
Get a list of external asset IDs that match the provided filter conditions. Use these IDs with the /entities/external-assets/v1 endpoints
728 729 730 731 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 728 def query_external_assets(opts = {}) data, _status_code, _headers = query_external_assets_with_http_info(opts) data end |
#query_external_assets_v2(opts = {}) ⇒ DomainDiscoverAPIResponse
Get a list of external asset IDs that match the provided filter conditions. Use these IDs with the /entities/external-assets/v1 endpoint
795 796 797 798 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 795 def query_external_assets_v2(opts = {}) data, _status_code, _headers = query_external_assets_v2_with_http_info(opts) data end |
#query_external_assets_v2_with_http_info(opts = {}) ⇒ Array<(DomainDiscoverAPIResponse, Integer, Hash)>
Get a list of external asset IDs that match the provided filter conditions. Use these IDs with the /entities/external-assets/v1 endpoint
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 807 def query_external_assets_v2_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ExposureManagement.query_external_assets_v2 ...' end # resource path local_var_path = '/fem/queries/external-assets/v2' # query parameters query_params = opts[:query_params] || {} query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'DomainDiscoverAPIResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ExposureManagement.query_external_assets_v2", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ExposureManagement#query_external_assets_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#query_external_assets_with_http_info(opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>
Get a list of external asset IDs that match the provided filter conditions. Use these IDs with the /entities/external-assets/v1 endpoints
740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 |
# File 'lib/crimson-falcon/api/exposure_management.rb', line 740 def query_external_assets_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ExposureManagement.query_external_assets ...' end # resource path local_var_path = '/fem/queries/external-assets/v1' # query parameters query_params = opts[:query_params] || {} query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'MsaspecQueryResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oauth2'] = opts.merge( :operation => :"ExposureManagement.query_external_assets", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ExposureManagement#query_external_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |