az apic import
Note
This reference is part of the apic-extension extension for the Azure CLI (version 2.57.0 or higher). The extension will automatically install the first time you run an az apic import command. Learn more about extensions.
Commands
Name | Description | Type | Status |
---|---|---|---|
az apic import aws |
Import an Amazon API Gateway API source. |
Extension | Preview |
az apic import aws
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Import an Amazon API Gateway API source.
az apic import aws --aws-access-key-reference
--aws-region-name
--aws-secret-access-key-reference
[--ids]
[--import-specification {always, never, ondemand}]
[--msi-resource-id]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--service-name]
[--subscription]
[--target-environment-id]
[--target-lifecycle-stage {deprecated, design, development, preview, production, retired, testing}]
Examples
Import an Amazon API Gateway API source
az apic import aws -g contoso-resources -n contoso -a https://{keyvaultName}.vault.azure.net/secrets/{secretName1} -s https://{keyvaultName}.vault.azure.net/secrets/{secretName2} -r us-east-2
Required Parameters
Amazon API Gateway Access Key. Must be an Azure Key Vault secret reference.
Amazon API Gateway Region (ex. us-east-2).
Amazon API Gateway Secret Access Key. Must be an Azure Key Vault secret reference.
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Indicates if the specification should be imported along with metadata.
The resource ID of the managed identity that has access to the Azure Key Vault.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure API Center service.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The target environment resource ID.
The target lifecycle stage.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.