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

# キャッシュコネクション URL の生成

> キャッシュコネクションの作成または更新のための URL をユーザー向けに生成します。



## OpenAPI

````yaml ja/API/REST-API-Embedded.yaml POST /job/cacheConnection/formLink
openapi: 3.1.0
info:
  title: CData Connect AI REST API Embedded
  version: v1
servers:
  - url: https://cloud.cdata.com/api
    description: Production base URL
security:
  - BearerAuth: []
paths:
  /job/cacheConnection/formLink:
    post:
      tags:
        - Cache
      summary: Generate Cache Connection URL
      description: >
        Generates a URL for users to create or update their cache connection.
        Returns a string containing the URL to redirect the user to. Users can
        then add their PostgreSQL connection information to this page.
      operationId: generateCacheConnectionURL
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditConnectionRequest'
      responses:
        '200':
          description: >-
            A string containing the URL to redirect the user to. Users can then
            add their PostgreSQL connection information to this page.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedirectURLResponse'
              example:
                redirectURL: >-
                  https://cloud.cdata.com/oem/user/cacheConnection?token=eyJhbGciOiJSUzI1NiIs...truncated...&driver=PostgreSQL&redirectUrl=https%3A%2F%2Fwww.google.com&connectionName=OEMCacheConnection
      servers:
        - url: https://cloud.cdata.com/api
          description: Production base URL for job endpoints
components:
  schemas:
    EditConnectionRequest:
      type: object
      required:
        - redirectURL
      properties:
        redirectURL:
          type: string
          description: >-
            The URL to redirect the customer once the customer has edited the
            connection through the Connect AI UI. This URL maps to the **Return
            to** button on the **Edit Connection** page in the Connect AI UI.
        name:
          type: string
          description: >-
            (Optional) If provided, the connection name. By default, this is a
            suggested default that the end user can change on the **Edit
            Connection** form. Set `editableName` to `false` to lock the field
            and enforce the supplied value server-side.
          nullable: true
        editableName:
          type: boolean
          description: >-
            (Optional) The default value is `true`. When `true`, any `name` you
            supply is shown as a suggested default value, and the end user can
            change it. When `false`, the **Connection Name** field is rendered
            read-only, and the server enforces the supplied `name` on submit.
            Has no effect when `name` is omitted.
          default: true
      additionalProperties: false
    RedirectURLResponse:
      type: object
      required:
        - redirectURL
      properties:
        redirectURL:
          type: string
          description: >-
            A string containing the CData-hosted connection URL to redirect the
            user to.
      additionalProperties: false
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT token authentication. Include the token in the Authorization header
        as `Bearer {token}`. See
        [Authentication](/ja/API/Authentication-Embedded) for more information
        on creating a token.

````