Get Schema
GetSchema returns the field-by-field Terraform mapping for one C1 API object type. Cacheable by (object_fqn, block_kind, provider_version).
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.
Response
Successful response
The GetSchemaResponse message.
TFSchemaMapping describes how to translate one C1 API object into a
single Terraform block. Variant-specific metadata (e.g. import_id for
resources) lives on the block oneof.
This message contains a oneof named block. Only a single field of the following list may be set at a time:
- resource
- dataSource