All URIs are relative to http://localhost/api/v3
Method | HTTP request | Description |
---|---|---|
cryptoCertificatekeypairsCreate | POST /crypto/certificatekeypairs/ | |
cryptoCertificatekeypairsDestroy | DELETE /crypto/certificatekeypairs/{kp_uuid}/ | |
cryptoCertificatekeypairsGenerateCreate | POST /crypto/certificatekeypairs/generate/ | |
cryptoCertificatekeypairsList | GET /crypto/certificatekeypairs/ | |
cryptoCertificatekeypairsPartialUpdate | PATCH /crypto/certificatekeypairs/{kp_uuid}/ | |
cryptoCertificatekeypairsRetrieve | GET /crypto/certificatekeypairs/{kp_uuid}/ | |
cryptoCertificatekeypairsUpdate | PUT /crypto/certificatekeypairs/{kp_uuid}/ | |
cryptoCertificatekeypairsUsedByList | GET /crypto/certificatekeypairs/{kp_uuid}/used_by/ | |
cryptoCertificatekeypairsViewCertificateRetrieve | GET /crypto/certificatekeypairs/{kp_uuid}/view_certificate/ | |
cryptoCertificatekeypairsViewPrivateKeyRetrieve | GET /crypto/certificatekeypairs/{kp_uuid}/view_private_key/ |
CertificateKeyPair cryptoCertificatekeypairsCreate(certificateKeyPairRequest)
CertificateKeyPair Viewset
// Import classes:
//import io.goauthentik.api.infrastructure.*
//import io.goauthentik.api.models.*
val apiInstance = CryptoApi()
val certificateKeyPairRequest : CertificateKeyPairRequest = // CertificateKeyPairRequest |
try {
val result : CertificateKeyPair = apiInstance.cryptoCertificatekeypairsCreate(certificateKeyPairRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling CryptoApi#cryptoCertificatekeypairsCreate")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CryptoApi#cryptoCertificatekeypairsCreate")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
certificateKeyPairRequest | CertificateKeyPairRequest |
Configure authentik: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: application/json
- Accept: application/json
cryptoCertificatekeypairsDestroy(kpUuid)
CertificateKeyPair Viewset
// Import classes:
//import io.goauthentik.api.infrastructure.*
//import io.goauthentik.api.models.*
val apiInstance = CryptoApi()
val kpUuid : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | A UUID string identifying this Certificate-Key Pair.
try {
apiInstance.cryptoCertificatekeypairsDestroy(kpUuid)
} catch (e: ClientException) {
println("4xx response calling CryptoApi#cryptoCertificatekeypairsDestroy")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CryptoApi#cryptoCertificatekeypairsDestroy")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
kpUuid | java.util.UUID | A UUID string identifying this Certificate-Key Pair. |
null (empty response body)
Configure authentik: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json
CertificateKeyPair cryptoCertificatekeypairsGenerateCreate(certificateGenerationRequest)
Generate a new, self-signed certificate-key pair
// Import classes:
//import io.goauthentik.api.infrastructure.*
//import io.goauthentik.api.models.*
val apiInstance = CryptoApi()
val certificateGenerationRequest : CertificateGenerationRequest = // CertificateGenerationRequest |
try {
val result : CertificateKeyPair = apiInstance.cryptoCertificatekeypairsGenerateCreate(certificateGenerationRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling CryptoApi#cryptoCertificatekeypairsGenerateCreate")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CryptoApi#cryptoCertificatekeypairsGenerateCreate")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
certificateGenerationRequest | CertificateGenerationRequest |
Configure authentik: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: application/json
- Accept: application/json
PaginatedCertificateKeyPairList cryptoCertificatekeypairsList(hasKey, includeDetails, managed, name, ordering, page, pageSize, search)
CertificateKeyPair Viewset
// Import classes:
//import io.goauthentik.api.infrastructure.*
//import io.goauthentik.api.models.*
val apiInstance = CryptoApi()
val hasKey : kotlin.Boolean = true // kotlin.Boolean | Only return certificate-key pairs with keys
val includeDetails : kotlin.Boolean = true // kotlin.Boolean |
val managed : kotlin.String = managed_example // kotlin.String |
val name : kotlin.String = name_example // kotlin.String |
val ordering : kotlin.String = ordering_example // kotlin.String | Which field to use when ordering the results.
val page : kotlin.Int = 56 // kotlin.Int | A page number within the paginated result set.
val pageSize : kotlin.Int = 56 // kotlin.Int | Number of results to return per page.
val search : kotlin.String = search_example // kotlin.String | A search term.
try {
val result : PaginatedCertificateKeyPairList = apiInstance.cryptoCertificatekeypairsList(hasKey, includeDetails, managed, name, ordering, page, pageSize, search)
println(result)
} catch (e: ClientException) {
println("4xx response calling CryptoApi#cryptoCertificatekeypairsList")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CryptoApi#cryptoCertificatekeypairsList")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
hasKey | kotlin.Boolean | Only return certificate-key pairs with keys | [optional] |
includeDetails | kotlin.Boolean | [optional] [default to true] | |
managed | kotlin.String | [optional] | |
name | kotlin.String | [optional] | |
ordering | kotlin.String | Which field to use when ordering the results. | [optional] |
page | kotlin.Int | A page number within the paginated result set. | [optional] |
pageSize | kotlin.Int | Number of results to return per page. | [optional] |
search | kotlin.String | A search term. | [optional] |
PaginatedCertificateKeyPairList
Configure authentik: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json
CertificateKeyPair cryptoCertificatekeypairsPartialUpdate(kpUuid, patchedCertificateKeyPairRequest)
CertificateKeyPair Viewset
// Import classes:
//import io.goauthentik.api.infrastructure.*
//import io.goauthentik.api.models.*
val apiInstance = CryptoApi()
val kpUuid : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | A UUID string identifying this Certificate-Key Pair.
val patchedCertificateKeyPairRequest : PatchedCertificateKeyPairRequest = // PatchedCertificateKeyPairRequest |
try {
val result : CertificateKeyPair = apiInstance.cryptoCertificatekeypairsPartialUpdate(kpUuid, patchedCertificateKeyPairRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling CryptoApi#cryptoCertificatekeypairsPartialUpdate")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CryptoApi#cryptoCertificatekeypairsPartialUpdate")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
kpUuid | java.util.UUID | A UUID string identifying this Certificate-Key Pair. | |
patchedCertificateKeyPairRequest | PatchedCertificateKeyPairRequest | [optional] |
Configure authentik: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: application/json
- Accept: application/json
CertificateKeyPair cryptoCertificatekeypairsRetrieve(kpUuid)
CertificateKeyPair Viewset
// Import classes:
//import io.goauthentik.api.infrastructure.*
//import io.goauthentik.api.models.*
val apiInstance = CryptoApi()
val kpUuid : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | A UUID string identifying this Certificate-Key Pair.
try {
val result : CertificateKeyPair = apiInstance.cryptoCertificatekeypairsRetrieve(kpUuid)
println(result)
} catch (e: ClientException) {
println("4xx response calling CryptoApi#cryptoCertificatekeypairsRetrieve")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CryptoApi#cryptoCertificatekeypairsRetrieve")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
kpUuid | java.util.UUID | A UUID string identifying this Certificate-Key Pair. |
Configure authentik: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json
CertificateKeyPair cryptoCertificatekeypairsUpdate(kpUuid, certificateKeyPairRequest)
CertificateKeyPair Viewset
// Import classes:
//import io.goauthentik.api.infrastructure.*
//import io.goauthentik.api.models.*
val apiInstance = CryptoApi()
val kpUuid : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | A UUID string identifying this Certificate-Key Pair.
val certificateKeyPairRequest : CertificateKeyPairRequest = // CertificateKeyPairRequest |
try {
val result : CertificateKeyPair = apiInstance.cryptoCertificatekeypairsUpdate(kpUuid, certificateKeyPairRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling CryptoApi#cryptoCertificatekeypairsUpdate")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CryptoApi#cryptoCertificatekeypairsUpdate")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
kpUuid | java.util.UUID | A UUID string identifying this Certificate-Key Pair. | |
certificateKeyPairRequest | CertificateKeyPairRequest |
Configure authentik: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: application/json
- Accept: application/json
kotlin.collections.List<UsedBy> cryptoCertificatekeypairsUsedByList(kpUuid)
Get a list of all objects that use this object
// Import classes:
//import io.goauthentik.api.infrastructure.*
//import io.goauthentik.api.models.*
val apiInstance = CryptoApi()
val kpUuid : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | A UUID string identifying this Certificate-Key Pair.
try {
val result : kotlin.collections.List<UsedBy> = apiInstance.cryptoCertificatekeypairsUsedByList(kpUuid)
println(result)
} catch (e: ClientException) {
println("4xx response calling CryptoApi#cryptoCertificatekeypairsUsedByList")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CryptoApi#cryptoCertificatekeypairsUsedByList")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
kpUuid | java.util.UUID | A UUID string identifying this Certificate-Key Pair. |
kotlin.collections.List<UsedBy>
Configure authentik: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json
CertificateData cryptoCertificatekeypairsViewCertificateRetrieve(kpUuid, download)
Return certificate-key pairs certificate and log access
// Import classes:
//import io.goauthentik.api.infrastructure.*
//import io.goauthentik.api.models.*
val apiInstance = CryptoApi()
val kpUuid : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | A UUID string identifying this Certificate-Key Pair.
val download : kotlin.Boolean = true // kotlin.Boolean |
try {
val result : CertificateData = apiInstance.cryptoCertificatekeypairsViewCertificateRetrieve(kpUuid, download)
println(result)
} catch (e: ClientException) {
println("4xx response calling CryptoApi#cryptoCertificatekeypairsViewCertificateRetrieve")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CryptoApi#cryptoCertificatekeypairsViewCertificateRetrieve")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
kpUuid | java.util.UUID | A UUID string identifying this Certificate-Key Pair. | |
download | kotlin.Boolean | [optional] |
Configure authentik: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json
CertificateData cryptoCertificatekeypairsViewPrivateKeyRetrieve(kpUuid, download)
Return certificate-key pairs private key and log access
// Import classes:
//import io.goauthentik.api.infrastructure.*
//import io.goauthentik.api.models.*
val apiInstance = CryptoApi()
val kpUuid : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | A UUID string identifying this Certificate-Key Pair.
val download : kotlin.Boolean = true // kotlin.Boolean |
try {
val result : CertificateData = apiInstance.cryptoCertificatekeypairsViewPrivateKeyRetrieve(kpUuid, download)
println(result)
} catch (e: ClientException) {
println("4xx response calling CryptoApi#cryptoCertificatekeypairsViewPrivateKeyRetrieve")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CryptoApi#cryptoCertificatekeypairsViewPrivateKeyRetrieve")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
kpUuid | java.util.UUID | A UUID string identifying this Certificate-Key Pair. | |
download | kotlin.Boolean | [optional] |
Configure authentik: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json