diff --git a/src/apic-extension/azext_apic_extension/command_patches.py b/src/apic-extension/azext_apic_extension/command_patches.py index ed3e12d533f..5bf6cc05b31 100644 --- a/src/apic-extension/azext_apic_extension/command_patches.py +++ b/src/apic-extension/azext_apic_extension/command_patches.py @@ -347,10 +347,10 @@ class CreateApimIntegration(DefaultWorkspaceParameter, CreateIntegration): """Add Azure APIM as an API source :example: Add Azure APIM in the same resource group as the Azure API Center instance as an API source - az apic integration create apim -g contoso-resources -n contoso --integration-name sync-from-my-apim --azure-apim myapim + az apic integration create apim -g contoso-resources -n contoso -i sync-from-my-apim --azure-apim myapim :example: Add Azure APIM in another resource group as an API source - az apic integration create apim -g contoso-resources -n contoso --integration-name sync-from-my-apim --azure-apim /subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/samplegroup/providers/Microsoft.ApiManagement/service/sampleapim + az apic integration create apim -g contoso-resources -n contoso -i sync-from-my-apim --azure-apim /subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/samplegroup/providers/Microsoft.ApiManagement/service/sampleapim """ # pylint: enable=C0301 @@ -415,7 +415,7 @@ class CreateAmazonApiGatewayIntegration(DefaultWorkspaceParameter, CreateIntegra """Add Amazon API Gateway as an API source :example: Add Amazon API Gateway as an API source - az apic integration create aws -g contoso-resources -n contoso --integration-name sync-from-my-amazon-api-gateway --aws-access-key-reference https://mykey.vault.azure.net/secrets/AccessKey --aws-secret-access-key-reference https://mykey.vault.azure.net/secrets/SecretAccessKey --aws-region-name us-east-2 + az apic integration create aws -g contoso-resources -n contoso -i sync-from-my-amazon-api-gateway -a https://{keyvaultName}.vault.azure.net/secrets/{secretName1} -s https://{keyvaultName}.vault.azure.net/secrets/{secretName2} -r us-east-2 """ @classmethod @@ -444,7 +444,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) args_schema.region_name = AAZStrArg( - options=["--aws-region-name"], + options=["--aws-region-name", "-r"], arg_group="AmazonApiGatewaySource", help="Amazon API Gateway Region (ex. us-east-2).", required=True, @@ -482,7 +482,7 @@ class ImportAmazonApiGatewaySource(DefaultWorkspaceParameter, Import): """Import an Amazon API Gateway API source :example: Import an Amazon API Gateway API source - az apic import aws -g contoso-resources -n contoso --aws-access-key-reference https://mykey.vault.azure.net/secrets/AccessKey --aws-secret-access-key-reference https://mykey.vault.azure.net/secrets/SecretAccessKey --aws-region-name us-east-2 + 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 """ @classmethod @@ -512,7 +512,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) args_schema.region_name = AAZStrArg( - options=["--aws-region-name"], + options=["--aws-region-name", "-r"], arg_group="AmazonApiGatewaySource", help="Amazon API Gateway Region (ex. us-east-2).", required=True,