Dijelite putem


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

Preview

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

--aws-access-key-reference -a

Amazon API Gateway Access Key. Must be an Azure Key Vault secret reference.

Property Value
Parameter group: AmazonApiGatewaySource Arguments
--aws-region-name -r

Amazon API Gateway Region (ex. us-east-2).

Property Value
Parameter group: AmazonApiGatewaySource Arguments
--aws-secret-access-key-reference -s

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.

--ids

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
--import-specification

Indicates if the specification should be imported along with metadata.

Property Value
Default value: always
Accepted values: always, never, ondemand
--msi-resource-id

The resource ID of the managed identity that has access to the Azure Key Vault.

Property Value
Parameter group: AmazonApiGatewaySource Arguments
--no-wait

Do not wait for the long-running operation to finish.

Property Value
Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--service-name -n

The name of Azure API Center service.

Property Value
Parameter group: Resource Id Arguments
--subscription

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
--target-environment-id

The target environment resource ID.

--target-lifecycle-stage

The target lifecycle stage.

Property Value
Accepted values: deprecated, design, development, preview, production, retired, testing
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False