import 'package:cloudflare_dart/api.dart';All URIs are relative to https://api.cloudflare.com/client/v4
| Method | HTTP request | Description |
|---|---|---|
| perHostnameAuthenticatedOriginPullDeleteHostnameClientCertificate | DELETE /zones/{zone_id}/origin_tls_client_auth/hostnames/certificates/{certificate_id} | Delete Hostname Client Certificate |
| perHostnameAuthenticatedOriginPullEnableOrDisableAHostnameForClientAuthentication | PUT /zones/{zone_id}/origin_tls_client_auth/hostnames | Enable or Disable a Hostname for Client Authentication |
| perHostnameAuthenticatedOriginPullGetTheHostnameClientCertificate | GET /zones/{zone_id}/origin_tls_client_auth/hostnames/certificates/{certificate_id} | Get the Hostname Client Certificate |
| perHostnameAuthenticatedOriginPullGetTheHostnameStatusForClientAuthentication | GET /zones/{zone_id}/origin_tls_client_auth/hostnames/{hostname} | Get the Hostname Status for Client Authentication |
| perHostnameAuthenticatedOriginPullListCertificates | GET /zones/{zone_id}/origin_tls_client_auth/hostnames/certificates | List Certificates |
| perHostnameAuthenticatedOriginPullUploadAHostnameClientCertificate | POST /zones/{zone_id}/origin_tls_client_auth/hostnames/certificates | Upload a Hostname Client Certificate |
TlsCertificatesAndHostnamesHostnameAuthenticatedOriginPullComponentsSchemasCertificateResponseSingle perHostnameAuthenticatedOriginPullDeleteHostnameClientCertificate(certificateId, zoneId)
Delete Hostname Client Certificate
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getPerHostnameAuthenticatedOriginPullApi();
final String certificateId = certificateId_example; // String |
final String zoneId = zoneId_example; // String |
try {
final response = api.perHostnameAuthenticatedOriginPullDeleteHostnameClientCertificate(certificateId, zoneId);
print(response);
} catch on DioException (e) {
print('Exception when calling PerHostnameAuthenticatedOriginPullApi->perHostnameAuthenticatedOriginPullDeleteHostnameClientCertificate: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| certificateId | String | ||
| zoneId | String |
TlsCertificatesAndHostnamesHostnameAuthenticatedOriginPullComponentsSchemasCertificateResponseSingle
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TlsCertificatesAndHostnamesHostnameAopResponseCollection perHostnameAuthenticatedOriginPullEnableOrDisableAHostnameForClientAuthentication(zoneId, perHostnameAuthenticatedOriginPullEnableOrDisableAHostnameForClientAuthenticationRequest)
Enable or Disable a Hostname for Client Authentication
Associate a hostname to a certificate and enable, disable or invalidate the association. If disabled, client certificate will not be sent to the hostname even if activated at the zone level. 100 maximum associations on a single certificate are allowed. Note: Use a null value for parameter enabled to invalidate the association.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getPerHostnameAuthenticatedOriginPullApi();
final String zoneId = zoneId_example; // String |
final PerHostnameAuthenticatedOriginPullEnableOrDisableAHostnameForClientAuthenticationRequest perHostnameAuthenticatedOriginPullEnableOrDisableAHostnameForClientAuthenticationRequest = ; // PerHostnameAuthenticatedOriginPullEnableOrDisableAHostnameForClientAuthenticationRequest |
try {
final response = api.perHostnameAuthenticatedOriginPullEnableOrDisableAHostnameForClientAuthentication(zoneId, perHostnameAuthenticatedOriginPullEnableOrDisableAHostnameForClientAuthenticationRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling PerHostnameAuthenticatedOriginPullApi->perHostnameAuthenticatedOriginPullEnableOrDisableAHostnameForClientAuthentication: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| zoneId | String | ||
| perHostnameAuthenticatedOriginPullEnableOrDisableAHostnameForClientAuthenticationRequest | PerHostnameAuthenticatedOriginPullEnableOrDisableAHostnameForClientAuthenticationRequest |
TlsCertificatesAndHostnamesHostnameAopResponseCollection
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TlsCertificatesAndHostnamesHostnameAuthenticatedOriginPullComponentsSchemasCertificateResponseSingle perHostnameAuthenticatedOriginPullGetTheHostnameClientCertificate(certificateId, zoneId)
Get the Hostname Client Certificate
Get the certificate by ID to be used for client authentication on a hostname.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getPerHostnameAuthenticatedOriginPullApi();
final String certificateId = certificateId_example; // String |
final String zoneId = zoneId_example; // String |
try {
final response = api.perHostnameAuthenticatedOriginPullGetTheHostnameClientCertificate(certificateId, zoneId);
print(response);
} catch on DioException (e) {
print('Exception when calling PerHostnameAuthenticatedOriginPullApi->perHostnameAuthenticatedOriginPullGetTheHostnameClientCertificate: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| certificateId | String | ||
| zoneId | String |
TlsCertificatesAndHostnamesHostnameAuthenticatedOriginPullComponentsSchemasCertificateResponseSingle
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TlsCertificatesAndHostnamesHostnameAopSingleResponse perHostnameAuthenticatedOriginPullGetTheHostnameStatusForClientAuthentication(hostname, zoneId)
Get the Hostname Status for Client Authentication
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getPerHostnameAuthenticatedOriginPullApi();
final String hostname = hostname_example; // String |
final String zoneId = zoneId_example; // String |
try {
final response = api.perHostnameAuthenticatedOriginPullGetTheHostnameStatusForClientAuthentication(hostname, zoneId);
print(response);
} catch on DioException (e) {
print('Exception when calling PerHostnameAuthenticatedOriginPullApi->perHostnameAuthenticatedOriginPullGetTheHostnameStatusForClientAuthentication: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| hostname | String | ||
| zoneId | String |
TlsCertificatesAndHostnamesHostnameAopSingleResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TlsCertificatesAndHostnamesHostnameAuthenticatedOriginPullComponentsSchemasCertificateResponseCollection perHostnameAuthenticatedOriginPullListCertificates(zoneId)
List Certificates
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getPerHostnameAuthenticatedOriginPullApi();
final String zoneId = zoneId_example; // String |
try {
final response = api.perHostnameAuthenticatedOriginPullListCertificates(zoneId);
print(response);
} catch on DioException (e) {
print('Exception when calling PerHostnameAuthenticatedOriginPullApi->perHostnameAuthenticatedOriginPullListCertificates: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| zoneId | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TlsCertificatesAndHostnamesHostnameAuthenticatedOriginPullComponentsSchemasCertificateResponseSingle perHostnameAuthenticatedOriginPullUploadAHostnameClientCertificate(zoneId, perHostnameAuthenticatedOriginPullUploadAHostnameClientCertificateRequest)
Upload a Hostname Client Certificate
Upload a certificate to be used for client authentication on a hostname. 10 hostname certificates per zone are allowed.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getPerHostnameAuthenticatedOriginPullApi();
final String zoneId = zoneId_example; // String |
final PerHostnameAuthenticatedOriginPullUploadAHostnameClientCertificateRequest perHostnameAuthenticatedOriginPullUploadAHostnameClientCertificateRequest = ; // PerHostnameAuthenticatedOriginPullUploadAHostnameClientCertificateRequest |
try {
final response = api.perHostnameAuthenticatedOriginPullUploadAHostnameClientCertificate(zoneId, perHostnameAuthenticatedOriginPullUploadAHostnameClientCertificateRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling PerHostnameAuthenticatedOriginPullApi->perHostnameAuthenticatedOriginPullUploadAHostnameClientCertificate: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| zoneId | String | ||
| perHostnameAuthenticatedOriginPullUploadAHostnameClientCertificateRequest | PerHostnameAuthenticatedOriginPullUploadAHostnameClientCertificateRequest |
TlsCertificatesAndHostnamesHostnameAuthenticatedOriginPullComponentsSchemasCertificateResponseSingle
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]