Module: SAML
- Included in:
- DashboardAPI
- Defined in:
- lib/saml.rb
Overview
SAML section of the Meraki Dashboard API
Instance Method Summary collapse
-
#create_saml_role(org_id, options) ⇒ Hash
Create a new SAML role on an organization.
-
#list_saml_roles(org_id) ⇒ Array
List all SAML roles defined on an organization.
-
#remove_saml_role(org_id, saml_id) ⇒ Integer
Remove a single SAML role.
-
#return_saml_role(org_id, saml_id) ⇒ Hash
Return a single SAML role.
-
#update_saml_role(org_id, saml_id, options) ⇒ Hahs
Update an existing SAML role on an organization.
Instance Method Details
#create_saml_role(org_id, options) ⇒ Hash
Create a new SAML role on an organization
16 17 18 19 |
# File 'lib/saml.rb', line 16 def create_saml_role(org_id, ) self.make_api_call("/organizations/#{org_id}/samlRoles", 'POST', ) end |
#list_saml_roles(org_id) ⇒ Array
List all SAML roles defined on an organization
7 8 9 |
# File 'lib/saml.rb', line 7 def list_saml_roles(org_id) self.make_api_call("/organizations/#{org_id}/samlRoles", 'GET') end |
#remove_saml_role(org_id, saml_id) ⇒ Integer
Remove a single SAML role
44 45 46 |
# File 'lib/saml.rb', line 44 def remove_saml_role(org_id, saml_id) self.make_api_call("/organizations/#{org_id}/samlRoles/#{saml_id}", 'DELETE') end |
#return_saml_role(org_id, saml_id) ⇒ Hash
Return a single SAML role
36 37 38 |
# File 'lib/saml.rb', line 36 def return_saml_role(org_id, saml_id) self.make_api_call("/organizations/#{org_id}/samlRoles/#{saml_id}", 'GET') end |
#update_saml_role(org_id, saml_id, options) ⇒ Hahs
Update an existing SAML role on an organization
27 28 29 30 |
# File 'lib/saml.rb', line 27 def update_saml_role(org_id, saml_id, ) self.make_api_call("/organizations/#{org_id}/samlRoles/#{saml_id}", 'PUT', ) end |