All URIs are relative to https://api.clerk.com/v1
Method | HTTP request | Description |
---|---|---|
create_saml_connection | POST /saml_connections | Create a SAML Connection |
delete_saml_connection | DELETE /saml_connections/{saml_connection_id} | Delete a SAML Connection |
get_saml_connection | GET /saml_connections/{saml_connection_id} | Retrieve a SAML Connection by ID |
list_saml_connections | GET /saml_connections | Get a list of SAML Connections for an instance |
update_saml_connection | PATCH /saml_connections/{saml_connection_id} | Update a SAML Connection |
create_saml_connection(opts)
Create a SAML Connection
Create a new SAML Connection.
require 'time'
require 'clerk-sdk-ruby-backend'
# setup authorization
ClerkBackend.configure do |config|
# Configure Bearer authorization (sk_<environment>_<secret value>): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = ClerkBackend::SAMLConnectionsApi.new
opts = {
create_saml_connection_request: ClerkBackend::CreateSAMLConnectionRequest.new({name: 'name_example', domain: 'domain_example', provider: 'saml_custom'}) # CreateSAMLConnectionRequest |
}
begin
# Create a SAML Connection
result = api_instance.create_saml_connection(opts)
p result
rescue ClerkBackend::ApiError => e
puts "Error when calling SAMLConnectionsApi->create_saml_connection: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_saml_connection_with_http_info(opts)
begin
# Create a SAML Connection
data, status_code, headers = api_instance.create_saml_connection_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <SchemasSAMLConnection>
rescue ClerkBackend::ApiError => e
puts "Error when calling SAMLConnectionsApi->create_saml_connection_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
create_saml_connection_request | CreateSAMLConnectionRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
delete_saml_connection(saml_connection_id)
Delete a SAML Connection
Deletes the SAML Connection whose ID matches the provided id
in the path.
require 'time'
require 'clerk-sdk-ruby-backend'
# setup authorization
ClerkBackend.configure do |config|
# Configure Bearer authorization (sk_<environment>_<secret value>): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = ClerkBackend::SAMLConnectionsApi.new
saml_connection_id = 'saml_connection_id_example' # String | The ID of the SAML Connection to delete
begin
# Delete a SAML Connection
result = api_instance.delete_saml_connection(saml_connection_id)
p result
rescue ClerkBackend::ApiError => e
puts "Error when calling SAMLConnectionsApi->delete_saml_connection: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> delete_saml_connection_with_http_info(saml_connection_id)
begin
# Delete a SAML Connection
data, status_code, headers = api_instance.delete_saml_connection_with_http_info(saml_connection_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <DeletedObject>
rescue ClerkBackend::ApiError => e
puts "Error when calling SAMLConnectionsApi->delete_saml_connection_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
saml_connection_id | String | The ID of the SAML Connection to delete |
- Content-Type: Not defined
- Accept: application/json
get_saml_connection(saml_connection_id)
Retrieve a SAML Connection by ID
Fetches the SAML Connection whose ID matches the provided saml_connection_id
in the path.
require 'time'
require 'clerk-sdk-ruby-backend'
# setup authorization
ClerkBackend.configure do |config|
# Configure Bearer authorization (sk_<environment>_<secret value>): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = ClerkBackend::SAMLConnectionsApi.new
saml_connection_id = 'saml_connection_id_example' # String | The ID of the SAML Connection
begin
# Retrieve a SAML Connection by ID
result = api_instance.get_saml_connection(saml_connection_id)
p result
rescue ClerkBackend::ApiError => e
puts "Error when calling SAMLConnectionsApi->get_saml_connection: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_saml_connection_with_http_info(saml_connection_id)
begin
# Retrieve a SAML Connection by ID
data, status_code, headers = api_instance.get_saml_connection_with_http_info(saml_connection_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <SchemasSAMLConnection>
rescue ClerkBackend::ApiError => e
puts "Error when calling SAMLConnectionsApi->get_saml_connection_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
saml_connection_id | String | The ID of the SAML Connection |
- Content-Type: Not defined
- Accept: application/json
list_saml_connections(opts)
Get a list of SAML Connections for an instance
Returns the list of SAML Connections for an instance. Results can be paginated using the optional limit
and offset
query parameters. The SAML Connections are ordered by descending creation date and the most recent will be returned first.
require 'time'
require 'clerk-sdk-ruby-backend'
# setup authorization
ClerkBackend.configure do |config|
# Configure Bearer authorization (sk_<environment>_<secret value>): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = ClerkBackend::SAMLConnectionsApi.new
opts = {
limit: 8.14, # Float | Applies a limit to the number of results returned. Can be used for paginating the results together with `offset`.
offset: 8.14 # Float | Skip the first `offset` results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with `limit`.
}
begin
# Get a list of SAML Connections for an instance
result = api_instance.list_saml_connections(opts)
p result
rescue ClerkBackend::ApiError => e
puts "Error when calling SAMLConnectionsApi->list_saml_connections: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> list_saml_connections_with_http_info(opts)
begin
# Get a list of SAML Connections for an instance
data, status_code, headers = api_instance.list_saml_connections_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <SAMLConnections>
rescue ClerkBackend::ApiError => e
puts "Error when calling SAMLConnectionsApi->list_saml_connections_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
limit | Float | Applies a limit to the number of results returned. Can be used for paginating the results together with `offset`. | [optional][default to 10] |
offset | Float | Skip the first `offset` results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with `limit`. | [optional][default to 0] |
- Content-Type: Not defined
- Accept: application/json
update_saml_connection(saml_connection_id, update_saml_connection_request)
Update a SAML Connection
Updates the SAML Connection whose ID matches the provided id
in the path.
require 'time'
require 'clerk-sdk-ruby-backend'
# setup authorization
ClerkBackend.configure do |config|
# Configure Bearer authorization (sk_<environment>_<secret value>): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = ClerkBackend::SAMLConnectionsApi.new
saml_connection_id = 'saml_connection_id_example' # String | The ID of the SAML Connection to update
update_saml_connection_request = ClerkBackend::UpdateSAMLConnectionRequest.new # UpdateSAMLConnectionRequest |
begin
# Update a SAML Connection
result = api_instance.update_saml_connection(saml_connection_id, update_saml_connection_request)
p result
rescue ClerkBackend::ApiError => e
puts "Error when calling SAMLConnectionsApi->update_saml_connection: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_saml_connection_with_http_info(saml_connection_id, update_saml_connection_request)
begin
# Update a SAML Connection
data, status_code, headers = api_instance.update_saml_connection_with_http_info(saml_connection_id, update_saml_connection_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <SchemasSAMLConnection>
rescue ClerkBackend::ApiError => e
puts "Error when calling SAMLConnectionsApi->update_saml_connection_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
saml_connection_id | String | The ID of the SAML Connection to update | |
update_saml_connection_request | UpdateSAMLConnectionRequest |
- Content-Type: application/json
- Accept: application/json