exportResource
Export a resource, returning it along with its unmasked payload and a rendered
copy in the requested format (defaults to json).
Exports are recorded in the audit log so that access to sensitive payload data — credentials, connection strings, IaC outputs — is attributable to the actor who performed it. The resource itself is not modified.
Works for both imported and provisioned resources. The caller must have permission to view the resource.
exportResource(
organizationId: ID!
id: ID!
format: String
): ResourceWithSensitiveValuesPayload
Arguments
exportResource.organizationId ● ID! non-null scalar {#organization-id}
Your organization's unique identifier.
exportResource.id ● ID! non-null scalar {#id}
The resource to export.
exportResource.format ● String scalar {#format}
Output format for the rendered field. json serializes the payload; other values (e.g. yaml, env) must be declared in the resource type's schema.