All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
session_service_create | POST /api/v1/session | Create a new JWT for authentication and set a cookie if using HTTP |
session_service_delete | DELETE /api/v1/session | Delete an existing JWT cookie if using HTTP |
session_service_get_user_info | GET /api/v1/session/userinfo | Get the current user's info |
SessionSessionResponse session_service_create(body)
Create a new JWT for authentication and set a cookie if using HTTP
# load the gem
require 'argocd-client'
api_instance = ArgoCD::SessionServiceApi.new
body = ArgoCD::SessionSessionCreateRequest.new # SessionSessionCreateRequest |
begin
#Create a new JWT for authentication and set a cookie if using HTTP
result = api_instance.session_service_create(body)
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling SessionServiceApi->session_service_create: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | SessionSessionCreateRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
SessionSessionResponse session_service_delete
Delete an existing JWT cookie if using HTTP
# load the gem
require 'argocd-client'
api_instance = ArgoCD::SessionServiceApi.new
begin
#Delete an existing JWT cookie if using HTTP
result = api_instance.session_service_delete
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling SessionServiceApi->session_service_delete: #{e}"
end
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json
SessionGetUserInfoResponse session_service_get_user_info
Get the current user's info
# load the gem
require 'argocd-client'
api_instance = ArgoCD::SessionServiceApi.new
begin
#Get the current user's info
result = api_instance.session_service_get_user_info
p result
rescue ArgoCD::ApiError => e
puts "Exception when calling SessionServiceApi->session_service_get_user_info: #{e}"
end
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json