Getting started Community Training Tutorials Documentation APIs, AI & Tools
resource "anypoint_exchange_asset" "rest_api" {
organization_id = var.org_id
group_id = var.org_id
asset_id = "my-rest-api"
version = "1.0.0"
name = "My REST API"
type = "rest-api"
classifier = "oas"
api_version = "v1"
file_path = "${path.module}/assets/my-api.json"
main_file = "my-api.json"
tags = ["terraform", "rest"]
contact_name = "Platform Team"
contact_email = "platform@example.com"
pages = [
{
page_name = "Overview"
content = "# Overview\n\nThis API is managed by Terraform."
}
]
instances = [
{
name = "Production"
endpoint_uri = "https://api.example.com/v1"
is_public = true
},
{
name = "Sandbox"
endpoint_uri = "https://sandbox.example.com/v1"
}
]
terms_and_conditions = "# Terms\n\nProvided as-is."
}



