Skip to content

Latest commit

 

History

History
73 lines (54 loc) · 2.6 KB

source_pexels_api.md

File metadata and controls

73 lines (54 loc) · 2.6 KB
page_title subcategory description
airbyte_source_pexels_api Resource - terraform-provider-airbyte
SourcePexelsAPI Resource

airbyte_source_pexels_api (Resource)

SourcePexelsAPI Resource

Example Usage

resource "airbyte_source_pexels_api" "my_source_pexelsapi" {
  configuration = {
    api_key     = "...my_api_key..."
    color       = "red"
    locale      = "en-US"
    orientation = "square"
    query       = "people"
    size        = "large"
  }
  definition_id = "e04d8ce1-5827-4406-85b5-3f0edc9bc353"
  name          = "...my_name..."
  secret_id     = "...my_secret_id..."
  workspace_id  = "72aedbff-463d-41bc-bf02-099fc30a9d8e"
}

Schema

Required

  • configuration (Attributes) (see below for nested schema)
  • name (String) Name of the source e.g. dev-mysql-instance.
  • workspace_id (String)

Optional

  • definition_id (String) The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
  • secret_id (String) Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.

Read-Only

  • created_at (Number)
  • source_id (String)
  • source_type (String)

Nested Schema for configuration

Required:

  • api_key (String, Sensitive) API key is required to access pexels api, For getting your's goto https://www.pexels.com/api/documentation and create account for free.
  • query (String) Optional, the search query, Example Ocean, Tigers, Pears, etc.

Optional:

  • color (String) Optional, Desired photo color. Supported colors red, orange, yellow, green, turquoise, blue, violet, pink, brown, black, gray, white or any hexidecimal color code.
  • locale (String) Optional, The locale of the search you are performing. The current supported locales are 'en-US' 'pt-BR' 'es-ES' 'ca-ES' 'de-DE' 'it-IT' 'fr-FR' 'sv-SE' 'id-ID' 'pl-PL' 'ja-JP' 'zh-TW' 'zh-CN' 'ko-KR' 'th-TH' 'nl-NL' 'hu-HU' 'vi-VN' 'cs-CZ' 'da-DK' 'fi-FI' 'uk-UA' 'el-GR' 'ro-RO' 'nb-NO' 'sk-SK' 'tr-TR' 'ru-RU'.
  • orientation (String) Optional, Desired photo orientation. The current supported orientations are landscape, portrait or square
  • size (String) Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or small(4MP).

Import

Import is supported using the following syntax:

terraform import airbyte_source_pexels_api.my_airbyte_source_pexels_api ""