Skip to content

Latest commit

 

History

History
329 lines (237 loc) · 16.5 KB

File metadata and controls

329 lines (237 loc) · 16.5 KB

cloudflare_dart.api.PerHostnameAuthenticatedOriginPullApi

Load the API package

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

perHostnameAuthenticatedOriginPullDeleteHostnameClientCertificate

TlsCertificatesAndHostnamesHostnameAuthenticatedOriginPullComponentsSchemasCertificateResponseSingle perHostnameAuthenticatedOriginPullDeleteHostnameClientCertificate(certificateId, zoneId)

Delete Hostname Client Certificate

Example

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');
}

Parameters

Name Type Description Notes
certificateId String
zoneId String

Return type

TlsCertificatesAndHostnamesHostnameAuthenticatedOriginPullComponentsSchemasCertificateResponseSingle

Authorization

api_key, api_email

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

perHostnameAuthenticatedOriginPullEnableOrDisableAHostnameForClientAuthentication

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.

Example

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');
}

Parameters

Name Type Description Notes
zoneId String
perHostnameAuthenticatedOriginPullEnableOrDisableAHostnameForClientAuthenticationRequest PerHostnameAuthenticatedOriginPullEnableOrDisableAHostnameForClientAuthenticationRequest

Return type

TlsCertificatesAndHostnamesHostnameAopResponseCollection

Authorization

api_key, api_email

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

perHostnameAuthenticatedOriginPullGetTheHostnameClientCertificate

TlsCertificatesAndHostnamesHostnameAuthenticatedOriginPullComponentsSchemasCertificateResponseSingle perHostnameAuthenticatedOriginPullGetTheHostnameClientCertificate(certificateId, zoneId)

Get the Hostname Client Certificate

Get the certificate by ID to be used for client authentication on a hostname.

Example

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');
}

Parameters

Name Type Description Notes
certificateId String
zoneId String

Return type

TlsCertificatesAndHostnamesHostnameAuthenticatedOriginPullComponentsSchemasCertificateResponseSingle

Authorization

api_key, api_email

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

perHostnameAuthenticatedOriginPullGetTheHostnameStatusForClientAuthentication

TlsCertificatesAndHostnamesHostnameAopSingleResponse perHostnameAuthenticatedOriginPullGetTheHostnameStatusForClientAuthentication(hostname, zoneId)

Get the Hostname Status for Client Authentication

Example

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');
}

Parameters

Name Type Description Notes
hostname String
zoneId String

Return type

TlsCertificatesAndHostnamesHostnameAopSingleResponse

Authorization

api_key, api_email

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

perHostnameAuthenticatedOriginPullListCertificates

TlsCertificatesAndHostnamesHostnameAuthenticatedOriginPullComponentsSchemasCertificateResponseCollection perHostnameAuthenticatedOriginPullListCertificates(zoneId)

List Certificates

Example

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');
}

Parameters

Name Type Description Notes
zoneId String

Return type

TlsCertificatesAndHostnamesHostnameAuthenticatedOriginPullComponentsSchemasCertificateResponseCollection

Authorization

api_key, api_email

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

perHostnameAuthenticatedOriginPullUploadAHostnameClientCertificate

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.

Example

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');
}

Parameters

Name Type Description Notes
zoneId String
perHostnameAuthenticatedOriginPullUploadAHostnameClientCertificateRequest PerHostnameAuthenticatedOriginPullUploadAHostnameClientCertificateRequest

Return type

TlsCertificatesAndHostnamesHostnameAuthenticatedOriginPullComponentsSchemasCertificateResponseSingle

Authorization

api_key, api_email

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]