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.
Property | Value |
---|---|
Parameter group: | AmazonApiGatewaySource Arguments |
Amazon API Gateway Region (ex. us-east-2).
Property | Value |
---|---|
Parameter group: | AmazonApiGatewaySource Arguments |
Amazon API Gateway Secret Access Key. Must be an Azure Key Vault secret reference.
Property | Value |
---|---|
Parameter group: | AmazonApiGatewaySource Arguments |
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Indicates if the specification should be imported along with metadata.
Property | Value |
---|---|
Default value: | always |
Accepted values: | always, never, ondemand |
The resource ID of the managed identity that has access to the Azure Key Vault.
Property | Value |
---|---|
Parameter group: | AmazonApiGatewaySource Arguments |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of Azure API Center service.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The target environment resource ID.
The target lifecycle stage.
Property | Value |
---|---|
Accepted values: | deprecated, design, development, preview, production, retired, testing |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |