Hello. Just a note to let you know the underlying API on which this resource is built is general release and has been vetted, but because this is a new feature for our Terraform provider, we've given it beta label.
This status just means we've paused for a bit to get your feedback to make sure this resource works like you need and expect.
Register your API endpoint.
Important: This resource requires a local variable referencing the
api
attribute of theakamai_apidefinitions_openapi
data source.
Use the returned id
attribute as a local variable in the activation resource to activate your API on a network.
resource "akamai_apidefinitions_api" "my_api" {
api = data.akamai_apidefinitions_openapi.my_api.api
contract_id = "C-0N7RAC7"
group_id = 12345
}
// local
api_id = data.akamai_apidefinitions_api.myapi.id
Arguments
Provide your contract and group IDs and create a local variable to the API Definitions data source.
Argument | Required | Description |
---|---|---|
api | ✔️ | A local variable pointing to the api attribute of the akamai_apidefinitions_openapi data source. |
contract_id | ✔️ | Your contract ID. |
group_id | ✔️ | Your group ID. |
Attributes
There is no standard output for this resource. Changes are reflected in your state file.
Attribute | Description |
---|---|
api | The JSON-formatted conversion of your OpenAPI schema returned from the API Definitions data source. Contains:
|
contract_id | Your contract ID. |
group_id | Your group ID. |
id | Your API collection's ID |
latest_version | The version number for the latest created version of your collection. This version may or may not be active. |
production_version | The version number for the activated version of your configuration in the production environment. |
staging_version | The version number for the activated version of your configuration in the staging environment. |
Updated 14 days ago