> ## Documentation Index
> Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create GCP Certificate Manager PKI Sync

> Create a GCP Certificate Manager PKI Sync for the specified project.



## OpenAPI

````yaml POST /api/v1/cert-manager/syncs/gcp-certificate-manager
openapi: 3.0.3
info:
  title: Infisical API
  description: List of all available APIs that can be consumed
  version: 0.0.1
servers:
  - url: https://us.infisical.com
    description: Production server (US)
  - url: https://eu.infisical.com
    description: Production server (EU)
  - url: http://localhost:8080
    description: Local server
security: []
paths:
  /api/v1/cert-manager/syncs/gcp-certificate-manager:
    post:
      tags:
        - PKI Syncs
      description: Create a GCP Certificate Manager PKI Sync for the specified project.
      operationId: createGcpCertificateManagerPkiSync
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 256
                description:
                  type: string
                  maxLength: 255
                isAutoSyncEnabled:
                  type: boolean
                  default: true
                destinationConfig:
                  type: object
                  properties:
                    gcpProjectId:
                      type: string
                      minLength: 6
                      maxLength: 30
                    location:
                      type: string
                      minLength: 1
                    certificateMapBinding:
                      type: object
                      properties:
                        certificateMap:
                          type: string
                          minLength: 1
                          maxLength: 63
                        hostname:
                          type: string
                          maxLength: 253
                      required:
                        - certificateMap
                      additionalProperties: false
                    scope:
                      type: string
                      enum:
                        - default
                        - edge-cache
                        - all-regions
                        - client-auth
                      default: default
                  required:
                    - gcpProjectId
                    - location
                  additionalProperties: false
                syncOptions:
                  type: object
                  properties:
                    canRemoveCertificates:
                      type: boolean
                      default: true
                    includeRootCa:
                      type: boolean
                      default: false
                    preserveItemOnRenewal:
                      type: boolean
                      default: true
                    healthCheckCommand:
                      type: string
                      maxLength: 8192
                      nullable: true
                    canImportCertificates:
                      type: boolean
                      enum:
                        - false
                      default: false
                    labels:
                      type: array
                      items:
                        type: object
                        properties:
                          key:
                            type: string
                            minLength: 1
                            maxLength: 63
                          value:
                            type: string
                            maxLength: 63
                        required:
                          - key
                          - value
                        additionalProperties: false
                      maxItems: 62
                    certificateNameSchema:
                      type: string
                      minLength: 1
                  required:
                    - certificateNameSchema
                  additionalProperties: false
                subscriberId:
                  type: string
                  nullable: true
                connectionId:
                  type: string
                  format: uuid
                applicationId:
                  type: string
                  format: uuid
                certificateIds:
                  type: array
                  items:
                    type: string
                    format: uuid
                filters:
                  type: object
                  properties:
                    profileIds:
                      type: array
                      items:
                        type: string
                        format: uuid
                      maxItems: 20
                      description: >-
                        Match certificates issued from any one of these
                        certificate profiles.
                    certificateOrderIds:
                      type: array
                      items:
                        type: string
                        format: uuid
                      maxItems: 10000
                      description: >-
                        Match any certificate belonging to any one of these
                        certificate orders. An order groups a certificate with
                        every renewal of it, so this keeps matching as the
                        certificate is renewed.
                    metadata:
                      type: array
                      items:
                        type: object
                        properties:
                          key:
                            type: string
                            minLength: 1
                            maxLength: 255
                            description: Metadata key the certificate must carry.
                          value:
                            type: string
                            maxLength: 1020
                            description: >-
                              Metadata value the key must have. Omit it to match
                              any value.
                        required:
                          - key
                        additionalProperties: false
                      maxItems: 20
                      description: >-
                        Match certificates carrying every one of these metadata
                        pairs. Give a key on its own to match any value for that
                        key.
                  additionalProperties: false
                  nullable: true
                  description: >-
                    Which of the Application's certificates this sync holds. A
                    certificate must match every field that is set, and a sync
                    with no filters holds nothing.
              required:
                - name
                - destinationConfig
                - syncOptions
                - connectionId
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                    maxLength: 256
                  description:
                    type: string
                    nullable: true
                  destination:
                    type: string
                    enum:
                      - gcp-certificate-manager
                  isAutoSyncEnabled:
                    type: boolean
                  destinationConfig:
                    type: object
                    properties:
                      gcpProjectId:
                        type: string
                        minLength: 6
                        maxLength: 30
                      location:
                        type: string
                        minLength: 1
                      certificateMapBinding:
                        type: object
                        properties:
                          certificateMap:
                            type: string
                            minLength: 1
                            maxLength: 63
                          hostname:
                            type: string
                            maxLength: 253
                        required:
                          - certificateMap
                        additionalProperties: false
                      scope:
                        type: string
                        enum:
                          - default
                          - edge-cache
                          - all-regions
                          - client-auth
                        default: default
                    required:
                      - gcpProjectId
                      - location
                    additionalProperties: false
                  syncOptions:
                    type: object
                    properties:
                      canRemoveCertificates:
                        type: boolean
                        default: true
                      includeRootCa:
                        type: boolean
                        default: false
                      preserveItemOnRenewal:
                        type: boolean
                        default: true
                      healthCheckCommand:
                        type: string
                        maxLength: 8192
                        nullable: true
                      canImportCertificates:
                        type: boolean
                        enum:
                          - false
                        default: false
                      labels:
                        type: array
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                              minLength: 1
                              maxLength: 63
                            value:
                              type: string
                              maxLength: 63
                          required:
                            - key
                            - value
                          additionalProperties: false
                        maxItems: 62
                      certificateNameSchema:
                        type: string
                        minLength: 1
                    required:
                      - certificateNameSchema
                    additionalProperties: false
                  subscriberId:
                    type: string
                    format: uuid
                    nullable: true
                  connectionId:
                    type: string
                    format: uuid
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  syncStatus:
                    type: string
                    nullable: true
                  lastSyncedAt:
                    type: string
                    format: date-time
                    nullable: true
                  lastHealthCheckRanAt:
                    type: string
                    format: date-time
                    nullable: true
                  lastHealthCheckStatus:
                    type: string
                    enum:
                      - pending
                      - running
                      - succeeded
                      - failed
                    nullable: true
                  lastHealthCheckMessage:
                    type: string
                    nullable: true
                  filters:
                    type: object
                    properties:
                      profileIds:
                        type: array
                        items:
                          type: string
                          format: uuid
                      certificateOrderIds:
                        type: array
                        items:
                          type: string
                          format: uuid
                      metadata:
                        type: array
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                            value:
                              type: string
                          required:
                            - key
                          additionalProperties: false
                    additionalProperties: false
                    nullable: true
                    description: >-
                      Which of the Application's certificates this sync holds. A
                      certificate must match every field that is set, and a sync
                      with no filters holds nothing.
                required:
                  - id
                  - name
                  - destination
                  - isAutoSyncEnabled
                  - destinationConfig
                  - syncOptions
                  - connectionId
                  - createdAt
                  - updatedAt
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 400
                  message:
                    type: string
                  error:
                    type: string
                  details: {}
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 401
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 403
                  message:
                    type: string
                  details: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 404
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 422
                  message: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - error
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 500
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false

````