Skip to content

Add support for API Shield client certificates endpoints#1686

Closed
arkadiuss wants to merge 5 commits intocloudflare:masterfrom
arkadiuss:api_shield_client_certificates_endpoints
Closed

Add support for API Shield client certificates endpoints#1686
arkadiuss wants to merge 5 commits intocloudflare:masterfrom
arkadiuss:api_shield_client_certificates_endpoints

Conversation

@arkadiuss
Copy link
Copy Markdown

@arkadiuss arkadiuss commented Apr 7, 2024

Hello! I would like to add support for "API Shield client certificates for a zone" endpoints (docs) because the functionality is missing in the current version and would be useful especially in the Terraform provider. I did my best to follow practices from other places.

Description

I found an issue created some time ago here. Changes include implementation of the following endpoints:

Has your change been tested?

Unit tests and running the new functions locally on my account.

Screenshots (if appropriate):

Types of changes

What sort of change does your code introduce/modify?

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • This change is using publicly documented in cloudflare/api-schemas
    and relies on stable APIs.

@arkadiuss arkadiuss requested a review from jacobbednarz as a code owner April 7, 2024 15:03
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 7, 2024

changelog detected ✅

@jacobbednarz
Copy link
Copy Markdown
Contributor

thanks for the effort with the PR here!

unfortunately, v2 is pretty close to being released and it looks like all of these endpoints are already covered so we won't be adding them to the legacy SDK.

if you want to use this now, you can checkout v2.0.0 Beta and use that instead. there will be work later this week in the Terraform provider supporting mux'ing the two versions alongside each other.

@arkadiuss
Copy link
Copy Markdown
Author

great, thank you for the information, I totally understand that. I will wait till it will be available in the Terraform provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants