All URIs are relative to https://console.jumpcloud.com/api/v2
Method | HTTP request | Description |
---|---|---|
jc_enrollment_profiles_delete | DELETE /enrollmentprofiles/{enrollment_profile_id} | Delete Enrollment Profile |
jc_enrollment_profiles_get | GET /enrollmentprofiles/{enrollment_profile_id} | Get Enrollment Profile |
jc_enrollment_profiles_list | GET /enrollmentprofiles | List Enrollment Profiles |
jc_enrollment_profiles_post | POST /enrollmentprofiles | Create new Enrollment Profile |
jc_enrollment_profiles_put | PUT /enrollmentprofiles/{enrollment_profile_id} | Update Enrollment Profile |
JcEnrollmentProfile jc_enrollment_profiles_delete(enrollment_profile_id)
Delete Enrollment Profile
# load the gem
require 'jcapiv2'
# setup authorization
JCAPIv2.configure do |config|
# Configure API key authorization: x-api-key
config.api_key['x-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['x-api-key'] = 'Bearer'
end
api_instance = JCAPIv2::DefaultApi.new
enrollment_profile_id = "enrollment_profile_id_example" # String |
begin
#Delete Enrollment Profile
result = api_instance.jc_enrollment_profiles_delete(enrollment_profile_id)
p result
rescue JCAPIv2::ApiError => e
puts "Exception when calling DefaultApi->jc_enrollment_profiles_delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
enrollment_profile_id | String |
- Content-Type: application/json
- Accept: application/json
jc_enrollment_profiles_get(enrollment_profile_id, opts)
Get Enrollment Profile
# load the gem
require 'jcapiv2'
# setup authorization
JCAPIv2.configure do |config|
# Configure API key authorization: x-api-key
config.api_key['x-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['x-api-key'] = 'Bearer'
end
api_instance = JCAPIv2::DefaultApi.new
enrollment_profile_id = "enrollment_profile_id_example" # String |
opts = {
body: JCAPIv2::JcEnrollmentProfile.new # JcEnrollmentProfile |
}
begin
#Get Enrollment Profile
api_instance.jc_enrollment_profiles_get(enrollment_profile_id, opts)
rescue JCAPIv2::ApiError => e
puts "Exception when calling DefaultApi->jc_enrollment_profiles_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
enrollment_profile_id | String | ||
body | JcEnrollmentProfile | [optional] |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json
Array<JcEnrollmentProfile> jc_enrollment_profiles_list(opts)
List Enrollment Profiles
# load the gem
require 'jcapiv2'
# setup authorization
JCAPIv2.configure do |config|
# Configure API key authorization: x-api-key
config.api_key['x-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['x-api-key'] = 'Bearer'
end
api_instance = JCAPIv2::DefaultApi.new
opts = {
limit: 10, # Integer |
skip: 0, # Integer | The offset into the records to return.
}
begin
#List Enrollment Profiles
result = api_instance.jc_enrollment_profiles_list(opts)
p result
rescue JCAPIv2::ApiError => e
puts "Exception when calling DefaultApi->jc_enrollment_profiles_list: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
limit | Integer | [optional] [default to 10] | |
skip | Integer | The offset into the records to return. | [optional] [default to 0] |
- Content-Type: application/json
- Accept: application/json
JcEnrollmentProfile jc_enrollment_profiles_post(opts)
Create new Enrollment Profile
# load the gem
require 'jcapiv2'
# setup authorization
JCAPIv2.configure do |config|
# Configure API key authorization: x-api-key
config.api_key['x-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['x-api-key'] = 'Bearer'
end
api_instance = JCAPIv2::DefaultApi.new
opts = {
body: JCAPIv2::Body1.new # Body1 |
}
begin
#Create new Enrollment Profile
result = api_instance.jc_enrollment_profiles_post(opts)
p result
rescue JCAPIv2::ApiError => e
puts "Exception when calling DefaultApi->jc_enrollment_profiles_post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | Body1 | [optional] |
- Content-Type: application/json
- Accept: application/json
JcEnrollmentProfile jc_enrollment_profiles_put(enrollment_profile_id, opts)
Update Enrollment Profile
# load the gem
require 'jcapiv2'
# setup authorization
JCAPIv2.configure do |config|
# Configure API key authorization: x-api-key
config.api_key['x-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['x-api-key'] = 'Bearer'
end
api_instance = JCAPIv2::DefaultApi.new
enrollment_profile_id = "enrollment_profile_id_example" # String |
opts = {
body: JCAPIv2::Body2.new # Body2 |
}
begin
#Update Enrollment Profile
result = api_instance.jc_enrollment_profiles_put(enrollment_profile_id, opts)
p result
rescue JCAPIv2::ApiError => e
puts "Exception when calling DefaultApi->jc_enrollment_profiles_put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
enrollment_profile_id | String | ||
body | Body2 | [optional] |
- Content-Type: application/json
- Accept: application/json