All URIs are relative to https://api.us-2.crowdstrike.com
Method | HTTP request | Description |
---|---|---|
get_credentials | GET /container-security/entities/image-registry-credentials/v1 | Gets the registry credentials |
get_credentials
Gets the registry credentials
require 'time'
require 'crimson-falcon'
# Setup authorization
Falcon.configure do |config|
config.client_id = "Your_Client_ID"
config.client_secret = "Your_Client_Secret"
config.cloud = "us-1" # or "us-2", "eu-1", "us-gov1"
end
api_instance = Falcon::FalconContainer.new
begin
# Gets the registry credentials
result = api_instance.get_credentials
p result
rescue Falcon::ApiError => e
puts "Error when calling FalconContainer->get_credentials: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_credentials_with_http_info
begin
# Gets the registry credentials
data, status_code, headers = api_instance.get_credentials_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => <DomainRegistryCredentialsResponse>
rescue Falcon::ApiError => e
puts "Error when calling FalconContainer->get_credentials_with_http_info: #{e}"
end
This endpoint does not need any parameter.
DomainRegistryCredentialsResponse
oauth2
- Content-Type: Not defined
- Accept: application/json