diff --git a/src/apic-extension/HISTORY.rst b/src/apic-extension/HISTORY.rst index d3ef2257d02..9587ffbdf4d 100644 --- a/src/apic-extension/HISTORY.rst +++ b/src/apic-extension/HISTORY.rst @@ -3,8 +3,34 @@ Release History =============== +1.0.0 +++++++++++++++++++ +Potential Impact: The changes in this release, including the renaming of commands and parameters, may require changes to existing scripts and integrations. Please review the changes carefully and update your code accordingly. + +**Updates:** + +* Redesigned ``az apic service import-from-apim`` command for an easier specification of APIM instances. +* [BREAKING CHANGE] Renamed ``az apic service *`` commands to ``az apic *`` commands. +* [BREAKING CHANGE] Renamed ``--name/--service/--service-name/-s`` parameters in ``az apic *`` commands to ``--name/-n``. +* [BREAKING CHANGE] Renamed ``--service/--service-name/-s`` parameters in subcommands to ``--service-name/-n``. +* [BREAKING CHANGE] Renamed ``--metadata-schema/--metadata-schema-name/--name`` parameters in ``az apic metadata *`` commands to ``--metadata-name``. +* [BREAKING CHANGE] Renamed ``--environment-name`` parameter in ``az apic api register`` command to ``--environment-id``. + +**Fixes:** + +* Ensured API title created by ``register`` command matches the provided specification. +* Addressed the non-throwing of errors when importing specifications with files larger than 3MB. +* Resolved errors occurring when registering APIs with long descriptions in the specification. +* [BREAKING CHANGE] Made ``--definition-id``, ``--environment-id``, ``--server``, ``--title`` parameters mandatory in ``az apic api deployment create`` command. +* [BREAKING CHANGE] Made ``--format``, ``--specification``, ``--value`` parameters mandatory in ``az apic api definition import-specification`` command. + +**Removals:** + +* Removed ``--state`` parameter from ``az apic api deployment`` commands. +* [BREAKING CHANGE] Eliminated ``--file-name`` parameter for ``az apic api definition import-specification``, ``az apic metadata create``, and ``az apic metadata update`` commands. Introduced usage of the ``@filename`` syntax for reading parameter values from a file directly in Azure CLI. + 1.0.0b5 -+++++ +++++++++++++++++++ * Add: Support yaml file for `az apic api register` command. * Update: Command names, parameter names, and command descriptions for better understanding. Please leverage `-h` option or refer Azure CLI reference doc to see full list of commands and parameters. * Update: Introduction to parameter constraints to ensure that valid values are provided. @@ -15,17 +41,17 @@ Release History * Remove: `head` commands in each command group are removed. 1.0.0b4 -+++++ +++++++++++++++++++ * Add: Support for Default Portal configuration and default hostname provisoning deprovisioning commands 1.0.0b3 -+++++ +++++++++++++++++++ * Add: Support for Import from apim command along with add examples for create service 1.0.0b2 -++++++ +++++++++++++++++++ * Remove: All workspace cli commands as it should not be exposed to customers just yet. 1.0.0b1 -++++++ -* Initial release. \ No newline at end of file +++++++++++++++++++ +* Initial release. diff --git a/src/apic-extension/README.md b/src/apic-extension/README.md index 0a50541b50c..1ede4f48014 100644 --- a/src/apic-extension/README.md +++ b/src/apic-extension/README.md @@ -1,6 +1,9 @@ -# Azure CLI APICenter Extension +# Azure CLI API Center Extension -This extension can help create and manage APICenter Resources +*This extension can help create and manage API Center Resources.* + +**Azure API Center** enables tracking all of your APIs in a centralized location for discovery, reuse, and governance. Use an API center to develop and maintain a structured and organized inventory of your organization's APIs - regardless of their type, lifecycle stage, or deployment location - along with related information such as version details, API definition files, and common metadata. +See [Azure API Center documentation](https://learn.microsoft.com/azure/api-center/overview) for more information. ### How to use Install this extension using the below CLI command @@ -9,274 +12,10 @@ az extension add --name apic-extension ``` ### API Center Extension Info -APICenter documentation: https://learn.microsoft.com/en-us/azure/api-center/ - -List Service Examples -``` -az apic service show --resource-group api-center-test -``` -``` -az apic service show -g api-center-test -``` - -Show service Examples -``` -az apic service show --resource-group api-center-test --service-name contosoeuap -``` -``` -az apic service show -g api-center-test -s contosoeuap -``` - -Delete Service Examples -``` -az apic service delete --resource-group api-center-test --service-name contosoeuap -``` -``` -az apic service delete --resource-group arpi-test-rg1 -s apictestcli3 -``` - -Create API Examples -``` -az apic api create -g api-center-test -s contosoeuap --name echo-api --title "Echo API" --kind "rest" -``` -``` -az apic api create --resource-group api-center-test --service-name contosoeuap --api-name echo-api2 --description "CLI Test" --kind rest --title "Echo API" -``` - -Update API Examples -``` -az apic api update -g api-center-test -s contosoeuap --name echo-api --summary "Basic REST API service" -``` -``` -az apic api update --resource-group api-center-test -s contosoeuap --name echo-api --summary "Basic REST API service" -``` - -LIST Api Example -``` -az apic api list --resource-group api-center-test --service-name contosoeuap -``` -``` -az apic api list -g api-center-test -s contosoeuap -``` - -SHOW Api Examples -``` -az apic api show -g api-center-test -s contosoeuap --name echo-api -``` -``` -az apic api show --resource-group api-center-test --service-name contosoeuap -w default --api echo-api -``` - -Delete API Examples -``` -az apic api delete -g api-center-test -s contosoeuap --name echo-api -``` -``` -az apic api delete --resource-group contoso-resources --service-name contosoeuap --name echo-api -``` - -CREATE Api Version Examples -``` -az apic api version create -g api-center-test -s contosoeuap --api-name echo-api --name 2023-01-01 --title "2023-01-01" -``` -``` -az apic api version create --resource-group api-center-test --service-name contosoeuap --api-name echo-api --name 2023-01-01 --title "2023-01-01" -``` - -UPDATE Api Version Examples -``` -Az apic api version update -g api-center-test -s contosoeuap --api-name echo-api --name 2023-01-01 --title "2023-01-01" -``` -``` -az apic api version update --resource-group api-center-test --service-name contosoeuap --api-name echo-api --name 2023-01-01 --title "2023-01-01" -``` - -LIST Api Version Examples -``` -az apic api version list -g api-center-test -s contosoeuap --api-name echo-api -``` -``` -az apic api version list --resource-group api-center-test --service-name contosoeuap --api-name echo-api -``` - -SHOW Api Version Example -``` -az apic api version show -g api-center-test -s contosoeuap --api-name echo-api --name 2023-01-01 -``` -``` -az apic api version show --resource-group api-center-test --service-name contosoeuap --api-name echo-api --name 2023-01-01 -``` - -DELETE Api Version Example -``` -az apic api version delete -g api-center-test -s contosoeuap --api-name echo-api --name 2023-01-01 -``` -``` -az apic api version delete --resource-group api-center-test --service-name contosoeuap --api-name echo-api --name 2023-01-01 -``` - -CREATE API Definition Example -``` -az apic api definition create -g api-center-test -s contosoeuap --api-name echo-api --version 2023-01-01 --name "openapi" --title "OpenAPI" -``` - -UPDATE API Definition Example -``` -az apic api definition update -g api-center-test -s contosoeuap --api-name echo-api --version 2023-01-01 --name "openapi" --title "OpenAPI" -``` - -SHOW API Definition Example -``` -az apic api definition show -g api-center-test -s contosoeuap --api-name echo-api --version 2023-01-01 --name "openapi" -``` - -LIST API Definition Example -``` -az apic api definition list -g api-center-test -s contosoeuap --api-name echo-api --version 2023-01-01 -``` - -DELETE API Definition Example -``` -az apic api definition delete -g api-center-test -s contosoeuap --api-name echo-api --version 2023-01-01 --name "openapi" -``` - -IMPORT Specification Examples -Import Specification inline option -``` -az apic api definition import-specification -g api-center-test -s contosoeuap --api-name echo-api --version-name 2023-01-01 --definition-name openapi--format "inline" --value '{"openapi":"3.0.1","info":{"title":"httpbin.org","description":"API Management facade for a very handy and free online HTTP tool.","version":"1.0"}}' --specification '{"name":"openapi","version":"3.0.0"}' -``` - -Import Specification Inline option where spec is provided by sending a file -``` -az apic api definition import-specification -g api-center-test -s contosoeuap --api-name echo-api --version-name 2023-01-01 --definition-name openapi --format inline --specification '{"name":"openapi","version":"3.0.0"}' --file-name C:\Users\arpishah\examples\cli-examples\spec-examples\cat-facts-api.json -``` - -Import Specification Link option where spec is provided via a link -``` -az apic api definition import-specification -g api-center-test -s contosoeuap - --api-name echo-api --version-name 2023-01-01 --definition-name openapi --format "link" --value https://alzaslonaztest.blob.core.windows.net/arpitestblobs/cat-facts-api.json --specification '{"name":"openapi","version":"3.0.0"}' -``` - -Export Specification Examples -Export Spec to a file -``` -az apic api definition export-specification -g api-center-test -s contosoeuap --api-name echo-api-10 --version-name 2023-11-08 --definition-name arpitest4 --file-name C:\Users\arpishah\examples\cli-examples\exported-results\exported-spec-inline.json -``` - -CREATE Api Deployment - -``` -az apic api deployment create -g api-center-test -s contosoeuap --name production --title "Production deployment" --description "Public cloud production deployment." --api echo-api --server C:/Users/arpishah/examples/cli-examples/payload-examples/deplcreate.json --environment-id "/workspaces/default/environments/production" --definition-id "/workspaces/default/apis/echo-api/versions/2023-01-01/definitions/openapi" -where examples/deplcreate.json contains -{"runtime-uri": ["https://api.contoso.com"]} -``` - -UPDATE Api Deployment -``` -az apic api deployment update -g api-center-test -s contosoeuap --name production --title "Production deployment 10" --api echo-api –w default -``` - -LIST Api Deployment -``` -az apic api deployment list -g api-center-test -s contosoeuap --api-name echo-api -``` - -SHOW Api Deployment -``` -az apic api deployment show -g api-center-test -s contosoeuap --name production --api-name echo-api -``` - -DELETE Api Deployment -``` -Az apic api deployment delete -g api-center-test -s contosoeuap --name production --api-name echo-api -``` - -CREATE Environment -``` -az apic environment create -g api-center-test -s contosoeuap --name public-3 --title "Public cloud" --kind "development" --server "C:\Users\arpishah\examples\cli-examples\payload-examples\envcreate1.json" -Where envcreate1.json contains -{ - "type": "Azure API Management", - "managementPortalUri": [ - "management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ApiManagement/service/my-api-management-service" - ] -} -``` - -UPDATE Environment -``` -az apic environment update -g api-center-test -s contosoeuap --name public --title "Public cloud" -``` - -LIST Environment -``` -az apic environment list -g api-center-test -s contosoeuap -``` +API Center CLI documentation: [https://learn.microsoft.com/cli/azure/api-center/](https://learn.microsoft.com/cli/azure/service-page/api%20center?view=azure-cli-latest) -SHOW Environment -``` -az apic environment show -g api-center-test -s contosoeuap --name public -``` +### Tutorials -DELETE Environment -``` -az apic environment delete -g api-center-test -s contosoeuap --name public -``` - -CREATE Metadata Schema -``` -az apic metadata-schema create --resource-group api-center-test --service-name contosoeuap --name "test1" --file-name "C:\Users\arpishah\examples\cli-examples\payload-examples\schemacreate.json" -Where schemacreate.json contains metadata schema -{ - "type": "string", - "title": "First name", - "pattern": "^[a-zA-Z0-9 ]+$" -} -``` - -UPDATE Metadata Schema -``` -az apic metadata-schema update --resource-group api-center-test --service-name contosoeuap --name "test1" --file-name "C:\Users\arpishah\examples\cli-examples\payload-examples\schemaupdate.json" -Where schemaupdate.json contains metadata schema -{ - "type": "string", - "title": "Last name", - "pattern": "^[a-zA-Z0-9 ]+$" -} -``` - -LIST Metadata Schema -``` -az apic metadata-schema list -g api-center-test -s contosoeuap -``` - -SHOW Metadata Schema -``` -az apic metadata-schema show --resource-group api-center-test --service-name contosoeuap --name "test1" -``` - -DELETE Metadata Schema -``` -az apic metadata-schema delete --resource-group api-center-test --service-name contosoeuap --name "test1" -``` - -EXPORT Metadata Schema -EXPORT Metadata Schema assigned to an API -``` -az apic metadata-schema export-metadata-schema -g api-center-test -s contosoeuap --assigned-to api --file-name C:\Users\arpishah\examples\cli-examples\exported-results\exported-schema-3.json -``` - -EXPORT Metadata Schema assigned to a Deployment -``` -az apic metadata-schema export-metadata-schema -g api-center-test -s contosoeuap --assigned-to deployment --file-name C:\Users\arpishah\examples\cli-examples\exported-results\exported-schema-5.json -``` - -EXPORT Metadata Schema assigned to an Environment -``` -az apic metadata-schema export-metadata-schema -g api-center-test -s contosoeuap --assigned-to environment --file-name C:\Users\arpishah\examples\cli-examples\exported-results\exported-schema-6.json -``` - -Register API or Quick Add -``` -az apic api register -g api-center-test -s contosoeuap --api-location "C:/Users/arpishah/examples/cli-examples/spec-examples/openai.json" --environment-name public -az apic api register -g api-center-test -s contosoeuap --api-location "C:/Users/arpishah/examples/cli-examples/spec-examples/openai.yml" --environment-name public -``` \ No newline at end of file +* [Use the Azure CLI to manage your API inventory](https://learn.microsoft.com/azure/api-center/manage-apis-azure-cli) +* [Register API, API version, and definition](https://learn.microsoft.com/azure/api-center/manage-apis-azure-cli#register-api-api-version-and-definition) +* [Import APIs to your API center from Azure API Management](https://learn.microsoft.com/azure/api-center/import-api-management-apis) diff --git a/src/apic-extension/azext_apic_extension/_help.py b/src/apic-extension/azext_apic_extension/_help.py index a738f149549..e57c940f8f0 100644 --- a/src/apic-extension/azext_apic_extension/_help.py +++ b/src/apic-extension/azext_apic_extension/_help.py @@ -12,7 +12,7 @@ helps['apic api register'] = """ type: command - short-summary: Registers a new API with version, definition, and associated deployments using the specification file as the source of truth. + short-summary: Registers a new API with version, definition, and associated deployments using the specification file as the source of truth. For now we only support OpenAPI JSON/YAML format. parameters: - name: --api-location -l type: string @@ -20,15 +20,15 @@ - name: --resource-group -g type: string short-summary: Resource group name. - - name: --service -s + - name: --service-name -n type: string short-summary: APICenter Catalog or Service name. - - name: --environment-name -e + - name: --environment-id type: string - short-summary: Name of environment created before. + short-summary: Id of environment created before. examples: - name: Register api by providing spec file. text: | - az apic api register -g api-center-test -s contosoeuap --api-location "examples/cli-examples/spec-examples/openai.json" --environment-name public - az apic api register -g api-center-test -s contosoeuap --api-location "examples/cli-examples/spec-examples/openai.yml" --environment-name public + az apic api register -g api-center-test -n contosoeuap --api-location "examples/cli-examples/spec-examples/openai.json" --environment-id public + az apic api register -g api-center-test -n contosoeuap --api-location "examples/cli-examples/spec-examples/openai.yml" --environment-id public """ diff --git a/src/apic-extension/azext_apic_extension/_params.py b/src/apic-extension/azext_apic_extension/_params.py index 3ac94ef8195..ffe7ba4b83c 100644 --- a/src/apic-extension/azext_apic_extension/_params.py +++ b/src/apic-extension/azext_apic_extension/_params.py @@ -26,13 +26,13 @@ def load_arguments(self, _): # pylint: disable=unused-argument ) c.argument( "service_name", - options_list=['--service', '-s'], + options_list=['--service-name', '-n'], help="Service name", required=True, ) c.argument( - "environment_name", - options_list=['--environment-name', '-e'], - help="Environemnt name", + "environment_id", + options_list=['--environment-id'], + help="Environemnt id", required=False ) diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/__init__.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/__init__.py index 5a9d61963d6..7c7b1c75784 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/__init__.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/__init__.py @@ -9,3 +9,9 @@ # flake8: noqa from .__cmd_group import * +from ._create import * +from ._delete import * +from ._import_from_apim import * +from ._list import * +from ._show import * +from ._update import * diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_create.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/_create.py similarity index 90% rename from src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_create.py rename to src/apic-extension/azext_apic_extension/aaz/latest/apic/_create.py index e335b3b67b8..2daf4b88499 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_create.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/_create.py @@ -12,16 +12,16 @@ @register_command( - "apic service create", + "apic create", ) class Create(AAZCommand): """Creates an instance or update an existing instance of an Azure API Center service. :example: Create service Example 1 - az apic service create -g contoso-resources -s contoso -l eastus + az apic create -g contoso-resources -n contoso -l eastus :example: Create Service Example 2 - az apic service create --resource-group contoso-resources --name contoso --location eastus + az apic create --resource-group contoso-resources --name contoso --location eastus """ _aaz_info = { @@ -50,8 +50,8 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.resource_group = AAZResourceGroupNameArg( required=True, ) - _args_schema.service_name = AAZStrArg( - options=["-s", "--name", "--service", "--service-name"], + _args_schema.name = AAZStrArg( + options=["-n", "--name"], help="The name of the API Center service.", required=True, fmt=AAZStrArgFormat( @@ -96,6 +96,16 @@ def _build_arguments_schema(cls, *args, **kwargs): tags = cls._args_schema.tags tags.Element = AAZStrArg() + + # define Arg Group "Sku" + + _args_schema = cls._args_schema + _args_schema.sku_name = AAZStrArg( + options=["--sku-name"], + arg_group="Sku", + help="The name of the SKU. E.g. P3. It is typically a letter+number code", + default="Free", + ) return cls._args_schema def _execute_operations(self): @@ -149,7 +159,7 @@ def url_parameters(self): required=True, ), **self.serialize_url_param( - "serviceName", self.ctx.args.service_name, + "serviceName", self.ctx.args.name, required=True, ), **self.serialize_url_param( @@ -190,6 +200,7 @@ def content(self): ) _builder.set_prop("identity", AAZObjectType, ".identity") _builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("sku", AAZObjectType) _builder.set_prop("tags", AAZDictType, ".tags") identity = _builder.get(".identity") @@ -201,6 +212,10 @@ def content(self): if user_assigned_identities is not None: user_assigned_identities.set_elements(AAZObjectType, ".", typ_kwargs={"nullable": True}) + sku = _builder.get(".sku") + if sku is not None: + sku.set_prop("name", AAZStrType, ".sku_name", typ_kwargs={"flags": {"required": True}}) + tags = _builder.get(".tags") if tags is not None: tags.set_elements(AAZStrType, ".") @@ -238,6 +253,7 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200_201.sku = AAZObjectType() _schema_on_200_201.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, @@ -288,6 +304,15 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) + sku = cls._schema_on_200_201.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() + sku.name = AAZStrType( + flags={"required": True}, + ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + system_data = cls._schema_on_200_201.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_delete.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/_delete.py similarity index 93% rename from src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_delete.py rename to src/apic-extension/azext_apic_extension/aaz/latest/apic/_delete.py index f4721d57ba1..8feb6ea0f90 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_delete.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/_delete.py @@ -12,14 +12,14 @@ @register_command( - "apic service delete", + "apic delete", confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): """Deletes an instance of an Azure API Center service. :example: Delete service - az apic service delete -s contoso -g contoso-resources + az apic delete -n contoso -g contoso-resources """ _aaz_info = { @@ -48,8 +48,8 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.resource_group = AAZResourceGroupNameArg( required=True, ) - _args_schema.service_name = AAZStrArg( - options=["-s", "--name", "--service", "--service-name"], + _args_schema.name = AAZStrArg( + options=["-n", "--name"], help="The name of the API Center service.", required=True, id_part="name", @@ -110,7 +110,7 @@ def url_parameters(self): required=True, ), **self.serialize_url_param( - "serviceName", self.ctx.args.service_name, + "serviceName", self.ctx.args.name, required=True, ), **self.serialize_url_param( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_import_from_apim.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/_import_from_apim.py similarity index 88% rename from src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_import_from_apim.py rename to src/apic-extension/azext_apic_extension/aaz/latest/apic/_import_from_apim.py index cac158f5f98..f6224cec56b 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_import_from_apim.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/_import_from_apim.py @@ -12,13 +12,19 @@ @register_command( - "apic service import-from-apim", + "apic import-from-apim", ) class ImportFromApim(AAZCommand): """Imports APIs from an Azure API Management service instance. - :example: Import From APIM - az apic service import-from-apim -g api-center-test --service-name contosoeuap --source-resource-ids '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicegroup/providers/Microsoft.ApiManagement/service/contoso/apis/contosoapi' + :example: Import all APIs from APIM in same resource group + az apic import-from-apim -g api-center-test --service-name contoso-apic --apim-name contoso-apim --apim-apis * + + :example: Import selected APIs from APIM in same resource group + az apic import-from-apim -g api-center-test --service-name contoso-apic --apim-name contoso-apim --apim-apis [echo,foo] + + :example: Import all APIs from APIM in another subscription and resource group + az apic import-from-apim -g api-center-test --service-name contoso-apic --apim-subscription 00000000-0000-0000-0000-000000000000 --apim-resource-group apim-rg --apim-name contoso-apim --apim-apis * """ _aaz_info = { @@ -49,7 +55,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], + options=["-n", "--service-name"], help="The name of Azure API Center service.", required=True, id_part="name", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_list.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/_list.py similarity index 94% rename from src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_list.py rename to src/apic-extension/azext_apic_extension/aaz/latest/apic/_list.py index a97cd95b67e..30d86c5a938 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_list.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/_list.py @@ -12,13 +12,15 @@ @register_command( - "apic service list", + "apic list", ) class List(AAZCommand): """Lists Azure API Center services within an Azure subscription. + There is a known issue that listing all resources under a subscription does not work. Please list resources by resource group. + :example: List services in resource group - az apic service list -g contoso-resources + az apic list -g contoso-resources """ _aaz_info = { @@ -174,6 +176,7 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.sku = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, @@ -224,6 +227,15 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + sku = cls._schema_on_200.value.Element.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() + sku.name = AAZStrType( + flags={"required": True}, + ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", @@ -347,6 +359,7 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.sku = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, @@ -397,6 +410,15 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + sku = cls._schema_on_200.value.Element.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() + sku.name = AAZStrType( + flags={"required": True}, + ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_show.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/_show.py similarity index 93% rename from src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_show.py rename to src/apic-extension/azext_apic_extension/aaz/latest/apic/_show.py index 1ce84a58499..93e6161b87e 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_show.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/_show.py @@ -12,13 +12,13 @@ @register_command( - "apic service show", + "apic show", ) class Show(AAZCommand): """Show details of an Azure API Center service instance. :example: Show service details - az apic service show -g contoso-resources -s contoso + az apic show -g contoso-resources -n contoso """ _aaz_info = { @@ -47,8 +47,8 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.resource_group = AAZResourceGroupNameArg( required=True, ) - _args_schema.service_name = AAZStrArg( - options=["-s", "--name", "--service", "--service-name"], + _args_schema.name = AAZStrArg( + options=["-n", "--name"], help="The name of the API Center service.", required=True, id_part="name", @@ -111,7 +111,7 @@ def url_parameters(self): required=True, ), **self.serialize_url_param( - "serviceName", self.ctx.args.service_name, + "serviceName", self.ctx.args.name, required=True, ), **self.serialize_url_param( @@ -171,6 +171,7 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.sku = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, @@ -221,6 +222,15 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + sku = cls._schema_on_200.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() + sku.name = AAZStrType( + flags={"required": True}, + ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/_update.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/_update.py new file mode 100644 index 00000000000..5a1b2825098 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/_update.py @@ -0,0 +1,476 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "apic update", +) +class Update(AAZCommand): + """Update an instance of an Azure API Center service. + + :example: Update service details + az apic update -g contoso-resources -n contoso + """ + + _aaz_info = { + "version": "2024-03-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.apicenter/services/{}", "2024-03-01"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.name = AAZStrArg( + options=["-n", "--name"], + help="The name of the API Center service.", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9-]{3,90}$", + max_length=90, + min_length=1, + ), + ) + _args_schema.identity = AAZObjectArg( + options=["--identity"], + help="The managed service identities assigned to this resource.", + nullable=True, + ) + _args_schema.tags = AAZDictArg( + options=["--tags"], + help="Resource tags.", + nullable=True, + ) + + identity = cls._args_schema.identity + identity.type = AAZStrArg( + options=["type"], + help="Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + enum={"None": "None", "SystemAssigned": "SystemAssigned", "SystemAssigned,UserAssigned": "SystemAssigned,UserAssigned", "UserAssigned": "UserAssigned"}, + ) + identity.user_assigned_identities = AAZDictArg( + options=["user-assigned-identities"], + help="The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + nullable=True, + ) + + user_assigned_identities = cls._args_schema.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectArg( + nullable=True, + blank={}, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg( + nullable=True, + ) + + # define Arg Group "Sku" + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ServicesGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.ServicesCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ServicesGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "serviceName", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-03-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_service_read(cls._schema_on_200) + + return cls._schema_on_200 + + class ServicesCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "serviceName", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-03-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _UpdateHelper._build_schema_service_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("identity", AAZObjectType, ".identity") + _builder.set_prop("sku", AAZObjectType) + _builder.set_prop("tags", AAZDictType, ".tags") + + identity = _builder.get(".identity") + if identity is not None: + identity.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + identity.set_prop("userAssignedIdentities", AAZDictType, ".user_assigned_identities") + + user_assigned_identities = _builder.get(".identity.userAssignedIdentities") + if user_assigned_identities is not None: + user_assigned_identities.set_elements(AAZObjectType, ".", typ_kwargs={"nullable": True}) + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + _schema_service_read = None + + @classmethod + def _build_schema_service_read(cls, _schema): + if cls._schema_service_read is not None: + _schema.id = cls._schema_service_read.id + _schema.identity = cls._schema_service_read.identity + _schema.location = cls._schema_service_read.location + _schema.name = cls._schema_service_read.name + _schema.properties = cls._schema_service_read.properties + _schema.sku = cls._schema_service_read.sku + _schema.system_data = cls._schema_service_read.system_data + _schema.tags = cls._schema_service_read.tags + _schema.type = cls._schema_service_read.type + return + + cls._schema_service_read = _schema_service_read = AAZObjectType() + + service_read = _schema_service_read + service_read.id = AAZStrType( + flags={"read_only": True}, + ) + service_read.identity = AAZObjectType() + service_read.location = AAZStrType( + flags={"required": True}, + ) + service_read.name = AAZStrType( + flags={"read_only": True}, + ) + service_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + service_read.sku = AAZObjectType() + service_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + service_read.tags = AAZDictType() + service_read.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = _schema_service_read.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType( + flags={"required": True}, + ) + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_service_read.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType( + nullable=True, + ) + + _element = _schema_service_read.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = _schema_service_read.properties + properties.data_api_hostname = AAZStrType( + serialized_name="dataApiHostname", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + sku = _schema_service_read.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() + sku.name = AAZStrType( + flags={"required": True}, + ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + + system_data = _schema_service_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + tags = _schema_service_read.tags + tags.Element = AAZStrType() + + _schema.id = cls._schema_service_read.id + _schema.identity = cls._schema_service_read.identity + _schema.location = cls._schema_service_read.location + _schema.name = cls._schema_service_read.name + _schema.properties = cls._schema_service_read.properties + _schema.sku = cls._schema_service_read.sku + _schema.system_data = cls._schema_service_read.system_data + _schema.tags = cls._schema_service_read.tags + _schema.type = cls._schema_service_read.type + + +__all__ = ["Update"] diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_create.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_create.py index e44d3bceed6..ba6583bcc9f 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_create.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_create.py @@ -18,10 +18,10 @@ class Create(AAZCommand): """Register a new API or update an existing API. :example: Create API - az apic api create -g contoso-resources -s contoso --api-id echo-api --title "Echo API" --type REST + az apic api create -g contoso-resources -n contoso --api-id echo-api --title "Echo API" --type REST :example: Create API with custom properties - az apic api create -g contoso-resources -s contoso --api-id echo-api --title "Echo API" --type REST --custom-properties '{\"public-facing\":true}' + az apic api create -g contoso-resources -n contoso --api-id echo-api --title "Echo API" --type REST --custom-properties '{\"public-facing\":true}' """ _aaz_info = { @@ -61,8 +61,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, fmt=AAZStrArgFormat( pattern="^[a-zA-Z0-9-]{3,90}$", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_delete.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_delete.py index 6bbbb8897b7..b11ae8925ad 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_delete.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_delete.py @@ -19,7 +19,7 @@ class Delete(AAZCommand): """Delete specified API. :example: Delete API - az apic api delete -g contoso-resources -s contoso --api-id echo-api + az apic api delete -g contoso-resources -n contoso --api-id echo-api """ _aaz_info = { @@ -60,8 +60,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_list.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_list.py index 78ad3818b04..412bc8bde59 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_list.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_list.py @@ -18,7 +18,10 @@ class List(AAZCommand): """List a collection of APIs. :example: List APIs - az apic api list -g contoso-resources -s contoso + az apic api list -g contoso-resources -n contoso + + :example: List APIs with filter + az apic api list -g contoso-resources -n contoso --filter "kind eq 'rest'" """ _aaz_info = { @@ -49,8 +52,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, fmt=AAZStrArgFormat( pattern="^[a-zA-Z0-9-]{3,90}$", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_show.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_show.py index b354d5307a0..8a59ffa5134 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_show.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_show.py @@ -18,7 +18,7 @@ class Show(AAZCommand): """Get details of the API. :example: Show API details - az apic api show -g contoso-resources -s contoso --api-id echo-api + az apic api show -g contoso-resources -n contoso --api-id echo-api """ _aaz_info = { @@ -59,8 +59,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_update.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_update.py index 8fcc68796aa..9187fbb30ee 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_update.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/_update.py @@ -18,10 +18,10 @@ class Update(AAZCommand): """Update existing API. :example: Update API - az apic api update -g contoso-resources -s contoso --api-id echo-api --summary "Basic REST API service" + az apic api update -g contoso-resources -n contoso --api-id echo-api --summary "Basic REST API service" :example: Update custom properties - az apic api update -g contoso-resources -s contoso --api-id echo-api --custom-properties '{\"public-facing\":true}' + az apic api update -g contoso-resources -n contoso --api-id echo-api --custom-properties '{\"public-facing\":true}' """ _aaz_info = { @@ -64,8 +64,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_create.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_create.py index eb800923c43..ba788ef47b8 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_create.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_create.py @@ -18,7 +18,7 @@ class Create(AAZCommand): """Create a new API definition or update an existing API definition. :example: Create API definition - az apic api definition create -g api-center-test -s contosoeuap --api-id echo-api --version-id 2023-01-01 --definition-id "openapi" --title "OpenAPI" + az apic api definition create -g api-center-test -n contosoeuap --api-id echo-api --version-id 2023-01-01 --definition-id "openapi" --title "OpenAPI" """ _aaz_info = { @@ -68,8 +68,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, fmt=AAZStrArgFormat( pattern="^[a-zA-Z0-9-]{3,90}$", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_delete.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_delete.py index 17523248fa3..0daf4902bfc 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_delete.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_delete.py @@ -19,7 +19,7 @@ class Delete(AAZCommand): """Delete specified API definition. :example: Delete API definition - az apic api definition delete -g api-center-test -s contosoeuap --api-id echo-api --version-id 2023-01-01 --definition-id "openapi" + az apic api definition delete -g api-center-test -n contosoeuap --api-id echo-api --version-id 2023-01-01 --definition-id "openapi" """ _aaz_info = { @@ -71,8 +71,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_export_specification.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_export_specification.py index 8d6c3171071..471ffe72677 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_export_specification.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_export_specification.py @@ -18,7 +18,7 @@ class ExportSpecification(AAZCommand): """Exports the API specification. :example: Export Specification - az apic api version definition export-specification -g api-center-test -s contosoeuap --api-id echo-api --version-id 2023-01-01 --definition-id default + az apic api definition export-specification -g api-center-test -n contosoeuap --api-id echo-api --version-id 2023-01-01 --definition-id default --file-name filename.json """ _aaz_info = { @@ -71,8 +71,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_import_specification.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_import_specification.py index 9c61443f2cc..6afb0e3f230 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_import_specification.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_import_specification.py @@ -18,10 +18,10 @@ class ImportSpecification(AAZCommand): """Imports the API specification. :example: Import specification example 1 - az apic api definition import-specification -g api-center-test -s contosoeuap --api-id echo-api-2 --version-id 2023-08-01 --definition-id openapi3 --format "inline" --value '{"openapi":"3.0.1","info":{"title":"httpbin.org","description":"API Management facade for a very handy and free online HTTP tool.","version":"1.0"}}' --specification '{"name":"openapi","version":"3.0.0"}' + az apic api definition import-specification -g api-center-test -n contosoeuap --api-id echo-api-2 --version-id 2023-08-01 --definition-id openapi3 --format "inline" --value '{"openapi":"3.0.1","info":{"title":"httpbin.org","description":"API Management facade for a very handy and free online HTTP tool.","version":"1.0"}}' --specification '{"name":"openapi","version":"3.0.0"}' :example: Import specification example 2 - az apic api definition import-specification -g api-center-test -s contoso --api-id echo-api --version-id 2023-11-01 --definition-id openapi --format "link" --value 'https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json' --specification '{"name":"openapi","version":"3.0.0"}' + az apic api definition import-specification -g api-center-test -n contoso --api-id echo-api --version-id 2023-11-01 --definition-id openapi --format "link" --value 'https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json' --specification '{"name":"openapi","version":"3.0.0"}' """ _aaz_info = { @@ -74,8 +74,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_list.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_list.py index a540d0f378e..58eb4bf05dc 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_list.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_list.py @@ -18,7 +18,7 @@ class List(AAZCommand): """List a collection of API definitions. :example: List API definitions - az apic api definition list -g api-center-test -s contosoeuap --api-id echo-api --version-id 2023-01-01 + az apic api definition list -g api-center-test -n contosoeuap --api-id echo-api --version-id 2023-01-01 """ _aaz_info = { @@ -59,8 +59,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, fmt=AAZStrArgFormat( pattern="^[a-zA-Z0-9-]{3,90}$", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_show.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_show.py index 5f5ddb471be..ff7b107872b 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_show.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_show.py @@ -18,7 +18,7 @@ class Show(AAZCommand): """Get details of the API definition. :example: Show API definition details - az apic api definition show -g api-center-test -s contosoeuap --api-id echo-api --version-id 2023-01-01 --definition-id "openapi" + az apic api definition show -g api-center-test -n contosoeuap --api-id echo-api --version-id 2023-01-01 --definition-id "openapi" """ _aaz_info = { @@ -70,8 +70,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_update.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_update.py index f5a22d40c7b..1b1f06d6ad3 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_update.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/definition/_update.py @@ -18,7 +18,7 @@ class Update(AAZCommand): """Update existing API definition. :example: Update API definition - az apic api definition update -g api-center-test -s contosoeuap --api-id echo-api --version-id 2023-01-01 --definition-id "openapi" --title "OpenAPI" + az apic api definition update -g api-center-test -n contosoeuap --api-id echo-api --version-id 2023-01-01 --definition-id "openapi" --title "OpenAPI" """ _aaz_info = { @@ -72,8 +72,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_create.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_create.py index 2a479b12ec1..d9f83bb4b45 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_create.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_create.py @@ -18,7 +18,7 @@ class Create(AAZCommand): """Create a new API deployment or update an existing API deployment. :example: Create deployment - az apic api deployment create -g api-center-test -s contoso --deployment-id production --title "Production deployment" --description "Public cloud production deployment." --api-id echo-api --environment-id "/workspaces/default/environments/production" --definition-id "/workspaces/default/apis/echo-api/versions/2023-01-01/definitions/openapi" --server '{\"runtimeUri\":[\"https://example.com\"]}' + az apic api deployment create -g api-center-test -n contoso --deployment-id production --title "Production deployment" --description "Public cloud production deployment." --api-id echo-api --environment-id "/workspaces/default/environments/production" --definition-id "/workspaces/default/apis/echo-api/versions/2023-01-01/definitions/openapi" --server '{\"runtimeUri\":[\"https://example.com\"]}' """ _aaz_info = { @@ -68,8 +68,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, fmt=AAZStrArgFormat( pattern="^[a-zA-Z0-9-]{3,90}$", @@ -121,12 +121,6 @@ def _build_arguments_schema(cls, *args, **kwargs): arg_group="Properties", help="Server", ) - _args_schema.state = AAZStrArg( - options=["--state"], - arg_group="Properties", - help="State of API deployment.", - enum={"active": "active", "inactive": "inactive"}, - ) _args_schema.title = AAZStrArg( options=["--title"], arg_group="Properties", @@ -262,7 +256,6 @@ def content(self): properties.set_prop("description", AAZStrType, ".description") properties.set_prop("environmentId", AAZStrType, ".environment_id") properties.set_prop("server", AAZObjectType, ".server") - properties.set_prop("state", AAZStrType, ".state") properties.set_prop("title", AAZStrType, ".title") custom_properties = _builder.get(".properties.customProperties") diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_delete.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_delete.py index fe484c0f106..97860ca7eed 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_delete.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_delete.py @@ -19,7 +19,7 @@ class Delete(AAZCommand): """Delete API deployment. :example: Delete API deployment - az apic api deployment delete -g api-center-test -s contoso --deployment-id production --api-id echo-api + az apic api deployment delete -g api-center-test -n contoso --deployment-id production --api-id echo-api """ _aaz_info = { @@ -71,8 +71,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_list.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_list.py index 2be0462a0a9..598abdef593 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_list.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_list.py @@ -18,7 +18,7 @@ class List(AAZCommand): """List a collection of API deployments. :example: List API deployments - az apic api deployment list -g api-center-test -s contoso --api-id echo-api + az apic api deployment list -g api-center-test -n contoso --api-id echo-api """ _aaz_info = { @@ -59,8 +59,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, fmt=AAZStrArgFormat( pattern="^[a-zA-Z0-9-]{3,90}$", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_show.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_show.py index e485f3d2d86..c1c5cbde4e8 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_show.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_show.py @@ -18,7 +18,7 @@ class Show(AAZCommand): """Get details of the API deployment. :example: Show API deployment details - az apic api deployment show -g api-center-test -s contoso --deployment-id production --api-id echo-api + az apic api deployment show -g api-center-test -n contoso --deployment-id production --api-id echo-api """ _aaz_info = { @@ -70,8 +70,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_update.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_update.py index e2d34655206..e4ff827a504 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_update.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/deployment/_update.py @@ -18,7 +18,7 @@ class Update(AAZCommand): """Update existing API deployment. :example: Update API deployment - az apic api deployment update -g api-center-test -s contoso --deployment-id production --title "Production deployment" --api-id echo-api + az apic api deployment update -g api-center-test -n contoso --deployment-id production --title "Production deployment" --api-id echo-api """ _aaz_info = { @@ -72,8 +72,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -131,13 +131,6 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Server", nullable=True, ) - _args_schema.state = AAZStrArg( - options=["--state"], - arg_group="Properties", - help="State of API deployment.", - nullable=True, - enum={"active": "active", "inactive": "inactive"}, - ) _args_schema.title = AAZStrArg( options=["--title"], arg_group="Properties", @@ -417,7 +410,6 @@ def _update_instance(self, instance): properties.set_prop("description", AAZStrType, ".description") properties.set_prop("environmentId", AAZStrType, ".environment_id") properties.set_prop("server", AAZObjectType, ".server") - properties.set_prop("state", AAZStrType, ".state") properties.set_prop("title", AAZStrType, ".title") custom_properties = _builder.get(".properties.customProperties") diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_create.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_create.py index 28b2b13e18f..c90a6b70b31 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_create.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_create.py @@ -18,7 +18,7 @@ class Create(AAZCommand): """Create a new API version or update an existing API version. :example: Create API version - az apic api version create -g api-center-test -s contosoeuap --api-id echo-api --version-id 2023-01-01 --title "2023-01-01" + az apic api version create -g api-center-test -n contosoeuap --api-id echo-api --version-id 2023-01-01 --title "2023-01-01" --lifecycle-stage production """ _aaz_info = { @@ -58,8 +58,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, fmt=AAZStrArgFormat( pattern="^[a-zA-Z0-9-]{3,90}$", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_delete.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_delete.py index e41d6192151..375adfb700d 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_delete.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_delete.py @@ -19,7 +19,7 @@ class Delete(AAZCommand): """Delete specified API version :example: Delete API version - az apic api version delete -g api-center-test -s contosoeuap --api-id echo-api --version-id 2023-01-01 + az apic api version delete -g api-center-test -n contosoeuap --api-id echo-api --version-id 2023-01-01 """ _aaz_info = { @@ -60,8 +60,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_list.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_list.py index 21c13daee76..ef13f521f6a 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_list.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_list.py @@ -18,7 +18,7 @@ class List(AAZCommand): """List a collection of API versions. :example: List API versions - az apic api version list -g api-center-test -s contosoeuap --api-id echo-api + az apic api version list -g api-center-test -n contosoeuap --api-id echo-api """ _aaz_info = { @@ -59,8 +59,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, fmt=AAZStrArgFormat( pattern="^[a-zA-Z0-9-]{3,90}$", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_show.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_show.py index e4bd8847727..4197450651f 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_show.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_show.py @@ -18,7 +18,7 @@ class Show(AAZCommand): """Get details of the API version. :example: Show API version details - az apic api version show -g api-center-test -s contoso --api-id echo-api --version-id 2023-01-01 + az apic api version show -g api-center-test -n contoso --api-id echo-api --version-id 2023-01-01 """ _aaz_info = { @@ -59,8 +59,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_update.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_update.py index 97ae3567c77..3403a9407e4 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_update.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/api/version/_update.py @@ -18,7 +18,7 @@ class Update(AAZCommand): """Update existing API version. :example: Update API version - az apic api version update -g api-center-test -s contosoeuap --api-id echo-api --version-id 2023-01-01 --title "2023-01-01" + az apic api version update -g api-center-test -n contosoeuap --api-id echo-api --version-id 2023-01-01 --title "2023-01-01" """ _aaz_info = { @@ -61,8 +61,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_create.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_create.py index 1b011e5bc13..e0614c07819 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_create.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_create.py @@ -18,7 +18,7 @@ class Create(AAZCommand): """Create a new environment or update an existing environment. :example: Create environment - az apic environment create -g api-center-test -s contosoeuap --environment-id public --title "Public cloud" --type "development" + az apic environment create -g api-center-test -n contosoeuap --environment-id public --title "Public cloud" --type "development" """ _aaz_info = { @@ -58,8 +58,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, fmt=AAZStrArgFormat( pattern="^[a-zA-Z0-9-]{3,90}$", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_delete.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_delete.py index 8213231b6d6..1d6f1f834fd 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_delete.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_delete.py @@ -19,7 +19,7 @@ class Delete(AAZCommand): """Delete the environment. :example: Delete environment - az apic environment delete -g api-center-test -s contosoeuap --environment-id public + az apic environment delete -g api-center-test -n contosoeuap --environment-id public """ _aaz_info = { @@ -60,8 +60,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_list.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_list.py index e9a9ec010f5..d36ca32315c 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_list.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_list.py @@ -18,7 +18,7 @@ class List(AAZCommand): """List a collection of environments. :example: List environments - az apic environment list -g api-center-test -s contosoeuap + az apic environment list -g api-center-test -n contosoeuap """ _aaz_info = { @@ -49,8 +49,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, fmt=AAZStrArgFormat( pattern="^[a-zA-Z0-9-]{3,90}$", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_show.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_show.py index a4fa6f3a605..0b33f575b13 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_show.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_show.py @@ -18,7 +18,7 @@ class Show(AAZCommand): """Get details of the environment. :example: Show environment details - az apic environment show -g api-center-test -s contosoeuap --environment-id public + az apic environment show -g api-center-test -n contosoeuap --environment-id public """ _aaz_info = { @@ -59,8 +59,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_update.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_update.py index d5850e4198a..94596db6625 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_update.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/environment/_update.py @@ -18,7 +18,7 @@ class Update(AAZCommand): """Update existing environment. :example: Update environment - az apic environment update -g api-center-test -s contosoeuap --environment-id public --title "Public cloud" + az apic environment update -g api-center-test -n contosoeuap --environment-id public --title "Public cloud" """ _aaz_info = { @@ -61,8 +61,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_create.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_create.py index 8b4a1e1c749..f7ec27b4b2c 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_create.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_create.py @@ -18,10 +18,10 @@ class Create(AAZCommand): """Create a new metadata schema or update an existing metadata schema. :example: Create metadata example 1 - az apic metadata create --resource-group api-center-test --service-name contoso --name "test1" --schema '{\"type\":\"string\", \"title\":\"First name\", \"pattern\": \"^[a-zA-Z0-9]+$\"}' --assignments '[{entity:api,required:true,deprecated:false}]' + az apic metadata create --resource-group api-center-test --service-name contoso --metadata-name "test1" --schema '{\"type\":\"string\", \"title\":\"First name\", \"pattern\": \"^[a-zA-Z0-9]+$\"}' --assignments '[{entity:api,required:true,deprecated:false}]' :example: Create metadata example 2 - az apic metadata create --resource-group api-center-test --service-name contoso --name testregion --schema '{\"type\":\"string\",\"title\":\"testregion\",\"oneOf\":[{\"const\":\"Region1\",\"description\":\"\"},{\"const\":\"Region2\",\"description\":\"\"},{\"const\":\"Region3\",\"description\":\"\"}]}' --assignments '[{entity:api,required:true,deprecated:false},{entity:environment,required:true,deprecated:false}]' + az apic metadata create --resource-group api-center-test --service-name contoso --metadata-name testregion --schema '{\"type\":\"string\",\"title\":\"testregion\",\"oneOf\":[{\"const\":\"Region1\",\"description\":\"\"},{\"const\":\"Region2\",\"description\":\"\"},{\"const\":\"Region3\",\"description\":\"\"}]}' --assignments '[{entity:api,required:true,deprecated:false},{entity:environment,required:true,deprecated:false}]' """ _aaz_info = { @@ -47,8 +47,8 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "" _args_schema = cls._args_schema - _args_schema.metadata_schema_name = AAZStrArg( - options=["--name", "--metadata-schema", "--metadata-schema-name"], + _args_schema.metadata_name = AAZStrArg( + options=["--metadata-name"], help="The name of the metadata schema.", required=True, fmt=AAZStrArgFormat( @@ -61,8 +61,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, fmt=AAZStrArgFormat( pattern="^[a-zA-Z0-9-]{3,90}$", @@ -152,7 +152,7 @@ def error_format(self): def url_parameters(self): parameters = { **self.serialize_url_param( - "metadataSchemaName", self.ctx.args.metadata_schema_name, + "metadataSchemaName", self.ctx.args.metadata_name, required=True, ), **self.serialize_url_param( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_delete.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_delete.py index 47cc9e44922..c2f346e2613 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_delete.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_delete.py @@ -19,10 +19,10 @@ class Delete(AAZCommand): """Delete specified metadata schema. :example: Delete Metadata Schema - az apic metadata delete --resource-group api-center-test --service-name contoso --name "test1" + az apic metadata delete --resource-group api-center-test --service-name contoso --metadata-name "test1" :example: Delete schema - az apic metadata delete -g api-center-test -s contosoeuap --name "approver" + az apic metadata delete -g api-center-test -n contosoeuap --metadata-name "approver" """ _aaz_info = { @@ -48,8 +48,8 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "" _args_schema = cls._args_schema - _args_schema.metadata_schema_name = AAZStrArg( - options=["--name", "--metadata-schema", "--metadata-schema-name"], + _args_schema.metadata_name = AAZStrArg( + options=["--metadata-name"], help="The name of the metadata schema.", required=True, id_part="child_name_1", @@ -63,8 +63,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -120,7 +120,7 @@ def error_format(self): def url_parameters(self): parameters = { **self.serialize_url_param( - "metadataSchemaName", self.ctx.args.metadata_schema_name, + "metadataSchemaName", self.ctx.args.metadata_name, required=True, ), **self.serialize_url_param( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_export.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_export.py index 18478e3aa6a..3af9fdda2c3 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_export.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_export.py @@ -18,13 +18,13 @@ class Export(AAZCommand): """Exports the metadata schema. :example: Export Metadata Schema assigned to api - az apic metadata export -g api-center-test -s contosoeuap --assignments api --file-name filename.json + az apic metadata export -g api-center-test -n contosoeuap --assignments api --file-name filename.json :example: Export Metadata Schema assigned to deployment - az apic metadata export -g api-center-test -s contosoeuap --assignments deployment --file-name filename.json + az apic metadata export -g api-center-test -n contosoeuap --assignments deployment --file-name filename.json :example: Export Metadata Schema assigned to environment - az apic metadata export -g api-center-test -s contosoeuap --assignments environment --file-name filename.json + az apic metadata export -g api-center-test -n contosoeuap --assignments environment --file-name filename.json """ _aaz_info = { @@ -55,7 +55,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--name", "--service", "--service-name"], + options=["-n", "--service-name"], help="The name of the API Center service.", required=True, id_part="name", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_list.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_list.py index 8b744c096c9..8e165aa2299 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_list.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_list.py @@ -18,7 +18,7 @@ class List(AAZCommand): """List a collection of metadata schemas. :example: List schemas - az apic metadata list -g api-center-test -s contosoeuap + az apic metadata list -g api-center-test -n contosoeuap """ _aaz_info = { @@ -49,8 +49,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, fmt=AAZStrArgFormat( pattern="^[a-zA-Z0-9-]{3,90}$", diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_show.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_show.py index 5a12c7efb83..eca4ad1aadd 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_show.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_show.py @@ -18,10 +18,10 @@ class Show(AAZCommand): """Get details of the metadata schema. :example: Show schema details 1 - az apic metadata show -g api-center-test -s contosoeuap --name approver + az apic metadata show -g api-center-test -n contosoeuap --metadata-name approver :example: Show schema details 2 - az apic metadata show --resource-group api-center-test --service-name contoso --name "testchoices" + az apic metadata show --resource-group api-center-test --service-name contoso --metadata-name "testchoices" """ _aaz_info = { @@ -47,8 +47,8 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "" _args_schema = cls._args_schema - _args_schema.metadata_schema_name = AAZStrArg( - options=["--name", "--metadata-schema", "--metadata-schema-name"], + _args_schema.metadata_name = AAZStrArg( + options=["--metadata-name"], help="The name of the metadata schema.", required=True, id_part="child_name_1", @@ -62,8 +62,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -121,7 +121,7 @@ def error_format(self): def url_parameters(self): parameters = { **self.serialize_url_param( - "metadataSchemaName", self.ctx.args.metadata_schema_name, + "metadataSchemaName", self.ctx.args.metadata_name, required=True, ), **self.serialize_url_param( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_update.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_update.py index 8ffae8a1c21..38974e1a22b 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_update.py +++ b/src/apic-extension/azext_apic_extension/aaz/latest/apic/metadata/_update.py @@ -18,7 +18,7 @@ class Update(AAZCommand): """Update existing metadata schema. :example: Update schema - az apic metadata update --resource-group api-center-test --service-name contoso --name "test1" --schema '{\"type\":\"string\", \"title\":\"Last name\", \"pattern\": \"^[a-zA-Z0-9]+$\"}' + az apic metadata update --resource-group api-center-test --service-name contoso --metadata-name "test1" --schema '{\"type\":\"string\", \"title\":\"Last name\", \"pattern\": \"^[a-zA-Z0-9]+$\"}' """ _aaz_info = { @@ -46,8 +46,8 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "" _args_schema = cls._args_schema - _args_schema.metadata_schema_name = AAZStrArg( - options=["--name", "--metadata-schema", "--metadata-schema-name"], + _args_schema.metadata_name = AAZStrArg( + options=["--metadata-name"], help="The name of the metadata schema.", required=True, id_part="child_name_1", @@ -61,8 +61,8 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.service_name = AAZStrArg( - options=["-s", "--service", "--service-name"], - help="The name of the API Center service.", + options=["-n", "--service-name"], + help="The name of Azure API Center service.", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -171,7 +171,7 @@ def error_format(self): def url_parameters(self): parameters = { **self.serialize_url_param( - "metadataSchemaName", self.ctx.args.metadata_schema_name, + "metadataSchemaName", self.ctx.args.metadata_name, required=True, ), **self.serialize_url_param( @@ -258,7 +258,7 @@ def error_format(self): def url_parameters(self): parameters = { **self.serialize_url_param( - "metadataSchemaName", self.ctx.args.metadata_schema_name, + "metadataSchemaName", self.ctx.args.metadata_name, required=True, ), **self.serialize_url_param( diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/__cmd_group.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/__cmd_group.py deleted file mode 100644 index 4ee8cd4d0a7..00000000000 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/__cmd_group.py +++ /dev/null @@ -1,23 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -# Code generated by aaz-dev-tools -# -------------------------------------------------------------------------------------------- - -# pylint: skip-file -# flake8: noqa - -from azure.cli.core.aaz import * - - -@register_command_group( - "apic service", -) -class __CMDGroup(AAZCommandGroup): - """Manage an Azure API Center service instance. - """ - pass - - -__all__ = ["__CMDGroup"] diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_update.py b/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_update.py deleted file mode 100644 index 8ad8a6df53d..00000000000 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/_update.py +++ /dev/null @@ -1,311 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -# Code generated by aaz-dev-tools -# -------------------------------------------------------------------------------------------- - -# pylint: skip-file -# flake8: noqa - -from azure.cli.core.aaz import * - - -@register_command( - "apic service update", -) -class Update(AAZCommand): - """Update an instance of an Azure API Center service. - - :example: Update service details - az apic service update -g contoso-resources -s contoso - """ - - _aaz_info = { - "version": "2024-03-01", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.apicenter/services/{}", "2024-03-01"], - ] - } - - def _handler(self, command_args): - super()._handler(command_args) - self._execute_operations() - return self._output() - - _args_schema = None - - @classmethod - def _build_arguments_schema(cls, *args, **kwargs): - if cls._args_schema is not None: - return cls._args_schema - cls._args_schema = super()._build_arguments_schema(*args, **kwargs) - - # define Arg Group "" - - _args_schema = cls._args_schema - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - _args_schema.service_name = AAZStrArg( - options=["-s", "--name", "--service", "--service-name"], - help="The name of Azure API Center service.", - required=True, - id_part="name", - fmt=AAZStrArgFormat( - pattern="^[a-zA-Z0-9-]{3,90}$", - max_length=90, - min_length=1, - ), - ) - _args_schema.identity = AAZObjectArg( - options=["--identity"], - help="The managed service identities assigned to this resource.", - ) - _args_schema.tags = AAZDictArg( - options=["--tags"], - help="Resource tags.", - ) - - identity = cls._args_schema.identity - identity.type = AAZStrArg( - options=["type"], - help="Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", - required=True, - enum={"None": "None", "SystemAssigned": "SystemAssigned", "SystemAssigned,UserAssigned": "SystemAssigned,UserAssigned", "UserAssigned": "UserAssigned"}, - ) - identity.user_assigned_identities = AAZDictArg( - options=["user-assigned-identities"], - help="The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", - ) - - user_assigned_identities = cls._args_schema.identity.user_assigned_identities - user_assigned_identities.Element = AAZObjectArg( - nullable=True, - blank={}, - ) - - tags = cls._args_schema.tags - tags.Element = AAZStrArg() - return cls._args_schema - - def _execute_operations(self): - self.pre_operations() - self.ServicesUpdate(ctx=self.ctx)() - self.post_operations() - - @register_callback - def pre_operations(self): - pass - - @register_callback - def post_operations(self): - pass - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result - - class ServicesUpdate(AAZHttpOperation): - CLIENT_TYPE = "MgmtClient" - - def __call__(self, *args, **kwargs): - request = self.make_request() - session = self.client.send_request(request=request, stream=False, **kwargs) - if session.http_response.status_code in [200]: - return self.on_200(session) - - return self.on_error(session.http_response) - - @property - def url(self): - return self.client.format_url( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}", - **self.url_parameters - ) - - @property - def method(self): - return "PATCH" - - @property - def error_format(self): - return "MgmtErrorFormat" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "resourceGroupName", self.ctx.args.resource_group, - required=True, - ), - **self.serialize_url_param( - "serviceName", self.ctx.args.service_name, - required=True, - ), - **self.serialize_url_param( - "subscriptionId", self.ctx.subscription_id, - required=True, - ), - } - return parameters - - @property - def query_parameters(self): - parameters = { - **self.serialize_query_param( - "api-version", "2024-03-01", - required=True, - ), - } - return parameters - - @property - def header_parameters(self): - parameters = { - **self.serialize_header_param( - "Content-Type", "application/json", - ), - **self.serialize_header_param( - "Accept", "application/json", - ), - } - return parameters - - @property - def content(self): - _content_value, _builder = self.new_content_builder( - self.ctx.args, - typ=AAZObjectType, - typ_kwargs={"flags": {"required": True, "client_flatten": True}} - ) - _builder.set_prop("identity", AAZObjectType, ".identity") - _builder.set_prop("tags", AAZDictType, ".tags") - - identity = _builder.get(".identity") - if identity is not None: - identity.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) - identity.set_prop("userAssignedIdentities", AAZDictType, ".user_assigned_identities") - - user_assigned_identities = _builder.get(".identity.userAssignedIdentities") - if user_assigned_identities is not None: - user_assigned_identities.set_elements(AAZObjectType, ".", typ_kwargs={"nullable": True}) - - tags = _builder.get(".tags") - if tags is not None: - tags.set_elements(AAZStrType, ".") - - return self.serialize_content(_content_value) - - def on_200(self, session): - data = self.deserialize_http_content(session) - self.ctx.set_var( - "instance", - data, - schema_builder=self._build_schema_on_200 - ) - - _schema_on_200 = None - - @classmethod - def _build_schema_on_200(cls): - if cls._schema_on_200 is not None: - return cls._schema_on_200 - - cls._schema_on_200 = AAZObjectType() - - _schema_on_200 = cls._schema_on_200 - _schema_on_200.id = AAZStrType( - flags={"read_only": True}, - ) - _schema_on_200.identity = AAZObjectType() - _schema_on_200.location = AAZStrType( - flags={"required": True}, - ) - _schema_on_200.name = AAZStrType( - flags={"read_only": True}, - ) - _schema_on_200.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - _schema_on_200.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - _schema_on_200.tags = AAZDictType() - _schema_on_200.type = AAZStrType( - flags={"read_only": True}, - ) - - identity = cls._schema_on_200.identity - identity.principal_id = AAZStrType( - serialized_name="principalId", - flags={"read_only": True}, - ) - identity.tenant_id = AAZStrType( - serialized_name="tenantId", - flags={"read_only": True}, - ) - identity.type = AAZStrType( - flags={"required": True}, - ) - identity.user_assigned_identities = AAZDictType( - serialized_name="userAssignedIdentities", - ) - - user_assigned_identities = cls._schema_on_200.identity.user_assigned_identities - user_assigned_identities.Element = AAZObjectType( - nullable=True, - ) - - _element = cls._schema_on_200.identity.user_assigned_identities.Element - _element.client_id = AAZStrType( - serialized_name="clientId", - flags={"read_only": True}, - ) - _element.principal_id = AAZStrType( - serialized_name="principalId", - flags={"read_only": True}, - ) - - properties = cls._schema_on_200.properties - properties.data_api_hostname = AAZStrType( - serialized_name="dataApiHostname", - flags={"read_only": True}, - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - - system_data = cls._schema_on_200.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - ) - - tags = cls._schema_on_200.tags - tags.Element = AAZStrType() - - return cls._schema_on_200 - - -class _UpdateHelper: - """Helper class for Update""" - - -__all__ = ["Update"] diff --git a/src/apic-extension/azext_apic_extension/azext_metadata.json b/src/apic-extension/azext_apic_extension/azext_metadata.json index 916deb3b5c2..34f7fac3fed 100644 --- a/src/apic-extension/azext_apic_extension/azext_metadata.json +++ b/src/apic-extension/azext_apic_extension/azext_metadata.json @@ -1,4 +1,3 @@ { - "azext.isPreview": true, "azext.minCliCoreVersion": "2.57.0" } \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/command_patches.py b/src/apic-extension/azext_apic_extension/command_patches.py index 4a12609b527..26a09b8723d 100644 --- a/src/apic-extension/azext_apic_extension/command_patches.py +++ b/src/apic-extension/azext_apic_extension/command_patches.py @@ -46,7 +46,9 @@ Create as CreateMetadata, Export as ExportMetadata ) -from .aaz.latest.apic.service import ImportFromApim +from .aaz.latest.apic import ImportFromApim, Create as CreateService + +from azure.cli.core.aaz._arg import AAZStrArg, AAZListArg class DefaultWorkspaceParameter: @@ -64,6 +66,22 @@ def pre_operations(self): args.workspace_name = "default" +# `az apic` commands +class CreateServiceExtension(CreateService): + # pylint: disable=too-few-public-methods + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + # pylint: disable=protected-access + args_schema = super()._build_arguments_schema(*args, **kwargs) + # temporary hide sku parameter as SKU has many fields and we needs more discussion on the UX + args_schema.sku_name._registered = False + return args_schema + + def pre_operations(self): + args = self.ctx.args + args.sku_name = "Free" + + # `az apic api` commands class CreateAPIExtension(DefaultWorkspaceParameter, CreateAPI): pass @@ -99,7 +117,15 @@ class ExportAPIDefinitionExtension(DefaultWorkspaceParameter, ExportAPIDefinitio class ImportAPIDefinitionExtension(DefaultWorkspaceParameter, ImportAPIDefinition): - pass + # pylint: disable=too-few-public-methods + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + # pylint: disable=protected-access + args_schema = super()._build_arguments_schema(*args, **kwargs) + args_schema.format._required = True + args_schema.specification._required = True + args_schema.value._required = True + return args_schema class ListAPIDefinitionExtension(DefaultWorkspaceParameter, ListAPIDefinition): @@ -137,7 +163,16 @@ class UpdateAPIVersionExtension(DefaultWorkspaceParameter, UpdateAPIVersion): # `az apic api deployment` commands class CreateAPIDeploymentExtension(DefaultWorkspaceParameter, CreateAPIDeployment): - pass + # pylint: disable=too-few-public-methods + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + # pylint: disable=protected-access + args_schema = super()._build_arguments_schema(*args, **kwargs) + args_schema.definition_id._required = True + args_schema.environment_id._required = True + args_schema.server._required = True + args_schema.title._required = True + return args_schema class DeleteAPIDeploymentExtension(DefaultWorkspaceParameter, DeleteAPIDeployment): @@ -205,5 +240,58 @@ class ImportFromApimExtension(ImportFromApim): def _build_arguments_schema(cls, *args, **kwargs): # pylint: disable=protected-access args_schema = super()._build_arguments_schema(*args, **kwargs) - args_schema.source_resource_ids._required = True + args_schema.source_resource_ids._required = False + args_schema.source_resource_ids._registered = False + + args_schema.apim_subscription_id = AAZStrArg( + options=["--apim-subscription"], + help="The subscription id of the source APIM instance.", + required=False + ) + + args_schema.apim_resource_group = AAZStrArg( + options=["--apim-resource-group"], + help="The resource group of the source APIM instance.", + required=False + ) + + args_schema.apim_name = AAZStrArg( + options=["--apim-name"], + help="The name of the source APIM instance.", + required=True + ) + + args_schema.apim_apis = AAZListArg( + options=["--apim-apis"], + help="The APIs to be imported.", + required=True + ) + args_schema.apim_apis.Element = AAZStrArg() + return args_schema + + def pre_operations(self): + super().pre_operations() + args = self.ctx.args + + # compose sourceResourceIds property in the request body + # Use same subscription id and resource group as API Center by default + resource_group = args.resource_group + subscription_id = self.ctx.subscription_id + + # Use user provided subscription id + if args.apim_subscription_id: + subscription_id = args.apim_subscription_id + + # Use user provided resource group + if args.apim_resource_group: + resource_group = args.apim_resource_group + + source_resource_ids = [] + for item in args.apim_apis: + source_resource_ids.append( + f"/subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/" + f"Microsoft.ApiManagement/service/{args.apim_name}/apis/{item}" + ) + + args.source_resource_ids = source_resource_ids diff --git a/src/apic-extension/azext_apic_extension/commands.py b/src/apic-extension/azext_apic_extension/commands.py index 5d1def463a7..661e5002b86 100644 --- a/src/apic-extension/azext_apic_extension/commands.py +++ b/src/apic-extension/azext_apic_extension/commands.py @@ -12,8 +12,6 @@ from .custom import ImportSpecificationExtension from .custom import ExportSpecificationExtension from .custom import ExportMetadataSchemaExtension -from .custom import CreateMetadataSchemaExtension -from .custom import UpdateMetadataSchemaExtension def load_custom_commands(self, _): # pylint: disable=unused-argument @@ -21,8 +19,6 @@ def load_custom_commands(self, _): # pylint: disable=unused-argument self.command_table['apic api definition import-specification'] = ImportSpecificationExtension(loader=self) self.command_table['apic api definition export-specification'] = ExportSpecificationExtension(loader=self) with self.command_group('apic metadata') as g: - self.command_table['apic metadata create'] = CreateMetadataSchemaExtension(loader=self) - self.command_table['apic metadata update'] = UpdateMetadataSchemaExtension(loader=self) self.command_table['apic metadata export'] = ExportMetadataSchemaExtension(loader=self) with self.command_group('apic api') as g: g.custom_command("register", "register_apic", is_preview=True) diff --git a/src/apic-extension/azext_apic_extension/custom.py b/src/apic-extension/azext_apic_extension/custom.py index 3003b8ace29..89c712bb1ee 100644 --- a/src/apic-extension/azext_apic_extension/custom.py +++ b/src/apic-extension/azext_apic_extension/custom.py @@ -16,70 +16,30 @@ import yaml import requests from knack.log import get_logger +from knack.util import CLIError import chardet from azure.cli.core.aaz._arg import AAZStrArg from .command_patches import ImportAPIDefinitionExtension from .command_patches import ExportAPIDefinitionExtension -from .command_patches import CreateMetadataExtension from .command_patches import ExportMetadataExtension -from .aaz.latest.apic.metadata import Update as UpdateMetadataSchema logger = get_logger(__name__) class ImportSpecificationExtension(ImportAPIDefinitionExtension): - @classmethod - def _build_arguments_schema(cls, *args, **kwargs): - args_schema = super()._build_arguments_schema(*args, **kwargs) - args_schema.source_profile = AAZStrArg( - options=["--file-name"], - help='Name of the file from where to import the spec from.', - required=False, - registered=True - ) - return args_schema - def pre_operations(self): super().pre_operations() args = self.ctx.args - data = None - value = None - - # Load the JSON file - if args.source_profile: - with open(str(args.source_profile), 'rb') as f: - data = f.read() - result = chardet.detect(data) - encoding = result['encoding'] - - if str(args.source_profile).endswith('.yaml') or str(args.source_profile).endswith('.yml'): - with open(str(args.source_profile), 'r', encoding=encoding) as f: - content = f.read() - data = yaml.safe_load(content) - if data: - value = content - - if (str(args.source_profile).endswith('.json')): - with open(str(args.source_profile), 'r', encoding=encoding) as f: - content = f.read() - data = json.loads(content) - if data: - value = content - - # If any of the fields are None, get them from self.args - if value is None: - value = args.value - - # Reassign the values to self.args - args.value = value # Check the size of 'value' if format is inline and raise error if value is greater than 3 mb if args.format == 'inline': - value_size_bytes = sys.getsizeof(args.value) + value_size_bytes = sys.getsizeof(str(args.value)) value_size_mb = value_size_bytes / (1024 * 1024) # Convert bytes to megabytes if value_size_mb > 3: - logger.error('The size of "value" is greater than 3 MB. ' - 'Please use --format "url" to import the specification from a URL for size greater than 3 mb.') + raise CLIError( + 'The size of "value" is greater than 3 MB. ' + 'Please use --format "link" to import the specification from a URL for size greater than 3 mb.' + ) class ExportSpecificationExtension(ExportAPIDefinitionExtension): @@ -134,88 +94,6 @@ def writeResultsToFile(self, results, file_name): f.write(results) -class CreateMetadataSchemaExtension(CreateMetadataExtension): - @classmethod - def _build_arguments_schema(cls, *args, **kwargs): - args_schema = super()._build_arguments_schema(*args, **kwargs) - args_schema.source_profile = AAZStrArg( - options=["--file-name"], - help='Name of the file from that contains the metadata schema.', - required=False, - registered=True - ) - return args_schema - - def pre_operations(self): - args = self.ctx.args - data = None - value = args.schema - - # Load the JSON file - if args.source_profile: - with open(str(args.source_profile), 'rb') as f: - data = f.read() - result = chardet.detect(data) - encoding = result['encoding'] - - if os.stat(str(args.source_profile)).st_size == 0: - raise ValueError('Metadtata schema file is empty. Please provide a valid metadata schema file.') - - with open(str(args.source_profile), 'r', encoding=encoding) as f: - data = json.load(f) - if data: - value = json.dumps(data) - - # If any of the fields are None, get them from self.args - if value is None: - logger.error('Please provide the schema to create the metadata schema' - 'through --schema option or through --file-name option via a file.') - - # Reassign the values to self.args - self.ctx.args.schema = value - - -class UpdateMetadataSchemaExtension(UpdateMetadataSchema): - @classmethod - def _build_arguments_schema(cls, *args, **kwargs): - args_schema = super()._build_arguments_schema(*args, **kwargs) - args_schema.source_profile = AAZStrArg( - options=["--file-name"], - help='Name of the file from that contains the metadata schema.', - required=False, - registered=True - ) - return args_schema - - def pre_operations(self): - args = self.ctx.args - data = None - value = args.schema - - # Load the JSON file - if args.source_profile: - with open(str(args.source_profile), 'rb') as f: - rawdata = f.read() - result = chardet.detect(rawdata) - encoding = result['encoding'] - - if os.stat(str(args.source_profile)).st_size == 0: - raise ValueError('Metadtata schema file is empty. Please provide a valid metadata schema file.') - - with open(str(args.source_profile), 'r', encoding=encoding) as f: - data = json.load(f) - if data: - value = json.dumps(data) - - # If any of the fields are None, get them from self.args - if value is None: - logger.error('Please provide the schema to update the metadata schema ' - 'through --schema option or through --file-name option via a file.') - - # Reassign the values to self.args - self.ctx.args.schema = value - - class ExportMetadataSchemaExtension(ExportMetadataExtension): @classmethod @@ -268,7 +146,7 @@ def writeResultsToFile(self, results, file_name): # Quick Import -def register_apic(cmd, api_location, resource_group, service_name, environment_name=None): +def register_apic(cmd, api_location, resource_group, service_name, environment_id=None): # Load the JSON file if api_location: @@ -315,9 +193,9 @@ def register_apic(cmd, api_location, resource_group, service_name, environment_n if info: # Create API and Create API Version extracted_api_name = _generate_api_id(info.get('title', 'Default-API')).lower() - extracted_api_description = info.get('description', 'API Description') + extracted_api_description = info.get('description', 'API Description')[:1000] extracted_api_summary = info.get('summary', str(extracted_api_description)[:200]) - extracted_api_title = info.get('title', 'API Title').replace(" ", "-").lower() + extracted_api_title = info.get('title', 'API Title') extracted_api_version = info.get('version', 'v1').replace(".", "-").lower() extracted_api_version_title = info.get('version', 'v1').replace(".", "-").lower() # TODO -Create API Version lifecycle_stage @@ -435,7 +313,7 @@ def register_apic(cmd, api_location, resource_group, service_name, environment_n 'definition_id': extracted_definition_name, 'format': 'inline', 'specification': specification_details, # TODO write the correct spec object - 'source_profile': api_location + 'value': value } importAPISpecificationResults = ImportSpecificationExtension(cli_ctx=cmd.cli_ctx)(command_args=api_specification_args) @@ -447,13 +325,13 @@ def register_apic(cmd, api_location, resource_group, service_name, environment_n from .aaz.latest.apic.environment import Show as GetEnvironment environment_id = None - if environment_name: + if environment_id: # GET Environment ID environment_args = { 'resource_group': resource_group, 'service_name': service_name, 'workspace_name': 'default', - 'environment_id': environment_name + 'environment_id': environment_id } getEnvironmentResults = GetEnvironment(cli_ctx=cmd.cli_ctx)(command_args=environment_args) @@ -468,7 +346,7 @@ def register_apic(cmd, api_location, resource_group, service_name, environment_n extracted_deployment_title = server.get('title', default_deployment_title).replace(" ", "-") extracted_deployment_description = server.get('description', default_deployment_title) extracted_definition_id = '/workspaces/default/apis/' + extracted_api_name + '/versions/' + extracted_api_version + '/definitions/' + extracted_definition_name - extracted_environment_id = '/workspaces/default/environments/' + environment_name + extracted_environment_id = '/workspaces/default/environments/' + environment_id extracted_state = server.get('state', 'active') extracted_server_urls = [] diff --git a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/__init__.py b/src/apic-extension/azext_apic_extension/tests/latest/constants.py similarity index 58% rename from src/apic-extension/azext_apic_extension/aaz/latest/apic/service/__init__.py rename to src/apic-extension/azext_apic_extension/tests/latest/constants.py index 7c7b1c75784..9d4fae7db35 100644 --- a/src/apic-extension/azext_apic_extension/aaz/latest/apic/service/__init__.py +++ b/src/apic-extension/azext_apic_extension/tests/latest/constants.py @@ -1,17 +1,6 @@ # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# -# Code generated by aaz-dev-tools # -------------------------------------------------------------------------------------------- -# pylint: skip-file -# flake8: noqa - -from .__cmd_group import * -from ._create import * -from ._delete import * -from ._import_from_apim import * -from ._list import * -from ._show import * -from ._update import * +TEST_REGION = "eastus" \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/data/exported_md_schema_api.json b/src/apic-extension/azext_apic_extension/tests/latest/data/exported_md_schema_api.json deleted file mode 100644 index 28f9bfe04eb..00000000000 --- a/src/apic-extension/azext_apic_extension/tests/latest/data/exported_md_schema_api.json +++ /dev/null @@ -1,180 +0,0 @@ -{ - "type":"object", - "properties":{ - "title":{ - "description":"The name of the API.", - "type":"string", - "maxLength":50 - }, - "summary":{ - "description":"Short description of the API.", - "type":"string", - "maxLength":200 - }, - "description":{ - "description":"The description of the API.", - "type":"string", - "maxLength":1000 - }, - "kind":{ - "description":"Kind of API. For example, REST or GraphQL.", - "type":"string" - }, - "lifecycleStage":{ - "description":"Current lifecycle stage of the API.", - "type":"string", - "enum":[ - "design", - "development", - "testing", - "preview", - "production", - "deprecated", - "retired" - ] - }, - "termsOfService":{ - "description":"Terms of service for the API.", - "type":"object", - "properties":{ - "url":{ - "description":"URL pointing to the terms of service.", - "type":"string", - "maxLength":200, - "format":"uri" - } - } - }, - "license":{ - "description":"The license information for the API.", - "type":"object", - "properties":{ - "name":{ - "description":"Name of the license.", - "type":"string", - "maxLength":50 - }, - "url":{ - "description":"URL pointing to the license details. The URL field is mutually exclusive of the identifier field.", - "type":"string", - "maxLength":200, - "format":"uri" - }, - "identifier":{ - "description":"SPDX license information for the API. The identifier field is mutually exclusive of the URL field.", - "type":"string", - "maxLength":200, - "format":"uri" - } - } - }, - "externalDocumentation":{ - "description":"External documentation", - "type":"array", - "items":{ - "type":"object", - "properties":{ - "title":{ - "description":"Title of the documentation.", - "type":"string", - "maxLength":50 - }, - "description":{ - "description":"Description of the documentation.", - "type":"string", - "maxLength":1000 - }, - "url":{ - "description":"URL pointing to the documentation.", - "type":"string", - "maxLength":200, - "format":"uri" - } - } - }, - "maxItems":20 - }, - "contacts":{ - "description":"Points of contact for the API.", - "type":"array", - "items":{ - "type":"object", - "properties":{ - "name":{ - "description":"Name of the contact.", - "type":"string", - "maxLength":100 - }, - "url":{ - "description":"URL for the contact.", - "type":"string", - "maxLength":200, - "format":"uri" - }, - "email":{ - "description":"Email address for the contact.", - "type":"string", - "maxLength":100, - "format":"email" - } - } - }, - "maxItems":10 - }, - "customProperties":{ - "type":"object", - "properties":{ - "compliance-status":{ - "type":"string", - "title":"compliance-status", - "oneOf":[ - { - "const":"new", - "description":"" - }, - { - "const":"pending", - "description":"" - }, - { - "const":"solved", - "description":"" - } - ] - }, - "approver":{ - "title":"approver", - "type":"string" - }, - "cost-center":{ - "title":"cost-center", - "type":"string" - }, - "ownership":{ - "title":"ownership", - "type":"string" - }, - "metadata-test-1":{ - "title":"metadata-test-1", - "type":"string" - }, - "metadata-test-2":{ - "title":"metadata-test-2", - "type":"boolean" - }, - "lastName":{ - "type":"string" - } - }, - "unevaluatedProperties":false, - "required":[ - "metadata-test-1", - "metadata-test-2" - ] - } - }, - "required":[ - "title", - "kind" - ] -} \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/data/exported_md_schema_deployment.json b/src/apic-extension/azext_apic_extension/tests/latest/data/exported_md_schema_deployment.json deleted file mode 100644 index 3f3aa87832c..00000000000 --- a/src/apic-extension/azext_apic_extension/tests/latest/data/exported_md_schema_deployment.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type":"object", - "properties":{ - "title":{ - "description":"The name of the deployment.", - "type":"string", - "maxLength":50 - }, - "description":{ - "description":"The description of the deployment.", - "type":"string", - "maxLength":1000 - }, - "environmentId":{ - "description":"The service-scoped resource ID of the deployment environment.", - "type":"string" - }, - "definitionId":{ - "description":"The service-scoped resource ID of the API definition.", - "type":"string" - }, - "server":{ - "description":"The server information of the API deployment.", - "type":"object", - "properties":{ - "runtimeUri":{ - "description":"Base runtime URIs for this deployment.", - "type":"array", - "items":{ - "type":"string" - }, - "maxItems":200 - } - }, - "required":[ - "runtimeUri" - ] - }, - "customProperties":{ - "type":"object", - "properties":{}, - "unevaluatedProperties":false, - "required":[] - }, - "recommended":{ - "description":"Indicates if this is currently recommended deployment.", - "type":"boolean" - } - }, - "required":[ - "title", - "environmentId", - "definitionId", - "server" - ] -} \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/data/exported_md_schema_env.json b/src/apic-extension/azext_apic_extension/tests/latest/data/exported_md_schema_env.json deleted file mode 100644 index 5d5d2dc00be..00000000000 --- a/src/apic-extension/azext_apic_extension/tests/latest/data/exported_md_schema_env.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "type":"object", - "properties":{ - "title":{ - "description":"The name of the environment.", - "type":"string", - "maxLength":50 - }, - "kind":{ - "description":"Kind of deployment environment.", - "type":"string" - }, - "description":{ - "description":"Description of the environment.", - "type":"string", - "maxLength":1000 - }, - "server":{ - "description":"Server information of the environment.", - "type":"object", - "properties":{ - "type":{ - "description":"Type of the server that represents the environment.", - "type":"string" - }, - "managementPortalUri":{ - "description":"URIs of the server's management portal.", - "type":"array", - "items":{ - "type":"string" - }, - "maxItems":200 - } - } - }, - "onboarding":{ - "description":"Onboarding information for this environment.", - "type":"object", - "properties":{ - "instructions":{ - "description":"Instructions how to onboard to the environment.", - "type":"string", - "maxLength":1000 - }, - "developerPortalUri":{ - "description":"Developer portal URIs of the environment.", - "type":"array", - "items":{ - "type":"string" - }, - "maxItems":200 - } - } - }, - "customProperties":{ - "type":"object", - "properties":{}, - "unevaluatedProperties":false, - "required":[] - } - }, - "required":[ - "title", - "kind" - ] -} \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/data/exported_spec.json b/src/apic-extension/azext_apic_extension/tests/latest/data/exported_spec.json deleted file mode 100644 index f4ac2c2048f..00000000000 --- a/src/apic-extension/azext_apic_extension/tests/latest/data/exported_spec.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "openapi":"3.0.0", - "info":{ - "title":"Sample API 101", - "description":"API description in Markdown. 101", - "version":"1.0.0" - }, - "servers":[ - { - "url":"http://api.example.com/v1" - } - ], - "paths":{ - "/users":{ - "get":{ - "summary":"Returns a list of users.", - "description":"Optional extended description in Markdown.", - "responses":{ - "200":{ - "description":"A JSON array of user names", - "content":{ - "application/json":{ - "schema":{ - "type":"array", - "items":{ - "type":"string" - } - } - } - } - } - } - } - } - } -} \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/data/import_metadataschema_input.json b/src/apic-extension/azext_apic_extension/tests/latest/data/import_metadataschema_input.json deleted file mode 100644 index c3a0db33ded..00000000000 --- a/src/apic-extension/azext_apic_extension/tests/latest/data/import_metadataschema_input.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "type": "string", - "title": "CLI Test First name", - "pattern": "^[a-zA-Z0-9 ]+$" -} \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/data/import_spec_payload.json b/src/apic-extension/azext_apic_extension/tests/latest/data/import_spec_payload.json deleted file mode 100644 index 3046e59b93f..00000000000 --- a/src/apic-extension/azext_apic_extension/tests/latest/data/import_spec_payload.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "openapi": "3.0.0", - "info": { - "title": "Sample API 101", - "description": "API description in Markdown. 101", - "version": "1.0.0" - }, - "servers": [ - { - "url": "http://api.example.com/v1" - } - ], - "paths": { - "/users": { - "get": { - "summary": "Returns a list of users.", - "description": "Optional extended description in Markdown.", - "responses": { - "200": { - "description": "A JSON array of user names", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - } - } - } - } -} \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/data/register_quickadd_openai_spec.json b/src/apic-extension/azext_apic_extension/tests/latest/data/register_quickadd_openai_spec.json deleted file mode 100644 index 503709fa43b..00000000000 --- a/src/apic-extension/azext_apic_extension/tests/latest/data/register_quickadd_openai_spec.json +++ /dev/null @@ -1,3193 +0,0 @@ -{ - "openapi": "3.0.0", - "servers": [ - { - "url": "https://api.openai.com/v1" - } - ], - "info": { - "description": "APIs for sampling from and fine-tuning language models", - "title": "CLI Test OpenAI API 105", - "version": "1.2.0", - "x-apisguru-categories": [ - "machine_learning" - ], - "x-logo": { - "url": "https://learnodo-newtonic.com/wp-content/uploads/2020/04/Logo-of-OpenAI-768x161.jpg" - }, - "x-origin": [ - { - "format": "openapi", - "url": "https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml", - "version": "3.0" - } - ], - "x-providerName": "openai.com" - }, - "tags": [ - { - "description": "The OpenAI REST API", - "name": "OpenAI" - } - ], - "paths": { - "/answers": { - "post": { - "deprecated": true, - "operationId": "createAnswer", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateAnswerRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateAnswerResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Answers the specified question using the provided documents and examples.\n\nThe endpoint first [searches](/docs/api-reference/searches) over provided documents or files to find relevant context. The relevant context is combined with the provided examples and question to create the prompt for [completion](/docs/api-reference/completions).\n", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/answers \\\n -X POST \\\n -H \"Authorization: Bearer YOUR_API_KEY\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"documents\": [\"Puppy A is happy.\", \"Puppy B is sad.\"],\n \"question\": \"which puppy is happy?\",\n \"search_model\": \"ada\",\n \"model\": \"curie\",\n \"examples_context\": \"In 2017, U.S. life expectancy was 78.6 years.\",\n \"examples\": [[\"What is human life expectancy in the United States?\",\"78 years.\"]],\n \"max_tokens\": 5,\n \"stop\": [\"\\n\", \"<|endoftext|>\"]\n }'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.createAnswer({\n search_model: \"ada\",\n model: \"curie\",\n question: \"which puppy is happy?\",\n documents: [\"Puppy A is happy.\", \"Puppy B is sad.\"],\n examples_context: \"In 2017, U.S. life expectancy was 78.6 years.\",\n examples: [[\"What is human life expectancy in the United States?\",\"78 years.\"]],\n max_tokens: 5,\n stop: [\"\\n\", \"<|endoftext|>\"],\n});\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Answer.create(\n search_model=\"ada\",\n model=\"curie\",\n question=\"which puppy is happy?\",\n documents=[\"Puppy A is happy.\", \"Puppy B is sad.\"],\n examples_context=\"In 2017, U.S. life expectancy was 78.6 years.\",\n examples=[[\"What is human life expectancy in the United States?\",\"78 years.\"]],\n max_tokens=5,\n stop=[\"\\n\", \"<|endoftext|>\"],\n)\n" - }, - "group": "answers", - "name": "Create answer", - "parameters": "{\n \"documents\": [\"Puppy A is happy.\", \"Puppy B is sad.\"],\n \"question\": \"which puppy is happy?\",\n \"search_model\": \"ada\",\n \"model\": \"curie\",\n \"examples_context\": \"In 2017, U.S. life expectancy was 78.6 years.\",\n \"examples\": [[\"What is human life expectancy in the United States?\",\"78 years.\"]],\n \"max_tokens\": 5,\n \"stop\": [\"\\n\", \"<|endoftext|>\"]\n}\n", - "path": "create", - "response": "{\n \"answers\": [\n \"puppy A.\"\n ],\n \"completion\": \"cmpl-2euVa1kmKUuLpSX600M41125Mo9NI\",\n \"model\": \"curie:2020-05-03\",\n \"object\": \"answer\",\n \"search_model\": \"ada\",\n \"selected_documents\": [\n {\n \"document\": 0,\n \"text\": \"Puppy A is happy. \"\n },\n {\n \"document\": 1,\n \"text\": \"Puppy B is sad. \"\n }\n ]\n}\n" - } - } - }, - "/audio/transcriptions": { - "post": { - "operationId": "createTranscription", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/CreateTranscriptionRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateTranscriptionResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Transcribes audio into the input language.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "beta": true, - "examples": { - "curl": "curl https://api.openai.com/v1/audio/transcriptions \\\n -X POST \\\n -H 'Authorization: Bearer TOKEN' \\\n -H 'Content-Type: multipart/form-data' \\\n -F file=@/path/to/file/audio.mp3 \\\n -F model=whisper-1\n", - "node": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst resp = await openai.createTranscription(\n fs.createReadStream(\"audio.mp3\"),\n \"whisper-1\"\n);\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\naudio_file = open(\"audio.mp3\", \"rb\")\ntranscript = openai.Audio.transcribe(\"whisper-1\", audio_file)\n" - }, - "group": "audio", - "name": "Create transcription", - "parameters": "{\n \"file\": \"audio.mp3\",\n \"model\": \"whisper-1\"\n}\n", - "path": "create", - "response": "{\n \"text\": \"Imagine the wildest idea that you've ever had, and you're curious about how it might scale to something that's a 100, a 1,000 times bigger. This is a place where you can get to do that.\"\n}\n" - } - } - }, - "/audio/translations": { - "post": { - "operationId": "createTranslation", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/CreateTranslationRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateTranslationResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Translates audio into into English.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "beta": true, - "examples": { - "curl": "curl https://api.openai.com/v1/audio/translations \\\n -X POST \\\n -H 'Authorization: Bearer TOKEN' \\\n -H 'Content-Type: multipart/form-data' \\\n -F file=@/path/to/file/german.m4a \\\n -F model=whisper-1\n", - "node": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst resp = await openai.createTranslation(\n fs.createReadStream(\"audio.mp3\"),\n \"whisper-1\"\n);\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\naudio_file = open(\"german.m4a\", \"rb\")\ntranscript = openai.Audio.translate(\"whisper-1\", audio_file)\n" - }, - "group": "audio", - "name": "Create translation", - "parameters": "{\n \"file\": \"german.m4a\",\n \"model\": \"whisper-1\"\n}\n", - "path": "create", - "response": "{\n \"text\": \"Hello, my name is Wolfgang and I come from Germany. Where are you heading today?\"\n}\n" - } - } - }, - "/chat/completions": { - "post": { - "operationId": "createChatCompletion", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateChatCompletionRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateChatCompletionResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Creates a completion for the chat message", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "beta": true, - "examples": { - "curl": "curl https://api.openai.com/v1/chat/completions \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Bearer YOUR_API_KEY' \\\n -d '{\n \"model\": \"gpt-3.5-turbo\",\n \"messages\": [{\"role\": \"user\", \"content\": \"Hello!\"}]\n}'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\n\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\n\nconst completion = await openai.createChatCompletion({\n model: \"gpt-3.5-turbo\",\n messages: [{role: \"user\", content: \"Hello world\"}],\n});\nconsole.log(completion.data.choices[0].message);\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\n\ncompletion = openai.ChatCompletion.create(\n model=\"gpt-3.5-turbo\",\n messages=[\n {\"role\": \"user\", \"content\": \"Hello!\"}\n ]\n)\n\nprint(completion.choices[0].message)\n" - }, - "group": "chat", - "name": "Create chat completion", - "parameters": "{\n \"model\": \"gpt-3.5-turbo\",\n \"messages\": [{\"role\": \"user\", \"content\": \"Hello!\"}]\n}\n", - "path": "create", - "response": "{\n \"id\": \"chatcmpl-123\",\n \"object\": \"chat.completion\",\n \"created\": 1677652288,\n \"choices\": [{\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"\\n\\nHello there, how may I assist you today?\",\n },\n \"finish_reason\": \"stop\"\n }],\n \"usage\": {\n \"prompt_tokens\": 9,\n \"completion_tokens\": 12,\n \"total_tokens\": 21\n }\n}\n" - } - } - }, - "/classifications": { - "post": { - "deprecated": true, - "operationId": "createClassification", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateClassificationRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateClassificationResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Classifies the specified `query` using provided examples.\n\nThe endpoint first [searches](/docs/api-reference/searches) over the labeled examples\nto select the ones most relevant for the particular query. Then, the relevant examples\nare combined with the query to construct a prompt to produce the final label via the\n[completions](/docs/api-reference/completions) endpoint.\n\nLabeled examples can be provided via an uploaded `file`, or explicitly listed in the\nrequest using the `examples` parameter for quick tests and small scale use cases.\n", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/classifications \\\n -X POST \\\n -H \"Authorization: Bearer YOUR_API_KEY\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"examples\": [\n [\"A happy moment\", \"Positive\"],\n [\"I am sad.\", \"Negative\"],\n [\"I am feeling awesome\", \"Positive\"]],\n \"query\": \"It is a raining day :(\",\n \"search_model\": \"ada\",\n \"model\": \"curie\",\n \"labels\":[\"Positive\", \"Negative\", \"Neutral\"]\n }'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.createClassification({\n search_model: \"ada\",\n model: \"curie\",\n examples: [\n [\"A happy moment\", \"Positive\"],\n [\"I am sad.\", \"Negative\"],\n [\"I am feeling awesome\", \"Positive\"]\n ],\n query:\"It is a raining day :(\",\n labels: [\"Positive\", \"Negative\", \"Neutral\"],\n});\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Classification.create(\n search_model=\"ada\",\n model=\"curie\",\n examples=[\n [\"A happy moment\", \"Positive\"],\n [\"I am sad.\", \"Negative\"],\n [\"I am feeling awesome\", \"Positive\"]\n ],\n query=\"It is a raining day :(\",\n labels=[\"Positive\", \"Negative\", \"Neutral\"],\n)\n" - }, - "group": "classifications", - "name": "Create classification", - "parameters": "{\n \"examples\": [\n [\"A happy moment\", \"Positive\"],\n [\"I am sad.\", \"Negative\"],\n [\"I am feeling awesome\", \"Positive\"]\n ],\n \"labels\": [\"Positive\", \"Negative\", \"Neutral\"],\n \"query\": \"It is a raining day :(\",\n \"search_model\": \"ada\",\n \"model\": \"curie\"\n}\n", - "path": "create", - "response": "{\n \"completion\": \"cmpl-2euN7lUVZ0d4RKbQqRV79IiiE6M1f\",\n \"label\": \"Negative\",\n \"model\": \"curie:2020-05-03\",\n \"object\": \"classification\",\n \"search_model\": \"ada\",\n \"selected_examples\": [\n {\n \"document\": 1,\n \"label\": \"Negative\",\n \"text\": \"I am sad.\"\n },\n {\n \"document\": 0,\n \"label\": \"Positive\",\n \"text\": \"A happy moment\"\n },\n {\n \"document\": 2,\n \"label\": \"Positive\",\n \"text\": \"I am feeling awesome\"\n }\n ]\n}\n" - } - } - }, - "/completions": { - "post": { - "operationId": "createCompletion", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateCompletionRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateCompletionResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Creates a completion for the provided prompt and parameters", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/completions \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Bearer YOUR_API_KEY' \\\n -d '{\n \"model\": \"VAR_model_id\",\n \"prompt\": \"Say this is a test\",\n \"max_tokens\": 7,\n \"temperature\": 0\n}'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.createCompletion({\n model: \"VAR_model_id\",\n prompt: \"Say this is a test\",\n max_tokens: 7,\n temperature: 0,\n});\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Completion.create(\n model=\"VAR_model_id\",\n prompt=\"Say this is a test\",\n max_tokens=7,\n temperature=0\n)\n" - }, - "group": "completions", - "name": "Create completion", - "parameters": "{\n \"model\": \"VAR_model_id\",\n \"prompt\": \"Say this is a test\",\n \"max_tokens\": 7,\n \"temperature\": 0,\n \"top_p\": 1,\n \"n\": 1,\n \"stream\": false,\n \"logprobs\": null,\n \"stop\": \"\\n\"\n}\n", - "path": "create", - "response": "{\n \"id\": \"cmpl-uqkvlQyYK7bGYrRHQ0eXlWi7\",\n \"object\": \"text_completion\",\n \"created\": 1589478378,\n \"model\": \"VAR_model_id\",\n \"choices\": [\n {\n \"text\": \"\\n\\nThis is indeed a test\",\n \"index\": 0,\n \"logprobs\": null,\n \"finish_reason\": \"length\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 5,\n \"completion_tokens\": 7,\n \"total_tokens\": 12\n }\n}\n" - } - } - }, - "/edits": { - "post": { - "operationId": "createEdit", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateEditRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateEditResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Creates a new edit for the provided input, instruction, and parameters.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/edits \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Bearer YOUR_API_KEY' \\\n -d '{\n \"model\": \"VAR_model_id\",\n \"input\": \"What day of the wek is it?\",\n \"instruction\": \"Fix the spelling mistakes\"\n}'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.createEdit({\n model: \"VAR_model_id\",\n input: \"What day of the wek is it?\",\n instruction: \"Fix the spelling mistakes\",\n});\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Edit.create(\n model=\"VAR_model_id\",\n input=\"What day of the wek is it?\",\n instruction=\"Fix the spelling mistakes\"\n)\n" - }, - "group": "edits", - "name": "Create edit", - "parameters": "{\n \"model\": \"VAR_model_id\",\n \"input\": \"What day of the wek is it?\",\n \"instruction\": \"Fix the spelling mistakes\",\n}\n", - "path": "create", - "response": "{\n \"object\": \"edit\",\n \"created\": 1589478378,\n \"choices\": [\n {\n \"text\": \"What day of the week is it?\",\n \"index\": 0,\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 25,\n \"completion_tokens\": 32,\n \"total_tokens\": 57\n }\n}\n" - } - } - }, - "/embeddings": { - "post": { - "operationId": "createEmbedding", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateEmbeddingRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateEmbeddingResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Creates an embedding vector representing the input text.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/embeddings \\\n -X POST \\\n -H \"Authorization: Bearer YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"input\": \"The food was delicious and the waiter...\",\n \"model\": \"text-embedding-ada-002\"}'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.createEmbedding({\n model: \"text-embedding-ada-002\",\n input: \"The food was delicious and the waiter...\",\n});\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Embedding.create(\n model=\"text-embedding-ada-002\",\n input=\"The food was delicious and the waiter...\"\n)\n" - }, - "group": "embeddings", - "name": "Create embeddings", - "parameters": "{\n \"model\": \"text-embedding-ada-002\",\n \"input\": \"The food was delicious and the waiter...\"\n}\n", - "path": "create", - "response": "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"embedding\",\n \"embedding\": [\n 0.0023064255,\n -0.009327292,\n .... (1536 floats total for ada-002)\n -0.0028842222,\n ],\n \"index\": 0\n }\n ],\n \"model\": \"text-embedding-ada-002\",\n \"usage\": {\n \"prompt_tokens\": 8,\n \"total_tokens\": 8\n }\n}\n" - } - } - }, - "/engines": { - "get": { - "deprecated": true, - "operationId": "listEngines", - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListEnginesResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Lists the currently available (non-finetuned) models, and provides basic information about each one such as the owner and availability.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/engines \\\n -H 'Authorization: Bearer YOUR_API_KEY'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.listEngines();\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Engine.list()\n" - }, - "group": "engines", - "name": "List engines", - "path": "list", - "response": "{\n \"data\": [\n {\n \"id\": \"engine-id-0\",\n \"object\": \"engine\",\n \"owner\": \"organization-owner\",\n \"ready\": true\n },\n {\n \"id\": \"engine-id-2\",\n \"object\": \"engine\",\n \"owner\": \"organization-owner\",\n \"ready\": true\n },\n {\n \"id\": \"engine-id-3\",\n \"object\": \"engine\",\n \"owner\": \"openai\",\n \"ready\": false\n },\n ],\n \"object\": \"list\"\n}\n" - } - } - }, - "/engines/{engine_id}": { - "get": { - "deprecated": true, - "operationId": "retrieveEngine", - "parameters": [ - { - "description": "The ID of the engine to use for this request\n", - "in": "path", - "name": "engine_id", - "required": true, - "schema": { - "example": "davinci", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Engine" - } - } - }, - "description": "OK" - } - }, - "summary": "Retrieves a model instance, providing basic information about it such as the owner and availability.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/engines/VAR_model_id \\\n -H 'Authorization: Bearer YOUR_API_KEY'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.retrieveEngine(\"VAR_model_id\");\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Engine.retrieve(\"VAR_model_id\")\n" - }, - "group": "engines", - "name": "Retrieve engine", - "path": "retrieve", - "response": "{\n \"id\": \"VAR_model_id\",\n \"object\": \"engine\",\n \"owner\": \"openai\",\n \"ready\": true\n}\n" - } - } - }, - "/engines/{engine_id}/search": { - "post": { - "deprecated": true, - "operationId": "createSearch", - "parameters": [ - { - "description": "The ID of the engine to use for this request. You can select one of `ada`, `babbage`, `curie`, or `davinci`.", - "in": "path", - "name": "engine_id", - "required": true, - "schema": { - "example": "davinci", - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateSearchRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateSearchResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "The search endpoint computes similarity scores between provided query and documents. Documents can be passed directly to the API if there are no more than 200 of them.\n\nTo go beyond the 200 document limit, documents can be processed offline and then used for efficient retrieval at query time. When `file` is set, the search endpoint searches over all the documents in the given file and returns up to the `max_rerank` number of documents. These documents will be returned along with their search scores.\n\nThe similarity score is a positive score that usually ranges from 0 to 300 (but can sometimes go higher), where a score above 200 usually means the document is semantically similar to the query.\n", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/engines/davinci/search \\\n -H \"Content-Type: application/json\" \\\n -H 'Authorization: Bearer YOUR_API_KEY' \\\n -d '{\n \"documents\": [\"White House\", \"hospital\", \"school\"],\n \"query\": \"the president\"\n}'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.createSearch(\"davinci\", {\n documents: [\"White House\", \"hospital\", \"school\"],\n query: \"the president\",\n});\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Engine(\"davinci\").search(\n documents=[\"White House\", \"hospital\", \"school\"],\n query=\"the president\"\n)\n" - }, - "group": "searches", - "name": "Create search", - "parameters": "{\n \"documents\": [\n \"White House\",\n \"hospital\",\n \"school\"\n ],\n \"query\": \"the president\"\n}\n", - "path": "create", - "response": "{\n \"data\": [\n {\n \"document\": 0,\n \"object\": \"search_result\",\n \"score\": 215.412\n },\n {\n \"document\": 1,\n \"object\": \"search_result\",\n \"score\": 40.316\n },\n {\n \"document\": 2,\n \"object\": \"search_result\",\n \"score\": 55.226\n }\n ],\n \"object\": \"list\"\n}\n" - } - } - }, - "/files": { - "get": { - "operationId": "listFiles", - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListFilesResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Returns a list of files that belong to the user's organization.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/files \\\n -H 'Authorization: Bearer YOUR_API_KEY'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.listFiles();\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.File.list()\n" - }, - "group": "files", - "name": "List files", - "path": "list", - "response": "{\n \"data\": [\n {\n \"id\": \"file-ccdDZrC3iZVNiQVeEA6Z66wf\",\n \"object\": \"file\",\n \"bytes\": 175,\n \"created_at\": 1613677385,\n \"filename\": \"train.jsonl\",\n \"purpose\": \"search\"\n },\n {\n \"id\": \"file-XjGxS3KTG0uNmNOK362iJua3\",\n \"object\": \"file\",\n \"bytes\": 140,\n \"created_at\": 1613779121,\n \"filename\": \"puppy.jsonl\",\n \"purpose\": \"search\"\n }\n ],\n \"object\": \"list\"\n}\n" - } - }, - "post": { - "operationId": "createFile", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/CreateFileRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OpenAIFile" - } - } - }, - "description": "OK" - } - }, - "summary": "Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.\n", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/files \\\n -H \"Authorization: Bearer YOUR_API_KEY\" \\\n -F purpose=\"fine-tune\" \\\n -F file='@mydata.jsonl'\n", - "node.js": "const fs = require(\"fs\");\nconst { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.createFile(\n fs.createReadStream(\"mydata.jsonl\"),\n \"fine-tune\"\n);\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.File.create(\n file=open(\"mydata.jsonl\", \"rb\"),\n purpose='fine-tune'\n)\n" - }, - "group": "files", - "name": "Upload file", - "path": "upload", - "response": "{\n \"id\": \"file-XjGxS3KTG0uNmNOK362iJua3\",\n \"object\": \"file\",\n \"bytes\": 140,\n \"created_at\": 1613779121,\n \"filename\": \"mydata.jsonl\",\n \"purpose\": \"fine-tune\"\n}\n" - } - } - }, - "/files/{file_id}": { - "delete": { - "operationId": "deleteFile", - "parameters": [ - { - "description": "The ID of the file to use for this request", - "in": "path", - "name": "file_id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DeleteFileResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Delete a file.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/files/file-XjGxS3KTG0uNmNOK362iJua3 \\\n -X DELETE \\\n -H 'Authorization: Bearer YOUR_API_KEY'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.deleteFile(\"file-XjGxS3KTG0uNmNOK362iJua3\");\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.File.delete(\"file-XjGxS3KTG0uNmNOK362iJua3\")\n" - }, - "group": "files", - "name": "Delete file", - "path": "delete", - "response": "{\n \"id\": \"file-XjGxS3KTG0uNmNOK362iJua3\",\n \"object\": \"file\",\n \"deleted\": true\n}\n" - } - }, - "get": { - "operationId": "retrieveFile", - "parameters": [ - { - "description": "The ID of the file to use for this request", - "in": "path", - "name": "file_id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OpenAIFile" - } - } - }, - "description": "OK" - } - }, - "summary": "Returns information about a specific file.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/files/file-XjGxS3KTG0uNmNOK362iJua3 \\\n -H 'Authorization: Bearer YOUR_API_KEY'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.retrieveFile(\"file-XjGxS3KTG0uNmNOK362iJua3\");\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.File.retrieve(\"file-XjGxS3KTG0uNmNOK362iJua3\")\n" - }, - "group": "files", - "name": "Retrieve file", - "path": "retrieve", - "response": "{\n \"id\": \"file-XjGxS3KTG0uNmNOK362iJua3\",\n \"object\": \"file\",\n \"bytes\": 140,\n \"created_at\": 1613779657,\n \"filename\": \"mydata.jsonl\",\n \"purpose\": \"fine-tune\"\n}\n" - } - } - }, - "/files/{file_id}/content": { - "get": { - "operationId": "downloadFile", - "parameters": [ - { - "description": "The ID of the file to use for this request", - "in": "path", - "name": "file_id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - }, - "description": "OK" - } - }, - "summary": "Returns the contents of the specified file", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/files/file-XjGxS3KTG0uNmNOK362iJua3/content \\\n -H 'Authorization: Bearer YOUR_API_KEY' > file.jsonl\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.downloadFile(\"file-XjGxS3KTG0uNmNOK362iJua3\");\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\ncontent = openai.File.download(\"file-XjGxS3KTG0uNmNOK362iJua3\")\n" - }, - "group": "files", - "name": "Retrieve file content", - "path": "retrieve-content" - } - } - }, - "/fine-tunes": { - "get": { - "operationId": "listFineTunes", - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListFineTunesResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "List your organization's fine-tuning jobs\n", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/fine-tunes \\\n -H 'Authorization: Bearer YOUR_API_KEY'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.listFineTunes();\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.FineTune.list()\n" - }, - "group": "fine-tunes", - "name": "List fine-tunes", - "path": "list", - "response": "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"ft-AF1WoRqd3aJAHsqc9NY7iL8F\",\n \"object\": \"fine-tune\",\n \"model\": \"curie\",\n \"created_at\": 1614807352,\n \"fine_tuned_model\": null,\n \"hyperparams\": { ... },\n \"organization_id\": \"org-...\",\n \"result_files\": [],\n \"status\": \"pending\",\n \"validation_files\": [],\n \"training_files\": [ { ... } ],\n \"updated_at\": 1614807352,\n },\n { ... },\n { ... }\n ]\n}\n" - } - }, - "post": { - "operationId": "createFineTune", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateFineTuneRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FineTune" - } - } - }, - "description": "OK" - } - }, - "summary": "Creates a job that fine-tunes a specified model from a given dataset.\n\nResponse includes details of the enqueued job including job status and the name of the fine-tuned models once complete.\n\n[Learn more about Fine-tuning](/docs/guides/fine-tuning)\n", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/fine-tunes \\\n -X POST \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer YOUR_API_KEY\" \\\n -d '{\n \"training_file\": \"file-XGinujblHPwGLSztz8cPS8XY\"\n}'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.createFineTune({\n training_file: \"file-XGinujblHPwGLSztz8cPS8XY\",\n});\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.FineTune.create(training_file=\"file-XGinujblHPwGLSztz8cPS8XY\")\n" - }, - "group": "fine-tunes", - "name": "Create fine-tune", - "path": "create", - "response": "{\n \"id\": \"ft-AF1WoRqd3aJAHsqc9NY7iL8F\",\n \"object\": \"fine-tune\",\n \"model\": \"curie\",\n \"created_at\": 1614807352,\n \"events\": [\n {\n \"object\": \"fine-tune-event\",\n \"created_at\": 1614807352,\n \"level\": \"info\",\n \"message\": \"Job enqueued. Waiting for jobs ahead to complete. Queue number: 0.\"\n }\n ],\n \"fine_tuned_model\": null,\n \"hyperparams\": {\n \"batch_size\": 4,\n \"learning_rate_multiplier\": 0.1,\n \"n_epochs\": 4,\n \"prompt_loss_weight\": 0.1,\n },\n \"organization_id\": \"org-...\",\n \"result_files\": [],\n \"status\": \"pending\",\n \"validation_files\": [],\n \"training_files\": [\n {\n \"id\": \"file-XGinujblHPwGLSztz8cPS8XY\",\n \"object\": \"file\",\n \"bytes\": 1547276,\n \"created_at\": 1610062281,\n \"filename\": \"my-data-train.jsonl\",\n \"purpose\": \"fine-tune-train\"\n }\n ],\n \"updated_at\": 1614807352,\n}\n" - } - } - }, - "/fine-tunes/{fine_tune_id}": { - "get": { - "operationId": "retrieveFineTune", - "parameters": [ - { - "description": "The ID of the fine-tune job\n", - "in": "path", - "name": "fine_tune_id", - "required": true, - "schema": { - "example": "ft-AF1WoRqd3aJAHsqc9NY7iL8F", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FineTune" - } - } - }, - "description": "OK" - } - }, - "summary": "Gets info about the fine-tune job.\n\n[Learn more about Fine-tuning](/docs/guides/fine-tuning)\n", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/fine-tunes/ft-AF1WoRqd3aJAHsqc9NY7iL8F \\\n -H \"Authorization: Bearer YOUR_API_KEY\"\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.retrieveFineTune(\"ft-AF1WoRqd3aJAHsqc9NY7iL8F\");\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.FineTune.retrieve(id=\"ft-AF1WoRqd3aJAHsqc9NY7iL8F\")\n" - }, - "group": "fine-tunes", - "name": "Retrieve fine-tune", - "path": "retrieve", - "response": "{\n \"id\": \"ft-AF1WoRqd3aJAHsqc9NY7iL8F\",\n \"object\": \"fine-tune\",\n \"model\": \"curie\",\n \"created_at\": 1614807352,\n \"events\": [\n {\n \"object\": \"fine-tune-event\",\n \"created_at\": 1614807352,\n \"level\": \"info\",\n \"message\": \"Job enqueued. Waiting for jobs ahead to complete. Queue number: 0.\"\n },\n {\n \"object\": \"fine-tune-event\",\n \"created_at\": 1614807356,\n \"level\": \"info\",\n \"message\": \"Job started.\"\n },\n {\n \"object\": \"fine-tune-event\",\n \"created_at\": 1614807861,\n \"level\": \"info\",\n \"message\": \"Uploaded snapshot: curie:ft-acmeco-2021-03-03-21-44-20.\"\n },\n {\n \"object\": \"fine-tune-event\",\n \"created_at\": 1614807864,\n \"level\": \"info\",\n \"message\": \"Uploaded result files: file-QQm6ZpqdNwAaVC3aSz5sWwLT.\"\n },\n {\n \"object\": \"fine-tune-event\",\n \"created_at\": 1614807864,\n \"level\": \"info\",\n \"message\": \"Job succeeded.\"\n }\n ],\n \"fine_tuned_model\": \"curie:ft-acmeco-2021-03-03-21-44-20\",\n \"hyperparams\": {\n \"batch_size\": 4,\n \"learning_rate_multiplier\": 0.1,\n \"n_epochs\": 4,\n \"prompt_loss_weight\": 0.1,\n },\n \"organization_id\": \"org-...\",\n \"result_files\": [\n {\n \"id\": \"file-QQm6ZpqdNwAaVC3aSz5sWwLT\",\n \"object\": \"file\",\n \"bytes\": 81509,\n \"created_at\": 1614807863,\n \"filename\": \"compiled_results.csv\",\n \"purpose\": \"fine-tune-results\"\n }\n ],\n \"status\": \"succeeded\",\n \"validation_files\": [],\n \"training_files\": [\n {\n \"id\": \"file-XGinujblHPwGLSztz8cPS8XY\",\n \"object\": \"file\",\n \"bytes\": 1547276,\n \"created_at\": 1610062281,\n \"filename\": \"my-data-train.jsonl\",\n \"purpose\": \"fine-tune-train\"\n }\n ],\n \"updated_at\": 1614807865,\n}\n" - } - } - }, - "/fine-tunes/{fine_tune_id}/cancel": { - "post": { - "operationId": "cancelFineTune", - "parameters": [ - { - "description": "The ID of the fine-tune job to cancel\n", - "in": "path", - "name": "fine_tune_id", - "required": true, - "schema": { - "example": "ft-AF1WoRqd3aJAHsqc9NY7iL8F", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FineTune" - } - } - }, - "description": "OK" - } - }, - "summary": "Immediately cancel a fine-tune job.\n", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/fine-tunes/ft-AF1WoRqd3aJAHsqc9NY7iL8F/cancel \\\n -X POST \\\n -H \"Authorization: Bearer YOUR_API_KEY\"\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.cancelFineTune(\"ft-AF1WoRqd3aJAHsqc9NY7iL8F\");\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.FineTune.cancel(id=\"ft-AF1WoRqd3aJAHsqc9NY7iL8F\")\n" - }, - "group": "fine-tunes", - "name": "Cancel fine-tune", - "path": "cancel", - "response": "{\n \"id\": \"ft-xhrpBbvVUzYGo8oUO1FY4nI7\",\n \"object\": \"fine-tune\",\n \"model\": \"curie\",\n \"created_at\": 1614807770,\n \"events\": [ { ... } ],\n \"fine_tuned_model\": null,\n \"hyperparams\": { ... },\n \"organization_id\": \"org-...\",\n \"result_files\": [],\n \"status\": \"cancelled\",\n \"validation_files\": [],\n \"training_files\": [\n {\n \"id\": \"file-XGinujblHPwGLSztz8cPS8XY\",\n \"object\": \"file\",\n \"bytes\": 1547276,\n \"created_at\": 1610062281,\n \"filename\": \"my-data-train.jsonl\",\n \"purpose\": \"fine-tune-train\"\n }\n ],\n \"updated_at\": 1614807789,\n}\n" - } - } - }, - "/fine-tunes/{fine_tune_id}/events": { - "get": { - "operationId": "listFineTuneEvents", - "parameters": [ - { - "description": "The ID of the fine-tune job to get events for.\n", - "in": "path", - "name": "fine_tune_id", - "required": true, - "schema": { - "example": "ft-AF1WoRqd3aJAHsqc9NY7iL8F", - "type": "string" - } - }, - { - "description": "Whether to stream events for the fine-tune job. If set to true,\nevents will be sent as data-only\n[server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format)\nas they become available. The stream will terminate with a\n`data: [DONE]` message when the job is finished (succeeded, cancelled,\nor failed).\n\nIf set to false, only events generated so far will be returned.\n", - "in": "query", - "name": "stream", - "required": false, - "schema": { - "default": false, - "type": "boolean" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListFineTuneEventsResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Get fine-grained status updates for a fine-tune job.\n", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/fine-tunes/ft-AF1WoRqd3aJAHsqc9NY7iL8F/events \\\n -H \"Authorization: Bearer YOUR_API_KEY\"\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.listFineTuneEvents(\"ft-AF1WoRqd3aJAHsqc9NY7iL8F\");\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.FineTune.list_events(id=\"ft-AF1WoRqd3aJAHsqc9NY7iL8F\")\n" - }, - "group": "fine-tunes", - "name": "List fine-tune events", - "path": "events", - "response": "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"fine-tune-event\",\n \"created_at\": 1614807352,\n \"level\": \"info\",\n \"message\": \"Job enqueued. Waiting for jobs ahead to complete. Queue number: 0.\"\n },\n {\n \"object\": \"fine-tune-event\",\n \"created_at\": 1614807356,\n \"level\": \"info\",\n \"message\": \"Job started.\"\n },\n {\n \"object\": \"fine-tune-event\",\n \"created_at\": 1614807861,\n \"level\": \"info\",\n \"message\": \"Uploaded snapshot: curie:ft-acmeco-2021-03-03-21-44-20.\"\n },\n {\n \"object\": \"fine-tune-event\",\n \"created_at\": 1614807864,\n \"level\": \"info\",\n \"message\": \"Uploaded result files: file-QQm6ZpqdNwAaVC3aSz5sWwLT.\"\n },\n {\n \"object\": \"fine-tune-event\",\n \"created_at\": 1614807864,\n \"level\": \"info\",\n \"message\": \"Job succeeded.\"\n }\n ]\n}\n" - } - } - }, - "/images/edits": { - "post": { - "operationId": "createImageEdit", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/CreateImageEditRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ImagesResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Creates an edited or extended image given an original image and a prompt.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "beta": true, - "examples": { - "curl": "curl https://api.openai.com/v1/images/edits \\\n -H 'Authorization: Bearer YOUR_API_KEY' \\\n -F image='@otter.png' \\\n -F mask='@mask.png' \\\n -F prompt=\"A cute baby sea otter wearing a beret\" \\\n -F n=2 \\\n -F size=\"1024x1024\"\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.createImageEdit(\n fs.createReadStream(\"otter.png\"),\n fs.createReadStream(\"mask.png\"),\n \"A cute baby sea otter wearing a beret\",\n 2,\n \"1024x1024\"\n);\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Image.create_edit(\n image=open(\"otter.png\", \"rb\"),\n mask=open(\"mask.png\", \"rb\"),\n prompt=\"A cute baby sea otter wearing a beret\",\n n=2,\n size=\"1024x1024\"\n)\n" - }, - "group": "images", - "name": "Create image edit", - "path": "create-edit", - "response": "{\n \"created\": 1589478378,\n \"data\": [\n {\n \"url\": \"https://...\"\n },\n {\n \"url\": \"https://...\"\n }\n ]\n}\n" - } - } - }, - "/images/generations": { - "post": { - "operationId": "createImage", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateImageRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ImagesResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Creates an image given a prompt.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "beta": true, - "examples": { - "curl": "curl https://api.openai.com/v1/images/generations \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Bearer YOUR_API_KEY' \\\n -d '{\n \"prompt\": \"A cute baby sea otter\",\n \"n\": 2,\n \"size\": \"1024x1024\"\n}'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.createImage({\n prompt: \"A cute baby sea otter\",\n n: 2,\n size: \"1024x1024\",\n});\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Image.create(\n prompt=\"A cute baby sea otter\",\n n=2,\n size=\"1024x1024\"\n)\n" - }, - "group": "images", - "name": "Create image", - "parameters": "{\n \"prompt\": \"A cute baby sea otter\",\n \"n\": 2,\n \"size\": \"1024x1024\"\n}\n", - "path": "create", - "response": "{\n \"created\": 1589478378,\n \"data\": [\n {\n \"url\": \"https://...\"\n },\n {\n \"url\": \"https://...\"\n }\n ]\n}\n" - } - } - }, - "/images/variations": { - "post": { - "operationId": "createImageVariation", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/CreateImageVariationRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ImagesResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Creates a variation of a given image.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "beta": true, - "examples": { - "curl": "curl https://api.openai.com/v1/images/variations \\\n -H 'Authorization: Bearer YOUR_API_KEY' \\\n -F image='@otter.png' \\\n -F n=2 \\\n -F size=\"1024x1024\"\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.createImageVariation(\n fs.createReadStream(\"otter.png\"),\n 2,\n \"1024x1024\"\n);\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Image.create_variation(\n image=open(\"otter.png\", \"rb\"),\n n=2,\n size=\"1024x1024\"\n)\n" - }, - "group": "images", - "name": "Create image variation", - "path": "create-variation", - "response": "{\n \"created\": 1589478378,\n \"data\": [\n {\n \"url\": \"https://...\"\n },\n {\n \"url\": \"https://...\"\n }\n ]\n}\n" - } - } - }, - "/models": { - "get": { - "operationId": "listModels", - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListModelsResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Lists the currently available models, and provides basic information about each one such as the owner and availability.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/models \\\n -H 'Authorization: Bearer YOUR_API_KEY'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.listModels();\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Model.list()\n" - }, - "group": "models", - "name": "List models", - "path": "list", - "response": "{\n \"data\": [\n {\n \"id\": \"model-id-0\",\n \"object\": \"model\",\n \"owned_by\": \"organization-owner\",\n \"permission\": [...]\n },\n {\n \"id\": \"model-id-1\",\n \"object\": \"model\",\n \"owned_by\": \"organization-owner\",\n \"permission\": [...]\n },\n {\n \"id\": \"model-id-2\",\n \"object\": \"model\",\n \"owned_by\": \"openai\",\n \"permission\": [...]\n },\n ],\n \"object\": \"list\"\n}\n" - } - } - }, - "/models/{model}": { - "delete": { - "operationId": "deleteModel", - "parameters": [ - { - "description": "The model to delete", - "in": "path", - "name": "model", - "required": true, - "schema": { - "example": "curie:ft-acmeco-2021-03-03-21-44-20", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DeleteModelResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Delete a fine-tuned model. You must have the Owner role in your organization.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/models/curie:ft-acmeco-2021-03-03-21-44-20 \\\n -X DELETE \\\n -H \"Authorization: Bearer YOUR_API_KEY\"\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.deleteModel('curie:ft-acmeco-2021-03-03-21-44-20');\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Model.delete(\"curie:ft-acmeco-2021-03-03-21-44-20\")\n" - }, - "group": "fine-tunes", - "name": "Delete fine-tune model", - "path": "delete-model", - "response": "{\n \"id\": \"curie:ft-acmeco-2021-03-03-21-44-20\",\n \"object\": \"model\",\n \"deleted\": true\n}\n" - } - }, - "get": { - "operationId": "retrieveModel", - "parameters": [ - { - "description": "The ID of the model to use for this request", - "in": "path", - "name": "model", - "required": true, - "schema": { - "example": "text-davinci-001", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Model" - } - } - }, - "description": "OK" - } - }, - "summary": "Retrieves a model instance, providing basic information about the model such as the owner and permissioning.", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/models/VAR_model_id \\\n -H 'Authorization: Bearer YOUR_API_KEY'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.retrieveModel(\"VAR_model_id\");\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Model.retrieve(\"VAR_model_id\")\n" - }, - "group": "models", - "name": "Retrieve model", - "path": "retrieve", - "response": "{\n \"id\": \"VAR_model_id\",\n \"object\": \"model\",\n \"owned_by\": \"openai\",\n \"permission\": [...]\n}\n" - } - } - }, - "/moderations": { - "post": { - "operationId": "createModeration", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateModerationRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateModerationResponse" - } - } - }, - "description": "OK" - } - }, - "summary": "Classifies if text violates OpenAI's Content Policy", - "tags": [ - "OpenAI" - ], - "x-oaiMeta": { - "examples": { - "curl": "curl https://api.openai.com/v1/moderations \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Bearer YOUR_API_KEY' \\\n -d '{\n \"input\": \"I want to kill them.\"\n}'\n", - "node.js": "const { Configuration, OpenAIApi } = require(\"openai\");\nconst configuration = new Configuration({\n apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\nconst response = await openai.createModeration({\n input: \"I want to kill them.\",\n});\n", - "python": "import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\nopenai.Moderation.create(\n input=\"I want to kill them.\",\n)\n" - }, - "group": "moderations", - "name": "Create moderation", - "parameters": "{\n \"input\": \"I want to kill them.\"\n}\n", - "path": "create", - "response": "{\n \"id\": \"modr-5MWoLO\",\n \"model\": \"text-moderation-001\",\n \"results\": [\n {\n \"categories\": {\n \"hate\": false,\n \"hate/threatening\": true,\n \"self-harm\": false,\n \"sexual\": false,\n \"sexual/minors\": false,\n \"violence\": true,\n \"violence/graphic\": false\n },\n \"category_scores\": {\n \"hate\": 0.22714105248451233,\n \"hate/threatening\": 0.4132447838783264,\n \"self-harm\": 0.005232391878962517,\n \"sexual\": 0.01407341007143259,\n \"sexual/minors\": 0.0038522258400917053,\n \"violence\": 0.9223177433013916,\n \"violence/graphic\": 0.036865197122097015\n },\n \"flagged\": true\n }\n ]\n}\n" - } - } - } - }, - "components": { - "schemas": { - "ChatCompletionRequestMessage": { - "properties": { - "content": { - "description": "The contents of the message", - "type": "string" - }, - "name": { - "description": "The name of the user in a multi-user chat", - "type": "string" - }, - "role": { - "description": "The role of the author of this message.", - "enum": [ - "system", - "user", - "assistant" - ], - "type": "string" - } - }, - "required": [ - "role", - "content" - ], - "type": "object" - }, - "ChatCompletionResponseMessage": { - "properties": { - "content": { - "description": "The contents of the message", - "type": "string" - }, - "role": { - "description": "The role of the author of this message.", - "enum": [ - "system", - "user", - "assistant" - ], - "type": "string" - } - }, - "required": [ - "role", - "content" - ], - "type": "object" - }, - "CreateAnswerRequest": { - "additionalProperties": false, - "properties": { - "documents": { - "description": "List of documents from which the answer for the input `question` should be derived. If this is an empty list, the question will be answered based on the question-answer examples.\n\nYou should specify either `documents` or a `file`, but not both.\n", - "example": "['Japan is an island country in East Asia, located in the northwest Pacific Ocean.', 'Tokyo is the capital and most populous prefecture of Japan.']", - "items": { - "type": "string" - }, - "maxItems": 200, - "nullable": true, - "type": "array" - }, - "examples": { - "description": "List of (question, answer) pairs that will help steer the model towards the tone and answer format you'd like. We recommend adding 2 to 3 examples.", - "example": "[['What is the capital of Canada?', 'Ottawa'], ['Which province is Ottawa in?', 'Ontario']]", - "items": { - "items": { - "minLength": 1, - "type": "string" - }, - "maxItems": 2, - "minItems": 2, - "type": "array" - }, - "maxItems": 200, - "minItems": 1, - "type": "array" - }, - "examples_context": { - "description": "A text snippet containing the contextual information used to generate the answers for the `examples` you provide.", - "example": "Ottawa, Canada's capital, is located in the east of southern Ontario, near the city of Montréal and the U.S. border.", - "type": "string" - }, - "expand": { - "default": [], - "description": "If an object name is in the list, we provide the full information of the object; otherwise, we only provide the object ID. Currently we support `completion` and `file` objects for expansion.", - "items": {}, - "nullable": true, - "type": "array" - }, - "file": { - "description": "The ID of an uploaded file that contains documents to search over. See [upload file](/docs/api-reference/files/upload) for how to upload a file of the desired format and purpose.\n\nYou should specify either `documents` or a `file`, but not both.\n", - "nullable": true, - "type": "string" - }, - "logit_bias": { - "$ref": "#/components/schemas/CreateCompletionRequest/properties/logit_bias" - }, - "logprobs": { - "default": null, - "description": "Include the log probabilities on the `logprobs` most likely tokens, as well the chosen tokens. For example, if `logprobs` is 5, the API will return a list of the 5 most likely tokens. The API will always return the `logprob` of the sampled token, so there may be up to `logprobs+1` elements in the response.\n\nThe maximum value for `logprobs` is 5. If you need more than this, please contact us through our [Help center](https://help.openai.com) and describe your use case.\n\nWhen `logprobs` is set, `completion` will be automatically added into `expand` to get the logprobs.\n", - "maximum": 5, - "minimum": 0, - "nullable": true, - "type": "integer" - }, - "max_rerank": { - "default": 200, - "description": "The maximum number of documents to be ranked by [Search](/docs/api-reference/searches/create) when using `file`. Setting it to a higher value leads to improved accuracy but with increased latency and cost.", - "nullable": true, - "type": "integer" - }, - "max_tokens": { - "default": 16, - "description": "The maximum number of tokens allowed for the generated answer", - "nullable": true, - "type": "integer" - }, - "model": { - "description": "ID of the model to use for completion. You can select one of `ada`, `babbage`, `curie`, or `davinci`.", - "type": "string" - }, - "n": { - "default": 1, - "description": "How many answers to generate for each question.", - "maximum": 10, - "minimum": 1, - "nullable": true, - "type": "integer" - }, - "question": { - "description": "Question to get answered.", - "example": "What is the capital of Japan?", - "minLength": 1, - "type": "string" - }, - "return_metadata": { - "$ref": "#/components/schemas/CreateSearchRequest/properties/return_metadata" - }, - "return_prompt": { - "default": false, - "description": "If set to `true`, the returned JSON will include a \"prompt\" field containing the final prompt that was used to request a completion. This is mainly useful for debugging purposes.", - "nullable": true, - "type": "boolean" - }, - "search_model": { - "default": "ada", - "description": "ID of the model to use for [Search](/docs/api-reference/searches/create). You can select one of `ada`, `babbage`, `curie`, or `davinci`.", - "nullable": true, - "type": "string" - }, - "stop": { - "default": null, - "description": "Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.\n", - "nullable": true, - "oneOf": [ - { - "default": "<|endoftext|>", - "example": "\n", - "type": "string" - }, - { - "items": { - "example": "[\"\\n\"]", - "type": "string" - }, - "maxItems": 4, - "minItems": 1, - "type": "array" - } - ] - }, - "temperature": { - "default": 0, - "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.", - "nullable": true, - "type": "number" - }, - "user": { - "$ref": "#/components/schemas/CreateCompletionRequest/properties/user" - } - }, - "required": [ - "model", - "question", - "examples", - "examples_context" - ], - "type": "object" - }, - "CreateAnswerResponse": { - "properties": { - "answers": { - "items": { - "type": "string" - }, - "type": "array" - }, - "completion": { - "type": "string" - }, - "model": { - "type": "string" - }, - "object": { - "type": "string" - }, - "search_model": { - "type": "string" - }, - "selected_documents": { - "items": { - "properties": { - "document": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - } - }, - "type": "object" - }, - "CreateChatCompletionRequest": { - "properties": { - "frequency_penalty": { - "default": 0, - "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.\n\n[See more information about frequency and presence penalties.](/docs/api-reference/parameter-details)\n", - "maximum": 2, - "minimum": -2, - "nullable": true, - "type": "number" - }, - "logit_bias": { - "default": null, - "description": "Modify the likelihood of specified tokens appearing in the completion.\n\nAccepts a json object that maps tokens (specified by their token ID in the tokenizer) to an associated bias value from -100 to 100. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.\n", - "nullable": true, - "type": "object", - "x-oaiTypeLabel": "map" - }, - "max_tokens": { - "default": "inf", - "description": "The maximum number of tokens allowed for the generated answer. By default, the number of tokens the model can return will be (4096 - prompt tokens).\n", - "type": "integer" - }, - "messages": { - "description": "The messages to generate chat completions for, in the [chat format](/docs/guides/chat/introduction).", - "items": { - "$ref": "#/components/schemas/ChatCompletionRequestMessage" - }, - "minItems": 1, - "type": "array" - }, - "model": { - "description": "ID of the model to use. Currently, only `gpt-3.5-turbo` and `gpt-3.5-turbo-0301` are supported.", - "type": "string" - }, - "n": { - "default": 1, - "description": "How many chat completion choices to generate for each input message.", - "example": 1, - "maximum": 128, - "minimum": 1, - "nullable": true, - "type": "integer" - }, - "presence_penalty": { - "default": 0, - "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.\n\n[See more information about frequency and presence penalties.](/docs/api-reference/parameter-details)\n", - "maximum": 2, - "minimum": -2, - "nullable": true, - "type": "number" - }, - "stop": { - "default": null, - "description": "Up to 4 sequences where the API will stop generating further tokens.\n", - "oneOf": [ - { - "nullable": true, - "type": "string" - }, - { - "items": { - "type": "string" - }, - "maxItems": 4, - "minItems": 1, - "type": "array" - } - ] - }, - "stream": { - "default": false, - "description": "If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a `data: [DONE]` message.\n", - "nullable": true, - "type": "boolean" - }, - "temperature": { - "default": 1, - "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n\nWe generally recommend altering this or `top_p` but not both.\n", - "example": 1, - "maximum": 2, - "minimum": 0, - "nullable": true, - "type": "number" - }, - "top_p": { - "default": 1, - "description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or `temperature` but not both.\n", - "example": 1, - "maximum": 1, - "minimum": 0, - "nullable": true, - "type": "number" - }, - "user": { - "$ref": "#/components/schemas/CreateCompletionRequest/properties/user" - } - }, - "required": [ - "model", - "messages" - ], - "type": "object" - }, - "CreateChatCompletionResponse": { - "properties": { - "choices": { - "items": { - "properties": { - "finish_reason": { - "type": "string" - }, - "index": { - "type": "integer" - }, - "message": { - "$ref": "#/components/schemas/ChatCompletionResponseMessage" - } - }, - "type": "object" - }, - "type": "array" - }, - "created": { - "type": "integer" - }, - "id": { - "type": "string" - }, - "model": { - "type": "string" - }, - "object": { - "type": "string" - }, - "usage": { - "properties": { - "completion_tokens": { - "type": "integer" - }, - "prompt_tokens": { - "type": "integer" - }, - "total_tokens": { - "type": "integer" - } - }, - "required": [ - "prompt_tokens", - "completion_tokens", - "total_tokens" - ], - "type": "object" - } - }, - "required": [ - "id", - "object", - "created", - "model", - "choices" - ], - "type": "object" - }, - "CreateClassificationRequest": { - "additionalProperties": false, - "properties": { - "examples": { - "description": "A list of examples with labels, in the following format:\n\n`[[\"The movie is so interesting.\", \"Positive\"], [\"It is quite boring.\", \"Negative\"], ...]`\n\nAll the label strings will be normalized to be capitalized.\n\nYou should specify either `examples` or `file`, but not both.\n", - "example": "[['Do not see this film.', 'Negative'], ['Smart, provocative and blisteringly funny.', 'Positive']]", - "items": { - "items": { - "minLength": 1, - "type": "string" - }, - "maxItems": 2, - "minItems": 2, - "type": "array" - }, - "maxItems": 200, - "minItems": 2, - "nullable": true, - "type": "array" - }, - "expand": { - "$ref": "#/components/schemas/CreateAnswerRequest/properties/expand" - }, - "file": { - "description": "The ID of the uploaded file that contains training examples. See [upload file](/docs/api-reference/files/upload) for how to upload a file of the desired format and purpose.\n\nYou should specify either `examples` or `file`, but not both.\n", - "nullable": true, - "type": "string" - }, - "labels": { - "default": null, - "description": "The set of categories being classified. If not specified, candidate labels will be automatically collected from the examples you provide. All the label strings will be normalized to be capitalized.", - "example": [ - "Positive", - "Negative" - ], - "items": { - "type": "string" - }, - "maxItems": 200, - "minItems": 2, - "nullable": true, - "type": "array" - }, - "logit_bias": { - "$ref": "#/components/schemas/CreateCompletionRequest/properties/logit_bias" - }, - "logprobs": { - "$ref": "#/components/schemas/CreateAnswerRequest/properties/logprobs" - }, - "max_examples": { - "default": 200, - "description": "The maximum number of examples to be ranked by [Search](/docs/api-reference/searches/create) when using `file`. Setting it to a higher value leads to improved accuracy but with increased latency and cost.", - "nullable": true, - "type": "integer" - }, - "model": { - "$ref": "#/components/schemas/CreateCompletionRequest/properties/model" - }, - "query": { - "description": "Query to be classified.", - "example": "The plot is not very attractive.", - "minLength": 1, - "type": "string" - }, - "return_metadata": { - "$ref": "#/components/schemas/CreateSearchRequest/properties/return_metadata" - }, - "return_prompt": { - "$ref": "#/components/schemas/CreateAnswerRequest/properties/return_prompt" - }, - "search_model": { - "$ref": "#/components/schemas/CreateAnswerRequest/properties/search_model" - }, - "temperature": { - "default": 0, - "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.", - "example": 0, - "maximum": 2, - "minimum": 0, - "nullable": true, - "type": "number" - }, - "user": { - "$ref": "#/components/schemas/CreateCompletionRequest/properties/user" - } - }, - "required": [ - "model", - "query" - ], - "type": "object" - }, - "CreateClassificationResponse": { - "properties": { - "completion": { - "type": "string" - }, - "label": { - "type": "string" - }, - "model": { - "type": "string" - }, - "object": { - "type": "string" - }, - "search_model": { - "type": "string" - }, - "selected_examples": { - "items": { - "properties": { - "document": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "text": { - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - } - }, - "type": "object" - }, - "CreateCompletionRequest": { - "properties": { - "best_of": { - "default": 1, - "description": "Generates `best_of` completions server-side and returns the \"best\" (the one with the highest log probability per token). Results cannot be streamed.\n\nWhen used with `n`, `best_of` controls the number of candidate completions and `n` specifies how many to return – `best_of` must be greater than `n`.\n\n**Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.\n", - "maximum": 20, - "minimum": 0, - "nullable": true, - "type": "integer" - }, - "echo": { - "default": false, - "description": "Echo back the prompt in addition to the completion\n", - "nullable": true, - "type": "boolean" - }, - "frequency_penalty": { - "default": 0, - "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.\n\n[See more information about frequency and presence penalties.](/docs/api-reference/parameter-details)\n", - "maximum": 2, - "minimum": -2, - "nullable": true, - "type": "number" - }, - "logit_bias": { - "default": null, - "description": "Modify the likelihood of specified tokens appearing in the completion.\n\nAccepts a json object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this [tokenizer tool](/tokenizer?view=bpe) (which works for both GPT-2 and GPT-3) to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.\n\nAs an example, you can pass `{\"50256\": -100}` to prevent the <|endoftext|> token from being generated.\n", - "nullable": true, - "type": "object", - "x-oaiTypeLabel": "map" - }, - "logprobs": { - "default": null, - "description": "Include the log probabilities on the `logprobs` most likely tokens, as well the chosen tokens. For example, if `logprobs` is 5, the API will return a list of the 5 most likely tokens. The API will always return the `logprob` of the sampled token, so there may be up to `logprobs+1` elements in the response.\n\nThe maximum value for `logprobs` is 5. If you need more than this, please contact us through our [Help center](https://help.openai.com) and describe your use case.\n", - "maximum": 5, - "minimum": 0, - "nullable": true, - "type": "integer" - }, - "max_tokens": { - "default": 16, - "description": "The maximum number of [tokens](/tokenizer) to generate in the completion.\n\nThe token count of your prompt plus `max_tokens` cannot exceed the model's context length. Most models have a context length of 2048 tokens (except for the newest models, which support 4096).\n", - "example": 16, - "minimum": 0, - "nullable": true, - "type": "integer" - }, - "model": { - "description": "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models/overview) for descriptions of them.", - "type": "string" - }, - "n": { - "default": 1, - "description": "How many completions to generate for each prompt.\n\n**Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.\n", - "example": 1, - "maximum": 128, - "minimum": 1, - "nullable": true, - "type": "integer" - }, - "presence_penalty": { - "default": 0, - "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.\n\n[See more information about frequency and presence penalties.](/docs/api-reference/parameter-details)\n", - "maximum": 2, - "minimum": -2, - "nullable": true, - "type": "number" - }, - "prompt": { - "default": "<|endoftext|>", - "description": "The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.\n\nNote that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.\n", - "nullable": true, - "oneOf": [ - { - "default": "", - "example": "This is a test.", - "type": "string" - }, - { - "items": { - "default": "", - "example": "This is a test.", - "type": "string" - }, - "type": "array" - }, - { - "example": "[1212, 318, 257, 1332, 13]", - "items": { - "type": "integer" - }, - "minItems": 1, - "type": "array" - }, - { - "example": "[[1212, 318, 257, 1332, 13]]", - "items": { - "items": { - "type": "integer" - }, - "minItems": 1, - "type": "array" - }, - "minItems": 1, - "type": "array" - } - ] - }, - "stop": { - "default": null, - "description": "Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.\n", - "nullable": true, - "oneOf": [ - { - "default": "<|endoftext|>", - "example": "\n", - "nullable": true, - "type": "string" - }, - { - "items": { - "example": "[\"\\n\"]", - "type": "string" - }, - "maxItems": 4, - "minItems": 1, - "type": "array" - } - ] - }, - "stream": { - "default": false, - "description": "Whether to stream back partial progress. If set, tokens will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a `data: [DONE]` message.\n", - "nullable": true, - "type": "boolean" - }, - "suffix": { - "default": null, - "description": "The suffix that comes after a completion of inserted text.", - "example": "test.", - "nullable": true, - "type": "string" - }, - "temperature": { - "default": 1, - "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n\nWe generally recommend altering this or `top_p` but not both.\n", - "example": 1, - "maximum": 2, - "minimum": 0, - "nullable": true, - "type": "number" - }, - "top_p": { - "default": 1, - "description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or `temperature` but not both.\n", - "example": 1, - "maximum": 1, - "minimum": 0, - "nullable": true, - "type": "number" - }, - "user": { - "description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids).\n", - "example": "user-1234", - "type": "string" - } - }, - "required": [ - "model" - ], - "type": "object" - }, - "CreateCompletionResponse": { - "properties": { - "choices": { - "items": { - "properties": { - "finish_reason": { - "type": "string" - }, - "index": { - "type": "integer" - }, - "logprobs": { - "nullable": true, - "properties": { - "text_offset": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "token_logprobs": { - "items": { - "type": "number" - }, - "type": "array" - }, - "tokens": { - "items": { - "type": "string" - }, - "type": "array" - }, - "top_logprobs": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "type": "object" - }, - "text": { - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "created": { - "type": "integer" - }, - "id": { - "type": "string" - }, - "model": { - "type": "string" - }, - "object": { - "type": "string" - }, - "usage": { - "properties": { - "completion_tokens": { - "type": "integer" - }, - "prompt_tokens": { - "type": "integer" - }, - "total_tokens": { - "type": "integer" - } - }, - "required": [ - "prompt_tokens", - "completion_tokens", - "total_tokens" - ], - "type": "object" - } - }, - "required": [ - "id", - "object", - "created", - "model", - "choices" - ], - "type": "object" - }, - "CreateEditRequest": { - "properties": { - "input": { - "default": "", - "description": "The input text to use as a starting point for the edit.", - "example": "What day of the wek is it?", - "nullable": true, - "type": "string" - }, - "instruction": { - "description": "The instruction that tells the model how to edit the prompt.", - "example": "Fix the spelling mistakes.", - "type": "string" - }, - "model": { - "description": "ID of the model to use. You can use the `text-davinci-edit-001` or `code-davinci-edit-001` model with this endpoint.", - "type": "string" - }, - "n": { - "default": 1, - "description": "How many edits to generate for the input and instruction.", - "example": 1, - "maximum": 20, - "minimum": 1, - "nullable": true, - "type": "integer" - }, - "temperature": { - "default": 1, - "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n\nWe generally recommend altering this or `top_p` but not both.\n", - "example": 1, - "maximum": 2, - "minimum": 0, - "nullable": true, - "type": "number" - }, - "top_p": { - "default": 1, - "description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or `temperature` but not both.\n", - "example": 1, - "maximum": 1, - "minimum": 0, - "nullable": true, - "type": "number" - } - }, - "required": [ - "model", - "instruction" - ], - "type": "object" - }, - "CreateEditResponse": { - "properties": { - "choices": { - "items": { - "properties": { - "finish_reason": { - "type": "string" - }, - "index": { - "type": "integer" - }, - "logprobs": { - "nullable": true, - "properties": { - "text_offset": { - "items": { - "type": "integer" - }, - "type": "array" - }, - "token_logprobs": { - "items": { - "type": "number" - }, - "type": "array" - }, - "tokens": { - "items": { - "type": "string" - }, - "type": "array" - }, - "top_logprobs": { - "items": { - "type": "object" - }, - "type": "array" - } - }, - "type": "object" - }, - "text": { - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "created": { - "type": "integer" - }, - "object": { - "type": "string" - }, - "usage": { - "properties": { - "completion_tokens": { - "type": "integer" - }, - "prompt_tokens": { - "type": "integer" - }, - "total_tokens": { - "type": "integer" - } - }, - "required": [ - "prompt_tokens", - "completion_tokens", - "total_tokens" - ], - "type": "object" - } - }, - "required": [ - "object", - "created", - "choices", - "usage" - ], - "type": "object" - }, - "CreateEmbeddingRequest": { - "additionalProperties": false, - "properties": { - "input": { - "description": "Input text to get embeddings for, encoded as a string or array of tokens. To get embeddings for multiple inputs in a single request, pass an array of strings or array of token arrays. Each input must not exceed 8192 tokens in length.\n", - "example": "The quick brown fox jumped over the lazy dog", - "oneOf": [ - { - "default": "", - "example": "This is a test.", - "type": "string" - }, - { - "items": { - "default": "", - "example": "This is a test.", - "type": "string" - }, - "type": "array" - }, - { - "example": "[1212, 318, 257, 1332, 13]", - "items": { - "type": "integer" - }, - "minItems": 1, - "type": "array" - }, - { - "example": "[[1212, 318, 257, 1332, 13]]", - "items": { - "items": { - "type": "integer" - }, - "minItems": 1, - "type": "array" - }, - "minItems": 1, - "type": "array" - } - ] - }, - "model": { - "$ref": "#/components/schemas/CreateCompletionRequest/properties/model" - }, - "user": { - "$ref": "#/components/schemas/CreateCompletionRequest/properties/user" - } - }, - "required": [ - "model", - "input" - ], - "type": "object" - }, - "CreateEmbeddingResponse": { - "properties": { - "data": { - "items": { - "properties": { - "embedding": { - "items": { - "type": "number" - }, - "type": "array" - }, - "index": { - "type": "integer" - }, - "object": { - "type": "string" - } - }, - "required": [ - "index", - "object", - "embedding" - ], - "type": "object" - }, - "type": "array" - }, - "model": { - "type": "string" - }, - "object": { - "type": "string" - }, - "usage": { - "properties": { - "prompt_tokens": { - "type": "integer" - }, - "total_tokens": { - "type": "integer" - } - }, - "required": [ - "prompt_tokens", - "total_tokens" - ], - "type": "object" - } - }, - "required": [ - "object", - "model", - "data", - "usage" - ], - "type": "object" - }, - "CreateFileRequest": { - "additionalProperties": false, - "properties": { - "file": { - "description": "Name of the [JSON Lines](https://jsonlines.readthedocs.io/en/latest/) file to be uploaded.\n\nIf the `purpose` is set to \"fine-tune\", each line is a JSON record with \"prompt\" and \"completion\" fields representing your [training examples](/docs/guides/fine-tuning/prepare-training-data).\n", - "format": "binary", - "type": "string" - }, - "purpose": { - "description": "The intended purpose of the uploaded documents.\n\nUse \"fine-tune\" for [Fine-tuning](/docs/api-reference/fine-tunes). This allows us to validate the format of the uploaded file.\n", - "type": "string" - } - }, - "required": [ - "file", - "purpose" - ], - "type": "object" - }, - "CreateFineTuneRequest": { - "properties": { - "batch_size": { - "default": null, - "description": "The batch size to use for training. The batch size is the number of\ntraining examples used to train a single forward and backward pass.\n\nBy default, the batch size will be dynamically configured to be\n~0.2% of the number of examples in the training set, capped at 256 -\nin general, we've found that larger batch sizes tend to work better\nfor larger datasets.\n", - "nullable": true, - "type": "integer" - }, - "classification_betas": { - "default": null, - "description": "If this is provided, we calculate F-beta scores at the specified\nbeta values. The F-beta score is a generalization of F-1 score.\nThis is only used for binary classification.\n\nWith a beta of 1 (i.e. the F-1 score), precision and recall are\ngiven the same weight. A larger beta score puts more weight on\nrecall and less on precision. A smaller beta score puts more weight\non precision and less on recall.\n", - "example": [ - 0.6, - 1, - 1.5, - 2 - ], - "items": { - "type": "number" - }, - "nullable": true, - "type": "array" - }, - "classification_n_classes": { - "default": null, - "description": "The number of classes in a classification task.\n\nThis parameter is required for multiclass classification.\n", - "nullable": true, - "type": "integer" - }, - "classification_positive_class": { - "default": null, - "description": "The positive class in binary classification.\n\nThis parameter is needed to generate precision, recall, and F1\nmetrics when doing binary classification.\n", - "nullable": true, - "type": "string" - }, - "compute_classification_metrics": { - "default": false, - "description": "If set, we calculate classification-specific metrics such as accuracy\nand F-1 score using the validation set at the end of every epoch.\nThese metrics can be viewed in the [results file](/docs/guides/fine-tuning/analyzing-your-fine-tuned-model).\n\nIn order to compute classification metrics, you must provide a\n`validation_file`. Additionally, you must\nspecify `classification_n_classes` for multiclass classification or\n`classification_positive_class` for binary classification.\n", - "nullable": true, - "type": "boolean" - }, - "learning_rate_multiplier": { - "default": null, - "description": "The learning rate multiplier to use for training.\nThe fine-tuning learning rate is the original learning rate used for\npretraining multiplied by this value.\n\nBy default, the learning rate multiplier is the 0.05, 0.1, or 0.2\ndepending on final `batch_size` (larger learning rates tend to\nperform better with larger batch sizes). We recommend experimenting\nwith values in the range 0.02 to 0.2 to see what produces the best\nresults.\n", - "nullable": true, - "type": "number" - }, - "model": { - "default": "curie", - "description": "The name of the base model to fine-tune. You can select one of \"ada\",\n\"babbage\", \"curie\", \"davinci\", or a fine-tuned model created after 2022-04-21.\nTo learn more about these models, see the\n[Models](https://platform.openai.com/docs/models) documentation.\n", - "nullable": true, - "type": "string" - }, - "n_epochs": { - "default": 4, - "description": "The number of epochs to train the model for. An epoch refers to one\nfull cycle through the training dataset.\n", - "nullable": true, - "type": "integer" - }, - "prompt_loss_weight": { - "default": 0.01, - "description": "The weight to use for loss on the prompt tokens. This controls how\nmuch the model tries to learn to generate the prompt (as compared\nto the completion which always has a weight of 1.0), and can add\na stabilizing effect to training when completions are short.\n\nIf prompts are extremely long (relative to completions), it may make\nsense to reduce this weight so as to avoid over-prioritizing\nlearning the prompt.\n", - "nullable": true, - "type": "number" - }, - "suffix": { - "default": null, - "description": "A string of up to 40 characters that will be added to your fine-tuned model name.\n\nFor example, a `suffix` of \"custom-model-name\" would produce a model name like `ada:ft-your-org:custom-model-name-2022-02-15-04-21-04`.\n", - "maxLength": 40, - "minLength": 1, - "nullable": true, - "type": "string" - }, - "training_file": { - "description": "The ID of an uploaded file that contains training data.\n\nSee [upload file](/docs/api-reference/files/upload) for how to upload a file.\n\nYour dataset must be formatted as a JSONL file, where each training\nexample is a JSON object with the keys \"prompt\" and \"completion\".\nAdditionally, you must upload your file with the purpose `fine-tune`.\n\nSee the [fine-tuning guide](/docs/guides/fine-tuning/creating-training-data) for more details.\n", - "example": "file-ajSREls59WBbvgSzJSVWxMCB", - "type": "string" - }, - "validation_file": { - "description": "The ID of an uploaded file that contains validation data.\n\nIf you provide this file, the data is used to generate validation\nmetrics periodically during fine-tuning. These metrics can be viewed in\nthe [fine-tuning results file](/docs/guides/fine-tuning/analyzing-your-fine-tuned-model).\nYour train and validation data should be mutually exclusive.\n\nYour dataset must be formatted as a JSONL file, where each validation\nexample is a JSON object with the keys \"prompt\" and \"completion\".\nAdditionally, you must upload your file with the purpose `fine-tune`.\n\nSee the [fine-tuning guide](/docs/guides/fine-tuning/creating-training-data) for more details.\n", - "example": "file-XjSREls59WBbvgSzJSVWxMCa", - "nullable": true, - "type": "string" - } - }, - "required": [ - "training_file" - ], - "type": "object" - }, - "CreateImageEditRequest": { - "properties": { - "image": { - "description": "The image to edit. Must be a valid PNG file, less than 4MB, and square. If mask is not provided, image must have transparency, which will be used as the mask.", - "format": "binary", - "type": "string" - }, - "mask": { - "description": "An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`.", - "format": "binary", - "type": "string" - }, - "n": { - "$ref": "#/components/schemas/CreateImageRequest/properties/n" - }, - "prompt": { - "description": "A text description of the desired image(s). The maximum length is 1000 characters.", - "example": "A cute baby sea otter wearing a beret", - "type": "string" - }, - "response_format": { - "$ref": "#/components/schemas/CreateImageRequest/properties/response_format" - }, - "size": { - "$ref": "#/components/schemas/CreateImageRequest/properties/size" - }, - "user": { - "$ref": "#/components/schemas/CreateCompletionRequest/properties/user" - } - }, - "required": [ - "prompt", - "image" - ], - "type": "object" - }, - "CreateImageRequest": { - "properties": { - "n": { - "default": 1, - "description": "The number of images to generate. Must be between 1 and 10.", - "example": 1, - "maximum": 10, - "minimum": 1, - "nullable": true, - "type": "integer" - }, - "prompt": { - "description": "A text description of the desired image(s). The maximum length is 1000 characters.", - "example": "A cute baby sea otter", - "type": "string" - }, - "response_format": { - "default": "url", - "description": "The format in which the generated images are returned. Must be one of `url` or `b64_json`.", - "enum": [ - "url", - "b64_json" - ], - "example": "url", - "nullable": true, - "type": "string" - }, - "size": { - "default": "1024x1024", - "description": "The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`.", - "enum": [ - "256x256", - "512x512", - "1024x1024" - ], - "example": "1024x1024", - "nullable": true, - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/CreateCompletionRequest/properties/user" - } - }, - "required": [ - "prompt" - ], - "type": "object" - }, - "CreateImageVariationRequest": { - "properties": { - "image": { - "description": "The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.", - "format": "binary", - "type": "string" - }, - "n": { - "$ref": "#/components/schemas/CreateImageRequest/properties/n" - }, - "response_format": { - "$ref": "#/components/schemas/CreateImageRequest/properties/response_format" - }, - "size": { - "$ref": "#/components/schemas/CreateImageRequest/properties/size" - }, - "user": { - "$ref": "#/components/schemas/CreateCompletionRequest/properties/user" - } - }, - "required": [ - "image" - ], - "type": "object" - }, - "CreateModerationRequest": { - "properties": { - "input": { - "description": "The input text to classify", - "oneOf": [ - { - "default": "", - "example": "I want to kill them.", - "type": "string" - }, - { - "items": { - "default": "", - "example": "I want to kill them.", - "type": "string" - }, - "type": "array" - } - ] - }, - "model": { - "default": "text-moderation-latest", - "description": "Two content moderations models are available: `text-moderation-stable` and `text-moderation-latest`.\n\nThe default is `text-moderation-latest` which will be automatically upgraded over time. This ensures you are always using our most accurate model. If you use `text-moderation-stable`, we will provide advanced notice before updating the model. Accuracy of `text-moderation-stable` may be slightly lower than for `text-moderation-latest`.\n", - "example": "text-moderation-stable", - "nullable": false, - "type": "string" - } - }, - "required": [ - "input" - ], - "type": "object" - }, - "CreateModerationResponse": { - "properties": { - "id": { - "type": "string" - }, - "model": { - "type": "string" - }, - "results": { - "items": { - "properties": { - "categories": { - "properties": { - "hate": { - "type": "boolean" - }, - "hate/threatening": { - "type": "boolean" - }, - "self-harm": { - "type": "boolean" - }, - "sexual": { - "type": "boolean" - }, - "sexual/minors": { - "type": "boolean" - }, - "violence": { - "type": "boolean" - }, - "violence/graphic": { - "type": "boolean" - } - }, - "required": [ - "hate", - "hate/threatening", - "self-harm", - "sexual", - "sexual/minors", - "violence", - "violence/graphic" - ], - "type": "object" - }, - "category_scores": { - "properties": { - "hate": { - "type": "number" - }, - "hate/threatening": { - "type": "number" - }, - "self-harm": { - "type": "number" - }, - "sexual": { - "type": "number" - }, - "sexual/minors": { - "type": "number" - }, - "violence": { - "type": "number" - }, - "violence/graphic": { - "type": "number" - } - }, - "required": [ - "hate", - "hate/threatening", - "self-harm", - "sexual", - "sexual/minors", - "violence", - "violence/graphic" - ], - "type": "object" - }, - "flagged": { - "type": "boolean" - } - }, - "required": [ - "flagged", - "categories", - "category_scores" - ], - "type": "object" - }, - "type": "array" - } - }, - "required": [ - "id", - "model", - "results" - ], - "type": "object" - }, - "CreateSearchRequest": { - "properties": { - "documents": { - "description": "Up to 200 documents to search over, provided as a list of strings.\n\nThe maximum document length (in tokens) is 2034 minus the number of tokens in the query.\n\nYou should specify either `documents` or a `file`, but not both.\n", - "example": "['White House', 'hospital', 'school']", - "items": { - "type": "string" - }, - "maxItems": 200, - "minItems": 1, - "nullable": true, - "type": "array" - }, - "file": { - "description": "The ID of an uploaded file that contains documents to search over.\n\nYou should specify either `documents` or a `file`, but not both.\n", - "nullable": true, - "type": "string" - }, - "max_rerank": { - "default": 200, - "description": "The maximum number of documents to be re-ranked and returned by search.\n\nThis flag only takes effect when `file` is set.\n", - "minimum": 1, - "nullable": true, - "type": "integer" - }, - "query": { - "description": "Query to search against the documents.", - "example": "the president", - "minLength": 1, - "type": "string" - }, - "return_metadata": { - "default": false, - "description": "A special boolean flag for showing metadata. If set to `true`, each document entry in the returned JSON will contain a \"metadata\" field.\n\nThis flag only takes effect when `file` is set.\n", - "nullable": true, - "type": "boolean" - }, - "user": { - "$ref": "#/components/schemas/CreateCompletionRequest/properties/user" - } - }, - "required": [ - "query" - ], - "type": "object" - }, - "CreateSearchResponse": { - "properties": { - "data": { - "items": { - "properties": { - "document": { - "type": "integer" - }, - "object": { - "type": "string" - }, - "score": { - "type": "number" - } - }, - "type": "object" - }, - "type": "array" - }, - "model": { - "type": "string" - }, - "object": { - "type": "string" - } - }, - "type": "object" - }, - "CreateTranscriptionRequest": { - "additionalProperties": false, - "properties": { - "file": { - "description": "The audio file to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.\n", - "format": "binary", - "type": "string" - }, - "language": { - "description": "The language of the input audio. Supplying the input language in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format will improve accuracy and latency.\n", - "type": "string" - }, - "model": { - "description": "ID of the model to use. Only `whisper-1` is currently available.\n", - "type": "string" - }, - "prompt": { - "description": "An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should match the audio language.\n", - "type": "string" - }, - "response_format": { - "default": "json", - "description": "The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.\n", - "type": "string" - }, - "temperature": { - "default": 0, - "description": "The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.\n", - "type": "number" - } - }, - "required": [ - "file", - "model" - ], - "type": "object" - }, - "CreateTranscriptionResponse": { - "properties": { - "text": { - "type": "string" - } - }, - "required": [ - "text" - ], - "type": "object" - }, - "CreateTranslationRequest": { - "additionalProperties": false, - "properties": { - "file": { - "description": "The audio file to translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.\n", - "format": "binary", - "type": "string" - }, - "model": { - "description": "ID of the model to use. Only `whisper-1` is currently available.\n", - "type": "string" - }, - "prompt": { - "description": "An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in English.\n", - "type": "string" - }, - "response_format": { - "default": "json", - "description": "The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.\n", - "type": "string" - }, - "temperature": { - "default": 0, - "description": "The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.\n", - "type": "number" - } - }, - "required": [ - "file", - "model" - ], - "type": "object" - }, - "CreateTranslationResponse": { - "properties": { - "text": { - "type": "string" - } - }, - "required": [ - "text" - ], - "type": "object" - }, - "DeleteFileResponse": { - "properties": { - "deleted": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "object": { - "type": "string" - } - }, - "required": [ - "id", - "object", - "deleted" - ], - "type": "object" - }, - "DeleteModelResponse": { - "properties": { - "deleted": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "object": { - "type": "string" - } - }, - "required": [ - "id", - "object", - "deleted" - ], - "type": "object" - }, - "Engine": { - "properties": { - "created": { - "nullable": true, - "type": "integer" - }, - "id": { - "type": "string" - }, - "object": { - "type": "string" - }, - "ready": { - "type": "boolean" - } - }, - "required": [ - "id", - "object", - "created", - "ready" - ], - "title": "Engine" - }, - "FineTune": { - "properties": { - "created_at": { - "type": "integer" - }, - "events": { - "items": { - "$ref": "#/components/schemas/FineTuneEvent" - }, - "type": "array" - }, - "fine_tuned_model": { - "nullable": true, - "type": "string" - }, - "hyperparams": { - "type": "object" - }, - "id": { - "type": "string" - }, - "model": { - "type": "string" - }, - "object": { - "type": "string" - }, - "organization_id": { - "type": "string" - }, - "result_files": { - "items": { - "$ref": "#/components/schemas/OpenAIFile" - }, - "type": "array" - }, - "status": { - "type": "string" - }, - "training_files": { - "items": { - "$ref": "#/components/schemas/OpenAIFile" - }, - "type": "array" - }, - "updated_at": { - "type": "integer" - }, - "validation_files": { - "items": { - "$ref": "#/components/schemas/OpenAIFile" - }, - "type": "array" - } - }, - "required": [ - "id", - "object", - "created_at", - "updated_at", - "model", - "fine_tuned_model", - "organization_id", - "status", - "hyperparams", - "training_files", - "validation_files", - "result_files" - ], - "title": "FineTune" - }, - "FineTuneEvent": { - "properties": { - "created_at": { - "type": "integer" - }, - "level": { - "type": "string" - }, - "message": { - "type": "string" - }, - "object": { - "type": "string" - } - }, - "required": [ - "object", - "created_at", - "level", - "message" - ], - "title": "FineTuneEvent" - }, - "ImagesResponse": { - "properties": { - "created": { - "type": "integer" - }, - "data": { - "items": { - "properties": { - "b64_json": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - } - }, - "required": [ - "created", - "data" - ] - }, - "ListEnginesResponse": { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Engine" - }, - "type": "array" - }, - "object": { - "type": "string" - } - }, - "required": [ - "object", - "data" - ], - "type": "object" - }, - "ListFilesResponse": { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/OpenAIFile" - }, - "type": "array" - }, - "object": { - "type": "string" - } - }, - "required": [ - "object", - "data" - ], - "type": "object" - }, - "ListFineTuneEventsResponse": { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/FineTuneEvent" - }, - "type": "array" - }, - "object": { - "type": "string" - } - }, - "required": [ - "object", - "data" - ], - "type": "object" - }, - "ListFineTunesResponse": { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/FineTune" - }, - "type": "array" - }, - "object": { - "type": "string" - } - }, - "required": [ - "object", - "data" - ], - "type": "object" - }, - "ListModelsResponse": { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/Model" - }, - "type": "array" - }, - "object": { - "type": "string" - } - }, - "required": [ - "object", - "data" - ], - "type": "object" - }, - "Model": { - "properties": { - "created": { - "type": "integer" - }, - "id": { - "type": "string" - }, - "object": { - "type": "string" - }, - "owned_by": { - "type": "string" - } - }, - "required": [ - "id", - "object", - "created", - "owned_by" - ], - "title": "Model" - }, - "OpenAIFile": { - "properties": { - "bytes": { - "type": "integer" - }, - "created_at": { - "type": "integer" - }, - "filename": { - "type": "string" - }, - "id": { - "type": "string" - }, - "object": { - "type": "string" - }, - "purpose": { - "type": "string" - }, - "status": { - "type": "string" - }, - "status_details": { - "nullable": true, - "type": "object" - } - }, - "required": [ - "id", - "object", - "bytes", - "created_at", - "filename", - "purpose" - ], - "title": "OpenAIFile" - } - } - }, - "x-oaiMeta": { - "groups": [ - { - "description": "List and describe the various models available in the API. You can refer to the [Models](/docs/models) documentation to understand what models are available and the differences between them.\n", - "id": "models", - "title": "Models" - }, - { - "description": "Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position.\n", - "id": "completions", - "title": "Completions" - }, - { - "description": "Given a chat conversation, the model will return a chat completion response.\n", - "id": "chat", - "title": "Chat" - }, - { - "description": "Given a prompt and an instruction, the model will return an edited version of the prompt.\n", - "id": "edits", - "title": "Edits" - }, - { - "description": "Given a prompt and/or an input image, the model will generate a new image.\n\nRelated guide: [Image generation](/docs/guides/images)\n", - "id": "images", - "title": "Images" - }, - { - "description": "Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.\n\nRelated guide: [Embeddings](/docs/guides/embeddings)\n", - "id": "embeddings", - "title": "Embeddings" - }, - { - "description": "Learn how to turn audio into text.\n\nRelated guide: [Speech to text](/docs/guides/speech-to-text)\n", - "id": "audio", - "title": "Audio" - }, - { - "description": "Files are used to upload documents that can be used with features like [Fine-tuning](/docs/api-reference/fine-tunes).\n", - "id": "files", - "title": "Files" - }, - { - "description": "Manage fine-tuning jobs to tailor a model to your specific training data.\n\nRelated guide: [Fine-tune models](/docs/guides/fine-tuning)\n", - "id": "fine-tunes", - "title": "Fine-tunes" - }, - { - "description": "Given a input text, outputs if the model classifies it as violating OpenAI's content policy.\n\nRelated guide: [Moderations](/docs/guides/moderation)\n", - "id": "moderations", - "title": "Moderations" - }, - { - "description": "Given a query and a set of documents or labels, the model ranks each document based on its semantic similarity to the provided query.\n\nRelated guide: [Search](/docs/guides/search)\n", - "id": "searches", - "title": "Searches", - "warning": { - "message": "We’ve developed new methods with better performance. [Learn more](https://help.openai.com/en/articles/6272952-search-transition-guide).", - "title": "This endpoint is deprecated and will be removed on December 3rd, 2022" - } - }, - { - "description": "Given a query and a set of labeled examples, the model will predict the most likely label for the query. Useful as a drop-in replacement for any ML classification or text-to-label task.\n\nRelated guide: [Classification](/docs/guides/classifications)\n", - "id": "classifications", - "title": "Classifications", - "warning": { - "message": "We’ve developed new methods with better performance. [Learn more](https://help.openai.com/en/articles/6272941-classifications-transition-guide).", - "title": "This endpoint is deprecated and will be removed on December 3rd, 2022" - } - }, - { - "description": "Given a question, a set of documents, and some examples, the API generates an answer to the question based on the information in the set of documents. This is useful for question-answering applications on sources of truth, like company documentation or a knowledge base.\n\nRelated guide: [Question answering](/docs/guides/answers)\n", - "id": "answers", - "title": "Answers", - "warning": { - "message": "We’ve developed new methods with better performance. [Learn more](https://help.openai.com/en/articles/6233728-answers-transition-guide).", - "title": "This endpoint is deprecated and will be removed on December 3rd, 2022" - } - }, - { - "description": "These endpoints describe and provide access to the various engines available in the API.", - "id": "engines", - "title": "Engines", - "warning": { - "message": "Please use their replacement, [Models](/docs/api-reference/models), instead. [Learn more](https://help.openai.com/TODO).", - "title": "The Engines endpoints are deprecated." - } - } - ] - } - } \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_create.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_create.yaml new file mode 100644 index 00000000000..3dd04a7ad92 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_create.yaml @@ -0,0 +1,63 @@ +interactions: +- request: + body: '{"properties": {"kind": "rest", "title": "Echo API"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api create + Connection: + - keep-alive + Content-Length: + - '53' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --title --type + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000003","name":"cli000003","systemData":{"createdAt":"2024-06-17T06:00:44.9963937Z","lastModifiedAt":"2024-06-17T06:00:44.9963921Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '464' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:00:44 GMT + etag: + - da02dc98-0000-0100-0000-666fd10c0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: CC39E9193ED345698E8CB1312E168A5A Ref B: MAA201060515029 Ref C: 2024-06-17T06:00:43Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_create_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_create_with_all_optional_params.yaml new file mode 100644 index 00000000000..7c6f317cfe5 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_create_with_all_optional_params.yaml @@ -0,0 +1,69 @@ +interactions: +- request: + body: '{"properties": {"contacts": [{"email": "contact@example.com", "name": "test", + "url": "example.com"}], "customProperties": {"clitest000003": true}, "description": + "API description", "externalDocumentation": [{"title": "onboarding docs", "url": + "example.com"}], "kind": "rest", "license": {"url": "example.com"}, "summary": + "summary", "title": "test api"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api create + Connection: + - keep-alive + Content-Length: + - '354' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --title --type --contacts --custom-properties --description + --external-documentation --license --summary + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000004?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"test + api","summary":"summary","description":"API description","kind":"rest","license":{"url":"example.com"},"externalDocumentation":[{"title":"onboarding + docs","url":"example.com"}],"contacts":[{"name":"test","url":"example.com","email":"contact@example.com"}],"customProperties":{"clitest000003":true}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000004","name":"cli000004","systemData":{"createdAt":"2024-06-17T06:01:05.6377877Z","lastModifiedAt":"2024-06-17T06:01:05.6377761Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '680' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:01:05 GMT + etag: + - da020b9a-0000-0100-0000-666fd1210000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 65463DBC175045639714FEB0384BB4EF Ref B: MAA201060513047 Ref C: 2024-06-17T06:01:04Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_delete.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_delete.yaml new file mode 100644 index 00000000000..ec3501653a6 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_delete.yaml @@ -0,0 +1,104 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --api-id --yes + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + date: + - Mon, 17 Jun 2024 06:01:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: 3F5C22E176E04C06916635DD0AF9C415 Ref B: MAA201060516009 Ref C: 2024-06-17T06:01:22Z' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"code":"404"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '14' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:01:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 395C337E0EC84498B4F49AB282F9ABE0 Ref B: MAA201060513035 Ref C: 2024-06-17T06:01:25Z' + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_list.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_list.yaml new file mode 100644 index 00000000000..dc06139c4d7 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_list.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api list + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:01:42.9377344Z","lastModifiedAt":"2024-06-17T06:01:42.9377333Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:01:45.6045754Z","lastModifiedAt":"2024-06-17T06:01:45.6045746Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '957' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:01:47 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 92408248176D40099D33F23353283F1D Ref B: MAA201060515017 Ref C: 2024-06-17T06:01:47Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_list_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_list_with_all_optional_params.yaml new file mode 100644 index 00000000000..cc6e7590e62 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_list_with_all_optional_params.yaml @@ -0,0 +1,55 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api list + Connection: + - keep-alive + ParameterSetName: + - -g -n --filter + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis?$filter=name%20eq%20%27clitest000003%27&api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:02:02.4785915Z","lastModifiedAt":"2024-06-17T06:02:02.4785904Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '484' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:02:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 256451759C894F7DA8C3B6E2CBE562A1 Ref B: MAA201060513009 Ref C: 2024-06-17T06:02:07Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_show.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_show.yaml new file mode 100644 index 00000000000..1920c0c9caa --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_show.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:02:23.021984Z","lastModifiedAt":"2024-06-17T06:02:23.0219829Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '471' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:02:25 GMT + etag: + - da02799d-0000-0100-0000-666fd16f0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 705F3882B7C04719B6BEB318FFEE74C7 Ref B: MAA201060513037 Ref C: 2024-06-17T06:02:24Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_update.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_update.yaml new file mode 100644 index 00000000000..38ff386973c --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_update.yaml @@ -0,0 +1,119 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api update + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:02:43.0107179Z","lastModifiedAt":"2024-06-17T06:02:43.0107169Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '472' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:02:44 GMT + etag: + - da02e59d-0000-0100-0000-666fd1830000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: D5D05BD4FF254C528F6B6BDBDE26A464 Ref B: MAA201060514017 Ref C: 2024-06-17T06:02:44Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"contacts": [], "customProperties": {}, "externalDocumentation": + [], "kind": "rest", "title": "Echo API 2"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api update + Connection: + - keep-alive + Content-Length: + - '124' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API 2","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"lastModifiedAt":"2024-06-17T06:02:46.9354653Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '431' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:02:46 GMT + etag: + - da02f59d-0000-0100-0000-666fd1860000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 152D612B693048A181A58DDB9FF2B317 Ref B: MAA201060514017 Ref C: 2024-06-17T06:02:45Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_update_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_update_with_all_optional_params.yaml new file mode 100644 index 00000000000..9dc4a4440d7 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_api_update_with_all_optional_params.yaml @@ -0,0 +1,125 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api update + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --title --type --contacts --custom-properties --description + --external-documentation --license --summary + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:00:43.4797509Z","lastModifiedAt":"2024-06-17T06:00:43.47975Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '470' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:00:48 GMT + etag: + - da02c798-0000-0100-0000-666fd10b0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 28D21E6D30034ADE933016D7DA1ABDD0 Ref B: MAA201060514017 Ref C: 2024-06-17T06:00:47Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"contacts": [{"email": "contact@example.com", "name": "test", + "url": "example.com"}], "customProperties": {"clitest000004": true}, "description": + "API description", "externalDocumentation": [{"title": "onboarding docs", "url": + "example.com"}], "kind": "rest", "license": {"url": "example.com"}, "summary": + "summary", "title": "test api 2"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api update + Connection: + - keep-alive + Content-Length: + - '356' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --title --type --contacts --custom-properties --description + --external-documentation --license --summary + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"test + api 2","summary":"summary","description":"API description","kind":"rest","license":{"url":"example.com"},"externalDocumentation":[{"title":"onboarding + docs","url":"example.com"}],"contacts":[{"name":"test","url":"example.com","email":"contact@example.com"}],"customProperties":{"clitest000004":true}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"lastModifiedAt":"2024-06-17T06:00:50.598301Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '646' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:00:49 GMT + etag: + - da023899-0000-0100-0000-666fd1120000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 14FFCD48C24844A9B402A52A9B69CB19 Ref B: MAA201060514017 Ref C: 2024-06-17T06:00:49Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service.yaml index d129757d097..3facdf19fba 100644 --- a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service.yaml +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service.yaml @@ -7,7 +7,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - apic service create + - apic create Connection: - keep-alive ParameterSetName: @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clirg000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_create_service","date":"2024-04-25T05:46:56Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_create_service","date":"2024-06-17T06:09:44Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Apr 2024 05:47:05 GMT + - Mon, 17 Jun 2024 06:09:29 GMT expires: - '-1' pragma: @@ -38,8 +38,10 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' x-msedge-ref: - - 'Ref A: FE43C70CE25C4A45A1D2A1F80B75D642 Ref B: MAA201060515053 Ref C: 2024-04-25T05:47:05Z' + - 'Ref A: 2100C3E33B2E4ACC806E49B4EFBD69C7 Ref B: MAA201060515027 Ref C: 2024-06-17T06:09:29Z' status: code: 200 message: OK @@ -51,7 +53,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - apic service create + - apic create Connection: - keep-alive Content-Length: @@ -66,18 +68,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002?api-version=2024-03-01 response: body: - string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"None"},"properties":{"dataApiHostname":"cli000002.data.eastus.azure-apicenter.ms","provisioningState":"InProgress"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{},"systemData":{"createdAt":"2024-04-25T05:47:09.4451661Z","lastModifiedAt":"2024-04-25T05:47:09.4451443Z"}}' + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{},"systemData":{"createdAt":"2024-06-17T06:09:33.9247632Z","lastModifiedAt":"2024-06-17T06:09:33.924756Z"}}' headers: api-supported-versions: - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview cache-control: - no-cache content-length: - - '460' + - '366' content-type: - application/json; charset=utf-8 date: - - Thu, 25 Apr 2024 05:47:09 GMT + - Mon, 17 Jun 2024 06:09:34 GMT expires: - '-1' pragma: @@ -90,10 +92,12 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '199' x-msedge-ref: - - 'Ref A: FCC75A00C6FC415899D258A5FA326F29 Ref B: MAA201060513053 Ref C: 2024-04-25T05:47:07Z' + - 'Ref A: AB91D452FB034142A73752354A35624F Ref B: MAA201060513033 Ref C: 2024-06-17T06:09:30Z' x-powered-by: - ASP.NET status: diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service_multiple_times.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service_multiple_times.yaml new file mode 100644 index 00000000000..b58a979acfd --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service_multiple_times.yaml @@ -0,0 +1,210 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic create + Connection: + - keep-alive + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clirg000001?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_create_service_multiple_times","date":"2024-06-24T07:37:39Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '370' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jun 2024 07:37:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: CA1D7A3DBF494AB5B1FC58224A768782 Ref B: MAA201060513047 Ref C: 2024-06-24T07:37:45Z' + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "sku": {"name": "Free"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic create + Connection: + - keep-alive + Content-Length: + - '47' + Content-Type: + - application/json + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{},"systemData":{"createdAt":"2024-06-24T07:37:50.3623836Z","lastModifiedAt":"2024-06-24T07:37:50.3623763Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '367' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jun 2024 07:37:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 5D5AC4C2C12343A9B45DB46CA0E0FE83 Ref B: MAA201060514037 Ref C: 2024-06-24T07:37:46Z' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic create + Connection: + - keep-alive + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clirg000001?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_create_service_multiple_times","date":"2024-06-24T07:37:39Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '370' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jun 2024 07:37:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 7D79E9FD6F9C4AAAB57B552F6B721594 Ref B: MAA201060513033 Ref C: 2024-06-24T07:37:52Z' + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "sku": {"name": "Free"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic create + Connection: + - keep-alive + Content-Length: + - '47' + Content-Type: + - application/json + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{"dataApiHostname":"cli000002.data.eastus.azure-apicenter.ms"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{},"systemData":{"createdAt":"2024-06-24T07:37:50.3623836Z","lastModifiedAt":"2024-06-24T07:37:54.5120051Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '427' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jun 2024 07:37:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 2475553047E045ADA6F5F2DA9000FAB5 Ref B: MAA201060515045 Ref C: 2024-06-24T07:37:53Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service_with_all_optional_params.yaml new file mode 100644 index 00000000000..aa02bb6ca42 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_create_service_with_all_optional_params.yaml @@ -0,0 +1,61 @@ +interactions: +- request: + body: '{"identity": {"type": "SystemAssigned"}, "location": "westeurope", "tags": + {"test": "value"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic create + Connection: + - keep-alive + Content-Length: + - '93' + Content-Type: + - application/json + ParameterSetName: + - -g --name --location --tags --identity + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"westeurope","identity":{"type":"SystemAssigned","principalId":"fd497b78-e79b-42b2-8b99-f8b5735437fc","tenantId":"f0348563-e707-449c-8685-c83d24eaf3c0"},"sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{"test":"value"},"systemData":{"createdAt":"2024-06-17T06:09:13.4293194Z","lastModifiedAt":"2024-06-17T06:09:13.4293017Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '525' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 47A6B25D669D492CBC46EFA9766EEE83 Ref B: MAA201060514017 Ref C: 2024-06-17T06:09:07Z' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_create.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_create.yaml new file mode 100644 index 00000000000..f7adfebf167 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_create.yaml @@ -0,0 +1,62 @@ +interactions: +- request: + body: '{"properties": {"title": "OpenAPI"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition create + Connection: + - keep-alive + Content-Length: + - '36' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --definition-id --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/cli000005?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"OpenAPI"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/cli000005","name":"cli000005","systemData":{"createdAt":"2024-06-17T06:01:33.0429967Z","lastModifiedAt":"2024-06-17T06:01:33.0429956Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '456' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:01:33 GMT + etag: + - 1301f981-0000-0100-0000-666fd13d0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: EB191C92A00649918DC75E908E8F8342 Ref B: MAA201060516051 Ref C: 2024-06-17T06:01:32Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_create_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_create_with_all_optional_params.yaml new file mode 100644 index 00000000000..16027b12059 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_create_with_all_optional_params.yaml @@ -0,0 +1,63 @@ +interactions: +- request: + body: '{"properties": {"description": "test description", "title": "OpenAPI"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition create + Connection: + - keep-alive + Content-Length: + - '71' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --definition-id --title --description + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/cli000005?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"OpenAPI","description":"test + description"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/cli000005","name":"cli000005","systemData":{"createdAt":"2024-06-17T06:01:57.0487302Z","lastModifiedAt":"2024-06-17T06:01:57.0487289Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '489' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:01:56 GMT + etag: + - 13014082-0000-0100-0000-666fd1550000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 11B5C1435DF14FFDA480634601BDE741 Ref B: MAA201060513051 Ref C: 2024-06-17T06:01:56Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_delete.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_delete.yaml new file mode 100644 index 00000000000..3ede87a42d0 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_delete.yaml @@ -0,0 +1,106 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --api-id --version-id --definition-id --yes + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:02:17 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: 8067F332D2644A03B3210CBB7D09C949 Ref B: MAA201060514031 Ref C: 2024-06-17T06:02:17Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --definition-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005?api-version=2024-03-01 + response: + body: + string: '{"code":"404"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '14' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:02:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 2326DAE95242490F9B31D99606AC4EC2 Ref B: MAA201060515017 Ref C: 2024-06-17T06:02:20Z' + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_import_export.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_import_export.yaml new file mode 100644 index 00000000000..881d7ff392e --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_import_export.yaml @@ -0,0 +1,456 @@ +interactions: +- request: + body: '{"format": "link", "specification": {"name": "openapi", "version": "3.0.2"}, + "value": "https://petstore3.swagger.io/api/v3/openapi.json"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition import-specification + Connection: + - keep-alive + Content-Length: + - '137' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --definition-id --format --specification --value + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/importSpecification?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:02:43 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/66533e7d57f34e3298008c663b3cfdca?api-version=2024-03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CisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=jhUGh-JFajsHFpqeg5M4TT1ISyeHyQ0zplW10TMoIY0pXrl2JXMauOnAewURnfbCmyoLfE7uWB0-XTmFz6AQOo1G3dDo8KuUsvWYqKp5vUp4HefsS4sAbTkekLm1koION1Qm5XklkYlUwz-21R2NerzneJfVt1sNbA5Y9zTQE-R6f_l7_x-s7F1rt84_J72mERg-8cIzbYHWJMwcjMy2N1vLDuz1hCGsl-Hfbav6yngNDAIp7HlAuJ3hOuXpm-xCdRMPPXHSsZzUthhCYePY5IPFy1YzpPLRaUYwHwF5BA97CPWrnuhPqM9Z4Z3Fcvmi4mwMmHmgQKw_9Frhc9__AQ&h=12wD2jpvaPJCbOoQn2KLd9X6Gn9NQm1QGW9kv1gzEsY + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 3D1A1CD4836A4E4FB1414023F9B0F9F6 Ref B: MAA201060514033 Ref C: 2024-06-17T06:02:43Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition import-specification + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --definition-id --format --specification --value + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/66533e7d57f34e3298008c663b3cfdca?api-version=2024-03-01&t=638542009641380576&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1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YHWJMwcjMy2N1vLDuz1hCGsl-Hfbav6yngNDAIp7HlAuJ3hOuXpm-xCdRMPPXHSsZzUthhCYePY5IPFy1YzpPLRaUYwHwF5BA97CPWrnuhPqM9Z4Z3Fcvmi4mwMmHmgQKw_9Frhc9__AQ&h=12wD2jpvaPJCbOoQn2KLd9X6Gn9NQm1QGW9kv1gzEsY + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/66533e7d57f34e3298008c663b3cfdca","name":"66533e7d57f34e3298008c663b3cfdca","status":"NotStarted"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '322' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:02:45 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/66533e7d57f34e3298008c663b3cfdca?api-version=2024-03-01&t=638542009654642968&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2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oTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=Ryn2y9aMlu7sgjeb1clkpS541vVmxe21D9CF_GCkE9bO1jt-U9Xo_J6JJj-Nysn62ixRryxKZY7gqwaICzboX56gYZNKpBDKOad5-vCTxQdtkSWsDVkbASjshMyzPeYEN6DXCvqAD9rFIXD8oFjK7ZWGYAFQNZmS2z-F7MTaEFzUHXuK6IbJhykbg5kAI7EKLneVFuAniAXNudt5DcBfUaQU_g097sVfs9nQQHYXr65eIGHs1JiLqleJTE65xVn54vXXJeEQJfv5B6j5K0hKC2tp_d9jQWjysjR7svOjWdyfER4IUwa3Imf7247zqIIzNCe-qkFBnDf_3Rvdwe65bA&h=g2MCTuWojqh2PqgjnYy-noJm1QRWRIlDDdSdCnLHV2c + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 6A0833630997490D8610E2B8085DE3F5 Ref B: MAA201060514033 Ref C: 2024-06-17T06:02:44Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition import-specification + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --definition-id --format --specification --value + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/66533e7d57f34e3298008c663b3cfdca?api-version=2024-03-01&t=638542009654642968&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzAN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vwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=Ryn2y9aMlu7sgjeb1clkpS541vVmxe21D9CF_GCkE9bO1jt-U9Xo_J6JJj-Nysn62ixRryxKZY7gqwaICzboX56gYZNKpBDKOad5-vCTxQdtkSWsDVkbASjshMyzPeYEN6DXCvqAD9rFIXD8oFjK7ZWGYAFQNZmS2z-F7MTaEFzUHXuK6IbJhykbg5kAI7EKLneVFuAniAXNudt5DcBfUaQU_g097sVfs9nQQHYXr65eIGHs1JiLqleJTE65xVn54vXXJeEQJfv5B6j5K0hKC2tp_d9jQWjysjR7svOjWdyfER4IUwa3Imf7247zqIIzNCe-qkFBnDf_3Rvdwe65bA&h=g2MCTuWojqh2PqgjnYy-noJm1QRWRIlDDdSdCnLHV2c + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/66533e7d57f34e3298008c663b3cfdca","name":"66533e7d57f34e3298008c663b3cfdca","status":"Succeeded","startTime":"2024-06-17T06:03:02.6569295+00:00","endTime":"2024-06-17T06:03:08.9745345+00:00"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '415' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:03:16 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: E0FCDDC69FA2472098B6E953AD0BFFD2 Ref B: MAA201060514033 Ref C: 2024-06-17T06:03:15Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition export-specification + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --api-id --version-id --definition-id --file-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/exportSpecification?api-version=2024-03-01 + response: + body: + string: '{"format":"inline","value":"{\"openapi\":\"3.0.2\",\"info\":{\"title\":\"Swagger + Petstore - OpenAPI 3.0\",\"description\":\"This is a sample Pet Store Server + based on the OpenAPI 3.0 specification. You can find out more about\\nSwagger + at [http://swagger.io](http://swagger.io). In the third iteration of the pet + store, we''ve switched to the design first approach!\\nYou can now help us + improve the API whether it''s by making changes to the definition itself or + to the code.\\nThat way, with time, we can improve the API in general, and + expose some of the new features in OAS3.\\n\\nSome useful links:\\n- [The + Pet Store repository](https://github.com/swagger-api/swagger-petstore)\\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)\",\"termsOfService\":\"http://swagger.io/terms/\",\"contact\":{\"email\":\"apiteam@swagger.io\"},\"license\":{\"name\":\"Apache + 2.0\",\"url\":\"http://www.apache.org/licenses/LICENSE-2.0.html\"},\"version\":\"1.0.19\"},\"externalDocs\":{\"description\":\"Find + out more about Swagger\",\"url\":\"http://swagger.io\"},\"servers\":[{\"url\":\"/api/v3\"}],\"tags\":[{\"name\":\"pet\",\"description\":\"Everything + about your Pets\",\"externalDocs\":{\"description\":\"Find out more\",\"url\":\"http://swagger.io\"}},{\"name\":\"store\",\"description\":\"Access + to Petstore orders\",\"externalDocs\":{\"description\":\"Find out more about + our store\",\"url\":\"http://swagger.io\"}},{\"name\":\"user\",\"description\":\"Operations + about user\"}],\"paths\":{\"/pet\":{\"put\":{\"tags\":[\"pet\"],\"summary\":\"Update + an existing pet\",\"description\":\"Update an existing pet by Id\",\"operationId\":\"updatePet\",\"requestBody\":{\"description\":\"Update + an existent pet in the store\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Pet\"}},\"application/xml\":{\"schema\":{\"$ref\":\"#/components/schemas/Pet\"}},\"application/x-www-form-urlencoded\":{\"schema\":{\"$ref\":\"#/components/schemas/Pet\"}}},\"required\":true},\"responses\":{\"200\":{\"description\":\"Successful + operation\",\"content\":{\"application/xml\":{\"schema\":{\"$ref\":\"#/components/schemas/Pet\"}},\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Pet\"}}}},\"400\":{\"description\":\"Invalid + ID supplied\"},\"404\":{\"description\":\"Pet not found\"},\"405\":{\"description\":\"Validation + exception\"}},\"security\":[{\"petstore_auth\":[\"write:pets\",\"read:pets\"]}]},\"post\":{\"tags\":[\"pet\"],\"summary\":\"Add + a new pet to the store\",\"description\":\"Add a new pet to the store\",\"operationId\":\"addPet\",\"requestBody\":{\"description\":\"Create + a new pet in the store\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Pet\"}},\"application/xml\":{\"schema\":{\"$ref\":\"#/components/schemas/Pet\"}},\"application/x-www-form-urlencoded\":{\"schema\":{\"$ref\":\"#/components/schemas/Pet\"}}},\"required\":true},\"responses\":{\"200\":{\"description\":\"Successful + operation\",\"content\":{\"application/xml\":{\"schema\":{\"$ref\":\"#/components/schemas/Pet\"}},\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Pet\"}}}},\"405\":{\"description\":\"Invalid + input\"}},\"security\":[{\"petstore_auth\":[\"write:pets\",\"read:pets\"]}]}},\"/pet/findByStatus\":{\"get\":{\"tags\":[\"pet\"],\"summary\":\"Finds + Pets by status\",\"description\":\"Multiple status values can be provided + with comma separated strings\",\"operationId\":\"findPetsByStatus\",\"parameters\":[{\"name\":\"status\",\"in\":\"query\",\"description\":\"Status + values that need to be considered for filter\",\"required\":false,\"explode\":true,\"schema\":{\"type\":\"string\",\"default\":\"available\",\"enum\":[\"available\",\"pending\",\"sold\"]}}],\"responses\":{\"200\":{\"description\":\"successful + operation\",\"content\":{\"application/xml\":{\"schema\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/Pet\"}}},\"application/json\":{\"schema\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/Pet\"}}}}},\"400\":{\"description\":\"Invalid + status value\"}},\"security\":[{\"petstore_auth\":[\"write:pets\",\"read:pets\"]}]}},\"/pet/findByTags\":{\"get\":{\"tags\":[\"pet\"],\"summary\":\"Finds + Pets by tags\",\"description\":\"Multiple tags can be provided with comma + separated strings. Use tag1, tag2, tag3 for testing.\",\"operationId\":\"findPetsByTags\",\"parameters\":[{\"name\":\"tags\",\"in\":\"query\",\"description\":\"Tags + to filter by\",\"required\":false,\"explode\":true,\"schema\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}],\"responses\":{\"200\":{\"description\":\"successful + operation\",\"content\":{\"application/xml\":{\"schema\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/Pet\"}}},\"application/json\":{\"schema\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/Pet\"}}}}},\"400\":{\"description\":\"Invalid + tag value\"}},\"security\":[{\"petstore_auth\":[\"write:pets\",\"read:pets\"]}]}},\"/pet/{petId}\":{\"get\":{\"tags\":[\"pet\"],\"summary\":\"Find + pet by ID\",\"description\":\"Returns a single pet\",\"operationId\":\"getPetById\",\"parameters\":[{\"name\":\"petId\",\"in\":\"path\",\"description\":\"ID + of pet to return\",\"required\":true,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}}],\"responses\":{\"200\":{\"description\":\"successful + operation\",\"content\":{\"application/xml\":{\"schema\":{\"$ref\":\"#/components/schemas/Pet\"}},\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Pet\"}}}},\"400\":{\"description\":\"Invalid + ID supplied\"},\"404\":{\"description\":\"Pet not found\"}},\"security\":[{\"api_key\":[]},{\"petstore_auth\":[\"write:pets\",\"read:pets\"]}]},\"post\":{\"tags\":[\"pet\"],\"summary\":\"Updates + a pet in the store with form data\",\"description\":\"\",\"operationId\":\"updatePetWithForm\",\"parameters\":[{\"name\":\"petId\",\"in\":\"path\",\"description\":\"ID + of pet that needs to be updated\",\"required\":true,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"name\",\"in\":\"query\",\"description\":\"Name + of pet that needs to be updated\",\"schema\":{\"type\":\"string\"}},{\"name\":\"status\",\"in\":\"query\",\"description\":\"Status + of pet that needs to be updated\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"405\":{\"description\":\"Invalid + input\"}},\"security\":[{\"petstore_auth\":[\"write:pets\",\"read:pets\"]}]},\"delete\":{\"tags\":[\"pet\"],\"summary\":\"Deletes + a pet\",\"description\":\"\",\"operationId\":\"deletePet\",\"parameters\":[{\"name\":\"api_key\",\"in\":\"header\",\"description\":\"\",\"required\":false,\"schema\":{\"type\":\"string\"}},{\"name\":\"petId\",\"in\":\"path\",\"description\":\"Pet + id to delete\",\"required\":true,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}}],\"responses\":{\"400\":{\"description\":\"Invalid + pet value\"}},\"security\":[{\"petstore_auth\":[\"write:pets\",\"read:pets\"]}]}},\"/pet/{petId}/uploadImage\":{\"post\":{\"tags\":[\"pet\"],\"summary\":\"uploads + an image\",\"description\":\"\",\"operationId\":\"uploadFile\",\"parameters\":[{\"name\":\"petId\",\"in\":\"path\",\"description\":\"ID + of pet to update\",\"required\":true,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"additionalMetadata\",\"in\":\"query\",\"description\":\"Additional + Metadata\",\"required\":false,\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"content\":{\"application/octet-stream\":{\"schema\":{\"type\":\"string\",\"format\":\"binary\"}}}},\"responses\":{\"200\":{\"description\":\"successful + operation\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ApiResponse\"}}}}},\"security\":[{\"petstore_auth\":[\"write:pets\",\"read:pets\"]}]}},\"/store/inventory\":{\"get\":{\"tags\":[\"store\"],\"summary\":\"Returns + pet inventories by status\",\"description\":\"Returns a map of status codes + to quantities\",\"operationId\":\"getInventory\",\"responses\":{\"200\":{\"description\":\"successful + operation\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"integer\",\"format\":\"int32\"}}}}}},\"security\":[{\"api_key\":[]}]}},\"/store/order\":{\"post\":{\"tags\":[\"store\"],\"summary\":\"Place + an order for a pet\",\"description\":\"Place a new order in the store\",\"operationId\":\"placeOrder\",\"requestBody\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Order\"}},\"application/xml\":{\"schema\":{\"$ref\":\"#/components/schemas/Order\"}},\"application/x-www-form-urlencoded\":{\"schema\":{\"$ref\":\"#/components/schemas/Order\"}}}},\"responses\":{\"200\":{\"description\":\"successful + operation\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Order\"}}}},\"405\":{\"description\":\"Invalid + input\"}}}},\"/store/order/{orderId}\":{\"get\":{\"tags\":[\"store\"],\"summary\":\"Find + purchase order by ID\",\"description\":\"For valid response try integer IDs + with value <= 5 or > 10. Other values will generate exceptions.\",\"operationId\":\"getOrderById\",\"parameters\":[{\"name\":\"orderId\",\"in\":\"path\",\"description\":\"ID + of order that needs to be fetched\",\"required\":true,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}}],\"responses\":{\"200\":{\"description\":\"successful + operation\",\"content\":{\"application/xml\":{\"schema\":{\"$ref\":\"#/components/schemas/Order\"}},\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Order\"}}}},\"400\":{\"description\":\"Invalid + ID supplied\"},\"404\":{\"description\":\"Order not found\"}}},\"delete\":{\"tags\":[\"store\"],\"summary\":\"Delete + purchase order by ID\",\"description\":\"For valid response try integer IDs + with value < 1000. Anything above 1000 or nonintegers will generate API errors\",\"operationId\":\"deleteOrder\",\"parameters\":[{\"name\":\"orderId\",\"in\":\"path\",\"description\":\"ID + of the order that needs to be deleted\",\"required\":true,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}}],\"responses\":{\"400\":{\"description\":\"Invalid + ID supplied\"},\"404\":{\"description\":\"Order not found\"}}}},\"/user\":{\"post\":{\"tags\":[\"user\"],\"summary\":\"Create + user\",\"description\":\"This can only be done by the logged in user.\",\"operationId\":\"createUser\",\"requestBody\":{\"description\":\"Created + user object\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/User\"}},\"application/xml\":{\"schema\":{\"$ref\":\"#/components/schemas/User\"}},\"application/x-www-form-urlencoded\":{\"schema\":{\"$ref\":\"#/components/schemas/User\"}}}},\"responses\":{\"default\":{\"description\":\"successful + operation\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/User\"}},\"application/xml\":{\"schema\":{\"$ref\":\"#/components/schemas/User\"}}}}}}},\"/user/createWithList\":{\"post\":{\"tags\":[\"user\"],\"summary\":\"Creates + list of users with given input array\",\"description\":\"Creates list of users + with given input array\",\"operationId\":\"createUsersWithListInput\",\"requestBody\":{\"content\":{\"application/json\":{\"schema\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/User\"}}}}},\"responses\":{\"200\":{\"description\":\"Successful + operation\",\"content\":{\"application/xml\":{\"schema\":{\"$ref\":\"#/components/schemas/User\"}},\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/User\"}}}},\"default\":{\"description\":\"successful + operation\"}}}},\"/user/login\":{\"get\":{\"tags\":[\"user\"],\"summary\":\"Logs + user into the system\",\"description\":\"\",\"operationId\":\"loginUser\",\"parameters\":[{\"name\":\"username\",\"in\":\"query\",\"description\":\"The + user name for login\",\"required\":false,\"schema\":{\"type\":\"string\"}},{\"name\":\"password\",\"in\":\"query\",\"description\":\"The + password for login in clear text\",\"required\":false,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"successful + operation\",\"headers\":{\"X-Rate-Limit\":{\"description\":\"calls per hour + allowed by the user\",\"schema\":{\"type\":\"integer\",\"format\":\"int32\"}},\"X-Expires-After\":{\"description\":\"date + in UTC when token expires\",\"schema\":{\"type\":\"string\",\"format\":\"date-time\"}}},\"content\":{\"application/xml\":{\"schema\":{\"type\":\"string\"}},\"application/json\":{\"schema\":{\"type\":\"string\"}}}},\"400\":{\"description\":\"Invalid + username/password supplied\"}}}},\"/user/logout\":{\"get\":{\"tags\":[\"user\"],\"summary\":\"Logs + out current logged in user session\",\"description\":\"\",\"operationId\":\"logoutUser\",\"parameters\":[],\"responses\":{\"default\":{\"description\":\"successful + operation\"}}}},\"/user/{username}\":{\"get\":{\"tags\":[\"user\"],\"summary\":\"Get + user by user name\",\"description\":\"\",\"operationId\":\"getUserByName\",\"parameters\":[{\"name\":\"username\",\"in\":\"path\",\"description\":\"The + name that needs to be fetched. Use user1 for testing. \",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"successful + operation\",\"content\":{\"application/xml\":{\"schema\":{\"$ref\":\"#/components/schemas/User\"}},\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/User\"}}}},\"400\":{\"description\":\"Invalid + username supplied\"},\"404\":{\"description\":\"User not found\"}}},\"put\":{\"tags\":[\"user\"],\"summary\":\"Update + user\",\"description\":\"This can only be done by the logged in user.\",\"operationId\":\"updateUser\",\"parameters\":[{\"name\":\"username\",\"in\":\"path\",\"description\":\"name + that needs to be updated\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"description\":\"Update + an existent user in the store\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/User\"}},\"application/xml\":{\"schema\":{\"$ref\":\"#/components/schemas/User\"}},\"application/x-www-form-urlencoded\":{\"schema\":{\"$ref\":\"#/components/schemas/User\"}}}},\"responses\":{\"default\":{\"description\":\"successful + operation\"}}},\"delete\":{\"tags\":[\"user\"],\"summary\":\"Delete user\",\"description\":\"This + can only be done by the logged in user.\",\"operationId\":\"deleteUser\",\"parameters\":[{\"name\":\"username\",\"in\":\"path\",\"description\":\"The + name that needs to be deleted\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"400\":{\"description\":\"Invalid + username supplied\"},\"404\":{\"description\":\"User not found\"}}}}},\"components\":{\"schemas\":{\"Order\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\",\"example\":10},\"petId\":{\"type\":\"integer\",\"format\":\"int64\",\"example\":198772},\"quantity\":{\"type\":\"integer\",\"format\":\"int32\",\"example\":7},\"shipDate\":{\"type\":\"string\",\"format\":\"date-time\"},\"status\":{\"type\":\"string\",\"description\":\"Order + Status\",\"example\":\"approved\",\"enum\":[\"placed\",\"approved\",\"delivered\"]},\"complete\":{\"type\":\"boolean\"}},\"xml\":{\"name\":\"order\"}},\"Customer\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\",\"example\":100000},\"username\":{\"type\":\"string\",\"example\":\"fehguy\"},\"address\":{\"type\":\"array\",\"xml\":{\"name\":\"addresses\",\"wrapped\":true},\"items\":{\"$ref\":\"#/components/schemas/Address\"}}},\"xml\":{\"name\":\"customer\"}},\"Address\":{\"type\":\"object\",\"properties\":{\"street\":{\"type\":\"string\",\"example\":\"437 + Lytton\"},\"city\":{\"type\":\"string\",\"example\":\"Palo Alto\"},\"state\":{\"type\":\"string\",\"example\":\"CA\"},\"zip\":{\"type\":\"string\",\"example\":\"94301\"}},\"xml\":{\"name\":\"address\"}},\"Category\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\",\"example\":1},\"name\":{\"type\":\"string\",\"example\":\"Dogs\"}},\"xml\":{\"name\":\"category\"}},\"User\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\",\"example\":10},\"username\":{\"type\":\"string\",\"example\":\"theUser\"},\"firstName\":{\"type\":\"string\",\"example\":\"John\"},\"lastName\":{\"type\":\"string\",\"example\":\"James\"},\"email\":{\"type\":\"string\",\"example\":\"john@email.com\"},\"password\":{\"type\":\"string\",\"example\":\"12345\"},\"phone\":{\"type\":\"string\",\"example\":\"12345\"},\"userStatus\":{\"type\":\"integer\",\"description\":\"User + Status\",\"format\":\"int32\",\"example\":1}},\"xml\":{\"name\":\"user\"}},\"Tag\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\"},\"name\":{\"type\":\"string\"}},\"xml\":{\"name\":\"tag\"}},\"Pet\":{\"required\":[\"name\",\"photoUrls\"],\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\",\"example\":10},\"name\":{\"type\":\"string\",\"example\":\"doggie\"},\"category\":{\"$ref\":\"#/components/schemas/Category\"},\"photoUrls\":{\"type\":\"array\",\"xml\":{\"wrapped\":true},\"items\":{\"type\":\"string\",\"xml\":{\"name\":\"photoUrl\"}}},\"tags\":{\"type\":\"array\",\"xml\":{\"wrapped\":true},\"items\":{\"$ref\":\"#/components/schemas/Tag\"}},\"status\":{\"type\":\"string\",\"description\":\"pet + status in the store\",\"enum\":[\"available\",\"pending\",\"sold\"]}},\"xml\":{\"name\":\"pet\"}},\"ApiResponse\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\"},\"type\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"}},\"xml\":{\"name\":\"##default\"}}},\"requestBodies\":{\"Pet\":{\"description\":\"Pet + object that needs to be added to the store\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Pet\"}},\"application/xml\":{\"schema\":{\"$ref\":\"#/components/schemas/Pet\"}}}},\"UserArray\":{\"description\":\"List + of user object\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/User\"}}}}}},\"securitySchemes\":{\"petstore_auth\":{\"type\":\"oauth2\",\"flows\":{\"implicit\":{\"authorizationUrl\":\"https://petstore3.swagger.io/oauth/authorize\",\"scopes\":{\"write:pets\":\"modify + pets in your account\",\"read:pets\":\"read your pets\"}}}},\"api_key\":{\"type\":\"apiKey\",\"name\":\"api_key\",\"in\":\"header\"}}}}"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '18399' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:03:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 97CB860A326A426B8385525F89FEFD17 Ref B: MAA201060516029 Ref C: 2024-06-17T06:03:18Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.31.0 + method: GET + uri: https://petstore3.swagger.io/api/v3/openapi.json + response: + body: + string: '{"openapi":"3.0.2","info":{"title":"Swagger Petstore - OpenAPI 3.0","description":"This + is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)","termsOfService":"http://swagger.io/terms/","contact":{"email":"apiteam@swagger.io"},"license":{"name":"Apache + 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"version":"1.0.19"},"externalDocs":{"description":"Find + out more about Swagger","url":"http://swagger.io"},"servers":[{"url":"/api/v3"}],"tags":[{"name":"pet","description":"Everything + about your Pets","externalDocs":{"description":"Find out more","url":"http://swagger.io"}},{"name":"store","description":"Access + to Petstore orders","externalDocs":{"description":"Find out more about our + store","url":"http://swagger.io"}},{"name":"user","description":"Operations + about user"}],"paths":{"/pet":{"put":{"tags":["pet"],"summary":"Update an + existing pet","description":"Update an existing pet by Id","operationId":"updatePet","requestBody":{"description":"Update + an existent pet in the store","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pet"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Pet"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Pet"}}},"required":true},"responses":{"200":{"description":"Successful + operation","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/Pet"}},"application/json":{"schema":{"$ref":"#/components/schemas/Pet"}}}},"400":{"description":"Invalid + ID supplied"},"404":{"description":"Pet not found"},"405":{"description":"Validation + exception"}},"security":[{"petstore_auth":["write:pets","read:pets"]}]},"post":{"tags":["pet"],"summary":"Add + a new pet to the store","description":"Add a new pet to the store","operationId":"addPet","requestBody":{"description":"Create + a new pet in the store","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pet"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Pet"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Pet"}}},"required":true},"responses":{"200":{"description":"Successful + operation","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/Pet"}},"application/json":{"schema":{"$ref":"#/components/schemas/Pet"}}}},"405":{"description":"Invalid + input"}},"security":[{"petstore_auth":["write:pets","read:pets"]}]}},"/pet/findByStatus":{"get":{"tags":["pet"],"summary":"Finds + Pets by status","description":"Multiple status values can be provided with + comma separated strings","operationId":"findPetsByStatus","parameters":[{"name":"status","in":"query","description":"Status + values that need to be considered for filter","required":false,"explode":true,"schema":{"type":"string","default":"available","enum":["available","pending","sold"]}}],"responses":{"200":{"description":"successful + operation","content":{"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Pet"}}},"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Pet"}}}}},"400":{"description":"Invalid + status value"}},"security":[{"petstore_auth":["write:pets","read:pets"]}]}},"/pet/findByTags":{"get":{"tags":["pet"],"summary":"Finds + Pets by tags","description":"Multiple tags can be provided with comma separated + strings. Use tag1, tag2, tag3 for testing.","operationId":"findPetsByTags","parameters":[{"name":"tags","in":"query","description":"Tags + to filter by","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"successful + operation","content":{"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Pet"}}},"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Pet"}}}}},"400":{"description":"Invalid + tag value"}},"security":[{"petstore_auth":["write:pets","read:pets"]}]}},"/pet/{petId}":{"get":{"tags":["pet"],"summary":"Find + pet by ID","description":"Returns a single pet","operationId":"getPetById","parameters":[{"name":"petId","in":"path","description":"ID + of pet to return","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"successful + operation","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/Pet"}},"application/json":{"schema":{"$ref":"#/components/schemas/Pet"}}}},"400":{"description":"Invalid + ID supplied"},"404":{"description":"Pet not found"}},"security":[{"api_key":[]},{"petstore_auth":["write:pets","read:pets"]}]},"post":{"tags":["pet"],"summary":"Updates + a pet in the store with form data","description":"","operationId":"updatePetWithForm","parameters":[{"name":"petId","in":"path","description":"ID + of pet that needs to be updated","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"name","in":"query","description":"Name + of pet that needs to be updated","schema":{"type":"string"}},{"name":"status","in":"query","description":"Status + of pet that needs to be updated","schema":{"type":"string"}}],"responses":{"405":{"description":"Invalid + input"}},"security":[{"petstore_auth":["write:pets","read:pets"]}]},"delete":{"tags":["pet"],"summary":"Deletes + a pet","description":"","operationId":"deletePet","parameters":[{"name":"api_key","in":"header","description":"","required":false,"schema":{"type":"string"}},{"name":"petId","in":"path","description":"Pet + id to delete","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"400":{"description":"Invalid + pet value"}},"security":[{"petstore_auth":["write:pets","read:pets"]}]}},"/pet/{petId}/uploadImage":{"post":{"tags":["pet"],"summary":"uploads + an image","description":"","operationId":"uploadFile","parameters":[{"name":"petId","in":"path","description":"ID + of pet to update","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"additionalMetadata","in":"query","description":"Additional + Metadata","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"successful + operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}},"security":[{"petstore_auth":["write:pets","read:pets"]}]}},"/store/inventory":{"get":{"tags":["store"],"summary":"Returns + pet inventories by status","description":"Returns a map of status codes to + quantities","operationId":"getInventory","responses":{"200":{"description":"successful + operation","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}}}}}},"security":[{"api_key":[]}]}},"/store/order":{"post":{"tags":["store"],"summary":"Place + an order for a pet","description":"Place a new order in the store","operationId":"placeOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Order"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Order"}}}},"responses":{"200":{"description":"successful + operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"405":{"description":"Invalid + input"}}}},"/store/order/{orderId}":{"get":{"tags":["store"],"summary":"Find + purchase order by ID","description":"For valid response try integer IDs with + value <= 5 or > 10. Other values will generate exceptions.","operationId":"getOrderById","parameters":[{"name":"orderId","in":"path","description":"ID + of order that needs to be fetched","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"successful + operation","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/Order"}},"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"Invalid + ID supplied"},"404":{"description":"Order not found"}}},"delete":{"tags":["store"],"summary":"Delete + purchase order by ID","description":"For valid response try integer IDs with + value < 1000. Anything above 1000 or nonintegers will generate API errors","operationId":"deleteOrder","parameters":[{"name":"orderId","in":"path","description":"ID + of the order that needs to be deleted","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"400":{"description":"Invalid + ID supplied"},"404":{"description":"Order not found"}}}},"/user":{"post":{"tags":["user"],"summary":"Create + user","description":"This can only be done by the logged in user.","operationId":"createUser","requestBody":{"description":"Created + user object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/User"}}}},"responses":{"default":{"description":"successful + operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User"}}}}}}},"/user/createWithList":{"post":{"tags":["user"],"summary":"Creates + list of users with given input array","description":"Creates list of users + with given input array","operationId":"createUsersWithListInput","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}}},"responses":{"200":{"description":"Successful + operation","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/User"}},"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"default":{"description":"successful + operation"}}}},"/user/login":{"get":{"tags":["user"],"summary":"Logs user + into the system","description":"","operationId":"loginUser","parameters":[{"name":"username","in":"query","description":"The + user name for login","required":false,"schema":{"type":"string"}},{"name":"password","in":"query","description":"The + password for login in clear text","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful + operation","headers":{"X-Rate-Limit":{"description":"calls per hour allowed + by the user","schema":{"type":"integer","format":"int32"}},"X-Expires-After":{"description":"date + in UTC when token expires","schema":{"type":"string","format":"date-time"}}},"content":{"application/xml":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Invalid + username/password supplied"}}}},"/user/logout":{"get":{"tags":["user"],"summary":"Logs + out current logged in user session","description":"","operationId":"logoutUser","parameters":[],"responses":{"default":{"description":"successful + operation"}}}},"/user/{username}":{"get":{"tags":["user"],"summary":"Get user + by user name","description":"","operationId":"getUserByName","parameters":[{"name":"username","in":"path","description":"The + name that needs to be fetched. Use user1 for testing. ","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful + operation","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/User"}},"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"400":{"description":"Invalid + username supplied"},"404":{"description":"User not found"}}},"put":{"tags":["user"],"summary":"Update + user","description":"This can only be done by the logged in user.","operationId":"updateUser","parameters":[{"name":"username","in":"path","description":"name + that needs to be updated","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Update + an existent user in the store","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/User"}}}},"responses":{"default":{"description":"successful + operation"}}},"delete":{"tags":["user"],"summary":"Delete user","description":"This + can only be done by the logged in user.","operationId":"deleteUser","parameters":[{"name":"username","in":"path","description":"The + name that needs to be deleted","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Invalid + username supplied"},"404":{"description":"User not found"}}}}},"components":{"schemas":{"Order":{"type":"object","properties":{"id":{"type":"integer","format":"int64","example":10},"petId":{"type":"integer","format":"int64","example":198772},"quantity":{"type":"integer","format":"int32","example":7},"shipDate":{"type":"string","format":"date-time"},"status":{"type":"string","description":"Order + Status","example":"approved","enum":["placed","approved","delivered"]},"complete":{"type":"boolean"}},"xml":{"name":"order"}},"Customer":{"type":"object","properties":{"id":{"type":"integer","format":"int64","example":100000},"username":{"type":"string","example":"fehguy"},"address":{"type":"array","xml":{"name":"addresses","wrapped":true},"items":{"$ref":"#/components/schemas/Address"}}},"xml":{"name":"customer"}},"Address":{"type":"object","properties":{"street":{"type":"string","example":"437 + Lytton"},"city":{"type":"string","example":"Palo Alto"},"state":{"type":"string","example":"CA"},"zip":{"type":"string","example":"94301"}},"xml":{"name":"address"}},"Category":{"type":"object","properties":{"id":{"type":"integer","format":"int64","example":1},"name":{"type":"string","example":"Dogs"}},"xml":{"name":"category"}},"User":{"type":"object","properties":{"id":{"type":"integer","format":"int64","example":10},"username":{"type":"string","example":"theUser"},"firstName":{"type":"string","example":"John"},"lastName":{"type":"string","example":"James"},"email":{"type":"string","example":"john@email.com"},"password":{"type":"string","example":"12345"},"phone":{"type":"string","example":"12345"},"userStatus":{"type":"integer","description":"User + Status","format":"int32","example":1}},"xml":{"name":"user"}},"Tag":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}},"xml":{"name":"tag"}},"Pet":{"required":["name","photoUrls"],"type":"object","properties":{"id":{"type":"integer","format":"int64","example":10},"name":{"type":"string","example":"doggie"},"category":{"$ref":"#/components/schemas/Category"},"photoUrls":{"type":"array","xml":{"wrapped":true},"items":{"type":"string","xml":{"name":"photoUrl"}}},"tags":{"type":"array","xml":{"wrapped":true},"items":{"$ref":"#/components/schemas/Tag"}},"status":{"type":"string","description":"pet + status in the store","enum":["available","pending","sold"]}},"xml":{"name":"pet"}},"ApiResponse":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"type":{"type":"string"},"message":{"type":"string"}},"xml":{"name":"##default"}}},"requestBodies":{"Pet":{"description":"Pet + object that needs to be added to the store","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pet"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Pet"}}}},"UserArray":{"description":"List + of user object","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}}}},"securitySchemes":{"petstore_auth":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://petstore3.swagger.io/oauth/authorize","scopes":{"write:pets":"modify + pets in your account","read:pets":"read your pets"}}}},"api_key":{"type":"apiKey","name":"api_key","in":"header"}}}}' + headers: + access-control-allow-headers: + - Content-Type, api_key, Authorization + access-control-allow-methods: + - GET, POST, DELETE, PUT + access-control-allow-origin: + - '*' + access-control-expose-headers: + - Content-Disposition + connection: + - keep-alive + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:03:21 GMT + server: + - Jetty(9.4.53.v20231009) + transfer-encoding: + - chunked + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_import_from_file.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_import_from_file.yaml new file mode 100644 index 00000000000..93bf0c537ce --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_import_from_file.yaml @@ -0,0 +1,951 @@ +interactions: +- request: + body: '{"format": "inline", "specification": {"name": "openapi", "version": "3.0.0"}, + "value": "{\r\n \"openapi\": \"3.0.2\",\r\n \"info\": {\r\n \"title\": + \"Swagger Petstore - OpenAPI 3.0\",\r\n \"description\": \"This is a + sample Pet Store Server based on the OpenAPI 3.0 specification. You can find + out more about\\nSwagger at [http://swagger.io](http://swagger.io). In the third + iteration of the pet store, we''ve switched to the design first approach!\\nYou + can now help us improve the API whether it''s by making changes to the definition + itself or to the code.\\nThat way, with time, we can improve the API in general, + and expose some of the new features in OAS3.\\n\\nSome useful links:\\n- [The + Pet Store repository](https://github.com/swagger-api/swagger-petstore)\\n- [The + source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)\",\r\n \"termsOfService\": + \"http://swagger.io/terms/\",\r\n \"contact\": {\r\n \"email\": + \"apiteam@swagger.io\"\r\n },\r\n \"license\": {\r\n \"name\": + \"Apache 2.0\",\r\n \"url\": \"http://www.apache.org/licenses/LICENSE-2.0.html\"\r\n },\r\n \"version\": + \"1.0.19\"\r\n },\r\n \"externalDocs\": {\r\n \"description\": + \"Find out more about Swagger\",\r\n \"url\": \"http://swagger.io\"\r\n },\r\n \"servers\": + [\r\n {\r\n \"url\": \"/api/v3\"\r\n }\r\n ],\r\n \"tags\": + [\r\n {\r\n \"name\": \"pet\",\r\n \"description\": + \"Everything about your Pets\",\r\n \"externalDocs\": {\r\n \"description\": + \"Find out more\",\r\n \"url\": \"http://swagger.io\"\r\n }\r\n },\r\n {\r\n \"name\": + \"store\",\r\n \"description\": \"Access to Petstore orders\",\r\n \"externalDocs\": + {\r\n \"description\": \"Find out more about our store\",\r\n \"url\": + \"http://swagger.io\"\r\n }\r\n },\r\n {\r\n \"name\": + \"user\",\r\n \"description\": \"Operations about user\"\r\n }\r\n ],\r\n \"paths\": + {\r\n \"/pet\": {\r\n \"put\": {\r\n \"tags\": + [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"Update an existing pet\",\r\n \"description\": \"Update an + existing pet by Id\",\r\n \"operationId\": \"updatePet\",\r\n \"requestBody\": + {\r\n \"description\": \"Update an existent pet in the store\",\r\n \"content\": + {\r\n \"application/json\": {\r\n \"schema\": + {\r\n \"$ref\": \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/x-www-form-urlencoded\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n },\r\n \"required\": + true\r\n },\r\n \"responses\": {\r\n \"200\": + {\r\n \"description\": \"Successful operation\",\r\n \"content\": + {\r\n \"application/xml\": {\r\n \"schema\": + {\r\n \"$ref\": \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n }\r\n },\r\n \"400\": + {\r\n \"description\": \"Invalid ID supplied\"\r\n },\r\n \"404\": + {\r\n \"description\": \"Pet not found\"\r\n },\r\n \"405\": + {\r\n \"description\": \"Validation exception\"\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"petstore_auth\": [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"post\": + {\r\n \"tags\": [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"Add a new pet to the store\",\r\n \"description\": \"Add a + new pet to the store\",\r\n \"operationId\": \"addPet\",\r\n \"requestBody\": + {\r\n \"description\": \"Create a new pet in the store\",\r\n \"content\": + {\r\n \"application/json\": {\r\n \"schema\": + {\r\n \"$ref\": \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/x-www-form-urlencoded\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n },\r\n \"required\": + true\r\n },\r\n \"responses\": {\r\n \"200\": + {\r\n \"description\": \"Successful operation\",\r\n \"content\": + {\r\n \"application/xml\": {\r\n \"schema\": + {\r\n \"$ref\": \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n }\r\n },\r\n \"405\": + {\r\n \"description\": \"Invalid input\"\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"petstore_auth\": [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n \"/pet/findByStatus\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"Finds Pets by status\",\r\n \"description\": \"Multiple status + values can be provided with comma separated strings\",\r\n \"operationId\": + \"findPetsByStatus\",\r\n \"parameters\": [\r\n {\r\n \"name\": + \"status\",\r\n \"in\": \"query\",\r\n \"description\": + \"Status values that need to be considered for filter\",\r\n \"required\": + false,\r\n \"explode\": true,\r\n \"schema\": + {\r\n \"type\": \"string\",\r\n \"default\": + \"available\",\r\n \"enum\": [\r\n \"available\",\r\n \"pending\",\r\n \"sold\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"type\": + \"array\",\r\n \"items\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"type\": + \"array\",\r\n \"items\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"400\": + {\r\n \"description\": \"Invalid status value\"\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"petstore_auth\": [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n \"/pet/findByTags\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"Finds Pets by tags\",\r\n \"description\": \"Multiple tags + can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.\",\r\n \"operationId\": + \"findPetsByTags\",\r\n \"parameters\": [\r\n {\r\n \"name\": + \"tags\",\r\n \"in\": \"query\",\r\n \"description\": + \"Tags to filter by\",\r\n \"required\": false,\r\n \"explode\": + true,\r\n \"schema\": {\r\n \"type\": + \"array\",\r\n \"items\": {\r\n \"type\": + \"string\"\r\n }\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"type\": + \"array\",\r\n \"items\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"type\": + \"array\",\r\n \"items\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"400\": + {\r\n \"description\": \"Invalid tag value\"\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"petstore_auth\": [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n \"/pet/{petId}\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"Find pet by ID\",\r\n \"description\": \"Returns a single pet\",\r\n \"operationId\": + \"getPetById\",\r\n \"parameters\": [\r\n {\r\n \"name\": + \"petId\",\r\n \"in\": \"path\",\r\n \"description\": + \"ID of pet to return\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n }\r\n },\r\n \"400\": + {\r\n \"description\": \"Invalid ID supplied\"\r\n },\r\n \"404\": + {\r\n \"description\": \"Pet not found\"\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"api_key\": []\r\n },\r\n {\r\n \"petstore_auth\": + [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"post\": + {\r\n \"tags\": [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"Updates a pet in the store with form data\",\r\n \"description\": + \"\",\r\n \"operationId\": \"updatePetWithForm\",\r\n \"parameters\": + [\r\n {\r\n \"name\": \"petId\",\r\n \"in\": + \"path\",\r\n \"description\": \"ID of pet that needs + to be updated\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\"\r\n }\r\n },\r\n {\r\n \"name\": + \"name\",\r\n \"in\": \"query\",\r\n \"description\": + \"Name of pet that needs to be updated\",\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n },\r\n {\r\n \"name\": + \"status\",\r\n \"in\": \"query\",\r\n \"description\": + \"Status of pet that needs to be updated\",\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"405\": {\r\n \"description\": + \"Invalid input\"\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"petstore_auth\": [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"delete\": + {\r\n \"tags\": [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"Deletes a pet\",\r\n \"description\": \"\",\r\n \"operationId\": + \"deletePet\",\r\n \"parameters\": [\r\n {\r\n \"name\": + \"api_key\",\r\n \"in\": \"header\",\r\n \"description\": + \"\",\r\n \"required\": false,\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n },\r\n {\r\n \"name\": + \"petId\",\r\n \"in\": \"path\",\r\n \"description\": + \"Pet id to delete\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"400\": {\r\n \"description\": + \"Invalid pet value\"\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"petstore_auth\": [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n \"/pet/{petId}/uploadImage\": + {\r\n \"post\": {\r\n \"tags\": [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"uploads an image\",\r\n \"description\": \"\",\r\n \"operationId\": + \"uploadFile\",\r\n \"parameters\": [\r\n {\r\n \"name\": + \"petId\",\r\n \"in\": \"path\",\r\n \"description\": + \"ID of pet to update\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\"\r\n }\r\n },\r\n {\r\n \"name\": + \"additionalMetadata\",\r\n \"in\": \"query\",\r\n \"description\": + \"Additional Metadata\",\r\n \"required\": false,\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n }\r\n ],\r\n \"requestBody\": + {\r\n \"content\": {\r\n \"application/octet-stream\": + {\r\n \"schema\": {\r\n \"type\": + \"string\",\r\n \"format\": \"binary\"\r\n }\r\n }\r\n }\r\n },\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/ApiResponse\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"petstore_auth\": [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n \"/store/inventory\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"store\"\r\n ],\r\n \"summary\": + \"Returns pet inventories by status\",\r\n \"description\": \"Returns + a map of status codes to quantities\",\r\n \"operationId\": \"getInventory\",\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"type\": + \"object\",\r\n \"additionalProperties\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int32\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"api_key\": []\r\n }\r\n ]\r\n }\r\n },\r\n \"/store/order\": + {\r\n \"post\": {\r\n \"tags\": [\r\n \"store\"\r\n ],\r\n \"summary\": + \"Place an order for a pet\",\r\n \"description\": \"Place a + new order in the store\",\r\n \"operationId\": \"placeOrder\",\r\n \"requestBody\": + {\r\n \"content\": {\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Order\"\r\n }\r\n },\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Order\"\r\n }\r\n },\r\n \"application/x-www-form-urlencoded\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Order\"\r\n }\r\n }\r\n }\r\n },\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Order\"\r\n }\r\n }\r\n }\r\n },\r\n \"405\": + {\r\n \"description\": \"Invalid input\"\r\n }\r\n }\r\n }\r\n },\r\n \"/store/order/{orderId}\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"store\"\r\n ],\r\n \"summary\": + \"Find purchase order by ID\",\r\n \"description\": \"For valid + response try integer IDs with value <= 5 or > 10. Other values will generate + exceptions.\",\r\n \"operationId\": \"getOrderById\",\r\n \"parameters\": + [\r\n {\r\n \"name\": \"orderId\",\r\n \"in\": + \"path\",\r\n \"description\": \"ID of order that needs + to be fetched\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Order\"\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Order\"\r\n }\r\n }\r\n }\r\n },\r\n \"400\": + {\r\n \"description\": \"Invalid ID supplied\"\r\n },\r\n \"404\": + {\r\n \"description\": \"Order not found\"\r\n }\r\n }\r\n },\r\n \"delete\": + {\r\n \"tags\": [\r\n \"store\"\r\n ],\r\n \"summary\": + \"Delete purchase order by ID\",\r\n \"description\": \"For valid + response try integer IDs with value < 1000. Anything above 1000 or nonintegers + will generate API errors\",\r\n \"operationId\": \"deleteOrder\",\r\n \"parameters\": + [\r\n {\r\n \"name\": \"orderId\",\r\n \"in\": + \"path\",\r\n \"description\": \"ID of the order that + needs to be deleted\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"400\": {\r\n \"description\": + \"Invalid ID supplied\"\r\n },\r\n \"404\": + {\r\n \"description\": \"Order not found\"\r\n }\r\n }\r\n }\r\n },\r\n \"/user\": + {\r\n \"post\": {\r\n \"tags\": [\r\n \"user\"\r\n ],\r\n \"summary\": + \"Create user\",\r\n \"description\": \"This can only be done + by the logged in user.\",\r\n \"operationId\": \"createUser\",\r\n \"requestBody\": + {\r\n \"description\": \"Created user object\",\r\n \"content\": + {\r\n \"application/json\": {\r\n \"schema\": + {\r\n \"$ref\": \"#/components/schemas/User\"\r\n }\r\n },\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n },\r\n \"application/x-www-form-urlencoded\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n }\r\n }\r\n },\r\n \"responses\": + {\r\n \"default\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n },\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/user/createWithList\": + {\r\n \"post\": {\r\n \"tags\": [\r\n \"user\"\r\n ],\r\n \"summary\": + \"Creates list of users with given input array\",\r\n \"description\": + \"Creates list of users with given input array\",\r\n \"operationId\": + \"createUsersWithListInput\",\r\n \"requestBody\": {\r\n \"content\": + {\r\n \"application/json\": {\r\n \"schema\": + {\r\n \"type\": \"array\",\r\n \"items\": + {\r\n \"$ref\": \"#/components/schemas/User\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"Successful operation\",\r\n \"content\": {\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n }\r\n }\r\n },\r\n \"default\": + {\r\n \"description\": \"successful operation\"\r\n }\r\n }\r\n }\r\n },\r\n \"/user/login\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"user\"\r\n ],\r\n \"summary\": + \"Logs user into the system\",\r\n \"description\": \"\",\r\n \"operationId\": + \"loginUser\",\r\n \"parameters\": [\r\n {\r\n \"name\": + \"username\",\r\n \"in\": \"query\",\r\n \"description\": + \"The user name for login\",\r\n \"required\": false,\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n },\r\n {\r\n \"name\": + \"password\",\r\n \"in\": \"query\",\r\n \"description\": + \"The password for login in clear text\",\r\n \"required\": + false,\r\n \"schema\": {\r\n \"type\": + \"string\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"headers\": {\r\n \"X-Rate-Limit\": + {\r\n \"description\": \"calls per hour allowed + by the user\",\r\n \"schema\": {\r\n \"type\": + \"integer\",\r\n \"format\": \"int32\"\r\n }\r\n },\r\n \"X-Expires-After\": + {\r\n \"description\": \"date in UTC when token + expires\",\r\n \"schema\": {\r\n \"type\": + \"string\",\r\n \"format\": \"date-time\"\r\n }\r\n }\r\n },\r\n \"content\": + {\r\n \"application/xml\": {\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"type\": + \"string\"\r\n }\r\n }\r\n }\r\n },\r\n \"400\": + {\r\n \"description\": \"Invalid username/password supplied\"\r\n }\r\n }\r\n }\r\n },\r\n \"/user/logout\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"user\"\r\n ],\r\n \"summary\": + \"Logs out current logged in user session\",\r\n \"description\": + \"\",\r\n \"operationId\": \"logoutUser\",\r\n \"parameters\": + [],\r\n \"responses\": {\r\n \"default\": + {\r\n \"description\": \"successful operation\"\r\n }\r\n }\r\n }\r\n },\r\n \"/user/{username}\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"user\"\r\n ],\r\n \"summary\": + \"Get user by user name\",\r\n \"description\": \"\",\r\n \"operationId\": + \"getUserByName\",\r\n \"parameters\": [\r\n {\r\n \"name\": + \"username\",\r\n \"in\": \"path\",\r\n \"description\": + \"The name that needs to be fetched. Use user1 for testing. \",\r\n \"required\": + true,\r\n \"schema\": {\r\n \"type\": + \"string\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n }\r\n }\r\n },\r\n \"400\": + {\r\n \"description\": \"Invalid username supplied\"\r\n },\r\n \"404\": + {\r\n \"description\": \"User not found\"\r\n }\r\n }\r\n },\r\n \"put\": + {\r\n \"tags\": [\r\n \"user\"\r\n ],\r\n \"summary\": + \"Update user\",\r\n \"description\": \"This can only be done + by the logged in user.\",\r\n \"operationId\": \"updateUser\",\r\n \"parameters\": + [\r\n {\r\n \"name\": \"username\",\r\n \"in\": + \"path\",\r\n \"description\": \"name that needs to be + updated\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n }\r\n ],\r\n \"requestBody\": + {\r\n \"description\": \"Update an existent user in the store\",\r\n \"content\": + {\r\n \"application/json\": {\r\n \"schema\": + {\r\n \"$ref\": \"#/components/schemas/User\"\r\n }\r\n },\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n },\r\n \"application/x-www-form-urlencoded\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n }\r\n }\r\n },\r\n \"responses\": + {\r\n \"default\": {\r\n \"description\": + \"successful operation\"\r\n }\r\n }\r\n },\r\n \"delete\": + {\r\n \"tags\": [\r\n \"user\"\r\n ],\r\n \"summary\": + \"Delete user\",\r\n \"description\": \"This can only be done + by the logged in user.\",\r\n \"operationId\": \"deleteUser\",\r\n \"parameters\": + [\r\n {\r\n \"name\": \"username\",\r\n \"in\": + \"path\",\r\n \"description\": \"The name that needs + to be deleted\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"400\": {\r\n \"description\": + \"Invalid username supplied\"\r\n },\r\n \"404\": + {\r\n \"description\": \"User not found\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"components\": + {\r\n \"schemas\": {\r\n \"Order\": {\r\n \"type\": + \"object\",\r\n \"properties\": {\r\n \"id\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\",\r\n \"example\": 10\r\n },\r\n \"petId\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\",\r\n \"example\": 198772\r\n },\r\n \"quantity\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int32\",\r\n \"example\": 7\r\n },\r\n \"shipDate\": + {\r\n \"type\": \"string\",\r\n \"format\": + \"date-time\"\r\n },\r\n \"status\": {\r\n \"type\": + \"string\",\r\n \"description\": \"Order Status\",\r\n \"example\": + \"approved\",\r\n \"enum\": [\r\n \"placed\",\r\n \"approved\",\r\n \"delivered\"\r\n ]\r\n },\r\n \"complete\": + {\r\n \"type\": \"boolean\"\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"order\"\r\n }\r\n },\r\n \"Customer\": + {\r\n \"type\": \"object\",\r\n \"properties\": + {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\",\r\n \"example\": 100000\r\n },\r\n \"username\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"fehguy\"\r\n },\r\n \"address\": {\r\n \"type\": + \"array\",\r\n \"xml\": {\r\n \"name\": + \"addresses\",\r\n \"wrapped\": true\r\n },\r\n \"items\": + {\r\n \"$ref\": \"#/components/schemas/Address\"\r\n }\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"customer\"\r\n }\r\n },\r\n \"Address\": + {\r\n \"type\": \"object\",\r\n \"properties\": + {\r\n \"street\": {\r\n \"type\": + \"string\",\r\n \"example\": \"437 Lytton\"\r\n },\r\n \"city\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"Palo Alto\"\r\n },\r\n \"state\": {\r\n \"type\": + \"string\",\r\n \"example\": \"CA\"\r\n },\r\n \"zip\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"94301\"\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"address\"\r\n }\r\n },\r\n \"Category\": + {\r\n \"type\": \"object\",\r\n \"properties\": + {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\",\r\n \"example\": 1\r\n },\r\n \"name\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"Dogs\"\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"category\"\r\n }\r\n },\r\n \"User\": + {\r\n \"type\": \"object\",\r\n \"properties\": + {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\",\r\n \"example\": 10\r\n },\r\n \"username\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"theUser\"\r\n },\r\n \"firstName\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"John\"\r\n },\r\n \"lastName\": {\r\n \"type\": + \"string\",\r\n \"example\": \"James\"\r\n },\r\n \"email\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"john@email.com\"\r\n },\r\n \"password\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"12345\"\r\n },\r\n \"phone\": {\r\n \"type\": + \"string\",\r\n \"example\": \"12345\"\r\n },\r\n \"userStatus\": + {\r\n \"type\": \"integer\",\r\n \"description\": + \"User Status\",\r\n \"format\": \"int32\",\r\n \"example\": + 1\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"user\"\r\n }\r\n },\r\n \"Tag\": + {\r\n \"type\": \"object\",\r\n \"properties\": + {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\"\r\n },\r\n \"name\": {\r\n \"type\": + \"string\"\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"tag\"\r\n }\r\n },\r\n \"Pet\": + {\r\n \"required\": [\r\n \"name\",\r\n \"photoUrls\"\r\n ],\r\n \"type\": + \"object\",\r\n \"properties\": {\r\n \"id\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\",\r\n \"example\": 10\r\n },\r\n \"name\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"doggie\"\r\n },\r\n \"category\": {\r\n \"$ref\": + \"#/components/schemas/Category\"\r\n },\r\n \"photoUrls\": + {\r\n \"type\": \"array\",\r\n \"xml\": + {\r\n \"wrapped\": true\r\n },\r\n \"items\": + {\r\n \"type\": \"string\",\r\n \"xml\": + {\r\n \"name\": \"photoUrl\"\r\n }\r\n }\r\n },\r\n \"tags\": + {\r\n \"type\": \"array\",\r\n \"xml\": + {\r\n \"wrapped\": true\r\n },\r\n \"items\": + {\r\n \"$ref\": \"#/components/schemas/Tag\"\r\n }\r\n },\r\n \"status\": + {\r\n \"type\": \"string\",\r\n \"description\": + \"pet status in the store\",\r\n \"enum\": [\r\n \"available\",\r\n \"pending\",\r\n \"sold\"\r\n ]\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"pet\"\r\n }\r\n },\r\n \"ApiResponse\": + {\r\n \"type\": \"object\",\r\n \"properties\": + {\r\n \"code\": {\r\n \"type\": \"integer\",\r\n \"format\": + \"int32\"\r\n },\r\n \"type\": {\r\n \"type\": + \"string\"\r\n },\r\n \"message\": {\r\n \"type\": + \"string\"\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"##default\"\r\n }\r\n }\r\n },\r\n \"requestBodies\": + {\r\n \"Pet\": {\r\n \"description\": \"Pet object + that needs to be added to the store\",\r\n \"content\": {\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n }\r\n },\r\n \"UserArray\": + {\r\n \"description\": \"List of user object\",\r\n \"content\": + {\r\n \"application/json\": {\r\n \"schema\": + {\r\n \"type\": \"array\",\r\n \"items\": + {\r\n \"$ref\": \"#/components/schemas/User\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"securitySchemes\": + {\r\n \"petstore_auth\": {\r\n \"type\": \"oauth2\",\r\n \"flows\": + {\r\n \"implicit\": {\r\n \"authorizationUrl\": + \"https://petstore3.swagger.io/oauth/authorize\",\r\n \"scopes\": + {\r\n \"write:pets\": \"modify pets in your account\",\r\n \"read:pets\": + \"read your pets\"\r\n }\r\n }\r\n }\r\n },\r\n \"api_key\": + {\r\n \"type\": \"apiKey\",\r\n \"name\": \"api_key\",\r\n \"in\": + \"header\"\r\n }\r\n }\r\n }\r\n}"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition import-specification + Connection: + - keep-alive + Content-Length: + - '50270' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --definition-id --format --specification --value + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/importSpecification?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:03:47 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 8C455F59E642464EB085D46A4B534E82 Ref B: MAA201060513035 Ref C: 2024-06-17T06:03:45Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition export-specification + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --api-id --version-id --definition-id --file-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/exportSpecification?api-version=2024-03-01 + response: + body: + string: '{"format":"inline","value":"{\r\n \"openapi\": \"3.0.2\",\r\n \"info\": + {\r\n \"title\": \"Swagger Petstore - OpenAPI 3.0\",\r\n \"description\": + \"This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\\n\\nSome + useful links:\\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)\",\r\n \"termsOfService\": + \"http://swagger.io/terms/\",\r\n \"contact\": {\r\n \"email\": + \"apiteam@swagger.io\"\r\n },\r\n \"license\": {\r\n \"name\": + \"Apache 2.0\",\r\n \"url\": \"http://www.apache.org/licenses/LICENSE-2.0.html\"\r\n },\r\n \"version\": + \"1.0.19\"\r\n },\r\n \"externalDocs\": {\r\n \"description\": + \"Find out more about Swagger\",\r\n \"url\": \"http://swagger.io\"\r\n },\r\n \"servers\": + [\r\n {\r\n \"url\": \"/api/v3\"\r\n }\r\n ],\r\n \"tags\": + [\r\n {\r\n \"name\": \"pet\",\r\n \"description\": + \"Everything about your Pets\",\r\n \"externalDocs\": {\r\n \"description\": + \"Find out more\",\r\n \"url\": \"http://swagger.io\"\r\n }\r\n },\r\n {\r\n \"name\": + \"store\",\r\n \"description\": \"Access to Petstore orders\",\r\n \"externalDocs\": + {\r\n \"description\": \"Find out more about our store\",\r\n \"url\": + \"http://swagger.io\"\r\n }\r\n },\r\n {\r\n \"name\": + \"user\",\r\n \"description\": \"Operations about user\"\r\n }\r\n ],\r\n \"paths\": + {\r\n \"/pet\": {\r\n \"put\": {\r\n \"tags\": + [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"Update an existing pet\",\r\n \"description\": \"Update an + existing pet by Id\",\r\n \"operationId\": \"updatePet\",\r\n \"requestBody\": + {\r\n \"description\": \"Update an existent pet in the + store\",\r\n \"content\": {\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/x-www-form-urlencoded\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n },\r\n \"required\": + true\r\n },\r\n \"responses\": {\r\n \"200\": + {\r\n \"description\": \"Successful operation\",\r\n \"content\": + {\r\n \"application/xml\": {\r\n \"schema\": + {\r\n \"$ref\": \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n }\r\n },\r\n \"400\": + {\r\n \"description\": \"Invalid ID supplied\"\r\n },\r\n \"404\": + {\r\n \"description\": \"Pet not found\"\r\n },\r\n \"405\": + {\r\n \"description\": \"Validation exception\"\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"petstore_auth\": [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"post\": + {\r\n \"tags\": [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"Add a new pet to the store\",\r\n \"description\": \"Add + a new pet to the store\",\r\n \"operationId\": \"addPet\",\r\n \"requestBody\": + {\r\n \"description\": \"Create a new pet in the store\",\r\n \"content\": + {\r\n \"application/json\": {\r\n \"schema\": + {\r\n \"$ref\": \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/x-www-form-urlencoded\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n },\r\n \"required\": + true\r\n },\r\n \"responses\": {\r\n \"200\": + {\r\n \"description\": \"Successful operation\",\r\n \"content\": + {\r\n \"application/xml\": {\r\n \"schema\": + {\r\n \"$ref\": \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n }\r\n },\r\n \"405\": + {\r\n \"description\": \"Invalid input\"\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"petstore_auth\": [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n \"/pet/findByStatus\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"Finds Pets by status\",\r\n \"description\": \"Multiple status + values can be provided with comma separated strings\",\r\n \"operationId\": + \"findPetsByStatus\",\r\n \"parameters\": [\r\n {\r\n \"name\": + \"status\",\r\n \"in\": \"query\",\r\n \"description\": + \"Status values that need to be considered for filter\",\r\n \"required\": + false,\r\n \"explode\": true,\r\n \"schema\": + {\r\n \"type\": \"string\",\r\n \"default\": + \"available\",\r\n \"enum\": [\r\n \"available\",\r\n \"pending\",\r\n \"sold\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"type\": + \"array\",\r\n \"items\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"type\": + \"array\",\r\n \"items\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"400\": + {\r\n \"description\": \"Invalid status value\"\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"petstore_auth\": [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n \"/pet/findByTags\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"Finds Pets by tags\",\r\n \"description\": \"Multiple tags + can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.\",\r\n \"operationId\": + \"findPetsByTags\",\r\n \"parameters\": [\r\n {\r\n \"name\": + \"tags\",\r\n \"in\": \"query\",\r\n \"description\": + \"Tags to filter by\",\r\n \"required\": false,\r\n \"explode\": + true,\r\n \"schema\": {\r\n \"type\": + \"array\",\r\n \"items\": {\r\n \"type\": + \"string\"\r\n }\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"type\": + \"array\",\r\n \"items\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"type\": + \"array\",\r\n \"items\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"400\": + {\r\n \"description\": \"Invalid tag value\"\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"petstore_auth\": [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n \"/pet/{petId}\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"Find pet by ID\",\r\n \"description\": \"Returns a single + pet\",\r\n \"operationId\": \"getPetById\",\r\n \"parameters\": + [\r\n {\r\n \"name\": \"petId\",\r\n \"in\": + \"path\",\r\n \"description\": \"ID of pet to return\",\r\n \"required\": + true,\r\n \"schema\": {\r\n \"type\": + \"integer\",\r\n \"format\": \"int64\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n }\r\n },\r\n \"400\": + {\r\n \"description\": \"Invalid ID supplied\"\r\n },\r\n \"404\": + {\r\n \"description\": \"Pet not found\"\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"api_key\": []\r\n },\r\n {\r\n \"petstore_auth\": + [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"post\": + {\r\n \"tags\": [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"Updates a pet in the store with form data\",\r\n \"description\": + \"\",\r\n \"operationId\": \"updatePetWithForm\",\r\n \"parameters\": + [\r\n {\r\n \"name\": \"petId\",\r\n \"in\": + \"path\",\r\n \"description\": \"ID of pet that needs + to be updated\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\"\r\n }\r\n },\r\n {\r\n \"name\": + \"name\",\r\n \"in\": \"query\",\r\n \"description\": + \"Name of pet that needs to be updated\",\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n },\r\n {\r\n \"name\": + \"status\",\r\n \"in\": \"query\",\r\n \"description\": + \"Status of pet that needs to be updated\",\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"405\": {\r\n \"description\": + \"Invalid input\"\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"petstore_auth\": [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"delete\": + {\r\n \"tags\": [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"Deletes a pet\",\r\n \"description\": \"\",\r\n \"operationId\": + \"deletePet\",\r\n \"parameters\": [\r\n {\r\n \"name\": + \"api_key\",\r\n \"in\": \"header\",\r\n \"description\": + \"\",\r\n \"required\": false,\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n },\r\n {\r\n \"name\": + \"petId\",\r\n \"in\": \"path\",\r\n \"description\": + \"Pet id to delete\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"400\": {\r\n \"description\": + \"Invalid pet value\"\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"petstore_auth\": [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n \"/pet/{petId}/uploadImage\": + {\r\n \"post\": {\r\n \"tags\": [\r\n \"pet\"\r\n ],\r\n \"summary\": + \"uploads an image\",\r\n \"description\": \"\",\r\n \"operationId\": + \"uploadFile\",\r\n \"parameters\": [\r\n {\r\n \"name\": + \"petId\",\r\n \"in\": \"path\",\r\n \"description\": + \"ID of pet to update\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\"\r\n }\r\n },\r\n {\r\n \"name\": + \"additionalMetadata\",\r\n \"in\": \"query\",\r\n \"description\": + \"Additional Metadata\",\r\n \"required\": false,\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n }\r\n ],\r\n \"requestBody\": + {\r\n \"content\": {\r\n \"application/octet-stream\": + {\r\n \"schema\": {\r\n \"type\": + \"string\",\r\n \"format\": \"binary\"\r\n }\r\n }\r\n }\r\n },\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/ApiResponse\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"petstore_auth\": [\r\n \"write:pets\",\r\n \"read:pets\"\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n \"/store/inventory\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"store\"\r\n ],\r\n \"summary\": + \"Returns pet inventories by status\",\r\n \"description\": + \"Returns a map of status codes to quantities\",\r\n \"operationId\": + \"getInventory\",\r\n \"responses\": {\r\n \"200\": + {\r\n \"description\": \"successful operation\",\r\n \"content\": + {\r\n \"application/json\": {\r\n \"schema\": + {\r\n \"type\": \"object\",\r\n \"additionalProperties\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int32\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"security\": + [\r\n {\r\n \"api_key\": []\r\n }\r\n ]\r\n }\r\n },\r\n \"/store/order\": + {\r\n \"post\": {\r\n \"tags\": [\r\n \"store\"\r\n ],\r\n \"summary\": + \"Place an order for a pet\",\r\n \"description\": \"Place + a new order in the store\",\r\n \"operationId\": \"placeOrder\",\r\n \"requestBody\": + {\r\n \"content\": {\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Order\"\r\n }\r\n },\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Order\"\r\n }\r\n },\r\n \"application/x-www-form-urlencoded\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Order\"\r\n }\r\n }\r\n }\r\n },\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Order\"\r\n }\r\n }\r\n }\r\n },\r\n \"405\": + {\r\n \"description\": \"Invalid input\"\r\n }\r\n }\r\n }\r\n },\r\n \"/store/order/{orderId}\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"store\"\r\n ],\r\n \"summary\": + \"Find purchase order by ID\",\r\n \"description\": \"For valid + response try integer IDs with value <= 5 or > 10. Other values will generate + exceptions.\",\r\n \"operationId\": \"getOrderById\",\r\n \"parameters\": + [\r\n {\r\n \"name\": \"orderId\",\r\n \"in\": + \"path\",\r\n \"description\": \"ID of order that needs + to be fetched\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Order\"\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Order\"\r\n }\r\n }\r\n }\r\n },\r\n \"400\": + {\r\n \"description\": \"Invalid ID supplied\"\r\n },\r\n \"404\": + {\r\n \"description\": \"Order not found\"\r\n }\r\n }\r\n },\r\n \"delete\": + {\r\n \"tags\": [\r\n \"store\"\r\n ],\r\n \"summary\": + \"Delete purchase order by ID\",\r\n \"description\": \"For + valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers + will generate API errors\",\r\n \"operationId\": \"deleteOrder\",\r\n \"parameters\": + [\r\n {\r\n \"name\": \"orderId\",\r\n \"in\": + \"path\",\r\n \"description\": \"ID of the order that + needs to be deleted\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"400\": {\r\n \"description\": + \"Invalid ID supplied\"\r\n },\r\n \"404\": + {\r\n \"description\": \"Order not found\"\r\n }\r\n }\r\n }\r\n },\r\n \"/user\": + {\r\n \"post\": {\r\n \"tags\": [\r\n \"user\"\r\n ],\r\n \"summary\": + \"Create user\",\r\n \"description\": \"This can only be done + by the logged in user.\",\r\n \"operationId\": \"createUser\",\r\n \"requestBody\": + {\r\n \"description\": \"Created user object\",\r\n \"content\": + {\r\n \"application/json\": {\r\n \"schema\": + {\r\n \"$ref\": \"#/components/schemas/User\"\r\n }\r\n },\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n },\r\n \"application/x-www-form-urlencoded\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n }\r\n }\r\n },\r\n \"responses\": + {\r\n \"default\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n },\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/user/createWithList\": + {\r\n \"post\": {\r\n \"tags\": [\r\n \"user\"\r\n ],\r\n \"summary\": + \"Creates list of users with given input array\",\r\n \"description\": + \"Creates list of users with given input array\",\r\n \"operationId\": + \"createUsersWithListInput\",\r\n \"requestBody\": {\r\n \"content\": + {\r\n \"application/json\": {\r\n \"schema\": + {\r\n \"type\": \"array\",\r\n \"items\": + {\r\n \"$ref\": \"#/components/schemas/User\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"Successful operation\",\r\n \"content\": {\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n }\r\n }\r\n },\r\n \"default\": + {\r\n \"description\": \"successful operation\"\r\n }\r\n }\r\n }\r\n },\r\n \"/user/login\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"user\"\r\n ],\r\n \"summary\": + \"Logs user into the system\",\r\n \"description\": \"\",\r\n \"operationId\": + \"loginUser\",\r\n \"parameters\": [\r\n {\r\n \"name\": + \"username\",\r\n \"in\": \"query\",\r\n \"description\": + \"The user name for login\",\r\n \"required\": false,\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n },\r\n {\r\n \"name\": + \"password\",\r\n \"in\": \"query\",\r\n \"description\": + \"The password for login in clear text\",\r\n \"required\": + false,\r\n \"schema\": {\r\n \"type\": + \"string\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"headers\": {\r\n \"X-Rate-Limit\": + {\r\n \"description\": \"calls per hour allowed + by the user\",\r\n \"schema\": {\r\n \"type\": + \"integer\",\r\n \"format\": \"int32\"\r\n }\r\n },\r\n \"X-Expires-After\": + {\r\n \"description\": \"date in UTC when token + expires\",\r\n \"schema\": {\r\n \"type\": + \"string\",\r\n \"format\": \"date-time\"\r\n }\r\n }\r\n },\r\n \"content\": + {\r\n \"application/xml\": {\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"type\": + \"string\"\r\n }\r\n }\r\n }\r\n },\r\n \"400\": + {\r\n \"description\": \"Invalid username/password + supplied\"\r\n }\r\n }\r\n }\r\n },\r\n \"/user/logout\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"user\"\r\n ],\r\n \"summary\": + \"Logs out current logged in user session\",\r\n \"description\": + \"\",\r\n \"operationId\": \"logoutUser\",\r\n \"parameters\": + [],\r\n \"responses\": {\r\n \"default\": + {\r\n \"description\": \"successful operation\"\r\n }\r\n }\r\n }\r\n },\r\n \"/user/{username}\": + {\r\n \"get\": {\r\n \"tags\": [\r\n \"user\"\r\n ],\r\n \"summary\": + \"Get user by user name\",\r\n \"description\": \"\",\r\n \"operationId\": + \"getUserByName\",\r\n \"parameters\": [\r\n {\r\n \"name\": + \"username\",\r\n \"in\": \"path\",\r\n \"description\": + \"The name that needs to be fetched. Use user1 for testing. \",\r\n \"required\": + true,\r\n \"schema\": {\r\n \"type\": + \"string\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"200\": {\r\n \"description\": + \"successful operation\",\r\n \"content\": {\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n },\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n }\r\n }\r\n },\r\n \"400\": + {\r\n \"description\": \"Invalid username supplied\"\r\n },\r\n \"404\": + {\r\n \"description\": \"User not found\"\r\n }\r\n }\r\n },\r\n \"put\": + {\r\n \"tags\": [\r\n \"user\"\r\n ],\r\n \"summary\": + \"Update user\",\r\n \"description\": \"This can only be done + by the logged in user.\",\r\n \"operationId\": \"updateUser\",\r\n \"parameters\": + [\r\n {\r\n \"name\": \"username\",\r\n \"in\": + \"path\",\r\n \"description\": \"name that needs to + be updated\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n }\r\n ],\r\n \"requestBody\": + {\r\n \"description\": \"Update an existent user in the + store\",\r\n \"content\": {\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n },\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n },\r\n \"application/x-www-form-urlencoded\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/User\"\r\n }\r\n }\r\n }\r\n },\r\n \"responses\": + {\r\n \"default\": {\r\n \"description\": + \"successful operation\"\r\n }\r\n }\r\n },\r\n \"delete\": + {\r\n \"tags\": [\r\n \"user\"\r\n ],\r\n \"summary\": + \"Delete user\",\r\n \"description\": \"This can only be done + by the logged in user.\",\r\n \"operationId\": \"deleteUser\",\r\n \"parameters\": + [\r\n {\r\n \"name\": \"username\",\r\n \"in\": + \"path\",\r\n \"description\": \"The name that needs + to be deleted\",\r\n \"required\": true,\r\n \"schema\": + {\r\n \"type\": \"string\"\r\n }\r\n }\r\n ],\r\n \"responses\": + {\r\n \"400\": {\r\n \"description\": + \"Invalid username supplied\"\r\n },\r\n \"404\": + {\r\n \"description\": \"User not found\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"components\": + {\r\n \"schemas\": {\r\n \"Order\": {\r\n \"type\": + \"object\",\r\n \"properties\": {\r\n \"id\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\",\r\n \"example\": 10\r\n },\r\n \"petId\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\",\r\n \"example\": 198772\r\n },\r\n \"quantity\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int32\",\r\n \"example\": 7\r\n },\r\n \"shipDate\": + {\r\n \"type\": \"string\",\r\n \"format\": + \"date-time\"\r\n },\r\n \"status\": + {\r\n \"type\": \"string\",\r\n \"description\": + \"Order Status\",\r\n \"example\": \"approved\",\r\n \"enum\": + [\r\n \"placed\",\r\n \"approved\",\r\n \"delivered\"\r\n ]\r\n },\r\n \"complete\": + {\r\n \"type\": \"boolean\"\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"order\"\r\n }\r\n },\r\n \"Customer\": + {\r\n \"type\": \"object\",\r\n \"properties\": + {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\",\r\n \"example\": 100000\r\n },\r\n \"username\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"fehguy\"\r\n },\r\n \"address\": {\r\n \"type\": + \"array\",\r\n \"xml\": {\r\n \"name\": + \"addresses\",\r\n \"wrapped\": true\r\n },\r\n \"items\": + {\r\n \"$ref\": \"#/components/schemas/Address\"\r\n }\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"customer\"\r\n }\r\n },\r\n \"Address\": + {\r\n \"type\": \"object\",\r\n \"properties\": + {\r\n \"street\": {\r\n \"type\": + \"string\",\r\n \"example\": \"437 Lytton\"\r\n },\r\n \"city\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"Palo Alto\"\r\n },\r\n \"state\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"CA\"\r\n },\r\n \"zip\": {\r\n \"type\": + \"string\",\r\n \"example\": \"94301\"\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"address\"\r\n }\r\n },\r\n \"Category\": + {\r\n \"type\": \"object\",\r\n \"properties\": + {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\",\r\n \"example\": 1\r\n },\r\n \"name\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"Dogs\"\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"category\"\r\n }\r\n },\r\n \"User\": + {\r\n \"type\": \"object\",\r\n \"properties\": + {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\",\r\n \"example\": 10\r\n },\r\n \"username\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"theUser\"\r\n },\r\n \"firstName\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"John\"\r\n },\r\n \"lastName\": {\r\n \"type\": + \"string\",\r\n \"example\": \"James\"\r\n },\r\n \"email\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"john@email.com\"\r\n },\r\n \"password\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"12345\"\r\n },\r\n \"phone\": {\r\n \"type\": + \"string\",\r\n \"example\": \"12345\"\r\n },\r\n \"userStatus\": + {\r\n \"type\": \"integer\",\r\n \"description\": + \"User Status\",\r\n \"format\": \"int32\",\r\n \"example\": + 1\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"user\"\r\n }\r\n },\r\n \"Tag\": + {\r\n \"type\": \"object\",\r\n \"properties\": + {\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\"\r\n },\r\n \"name\": {\r\n \"type\": + \"string\"\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"tag\"\r\n }\r\n },\r\n \"Pet\": + {\r\n \"required\": [\r\n \"name\",\r\n \"photoUrls\"\r\n ],\r\n \"type\": + \"object\",\r\n \"properties\": {\r\n \"id\": + {\r\n \"type\": \"integer\",\r\n \"format\": + \"int64\",\r\n \"example\": 10\r\n },\r\n \"name\": + {\r\n \"type\": \"string\",\r\n \"example\": + \"doggie\"\r\n },\r\n \"category\": + {\r\n \"$ref\": \"#/components/schemas/Category\"\r\n },\r\n \"photoUrls\": + {\r\n \"type\": \"array\",\r\n \"xml\": + {\r\n \"wrapped\": true\r\n },\r\n \"items\": + {\r\n \"type\": \"string\",\r\n \"xml\": + {\r\n \"name\": \"photoUrl\"\r\n }\r\n }\r\n },\r\n \"tags\": + {\r\n \"type\": \"array\",\r\n \"xml\": + {\r\n \"wrapped\": true\r\n },\r\n \"items\": + {\r\n \"$ref\": \"#/components/schemas/Tag\"\r\n }\r\n },\r\n \"status\": + {\r\n \"type\": \"string\",\r\n \"description\": + \"pet status in the store\",\r\n \"enum\": [\r\n \"available\",\r\n \"pending\",\r\n \"sold\"\r\n ]\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"pet\"\r\n }\r\n },\r\n \"ApiResponse\": + {\r\n \"type\": \"object\",\r\n \"properties\": + {\r\n \"code\": {\r\n \"type\": + \"integer\",\r\n \"format\": \"int32\"\r\n },\r\n \"type\": + {\r\n \"type\": \"string\"\r\n },\r\n \"message\": + {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"xml\": + {\r\n \"name\": \"##default\"\r\n }\r\n }\r\n },\r\n \"requestBodies\": + {\r\n \"Pet\": {\r\n \"description\": \"Pet object + that needs to be added to the store\",\r\n \"content\": {\r\n \"application/json\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n },\r\n \"application/xml\": + {\r\n \"schema\": {\r\n \"$ref\": + \"#/components/schemas/Pet\"\r\n }\r\n }\r\n }\r\n },\r\n \"UserArray\": + {\r\n \"description\": \"List of user object\",\r\n \"content\": + {\r\n \"application/json\": {\r\n \"schema\": + {\r\n \"type\": \"array\",\r\n \"items\": + {\r\n \"$ref\": \"#/components/schemas/User\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"securitySchemes\": + {\r\n \"petstore_auth\": {\r\n \"type\": \"oauth2\",\r\n \"flows\": + {\r\n \"implicit\": {\r\n \"authorizationUrl\": + \"https://petstore3.swagger.io/oauth/authorize\",\r\n \"scopes\": + {\r\n \"write:pets\": \"modify pets in your account\",\r\n \"read:pets\": + \"read your pets\"\r\n }\r\n }\r\n }\r\n },\r\n \"api_key\": + {\r\n \"type\": \"apiKey\",\r\n \"name\": \"api_key\",\r\n \"in\": + \"header\"\r\n }\r\n }\r\n }\r\n}"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '50209' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:03:54 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: E5D02F568CEB486C8CC38BC870356031 Ref B: MAA201060516021 Ref C: 2024-06-17T06:03:49Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_import_inline.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_import_inline.yaml new file mode 100644 index 00000000000..05b10dc3ebf --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_import_inline.yaml @@ -0,0 +1,115 @@ +interactions: +- request: + body: '{"format": "inline", "specification": {"name": "openapi", "version": "3.0.0"}, + "value": "{\"openapi\":\"3.0.1\",\"info\":{\"title\":\"httpbin.org\",\"description\":\"API + Management facade for a very handy and free online HTTP tool.\",\"version\":\"1.0\"}}"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition import-specification + Connection: + - keep-alive + Content-Length: + - '257' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --definition-id --format --specification --value + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/importSpecification?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:00:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2998' + x-ms-ratelimit-remaining-subscription-writes: + - '198' + x-msedge-ref: + - 'Ref A: 75C3EC9A19F5488FAE626F92EB0084BA Ref B: MAA201060515035 Ref C: 2024-06-17T06:00:52Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition export-specification + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --api-id --version-id --definition-id --file-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/exportSpecification?api-version=2024-03-01 + response: + body: + string: '{"format":"inline","value":"{\"openapi\":\"3.0.1\",\"info\":{\"title\":\"httpbin.org\",\"description\":\"API + Management facade for a very handy and free online HTTP tool.\",\"version\":\"1.0\"}}"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '196' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:00:55 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 1BCA3D469C9947C1B59A14244AFD1405 Ref B: MAA201060513045 Ref C: 2024-06-17T06:00:55Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_list.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_list.yaml new file mode 100644 index 00000000000..f709150e3f0 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_list.yaml @@ -0,0 +1,54 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition list + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"OpenAPI"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005","name":"clitest000005","systemData":{"createdAt":"2024-06-17T06:01:18.4516804Z","lastModifiedAt":"2024-06-17T06:01:18.4516791Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"OpenAPI"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000006","name":"clitest000006","systemData":{"createdAt":"2024-06-17T06:01:21.5977125Z","lastModifiedAt":"2024-06-17T06:01:21.5977116Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '941' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:01:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 4065D0B70DAD413F8776BD0FCDC002BD Ref B: MAA201060516021 Ref C: 2024-06-17T06:01:23Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_list_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_list_with_all_optional_params.yaml new file mode 100644 index 00000000000..fecd2459b71 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_list_with_all_optional_params.yaml @@ -0,0 +1,54 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition list + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --filter + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions?$filter=name%20eq%20%27clitest000005%27&api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"OpenAPI"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005","name":"clitest000005","systemData":{"createdAt":"2024-06-17T06:01:43.8441665Z","lastModifiedAt":"2024-06-17T06:01:43.8441654Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '476' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:01:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 4D669636B6294018BBF786C7FEED1B5B Ref B: MAA201060516021 Ref C: 2024-06-17T06:01:47Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_show.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_show.yaml new file mode 100644 index 00000000000..e60401c65b8 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_show.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --definition-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"OpenAPI"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005","name":"clitest000005","systemData":{"createdAt":"2024-06-17T06:02:09.9411683Z","lastModifiedAt":"2024-06-17T06:02:09.9411675Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '464' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:02:12 GMT + etag: + - 13014d82-0000-0100-0000-666fd1610000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: A329D6077166446BA7BEF80100FC726D Ref B: MAA201060514009 Ref C: 2024-06-17T06:02:11Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_update.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_update.yaml new file mode 100644 index 00000000000..241076528bb --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_definition_update.yaml @@ -0,0 +1,117 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition update + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --definition-id --title --description + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"OpenAPI"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005","name":"clitest000005","systemData":{"createdAt":"2024-06-17T06:02:37.8784973Z","lastModifiedAt":"2024-06-17T06:02:37.8784963Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '464' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:02:40 GMT + etag: + - 1301d882-0000-0100-0000-666fd17d0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 3B382F47D99341949336C4B4A5ECD825 Ref B: MAA201060516035 Ref C: 2024-06-17T06:02:39Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"description": "test description 2", "title": "Swagger"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition update + Connection: + - keep-alive + Content-Length: + - '73' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --definition-id --title --description + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"Swagger","description":"test + description 2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005","name":"clitest000005","systemData":{"lastModifiedAt":"2024-06-17T06:02:42.9077573Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '456' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:02:57 GMT + etag: + - 1301fc82-0000-0100-0000-666fd1820000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '3000' + x-ms-ratelimit-remaining-subscription-writes: + - '200' + x-msedge-ref: + - 'Ref A: 575AF6E21E6E45FCB26BFD3507323CC2 Ref B: MAA201060516035 Ref C: 2024-06-17T06:02:41Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_delete_service.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_delete_service.yaml index 67d235a859e..f40f7226660 100644 --- a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_delete_service.yaml +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_delete_service.yaml @@ -7,25 +7,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - apic service delete + - apic delete Connection: - keep-alive Content-Length: - '0' ParameterSetName: - - -g -s --yes + - -g -n --yes User-Agent: - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002a?api-version=2024-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 response: body: string: '' headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview cache-control: - no-cache + content-length: + - '0' date: - - Thu, 25 Apr 2024 05:47:24 GMT + - Mon, 17 Jun 2024 06:09:35 GMT expires: - '-1' pragma: @@ -37,10 +41,62 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: 33D5C6F8D1C24FE4BB72EB6879335A23 Ref B: MAA201060516021 Ref C: 2024-06-17T06:09:30Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ApiCenter/services/clitest000002'' + under resource group ''clirg000001'' was not found. For more details please + go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '225' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway x-msedge-ref: - - 'Ref A: 50BEA56C7F8448F2A9889B4487CB4C1A Ref B: MAA201060516021 Ref C: 2024-04-25T05:47:25Z' + - 'Ref A: 332954F186604806B8CF47A07B43897D Ref B: MAA201060514047 Ref C: 2024-06-17T06:09:36Z' status: - code: 204 - message: No Content + code: 404 + message: Not Found version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_create.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_create.yaml new file mode 100644 index 00000000000..f9190bc564f --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_create.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '{"properties": {"definitionId": "/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006", + "environmentId": "/workspaces/default/environments/clitest000003", "server": + {"runtimeUri": ["https://example.com"]}, "title": "test deployment"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment create + Connection: + - keep-alive + Content-Length: + - '269' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --definition-id --environment-id --deployment-id --title --server + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"test + deployment","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/cli000007","name":"cli000007","systemData":{"createdAt":"2024-06-17T06:07:23.5646247Z","lastModifiedAt":"2024-06-17T06:07:23.5646238Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '692' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:07:23 GMT + etag: + - 8501d217-0000-0100-0000-666fd29b0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: C18E1C670E0B44C897F8189B9F0B4193 Ref B: MAA201060515049 Ref C: 2024-06-17T06:07:22Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_create_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_create_with_all_optional_params.yaml new file mode 100644 index 00000000000..5b7d248b231 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_create_with_all_optional_params.yaml @@ -0,0 +1,67 @@ +interactions: +- request: + body: '{"properties": {"customProperties": {"clitest000007": true}, "definitionId": + "/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006", + "description": "deployment description", "environmentId": "/workspaces/default/environments/clitest000003", + "server": {"runtimeUri": ["https://example.com"]}, "title": "test deployment"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment create + Connection: + - keep-alive + Content-Length: + - '355' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --definition-id --environment-id --deployment-id --title --server + --description --custom-properties + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"test + deployment","description":"deployment description","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{"clitest000007":true},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/cli000008","name":"cli000008","systemData":{"createdAt":"2024-06-17T06:07:54.8364935Z","lastModifiedAt":"2024-06-17T06:07:54.8364757Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '751' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:07:54 GMT + etag: + - 8501501a-0000-0100-0000-666fd2ba0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: DBA7CB0069A14A9A80A0E6460B549DEA Ref B: MAA201060516053 Ref C: 2024-06-17T06:07:54Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_delete.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_delete.yaml new file mode 100644 index 00000000000..63a3ec942ab --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_delete.yaml @@ -0,0 +1,104 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --api-id --deployment-id --yes + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + date: + - Mon, 17 Jun 2024 06:03:19 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: B154AA5682284B48872528ABDD5CDF1C Ref B: MAA201060516049 Ref C: 2024-06-17T06:03:18Z' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --deployment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '{"code":"404"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '14' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:03:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 7B0B35F471D943F5A4AF1CEEE07F4845 Ref B: MAA201060515051 Ref C: 2024-06-17T06:03:21Z' + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_list.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_list.yaml new file mode 100644 index 00000000000..55452a1c3ec --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_list.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment list + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"test + deployment","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/clitest000007","name":"clitest000007","systemData":{"createdAt":"2024-06-17T06:03:49.5700316Z","lastModifiedAt":"2024-06-17T06:03:49.570031Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"test + deployment","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/clitest000008","name":"clitest000008","systemData":{"createdAt":"2024-06-17T06:03:52.1730335Z","lastModifiedAt":"2024-06-17T06:03:52.1730323Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1412' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:03:54 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: C1CAEDEC07A942D3A55D930A2C566746 Ref B: MAA201060513035 Ref C: 2024-06-17T06:03:53Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_list_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_list_with_all_optional_params.yaml new file mode 100644 index 00000000000..39e21e3ef2c --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_list_with_all_optional_params.yaml @@ -0,0 +1,55 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment list + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --filter + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments?$filter=name%20eq%20%27clitest000007%27&api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"test + deployment","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/clitest000007","name":"clitest000007","systemData":{"createdAt":"2024-06-17T06:04:22.0238033Z","lastModifiedAt":"2024-06-17T06:04:22.0238024Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '712' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:04:27 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 1B3901AB053C4A69ACBD4C526137A900 Ref B: MAA201060516029 Ref C: 2024-06-17T06:04:26Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_show.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_show.yaml new file mode 100644 index 00000000000..70726b63218 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_show.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --deployment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"test + deployment","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/clitest000007","name":"clitest000007","systemData":{"createdAt":"2024-06-17T06:04:57.843633Z","lastModifiedAt":"2024-06-17T06:04:57.8436323Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '699' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:04:59 GMT + etag: + - 85014d08-0000-0100-0000-666fd2090000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 982B9B2F5E6043549B909D22808FA7E1 Ref B: MAA201060516035 Ref C: 2024-06-17T06:04:59Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_update.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_update.yaml new file mode 100644 index 00000000000..e170b7f3ff8 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_update.yaml @@ -0,0 +1,120 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment update + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --deployment-id --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"test + deployment","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/clitest000007","name":"clitest000007","systemData":{"createdAt":"2024-06-17T06:05:29.0017706Z","lastModifiedAt":"2024-06-17T06:05:29.0017695Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '700' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:05:31 GMT + etag: + - 8501a50b-0000-0100-0000-666fd2290000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 2B21BB8AD571446EB779FA8FDC73E44A Ref B: MAA201060516027 Ref C: 2024-06-17T06:05:30Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"customProperties": {}, "definitionId": "/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006", + "environmentId": "/workspaces/default/environments/clitest000003", "server": + {"runtimeUri": ["https://example.com"]}, "title": "updated deployment"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment update + Connection: + - keep-alive + Content-Length: + - '296' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --deployment-id --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"updated + deployment","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/clitest000007","name":"clitest000007","systemData":{"lastModifiedAt":"2024-06-17T06:05:32.7651888Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '660' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:05:32 GMT + etag: + - 85013d0c-0000-0100-0000-666fd22c0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 95457F957E6A483F85648BABDB56C4C3 Ref B: MAA201060516027 Ref C: 2024-06-17T06:05:31Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_update_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_update_with_all_optional_params.yaml new file mode 100644 index 00000000000..4d2834bb70e --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_deployment_update_with_all_optional_params.yaml @@ -0,0 +1,123 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment update + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --definition-id --environment-id --deployment-id --title --server + --description --custom-properties + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"test + deployment","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/clitest000007","name":"clitest000007","systemData":{"createdAt":"2024-06-17T06:06:00.8508856Z","lastModifiedAt":"2024-06-17T06:06:00.8508843Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '700' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:06:06 GMT + etag: + - 8501de0d-0000-0100-0000-666fd2480000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 17E2F6848C55451E86997C8C9F18EF10 Ref B: MAA201060515019 Ref C: 2024-06-17T06:06:05Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"customProperties": {"clitest000008": true}, "definitionId": + "/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006", + "description": "deployment description", "environmentId": "/workspaces/default/environments/clitest000003", + "server": {"runtimeUri": ["https://example2.com"]}, "title": "updated deployment"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment update + Connection: + - keep-alive + Content-Length: + - '359' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --definition-id --environment-id --deployment-id --title --server + --description --custom-properties + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"updated + deployment","description":"deployment description","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example2.com"]},"customProperties":{"clitest000008":true},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/clitest000007","name":"clitest000007","systemData":{"lastModifiedAt":"2024-06-17T06:06:08.2508702Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '720' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:06:08 GMT + etag: + - 8501e10e-0000-0100-0000-666fd2500000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: E077DF3C143648DCBA7CDCAC2764B4BF Ref B: MAA201060515019 Ref C: 2024-06-17T06:06:07Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_create.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_create.yaml new file mode 100644 index 00000000000..aa8afba4cca --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_create.yaml @@ -0,0 +1,63 @@ +interactions: +- request: + body: '{"properties": {"kind": "testing", "title": "test environment"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment create + Connection: + - keep-alive + Content-Length: + - '64' + Content-Type: + - application/json + ParameterSetName: + - -g -n --environment-id --title --type + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/cli000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"test + environment","kind":"testing","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/cli000003","name":"cli000003","systemData":{"createdAt":"2024-06-17T06:05:25.4144025Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '402' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:05:25 GMT + etag: + - 64010d61-0000-0100-0000-666fd2250000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 83810789E4BD46F4BE0E090E0A69A1B6 Ref B: MAA201060516009 Ref C: 2024-06-17T06:05:24Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_create_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_create_with_all_optional_params.yaml new file mode 100644 index 00000000000..d29ef80fcb1 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_create_with_all_optional_params.yaml @@ -0,0 +1,70 @@ +interactions: +- request: + body: '{"properties": {"customProperties": {"clitest000003": true}, "description": + "environment description", "kind": "testing", "onboarding": {"developerPortalUri": + ["https://developer.contoso.com"], "instructions": "instructions markdown"}, + "server": {"managementPortalUri": ["example.com"], "type": "Azure API Management"}, + "title": "test environment"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment create + Connection: + - keep-alive + Content-Length: + - '349' + Content-Type: + - application/json + ParameterSetName: + - -g -n --environment-id --title --type --custom-properties --description --onboarding + --server + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/cli000004?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"test + environment","kind":"testing","description":"environment description","server":{"type":"Azure + API Management","managementPortalUri":["example.com"]},"onboarding":{"instructions":"instructions + markdown","developerPortalUri":["https://developer.contoso.com"]},"customProperties":{"clitest000003":true}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/cli000004","name":"cli000004","systemData":{"createdAt":"2024-06-17T06:05:47.3151231Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '650' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:05:46 GMT + etag: + - 6401d862-0000-0100-0000-666fd23b0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 1AA050B404354D5FAF59B357ACB7DCCD Ref B: MAA201060516037 Ref C: 2024-06-17T06:05:46Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_delete.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_delete.yaml new file mode 100644 index 00000000000..9148b27659e --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_delete.yaml @@ -0,0 +1,105 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --environment-id --yes + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + date: + - Mon, 17 Jun 2024 06:06:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: 7E7DAF93016D4CA2BD0ACA075D6B7780 Ref B: MAA201060513017 Ref C: 2024-06-17T06:06:05Z' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment show + Connection: + - keep-alive + ParameterSetName: + - -g -n --environment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"code":"404","message":"The environment with the specified ID does + not exist."}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '80' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:06:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 605270C307824F60816348E50027010A Ref B: MAA201060515009 Ref C: 2024-06-17T06:06:08Z' + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_list.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_list.yaml new file mode 100644 index 00000000000..d42b853cd5f --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_list.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment list + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"test + environment","kind":"testing","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:06:26.5834813Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"test + environment","kind":"testing","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:06:29.1445183Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '833' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:06:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 4C558CC9ED5842B8A675AFA193C69FCF Ref B: MAA201060514049 Ref C: 2024-06-17T06:06:30Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_list_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_list_with_all_optional_params.yaml new file mode 100644 index 00000000000..01051ec16d5 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_list_with_all_optional_params.yaml @@ -0,0 +1,55 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment list + Connection: + - keep-alive + ParameterSetName: + - -g -n --filter + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments?$filter=name%20eq%20%27clitest000003%27&api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"test + environment","kind":"testing","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:04:10.0466202Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '422' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:04:15 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 10DDADFEC276459FB3A850B4EBADDE06 Ref B: MAA201060515037 Ref C: 2024-06-17T06:04:14Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_show.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_show.yaml new file mode 100644 index 00000000000..026e7bc9d55 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_show.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment show + Connection: + - keep-alive + ParameterSetName: + - -g -n --environment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"test + environment","kind":"testing","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:04:31.8060619Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '410' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:04:33 GMT + etag: + - 6401425a-0000-0100-0000-666fd1ef0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 9FB0795ADB314CB4AF5A8484EF6FECE8 Ref B: MAA201060515031 Ref C: 2024-06-17T06:04:33Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_update.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_update.yaml new file mode 100644 index 00000000000..b0be2365276 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_update.yaml @@ -0,0 +1,119 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment update + Connection: + - keep-alive + ParameterSetName: + - -g -n --environment-id --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"test + environment","kind":"testing","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:04:52.0704613Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '410' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:04:54 GMT + etag: + - 6401185d-0000-0100-0000-666fd2040000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 35B21C413CC24F2AA9C3561E392082A2 Ref B: MAA201060516021 Ref C: 2024-06-17T06:04:53Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"customProperties": {}, "kind": "testing", "title": "test + environment 2"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment update + Connection: + - keep-alive + Content-Length: + - '90' + Content-Type: + - application/json + ParameterSetName: + - -g -n --environment-id --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"test + environment 2","kind":"testing","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003","name":"clitest000003","systemData":{"lastModifiedAt":"2024-06-17T06:04:56.4595756Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '417' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:04:56 GMT + etag: + - 6401b85d-0000-0100-0000-666fd2080000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: A8502ABC54B54CE1ABA444B051635000 Ref B: MAA201060516021 Ref C: 2024-06-17T06:04:55Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_update_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_update_with_all_optional_params.yaml new file mode 100644 index 00000000000..eb871ac80cf --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_environment_update_with_all_optional_params.yaml @@ -0,0 +1,126 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment update + Connection: + - keep-alive + ParameterSetName: + - -g -n --environment-id --title --type --custom-properties --description --onboarding + --server + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000004?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"test + environment","kind":"testing","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:05:17.6034397Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '410' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:05:20 GMT + etag: + - 64013460-0000-0100-0000-666fd21d0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: E83E661F41054730874B2B3D75C91EF5 Ref B: MAA201060513021 Ref C: 2024-06-17T06:05:19Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"customProperties": {"clitest000003": true}, "description": + "environment description", "kind": "testing", "onboarding": {"developerPortalUri": + ["https://developer.contoso.com"], "instructions": "instructions markdown"}, + "server": {"managementPortalUri": ["example.com"], "type": "Azure API Management"}, + "title": "test environment 2"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment update + Connection: + - keep-alive + Content-Length: + - '351' + Content-Type: + - application/json + ParameterSetName: + - -g -n --environment-id --title --type --custom-properties --description --onboarding + --server + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000004?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"test + environment 2","kind":"testing","description":"environment description","server":{"type":"Azure + API Management","managementPortalUri":["example.com"]},"onboarding":{"instructions":"instructions + markdown","developerPortalUri":["https://developer.contoso.com"]},"customProperties":{"clitest000003":true}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000004","name":"clitest000004","systemData":{"lastModifiedAt":"2024-06-17T06:05:21.4693007Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '665' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:05:21 GMT + etag: + - 64018760-0000-0100-0000-666fd2210000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: B51B76EB2F74414DB37BF79D803531E6 Ref B: MAA201060513021 Ref C: 2024-06-17T06:05:20Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_api.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_api.yaml new file mode 100644 index 00000000000..cfa89c6b23e --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_api.yaml @@ -0,0 +1,63 @@ +interactions: +- request: + body: '{"properties": {"kind": "rest", "title": "Echo API"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api create + Connection: + - keep-alive + Content-Length: + - '53' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --title --type + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000003","name":"cli000003","systemData":{"createdAt":"2024-06-17T06:01:07.7819472Z","lastModifiedAt":"2024-06-17T06:01:07.7819466Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '464' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:01:07 GMT + etag: + - da021c9a-0000-0100-0000-666fd1230000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 9B21481BB1C24B05BAB2B781B681673C Ref B: MAA201060513027 Ref C: 2024-06-17T06:01:06Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_api_definition.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_api_definition.yaml new file mode 100644 index 00000000000..12463fed5cf --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_api_definition.yaml @@ -0,0 +1,62 @@ +interactions: +- request: + body: '{"properties": {"title": "OpenAPI"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition create + Connection: + - keep-alive + Content-Length: + - '36' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --definition-id --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/cli000005?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"OpenAPI"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/cli000005","name":"cli000005","systemData":{"createdAt":"2024-06-17T06:03:18.5314537Z","lastModifiedAt":"2024-06-17T06:03:18.5314528Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '456' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:03:17 GMT + etag: + - 13010e85-0000-0100-0000-666fd1a60000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: F7908E93CD564E609D310FF098BB82F9 Ref B: MAA201060515027 Ref C: 2024-06-17T06:03:17Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_api_version.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_api_version.yaml new file mode 100644 index 00000000000..a962afab668 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_api_version.yaml @@ -0,0 +1,62 @@ +interactions: +- request: + body: '{"properties": {"lifecycleStage": "production", "title": "2023-01-01"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version create + Connection: + - keep-alive + Content-Length: + - '71' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --title --lifecycle-stage + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/cli000004?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"2023-01-01","lifecycleStage":"production"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/cli000004","name":"cli000004","systemData":{"createdAt":"2024-06-17T06:13:42.7245391Z","lastModifiedAt":"2024-06-17T06:13:42.7245382Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '451' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:13:43 GMT + etag: + - 88046b8d-0000-0100-0000-666fd4160000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: E75C4F43B1C64125BE328B200CCA79F3 Ref B: MAA201060516037 Ref C: 2024-06-17T06:13:41Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_api_with_custom_properties.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_api_with_custom_properties.yaml new file mode 100644 index 00000000000..84f0e921471 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_api_with_custom_properties.yaml @@ -0,0 +1,64 @@ +interactions: +- request: + body: '{"properties": {"customProperties": {"clitest000003": true}, "kind": "rest", + "title": "Echo API"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api create + Connection: + - keep-alive + Content-Length: + - '98' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --title --type --custom-properties + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000004?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{"clitest000003":true}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000004","name":"cli000004","systemData":{"createdAt":"2024-06-17T06:01:27.6417797Z","lastModifiedAt":"2024-06-17T06:01:27.6417654Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '484' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:01:26 GMT + etag: + - da02e59a-0000-0100-0000-666fd1370000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 73DCB51AD0E54C0FA610D45484F8A489 Ref B: MAA201060513017 Ref C: 2024-06-17T06:01:26Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_deployment.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_deployment.yaml new file mode 100644 index 00000000000..4635bdfcb37 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_deployment.yaml @@ -0,0 +1,66 @@ +interactions: +- request: + body: '{"properties": {"definitionId": "/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006", + "description": "Public cloud production deployment.", "environmentId": "/workspaces/default/environments/clitest000003", + "server": {"runtimeUri": ["https://example.com"]}, "title": "Production deployment"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment create + Connection: + - keep-alive + Content-Length: + - '329' + Content-Type: + - application/json + ParameterSetName: + - -g -n --deployment-id --title --description --api-id --environment-id --definition-id + --server + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"Production + deployment","description":"Public cloud production deployment.","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/cli000007","name":"cli000007","systemData":{"createdAt":"2024-06-17T06:06:34.9948104Z","lastModifiedAt":"2024-06-17T06:06:34.9948095Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '750' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:06:34 GMT + etag: + - 8501f813-0000-0100-0000-666fd26b0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 9A86A9C7B89A4D95945F60392A90112A Ref B: MAA201060515019 Ref C: 2024-06-17T06:06:33Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_environment.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_environment.yaml new file mode 100644 index 00000000000..86be6ff590c --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_environment.yaml @@ -0,0 +1,63 @@ +interactions: +- request: + body: '{"properties": {"kind": "development", "title": "Public cloud"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment create + Connection: + - keep-alive + Content-Length: + - '64' + Content-Type: + - application/json + ParameterSetName: + - -g -n --environment-id --title --type + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/cli000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"Public + cloud","kind":"development","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/cli000003","name":"cli000003","systemData":{"createdAt":"2024-06-17T06:05:37.4517252Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '402' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:05:36 GMT + etag: + - 64013a62-0000-0100-0000-666fd2310000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 134B0AD09F5D4F30B7C477E5D288719C Ref B: MAA201060513039 Ref C: 2024-06-17T06:05:36Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_metadata_1.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_metadata_1.yaml new file mode 100644 index 00000000000..5f18a5e0311 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_metadata_1.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '{"properties": {"assignedTo": [{"deprecated": false, "entity": "api", "required": + true}], "schema": "{\"type\":\"string\", \"title\":\"First name\", \"pattern\": + \"^[a-zA-Z0-9]+$\"}"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata create + Connection: + - keep-alive + Content-Length: + - '184' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --service-name --metadata-name --schema --assignments + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/cli000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false}],"schema":"{\"type\":\"string\", + \"title\":\"First name\", \"pattern\": \"^[a-zA-Z0-9]+$\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/cli000003","name":"cli000003","systemData":{"createdAt":"2024-06-17T06:07:19.2166812Z","lastModifiedAt":"2024-06-17T06:07:19.2166804Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '519' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:07:19 GMT + etag: + - 6602efa5-0000-0100-0000-666fd2970000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 00F1235B7CDC4FB9BF8F5F317916C266 Ref B: MAA201060514047 Ref C: 2024-06-17T06:07:18Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_metadata_2.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_metadata_2.yaml new file mode 100644 index 00000000000..904e19b8524 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_metadata_2.yaml @@ -0,0 +1,64 @@ +interactions: +- request: + body: '{"properties": {"assignedTo": [{"deprecated": false, "entity": "api", "required": + true}, {"deprecated": false, "entity": "environment", "required": true}], "schema": + "{\"type\":\"string\",\"title\":\"testregion\",\"oneOf\":[{\"const\":\"Region1\",\"description\":\"\"},{\"const\":\"Region2\",\"description\":\"\"},{\"const\":\"Region3\",\"description\":\"\"}]}"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata create + Connection: + - keep-alive + Content-Length: + - '363' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --service-name --metadata-name --schema --assignments + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/cli000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false},{"entity":"environment","required":true,"deprecated":false}],"schema":"{\"type\":\"string\",\"title\":\"testregion\",\"oneOf\":[{\"const\":\"Region1\",\"description\":\"\"},{\"const\":\"Region2\",\"description\":\"\"},{\"const\":\"Region3\",\"description\":\"\"}]}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/cli000003","name":"cli000003","systemData":{"createdAt":"2024-06-17T06:07:37.3897455Z","lastModifiedAt":"2024-06-17T06:07:37.3897449Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '692' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:07:37 GMT + etag: + - 660251a7-0000-0100-0000-666fd2a90000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 6B94D66A313A4111AA8A6386E772443B Ref B: MAA201060516009 Ref C: 2024-06-17T06:07:35Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_service_1.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_service_1.yaml new file mode 100644 index 00000000000..13ae890e9cf --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_service_1.yaml @@ -0,0 +1,60 @@ +interactions: +- request: + body: '{"location": "eastus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{},"systemData":{"createdAt":"2024-06-17T06:09:36.8448655Z","lastModifiedAt":"2024-06-17T06:09:36.844859Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '366' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 71D4DEC3EABF4956A8B7E09F4CEB7DC6 Ref B: MAA201060513017 Ref C: 2024-06-17T06:09:33Z' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_service_2.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_service_2.yaml new file mode 100644 index 00000000000..14eae4caccf --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_service_2.yaml @@ -0,0 +1,60 @@ +interactions: +- request: + body: '{"location": "eastus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{},"systemData":{"createdAt":"2024-06-17T06:09:50.0168785Z","lastModifiedAt":"2024-06-17T06:09:50.0168716Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '367' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: BE2A2DD723594D179064DAC4B809D0E2 Ref B: MAA201060514047 Ref C: 2024-06-17T06:09:48Z' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_api.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_api.yaml new file mode 100644 index 00000000000..e83b120113e --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_api.yaml @@ -0,0 +1,104 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --api-id --yes + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + date: + - Mon, 17 Jun 2024 06:01:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: D10A1D1633134C8090FE4D302C4ED9D2 Ref B: MAA201060515031 Ref C: 2024-06-17T06:01:43Z' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"code":"404"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '14' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:01:47 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 054360A54C2C4654834545241356788A Ref B: MAA201060515017 Ref C: 2024-06-17T06:01:47Z' + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_api_definition.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_api_definition.yaml new file mode 100644 index 00000000000..12d032e6ca2 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_api_definition.yaml @@ -0,0 +1,106 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --api-id --version-id --definition-id --yes + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:03:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: 912F6478DC5F4791BFE9AF61206FB3B4 Ref B: MAA201060514025 Ref C: 2024-06-17T06:03:11Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --definition-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005?api-version=2024-03-01 + response: + body: + string: '{"code":"404"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '14' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:03:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: A19331AE5D214FC1BBD1115920375413 Ref B: MAA201060514021 Ref C: 2024-06-17T06:03:13Z' + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_api_deployment.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_api_deployment.yaml new file mode 100644 index 00000000000..290a4354e32 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_api_deployment.yaml @@ -0,0 +1,104 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --deployment-id --api-id --yes + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + date: + - Mon, 17 Jun 2024 06:07:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: F49480A495B3470FBB07AA26401BCD63 Ref B: MAA201060513033 Ref C: 2024-06-17T06:07:04Z' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --deployment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '{"code":"404"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '14' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:07:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 66E3970D0F50499C8EB282C636001F2E Ref B: MAA201060515025 Ref C: 2024-06-17T06:07:07Z' + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_api_version.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_api_version.yaml new file mode 100644 index 00000000000..ecd4da7a960 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_api_version.yaml @@ -0,0 +1,104 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --api-id --version-id --yes + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + date: + - Mon, 17 Jun 2024 06:16:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: 6400779B4E1B4CB18C6FD68C87A2E03D Ref B: MAA201060513037 Ref C: 2024-06-17T06:16:48Z' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004?api-version=2024-03-01 + response: + body: + string: '{"code":"404"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '14' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:16:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 56E88F58D7364BE78FD7751E998C8BDF Ref B: MAA201060516009 Ref C: 2024-06-17T06:16:50Z' + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_environment.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_environment.yaml new file mode 100644 index 00000000000..05ee8607fa4 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_environment.yaml @@ -0,0 +1,105 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --environment-id --yes + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + date: + - Mon, 17 Jun 2024 06:05:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: DABE29F131664D17BF535B6BE5F2A685 Ref B: MAA201060513025 Ref C: 2024-06-17T06:05:56Z' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment show + Connection: + - keep-alive + ParameterSetName: + - -g -n --environment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"code":"404","message":"The environment with the specified ID does + not exist."}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '80' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:05:59 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 1721C67F06E0446E93D884BBE398419A Ref B: MAA201060513009 Ref C: 2024-06-17T06:05:58Z' + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_metadata_1.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_metadata_1.yaml new file mode 100644 index 00000000000..ed82bae23c3 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_metadata_1.yaml @@ -0,0 +1,104 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --service-name --metadata-name --yes + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + date: + - Mon, 17 Jun 2024 06:07:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: 6D30CA8CC93948EABB73851231374262 Ref B: MAA201060514051 Ref C: 2024-06-17T06:07:52Z' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --service-name --metadata-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"code":"404"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '14' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:07:55 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B78AF775A82C40D3B1EB739A2F6E29EE Ref B: MAA201060516037 Ref C: 2024-06-17T06:07:54Z' + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_metadata_2.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_metadata_2.yaml new file mode 100644 index 00000000000..5bc257136f9 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_metadata_2.yaml @@ -0,0 +1,104 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --metadata-name --yes + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + date: + - Mon, 17 Jun 2024 06:06:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: 37B0142E85F743E7A4264839B1D36F10 Ref B: MAA201060515053 Ref C: 2024-06-17T06:06:48Z' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata show + Connection: + - keep-alive + ParameterSetName: + - -g -n --metadata-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"code":"404"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '14' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:06:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 1D84DB1266024BD2882A68B429BE5123 Ref B: MAA201060513033 Ref C: 2024-06-17T06:06:51Z' + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_service.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_service.yaml new file mode 100644 index 00000000000..50589d3f768 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_delete_service.yaml @@ -0,0 +1,102 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g --yes + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:10:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: F5BBEB477B544D81956EDB628A912E19 Ref B: MAA201060513023 Ref C: 2024-06-17T06:10:03Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ApiCenter/services/clitest000002'' + under resource group ''clirg000001'' was not found. For more details please + go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '225' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:10:09 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + x-msedge-ref: + - 'Ref A: FD67579A023545CB98CD3877E7E9A557 Ref B: MAA201060513017 Ref C: 2024-06-17T06:10:09Z' + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_export_metadata_assigned_to_api.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_export_metadata_assigned_to_api.yaml new file mode 100644 index 00000000000..229e4571f72 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_export_metadata_assigned_to_api.yaml @@ -0,0 +1,73 @@ +interactions: +- request: + body: '{"assignedTo": "api"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata export + Connection: + - keep-alive + Content-Length: + - '21' + Content-Type: + - application/json + ParameterSetName: + - -g -n --assignments --file-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/exportMetadataSchema?api-version=2024-03-01 + response: + body: + string: '{"format":"json-schema","value":"{\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"string\"},\"Name\":{\"type\":\"string\"},\"WorkspaceName\":{\"type\":\"string\"},\"Title\":{\"type\":\"string\"},\"Summary\":{\"type\":\"string\"},\"Description\":{\"type\":\"string\"},\"Kind\":{\"type\":\"string\"},\"LifecycleStage\":{\"type\":\"string\",\"enum\":[\"design\",\"development\",\"testing\",\"preview\",\"production\",\"deprecated\",\"retired\"]},\"TermsOfService\":{\"type\":\"object\",\"properties\":{\"url\":{\"description\":\"URL + pointing to the terms of service.\",\"type\":\"string\",\"maxLength\":200,\"format\":\"uri\"}}},\"License\":{\"type\":\"object\",\"properties\":{\"name\":{\"description\":\"Name + of the license.\",\"type\":\"string\",\"maxLength\":50},\"url\":{\"description\":\"URL + pointing to the license details. The URL field is mutually exclusive of the + identifier field.\",\"type\":\"string\",\"maxLength\":200,\"format\":\"uri\"},\"identifier\":{\"description\":\"SPDX + license information for the API. The identifier field is mutually exclusive + of the URL field.\",\"type\":\"string\",\"maxLength\":200,\"format\":\"uri\"}}},\"ExternalDocumentation\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"title\":{\"description\":\"Title + of the documentation.\",\"type\":\"string\",\"maxLength\":50},\"description\":{\"description\":\"Description + of the documentation.\",\"type\":\"string\",\"maxLength\":1000},\"url\":{\"description\":\"URL + pointing to the documentation.\",\"type\":\"string\",\"maxLength\":200,\"format\":\"uri\"}}}},\"Contacts\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"name\":{\"description\":\"Name + of the contact.\",\"type\":\"string\",\"maxLength\":100},\"url\":{\"description\":\"URL + for the contact.\",\"type\":\"string\",\"maxLength\":200,\"format\":\"uri\"},\"email\":{\"description\":\"Email + address for the contact.\",\"type\":\"string\",\"maxLength\":100,\"format\":\"email\"}}}},\"CustomPropertiesData\":{},\"CatalogNameTypeSafe\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"Name\":{\"type\":\"string\"}}},\"CatalogName\":{\"type\":\"string\"},\"SubscriptionId\":{\"type\":\"string\"},\"SubscriptionIdTypeSafe\":{\"type\":\"string\"},\"ResourceGroupName\":{\"type\":\"string\"},\"ResourceGroupNameTypeSafe\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"Name\":{\"type\":\"string\"}}},\"ETag\":{\"type\":\"string\"},\"Created\":{\"type\":\"string\",\"format\":\"date-time\"},\"Updated\":{\"type\":\"string\",\"format\":\"date-time\"},\"CreatedBy\":{\"type\":\"string\"},\"UpdatedBy\":{\"type\":\"string\"},\"customProperties\":{\"type\":\"object\",\"properties\":{\"clitest000003\":{\"type\":\"boolean\",\"title\":\"Public + Facing\"}},\"unevaluatedProperties\":false,\"required\":[\"clitest000003\"]}}}"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '2854' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:07:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 2357567CDDB849F5AB52020BEAC42B01 Ref B: MAA201060514033 Ref C: 2024-06-17T06:07:13Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_export_metadata_assigned_to_deployment.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_export_metadata_assigned_to_deployment.yaml new file mode 100644 index 00000000000..3839b2f3182 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_export_metadata_assigned_to_deployment.yaml @@ -0,0 +1,62 @@ +interactions: +- request: + body: '{"assignedTo": "deployment"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata export + Connection: + - keep-alive + Content-Length: + - '28' + Content-Type: + - application/json + ParameterSetName: + - -g -n --assignments --file-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/exportMetadataSchema?api-version=2024-03-01 + response: + body: + string: '{"format":"json-schema","value":"{\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"string\"},\"WorkspaceName\":{\"type\":\"string\"},\"ApiName\":{\"type\":\"string\"},\"Name\":{\"type\":\"string\"},\"Title\":{\"type\":\"string\"},\"Description\":{\"type\":\"string\"},\"EnvironmentId\":{\"type\":\"string\"},\"DefinitionId\":{\"type\":\"string\"},\"Server\":{\"type\":\"object\",\"properties\":{\"runtimeUri\":{\"description\":\"Base + runtime URIs for this deployment.\",\"type\":\"array\",\"items\":{\"type\":\"string\"},\"maxItems\":200}},\"required\":[\"runtimeUri\"]},\"CustomPropertiesData\":{},\"Recommended\":{\"type\":\"boolean\"},\"CatalogNameTypeSafe\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"Name\":{\"type\":\"string\"}}},\"CatalogName\":{\"type\":\"string\"},\"SubscriptionId\":{\"type\":\"string\"},\"SubscriptionIdTypeSafe\":{\"type\":\"string\"},\"ResourceGroupName\":{\"type\":\"string\"},\"ResourceGroupNameTypeSafe\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"Name\":{\"type\":\"string\"}}},\"ETag\":{\"type\":\"string\"},\"Created\":{\"type\":\"string\",\"format\":\"date-time\"},\"Updated\":{\"type\":\"string\",\"format\":\"date-time\"},\"CreatedBy\":{\"type\":\"string\"},\"UpdatedBy\":{\"type\":\"string\"},\"customProperties\":{\"type\":\"object\",\"properties\":{\"clitest000003\":{\"type\":\"boolean\",\"title\":\"Public + Facing\"}},\"unevaluatedProperties\":false,\"required\":[\"clitest000003\"]}}}"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1490' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:07:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 2955A4A6AAD84CBAB005327735FCFACC Ref B: MAA201060514029 Ref C: 2024-06-17T06:07:31Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_export_metadata_assigned_to_environment.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_export_metadata_assigned_to_environment.yaml new file mode 100644 index 00000000000..189b9a73f61 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_export_metadata_assigned_to_environment.yaml @@ -0,0 +1,70 @@ +interactions: +- request: + body: '{"assignedTo": "environment"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata export + Connection: + - keep-alive + Content-Length: + - '29' + Content-Type: + - application/json + ParameterSetName: + - -g -n --assignments --file-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/exportMetadataSchema?api-version=2024-03-01 + response: + body: + string: '{"format":"json-schema","value":"{\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"string\"},\"WorkspaceName\":{\"type\":\"string\"},\"Name\":{\"type\":\"string\"},\"title\":{\"description\":\"The + name of the environment.\",\"type\":\"string\",\"maxLength\":50},\"kind\":{\"description\":\"Kind + of deployment environment.\",\"type\":\"string\"},\"description\":{\"description\":\"Description + of the environment.\",\"type\":\"string\",\"maxLength\":1000},\"server\":{\"description\":\"Server + information of the environment.\",\"type\":\"object\",\"properties\":{\"type\":{\"description\":\"Type + of the server that represents the environment.\",\"type\":\"string\"},\"managementPortalUri\":{\"description\":\"URIs + of the server''s management portal.\",\"type\":\"array\",\"items\":{\"type\":\"string\"},\"maxItems\":200}}},\"onboarding\":{\"description\":\"Onboarding + information for this environment.\",\"type\":\"object\",\"properties\":{\"instructions\":{\"description\":\"Instructions + how to onboard to the environment.\",\"type\":\"string\",\"maxLength\":1000},\"developerPortalUri\":{\"description\":\"Developer + portal URIs of the environment.\",\"type\":\"array\",\"items\":{\"type\":\"string\"},\"maxItems\":200}}},\"customProperties\":{\"type\":\"object\",\"properties\":{\"clitest000003\":{\"type\":\"boolean\",\"title\":\"Public + Facing\"}},\"unevaluatedProperties\":false,\"required\":[\"clitest000003\"]},\"CatalogNameTypeSafe\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"Name\":{\"type\":\"string\"}}},\"CatalogName\":{\"type\":\"string\"},\"SubscriptionId\":{\"type\":\"string\"},\"SubscriptionIdTypeSafe\":{\"type\":\"string\"},\"ResourceGroupName\":{\"type\":\"string\"},\"ResourceGroupNameTypeSafe\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"Name\":{\"type\":\"string\"}}},\"ETag\":{\"type\":\"string\"},\"Created\":{\"type\":\"string\",\"format\":\"date-time\"},\"Updated\":{\"type\":\"string\",\"format\":\"date-time\"},\"CreatedBy\":{\"type\":\"string\"},\"UpdatedBy\":{\"type\":\"string\"}},\"required\":[\"title\",\"kind\"]}"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '2106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:07:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: D98D9E0FD74F4CEC92D80C15CEB6B869 Ref B: MAA201060516039 Ref C: 2024-06-17T06:07:51Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_export_specification.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_export_specification.yaml new file mode 100644 index 00000000000..8b8651ba58d --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_export_specification.yaml @@ -0,0 +1,268 @@ +interactions: +- request: + body: '{"format": "link", "specification": {"name": "openapi", "version": "3.0.0"}, + "value": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition import-specification + Connection: + - keep-alive + Content-Length: + - '181' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --definition-id --format --value --specification + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/importSpecification?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:03:36 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/08e8fdb93f6141029e4d7835e28b01ba?api-version=2024-03-01&t=638542010176285118&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5ms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m-uIqdEhk4mWeNMEyWsm5RLA&s=FvM4XSkcJY0KIHxMGFUSti2lhzv3-ziTtkACJ46aAQd-VjejLSu6Weahfu-PpLSonarZ8hRtJpEX3KpVGL0qRFTRNXqmMzFTK33q-NaNx1cp9Y78CZZ6N6zeCl2rhhfV4x0M8aynOnp_rEiJx6zZEsOExjGHcfrj7X8h5esu0lL93lWuCpA2jaCo5adQEU2rdtHPvs-Jqj5wU3qaI2sCAot0ZXpOQ1rQcuu6mgUClm3-UfQctcTgl-GaNcLt6VjAo5qkxiai-DgmVSKUdnyE2nSX_g7H5ORktedduz0M8RWJBdCxeF3yhxAg1V639vsjK6NXVc-RY2yZ2nBUsMyudw&h=mS_B5M_VFGVWvanlSKDjIZWe5-m1hbo0EtTSgRGHtbc + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: FC06C8382599492C81C5D4007C58445F Ref B: MAA201060515027 Ref C: 2024-06-17T06:03:36Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition import-specification + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --definition-id --format --value --specification + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/08e8fdb93f6141029e4d7835e28b01ba?api-version=2024-03-01&t=638542010176285118&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w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YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=FvM4XSkcJY0KIHxMGFUSti2lhzv3-ziTtkACJ46aAQd-VjejLSu6Weahfu-PpLSonarZ8hRtJpEX3KpVGL0qRFTRNXqmMzFTK33q-NaNx1cp9Y78CZZ6N6zeCl2rhhfV4x0M8aynOnp_rEiJx6zZEsOExjGHcfrj7X8h5esu0lL93lWuCpA2jaCo5adQEU2rdtHPvs-Jqj5wU3qaI2sCAot0ZXpOQ1rQcuu6mgUClm3-UfQctcTgl-GaNcLt6VjAo5qkxiai-DgmVSKUdnyE2nSX_g7H5ORktedduz0M8RWJBdCxeF3yhxAg1V639vsjK6NXVc-RY2yZ2nBUsMyudw&h=mS_B5M_VFGVWvanlSKDjIZWe5-m1hbo0EtTSgRGHtbc + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/08e8fdb93f6141029e4d7835e28b01ba","name":"08e8fdb93f6141029e4d7835e28b01ba","status":"NotStarted"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '322' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:03:37 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/08e8fdb93f6141029e4d7835e28b01ba?api-version=2024-03-01&t=638542010185034801&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzACh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transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B9745DEBA8E44A1891F959650854DE03 Ref B: MAA201060515027 Ref C: 2024-06-17T06:03:37Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition import-specification + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --definition-id --format --value --specification + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/08e8fdb93f6141029e4d7835e28b01ba?api-version=2024-03-01&t=638542010185034801&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCr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wLiwjOOzgwhssBQ2GvVxeJrhqfkU4-lr0QYrlLt3aN5bZ_qNWXQYTDldiSFMeSqUy1TGQNbrFgehFR6mTHoAsZFPo73-s0DS_mY8MKxFIzvdIDFr5iCHc5KLin_W3Rnfigio5Eov52lrbFJbDIoADfsmkY3HesAohCApmVANbFo_n7p42nj84LMd08qAbXgwigzW-7QcJ9qcUh2RsKlgo4-pWGSIgN4NLPTuUt_WTRq0OZKW8Af14F5AOhzr0cFTh4Ts07rXZ4Q3Ama_vTpgFeged6Oefh2OsUeMvISq28X9CL3-g&h=hxAeDZa8_WV8YSSj6KzcTFZjL3ExHcs_rxGdAIIBre8 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/08e8fdb93f6141029e4d7835e28b01ba","name":"08e8fdb93f6141029e4d7835e28b01ba","status":"Succeeded","startTime":"2024-06-17T06:03:52.8898954+00:00","endTime":"2024-06-17T06:03:53.2679001+00:00"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '415' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:04:09 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: AE2A82ABC1144824B5F99CEEA7258BFE Ref B: MAA201060515027 Ref C: 2024-06-17T06:04:08Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition export-specification + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --api-id --version-id --definition-id --file-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/exportSpecification?api-version=2024-03-01 + response: + body: + string: '{"format":"inline","value":"{\n \"openapi\": \"3.0.0\",\n \"info\": + {\n \"version\": \"1.0.0\",\n \"title\": \"Swagger Petstore\",\n \"license\": + {\n \"name\": \"MIT\"\n }\n },\n \"servers\": [\n {\n \"url\": + \"http://petstore.swagger.io/v1\"\n }\n ],\n \"paths\": {\n \"/pets\": + {\n \"get\": {\n \"summary\": \"List all pets\",\n \"operationId\": + \"listPets\",\n \"tags\": [\n \"pets\"\n ],\n \"parameters\": + [\n {\n \"name\": \"limit\",\n \"in\": \"query\",\n \"description\": + \"How many items to return at one time (max 100)\",\n \"required\": + false,\n \"schema\": {\n \"type\": \"integer\",\n \"maximum\": + 100,\n \"format\": \"int32\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": \"A paged array of pets\",\n \"headers\": + {\n \"x-next\": {\n \"description\": \"A link + to the next page of responses\",\n \"schema\": {\n \"type\": + \"string\"\n }\n }\n },\n \"content\": + {\n \"application/json\": {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pets\"\n }\n }\n }\n },\n \"default\": + {\n \"description\": \"unexpected error\",\n \"content\": + {\n \"application/json\": {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Error\"\n }\n }\n }\n }\n }\n },\n \"post\": + {\n \"summary\": \"Create a pet\",\n \"operationId\": \"createPets\",\n \"tags\": + [\n \"pets\"\n ],\n \"requestBody\": {\n \"content\": + {\n \"application/json\": {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"required\": + true\n },\n \"responses\": {\n \"201\": {\n \"description\": + \"Null response\"\n },\n \"default\": {\n \"description\": + \"unexpected error\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": \"#/components/schemas/Error\"\n }\n }\n }\n }\n }\n }\n },\n \"/pets/{petId}\": + {\n \"get\": {\n \"summary\": \"Info for a specific pet\",\n \"operationId\": + \"showPetById\",\n \"tags\": [\n \"pets\"\n ],\n \"parameters\": + [\n {\n \"name\": \"petId\",\n \"in\": \"path\",\n \"required\": + true,\n \"description\": \"The id of the pet to retrieve\",\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": \"Expected response + to a valid request\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"default\": + {\n \"description\": \"unexpected error\",\n \"content\": + {\n \"application/json\": {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Error\"\n }\n }\n }\n }\n }\n }\n }\n },\n \"components\": + {\n \"schemas\": {\n \"Pet\": {\n \"type\": \"object\",\n \"required\": + [\n \"id\",\n \"name\"\n ],\n \"properties\": + {\n \"id\": {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n },\n \"name\": {\n \"type\": \"string\"\n },\n \"tag\": + {\n \"type\": \"string\"\n }\n }\n },\n \"Pets\": + {\n \"type\": \"array\",\n \"maxItems\": 100,\n \"items\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"Error\": + {\n \"type\": \"object\",\n \"required\": [\n \"code\",\n \"message\"\n ],\n \"properties\": + {\n \"code\": {\n \"type\": \"integer\",\n \"format\": + \"int32\"\n },\n \"message\": {\n \"type\": \"string\"\n }\n }\n }\n }\n }\n}"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '4805' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:04:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 4424D27B4E844B0CA0381B2DC6151638 Ref B: MAA201060513021 Ref C: 2024-06-17T06:04:11Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_import_all_apis_from_apim.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_import_all_apis_from_apim.yaml new file mode 100644 index 00000000000..07419dd0125 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_import_all_apis_from_apim.yaml @@ -0,0 +1,1097 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","identity":{"type":"SystemAssigned","principalId":"2f1208e3-79c2-4a6f-984e-80d9674ab268","tenantId":"f0348563-e707-449c-8685-c83d24eaf3c0"},"sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{},"systemData":{"createdAt":"2024-06-17T06:10:25.2594092Z","lastModifiedAt":"2024-06-17T06:10:25.2593992Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '515' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:10:28 GMT + etag: + - bb01e35d-0000-0100-0000-666fd3520000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: EF9178F6421D4271B9049A40C78035E8 Ref B: MAA201060514051 Ref C: 2024-06-17T06:10:27Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clirg000001?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_examples_import_all_apis_from_apim","date":"2024-06-17T06:10:33Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '375' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:10:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 42142D8D180444DF8520A565011172AB Ref B: MAA201060515047 Ref C: 2024-06-17T06:10:30Z' + status: + code: 200 + message: OK +- request: + body: '{"sku": {"name": "Consumption", "capacity": 0}, "location": "eastus", "properties": + {"notificationSenderEmail": "test@example.com", "virtualNetworkType": "None", + "restore": false, "publisherEmail": "test@example.com", "publisherName": "test"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + Content-Length: + - '243' + Content-Type: + - application/json + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003?api-version=2022-08-01 + response: + body: + string: '{"etag":"AAAAAAGVG50=","properties":{"publisherEmail":"test@example.com","publisherName":"test","notificationSenderEmail":"test@example.com","provisioningState":"Activating","targetProvisioningState":"Activating","createdAtUtc":"2024-06-17T06:10:35.1612305Z","gatewayUrl":"https://cli000003.azure-api.net","gatewayRegionalUrl":null,"portalUrl":null,"developerPortalUrl":null,"managementApiUrl":null,"scmUrl":null,"hostnameConfigurations":[{"type":"Proxy","hostName":"cli000003.azure-api.net","encodedCertificate":null,"keyVaultId":null,"certificatePassword":null,"negotiateClientCertificate":false,"certificate":null,"defaultSslBinding":true,"identityClientId":null,"certificateSource":"BuiltIn","certificateStatus":null}],"publicIPAddresses":null,"privateIPAddresses":null,"additionalLocations":null,"virtualNetworkConfiguration":null,"customProperties":null,"virtualNetworkType":"None","certificates":null,"disableGateway":false,"natGatewayState":"Disabled","outboundPublicIPAddresses":null,"apiVersionConstraint":{"minApiVersion":null},"publicIpAddressId":null,"publicNetworkAccess":"Enabled","privateEndpointConnections":null,"platformVersion":"mtv1"},"sku":{"name":"Consumption","capacity":0},"identity":null,"zones":null,"systemData":{"createdBy":"blackchoey@outlook.com","createdByType":"User","createdAt":"2024-06-17T06:10:34.2427342Z","lastModifiedBy":"blackchoey@outlook.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-17T06:10:34.2427342Z"},"location":"East + US","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","name":"cli000003","type":"Microsoft.ApiManagement/service"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542014390084141&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs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SNAw&h=Bd_085qLD0fRh5K0GaRWwGzycZp3ETgpuiUgEJXBB68 + cache-control: + - no-cache + content-length: + - '1692' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:10:38 GMT + etag: + - '"AAAAAAGVG50="' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542014390084141&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQ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lYJ9DzUHjGhguDm9vUhALDAZIXXnP4L-plxZvrON2y4E8R52vFKkiGJSQznXzPSNAw&h=Bd_085qLD0fRh5K0GaRWwGzycZp3ETgpuiUgEJXBB68 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 5F6E15CE6C14410BA32E6EA81C09F49D Ref B: MAA201060516023 Ref C: 2024-06-17T06:10:31Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542014390084141&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF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SilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=FhbkNCvSWQZtF6MXHlcJmSVAmeBEfCxKOJMVOjkvucXjQTnMHsg6goA03_-jYYfDgpxN6LqlcBa0EgGm8AN-Qdk571Oz97HbSg22EPBQuM6ndLFWzHUS2xQE4QbrYdUbPjLKqNbu6PkreD9EJGDKCZm_6iRfuDJnjWdTVV0TV0xRtAZxTjdipM01hPfE9DLZJ1I3x8Jp40CfPz5BbflDRtI5d7CTMelUVuYlhJYKWFRcJOXMDJMBpbo2-sTBoss09J7AEzGTYeG17copHglHlYJ9DzUHjGhguDm9vUhALDAZIXXnP4L-plxZvrON2y4E8R52vFKkiGJSQznXzPSNAw&h=Bd_085qLD0fRh5K0GaRWwGzycZp3ETgpuiUgEJXBB68 + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542014404788106&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldj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8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=TKMbV58qKHGXqMmF-n4uFKrRnOwIaclxmhrfNJBeRPJSilCoWbdYEu8CNEflrdjplkOhCPTJi50iHkyWFUp03Lq254wHtwrWQa3BLHvrVkqYbc_a8_OtpjtiXprYaMVxDvEQbHz9fMPga9CDYOEda3S_gZunMLJIRvhokBli6VhoRWYVsLxPN0Meh_qBJ_jVOoJkqp_WBswPKVxMbOufz-dZEJyVHLcDvv9HBqRnasY74RjqCgFxyfOtjDjPo5BCrpU9h-YnU7tXoBEb5t5JPs_CJuA1sqJdROeWPUHeWdROLYz9LCe3JDcO0J_hdwVWKE5MM3zBdHUmfSxLz72iYg&h=YA2O6sFRflPq4Hw3f96UOHDbEHb6RxNiw-R8ulcGJNw + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:10:40 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542014404944239&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmS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oPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=bH3XyIVGfdd3YjwKdlHb0YoW2gzta-LC_ki9RAGljc9JjcH7EA0syqjqOIE9Ph7_rTeZeS7jkPdgeQcogV4TDgpAI5BUEuQX6tvd4olVbvcBqpL4ZFQyPi3N9J6Gni5KphBZDS5FqJvCaw4W_SD22wy-gQzOMqHaoto-6bER4EZoK5dbBUuiS-HNlYWJwAUVd5uENe_pae0aRkiQHEm3NdHxdpg9tmQRph41Ej9036E19PirY9seO6TV5O9L_epbCR0M_SMr2Z3ja3yASVYUR8FOgmE_9Th5ems5Hz3KkMtQ-EuYZ0t7tUg_6uAGWPIpdE-UXyq1Id2Bp85JWic6sA&h=3g3QFuWpWltg0QvMGRabiPTx9mKP_qVglWmaF2eVvkc + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: CD6F8E4599BC41A3830D9D48228B5601 Ref B: MAA201060516023 Ref C: 2024-06-17T06:10:39Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542014390084141&c=MIIHpTCCBo2gAwIBAgITOgMPIy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SMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=FhbkNCvSWQZtF6MXHlcJmSVAmeBEfCxKOJMVOjkvucXjQTnMHsg6goA03_-jYYfDgpxN6LqlcBa0EgGm8AN-Qdk571Oz97HbSg22EPBQuM6ndLFWzHUS2xQE4QbrYdUbPjLKqNbu6PkreD9EJGDKCZm_6iRfuDJnjWdTVV0TV0xRtAZxTjdipM01hPfE9DLZJ1I3x8Jp40CfPz5BbflDRtI5d7CTMelUVuYlhJYKWFRcJOXMDJMBpbo2-sTBoss09J7AEzGTYeG17copHglHlYJ9DzUHjGhguDm9vUhALDAZIXXnP4L-plxZvrON2y4E8R52vFKkiGJSQznXzPSNAw&h=Bd_085qLD0fRh5K0GaRWwGzycZp3ETgpuiUgEJXBB68 + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542014619613648&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3J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Tl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=SAC3d49r8c3dRyg3soo2ANGUGxAT3NRgllPm36tMORTNn91ty9LtfrFXjl1IauqDPQZmXysEVof3nS5SoAmCt9dHndFmBF7ib_VjylYEnukYKiWcFiOqWypiHxR2OlKnaTJj1DV5k_JU2ohvIu_XbyL-erOnjtfRb85fPeE-sbpUMRYpFjBFrRmLsZjtb6CtknDhJnEexNbAXQ6PZGiVBVKfeJkWKPRcdVQ_r1ZM391LY28HUGYZeRujizgw-GpPq32nTDCQ5GvMy7AGcM6D5y7RHS-OVnNyyRYQ-69NBfJ6G2n6wOqWA9fLjwaQUW4F-vBJ3lrh-4N3WPHOa-lAOQ&h=XWqNGCLBumSRe1dYqltL7kR5PMsfiEujAUGiXox4HRA + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:11:01 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542014619613648&c=MIIHp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KwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=SAC3d49r8c3dRyg3soo2ANGUGxAT3NRgllPm36tMORTNn91ty9LtfrFXjl1IauqDPQZmXysEVof3nS5SoAmCt9dHndFmBF7ib_VjylYEnukYKiWcFiOqWypiHxR2OlKnaTJj1DV5k_JU2ohvIu_XbyL-erOnjtfRb85fPeE-sbpUMRYpFjBFrRmLsZjtb6CtknDhJnEexNbAXQ6PZGiVBVKfeJkWKPRcdVQ_r1ZM391LY28HUGYZeRujizgw-GpPq32nTDCQ5GvMy7AGcM6D5y7RHS-OVnNyyRYQ-69NBfJ6G2n6wOqWA9fLjwaQUW4F-vBJ3lrh-4N3WPHOa-lAOQ&h=XWqNGCLBumSRe1dYqltL7kR5PMsfiEujAUGiXox4HRA + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: E44BF29FC1E8452BB1E1B67B5E7A9965 Ref B: MAA201060516023 Ref C: 2024-06-17T06:11:00Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542014390084141&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIw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glHlYJ9DzUHjGhguDm9vUhALDAZIXXnP4L-plxZvrON2y4E8R52vFKkiGJSQznXzPSNAw&h=Bd_085qLD0fRh5K0GaRWwGzycZp3ETgpuiUgEJXBB68 + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542014834120466&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBB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MXS0G0gq1S6a9jzoDjca8dtglcyFPWvcb5obHXWtwEEslAJlUDHOMsu4R1nQ&h=HjaU-sZq93R2mXuB60rTopwAFZ81ulv93uYeEc25ljg + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:11:22 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542014834276739&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAw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KVLOpwVUox-8TcSSvkosYcIycnP4c-cjnq5gjEzumQLEsPqD-5It0fSDNXW7bBajdAagzIakao-CwBhX0aEaQ&h=truCqrkYHZFLp9krVblFij_tpgKfR0g_P9i_3c8WpyQ + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 212D107CAB16429DACA68A86C6F845F2 Ref B: MAA201060516023 Ref C: 2024-06-17T06:11:22Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542014390084141&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbduc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nqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=FhbkNCvSWQZtF6MXHlcJmSVAmeBEfCxKOJMVOjkvucXjQTnMHsg6goA03_-jYYfDgpxN6LqlcBa0EgGm8AN-Qdk571Oz97HbSg22EPBQuM6ndLFWzHUS2xQE4QbrYdUbPjLKqNbu6PkreD9EJGDKCZm_6iRfuDJnjWdTVV0TV0xRtAZxTjdipM01hPfE9DLZJ1I3x8Jp40CfPz5BbflDRtI5d7CTMelUVuYlhJYKWFRcJOXMDJMBpbo2-sTBoss09J7AEzGTYeG17copHglHlYJ9DzUHjGhguDm9vUhALDAZIXXnP4L-plxZvrON2y4E8R52vFKkiGJSQznXzPSNAw&h=Bd_085qLD0fRh5K0GaRWwGzycZp3ETgpuiUgEJXBB68 + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542015041790934&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2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oTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=yNVpPGOUCk2wW2kAYMiNieiUE2DDQlxlLQnFjoNpfWxOCxYjiBGlOzH_awFHlGEQn9LLKTciyfD_7tsDhVOcefhje1zryd6TwXgUJRdxvOhMC0uBDdCcItaxYcnqFZBwLJhuhPjZo7SDqA_Bawaavpf1gM9GKf2HGbpL-wObLeJPRZ8pT1KeNHv1s3y5bTAzntEFjF7_BrBW6639Z6hS5elvwtEiBF_G89kIM6AtFdxDGbuzn0P73GYc46_2suuaM5B3VQXQX6m_obhBIgCF31UmkP_-R3JNR3uWqkqWhGF6-4vdeFpr2T8a39b3dLsut4TnlpcbVoT06vaMFNtOqA&h=GI452w8RlGSTiLeTBWcs-o9hh9M3d9qMDp1hGXOpQ4U + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:11:43 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542015042415958&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacr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eqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=FBmADgh43kYpT7ToRHW5qLIF7ZuQLLpqvkT9EtPXLnInkwN2nL0dz5w7fous-NdfBlE-D8HMDEBogDD2WhOZfRj8wxhl8gvit1bBurps6x5kN4zwvXEAFAIWjBnv1I2Xwd_eMUjijc-8lcIEF9RYepfVYuaQqTADt8Le7-q4I0iLdpttM0-nJR0TREn42mpK5enihunkv91MouyIluwr0-TCFAQVbTXQRwTKhE3g7k-tcLNfF-JPhn24QDizU2vsSAaedmb6xwBm4VHZjs208-OEQOVtG7xfnlBJZj16-K8YFz-JqhVWFkGQXWLJMzbOqQn74iGvO-f_fod_ik4ZNg&h=OpOKKXJg6M3mmGesup2wZ1lIVNMW9NWjtMpAaSHwS48 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 0ADBECAAA0F9438A9F5DF0C0D5B95B0B Ref B: MAA201060516023 Ref C: 2024-06-17T06:11:43Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXZlYTZveXVmenM2aXBncnYya2x3dF9BY3RfYTVhN2FkMDE=?api-version=2022-08-01&asyncResponse&t=638542014390084141&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKz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urvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=FhbkNCvSWQZtF6MXHlcJmSVAmeBEfCxKOJMVOjkvucXjQTnMHsg6goA03_-jYYfDgpxN6LqlcBa0EgGm8AN-Qdk571Oz97HbSg22EPBQuM6ndLFWzHUS2xQE4QbrYdUbPjLKqNbu6PkreD9EJGDKCZm_6iRfuDJnjWdTVV0TV0xRtAZxTjdipM01hPfE9DLZJ1I3x8Jp40CfPz5BbflDRtI5d7CTMelUVuYlhJYKWFRcJOXMDJMBpbo2-sTBoss09J7AEzGTYeG17copHglHlYJ9DzUHjGhguDm9vUhALDAZIXXnP4L-plxZvrON2y4E8R52vFKkiGJSQznXzPSNAw&h=Bd_085qLD0fRh5K0GaRWwGzycZp3ETgpuiUgEJXBB68 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:12:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: AD64F8D8B96D4365B6C800A0813CE090 Ref B: MAA201060516023 Ref C: 2024-06-17T06:12:04Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003?api-version=2022-08-01 + response: + body: + string: '{"etag":"AAAAAAGVG64=","properties":{"publisherEmail":"test@example.com","publisherName":"test","notificationSenderEmail":"test@example.com","provisioningState":"Succeeded","targetProvisioningState":"","createdAtUtc":"2024-06-17T06:10:35.1612305Z","gatewayUrl":"https://cli000003.azure-api.net","gatewayRegionalUrl":null,"portalUrl":null,"developerPortalUrl":null,"managementApiUrl":null,"scmUrl":null,"hostnameConfigurations":[{"type":"Proxy","hostName":"cli000003.azure-api.net","encodedCertificate":null,"keyVaultId":null,"certificatePassword":null,"negotiateClientCertificate":false,"certificate":null,"defaultSslBinding":true,"identityClientId":null,"certificateSource":"BuiltIn","certificateStatus":null}],"publicIPAddresses":null,"privateIPAddresses":null,"additionalLocations":null,"virtualNetworkConfiguration":null,"customProperties":{"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2":"False"},"virtualNetworkType":"None","certificates":null,"disableGateway":false,"natGatewayState":"Disabled","outboundPublicIPAddresses":null,"apiVersionConstraint":{"minApiVersion":null},"publicIpAddressId":null,"publicNetworkAccess":"Enabled","privateEndpointConnections":null,"platformVersion":"mtv1"},"sku":{"name":"Consumption","capacity":0},"identity":null,"zones":null,"systemData":{"createdBy":"blackchoey@outlook.com","createdByType":"User","createdAt":"2024-06-17T06:10:34.2427342Z","lastModifiedBy":"blackchoey@outlook.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-17T06:10:34.2427342Z"},"location":"East + US","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","name":"cli000003","type":"Microsoft.ApiManagement/service"}' + headers: + cache-control: + - no-cache + content-length: + - '2180' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:06 GMT + etag: + - '"AAAAAAGVG64="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: AD722A29AF9546D4A19B236887AFEE05 Ref B: MAA201060516023 Ref C: 2024-06-17T06:12:05Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"type": "http", "subscriptionRequired": false, "displayName": + "Echo API", "path": "/echo", "protocols": ["https"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + Content-Length: + - '131' + Content-Type: + - application/json + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"echo\",\r\n \"properties\": {\r\n \"displayName\": \"Echo API\",\r\ + \n \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"echo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null\r\n },\r\n \"subscriptionKeyParameterNames\": {\r\n \ + \ \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\": \"subscription-key\"\ + \r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '721' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:09 GMT + etag: + - '"AAAAAOMyfLY="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 70541D11087843C48E74E01067D8D7C4 Ref B: MAA201060516009 Ref C: 2024-06-17T06:12:09Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"echo\",\r\n \"properties\": {\r\n \"displayName\": \"Echo API\",\r\ + \n \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"echo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null,\r\n \"oAuth2AuthenticationSettings\": [],\r\n \"\ + openidAuthenticationSettings\": []\r\n },\r\n \"subscriptionKeyParameterNames\"\ + : {\r\n \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\"\ + : \"subscription-key\"\r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '807' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:10 GMT + etag: + - '"AAAAAOMyfLY="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 465358079DE0480AA35F3AD594A86A2E Ref B: MAA201060516009 Ref C: 2024-06-17T06:12:10Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "GetOperation", "method": "GET", "urlTemplate": + "/echo"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api operation create + Connection: + - keep-alive + Content-Length: + - '88' + Content-Type: + - application/json + If-Match: + - '*' + ParameterSetName: + - -g --service-name --api-id --url-template --method --display-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo/operations/7bc67ee8531748229ba0b5b4a649603c?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo/operations/7bc67ee8531748229ba0b5b4a649603c\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis/operations\",\r\n\ + \ \"name\": \"7bc67ee8531748229ba0b5b4a649603c\",\r\n \"properties\": {\r\ + \n \"displayName\": \"GetOperation\",\r\n \"method\": \"GET\",\r\n \ + \ \"urlTemplate\": \"/echo\",\r\n \"templateParameters\": [],\r\n \ + \ \"description\": null,\r\n \"request\": {\r\n \"queryParameters\"\ + : [],\r\n \"headers\": [],\r\n \"representations\": []\r\n },\r\ + \n \"responses\": [],\r\n \"policies\": null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '629' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:12 GMT + etag: + - '"AAAAAOMyfMY="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: F22CC9B0B11C42888241D377F479C902 Ref B: MAA201060515019 Ref C: 2024-06-17T06:12:12Z' + status: + code: 201 + message: Created +- request: + body: '{"properties": {"type": "http", "subscriptionRequired": false, "displayName": + "Foo API", "path": "/foo", "protocols": ["https"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + Content-Length: + - '129' + Content-Type: + - application/json + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"foo\",\r\n \"properties\": {\r\n \"displayName\": \"Foo API\",\r\n\ + \ \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"foo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null\r\n },\r\n \"subscriptionKeyParameterNames\": {\r\n \ + \ \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\": \"subscription-key\"\ + \r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '717' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:14 GMT + etag: + - '"AAAAAOMyfM0="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 23E0AE180133467882FACD414065A214 Ref B: MAA201060515053 Ref C: 2024-06-17T06:12:14Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"foo\",\r\n \"properties\": {\r\n \"displayName\": \"Foo API\",\r\n\ + \ \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"foo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null,\r\n \"oAuth2AuthenticationSettings\": [],\r\n \"\ + openidAuthenticationSettings\": []\r\n },\r\n \"subscriptionKeyParameterNames\"\ + : {\r\n \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\"\ + : \"subscription-key\"\r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '803' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:16 GMT + etag: + - '"AAAAAOMyfM0="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 0A760DA4D3A641B5BAAA0775C70FD4F1 Ref B: MAA201060515053 Ref C: 2024-06-17T06:12:15Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "GetOperation", "method": "GET", "urlTemplate": + "/foo"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api operation create + Connection: + - keep-alive + Content-Length: + - '87' + Content-Type: + - application/json + If-Match: + - '*' + ParameterSetName: + - -g --service-name --api-id --url-template --method --display-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo/operations/4faae4121fd64f6ab40ed4075c99f1a8?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo/operations/4faae4121fd64f6ab40ed4075c99f1a8\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis/operations\",\r\n\ + \ \"name\": \"4faae4121fd64f6ab40ed4075c99f1a8\",\r\n \"properties\": {\r\ + \n \"displayName\": \"GetOperation\",\r\n \"method\": \"GET\",\r\n \ + \ \"urlTemplate\": \"/foo\",\r\n \"templateParameters\": [],\r\n \"\ + description\": null,\r\n \"request\": {\r\n \"queryParameters\": [],\r\ + \n \"headers\": [],\r\n \"representations\": []\r\n },\r\n \ + \ \"responses\": [],\r\n \"policies\": null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '627' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:18 GMT + etag: + - '"AAAAAOMyfNw="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2998' + x-ms-ratelimit-remaining-subscription-writes: + - '198' + x-msedge-ref: + - 'Ref A: 5C7C23672EAF403FB641A6E19511C635 Ref B: MAA201060516011 Ref C: 2024-06-17T06:12:17Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --role --assignee-object-id --assignee-principal-type --scope + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27API%20Management%20Service%20Reader%20Role%27&api-version=2022-05-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"API Management Service Reader + Role","type":"BuiltInRole","description":"Read-only access to service and + APIs","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.ApiManagement/service/*/read","Microsoft.ApiManagement/service/read","Microsoft.Authorization/*/read","Microsoft.Insights/alertRules/*","Microsoft.ResourceHealth/availabilityStatuses/read","Microsoft.Resources/deployments/*","Microsoft.Resources/subscriptions/resourceGroups/read","Microsoft.Support/*"],"notActions":["Microsoft.ApiManagement/service/users/keys/read"],"dataActions":[],"notDataActions":[]}],"createdOn":"2016-11-09T00:26:45.1540473Z","updatedOn":"2021-11-11T20:13:11.8704466Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d","type":"Microsoft.Authorization/roleDefinitions","name":"71522526-b88f-4d52-b57f-d31fc3546d0d"}]}' + headers: + cache-control: + - no-cache + content-length: + - '982' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:19 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 2D7096564A2D40998572CC186E493CDE Ref B: MAA201060515017 Ref C: 2024-06-17T06:12:20Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d", + "principalId": "2f1208e3-79c2-4a6f-984e-80d9674ab268", "principalType": "ServicePrincipal"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '270' + Content-Type: + - application/json + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --role --assignee-object-id --assignee-principal-type --scope + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleAssignments/3b59f2d4-ceb1-475f-9ca7-e1861c2d3410?api-version=2022-04-01 + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d","principalId":"2f1208e3-79c2-4a6f-984e-80d9674ab268","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","condition":null,"conditionVersion":null,"createdOn":"2024-06-17T06:12:21.1454984Z","updatedOn":"2024-06-17T06:12:21.5995070Z","createdBy":null,"updatedBy":"7557db67-613b-4194-a890-de2ba9a4ec8e","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleAssignments/3b59f2d4-ceb1-475f-9ca7-e1861c2d3410","type":"Microsoft.Authorization/roleAssignments","name":"3b59f2d4-ceb1-475f-9ca7-e1861c2d3410"}' + headers: + cache-control: + - no-cache + content-length: + - '981' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2998' + x-ms-ratelimit-remaining-subscription-writes: + - '198' + x-msedge-ref: + - 'Ref A: 4090265B247244E4B0F5A6A03B5F3A3B Ref B: MAA201060515017 Ref C: 2024-06-17T06:12:20Z' + status: + code: 201 + message: Created +- request: + body: '{"sourceResourceIds": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/*"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic import-from-apim + Connection: + - keep-alive + Content-Length: + - '164' + Content-Type: + - application/json + ParameterSetName: + - -g --service-name --apim-name --apim-apis + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/importFromApim?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:12:26 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/d309e38f6ef44117a7b9525ce7fe7a61?api-version=2024-03-01&t=638542015461884458&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZ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BgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=QIM67u5BCr6fVFXJVKlf85aH-dh7a535JA5n_KP1orc2vHpjW7O78KuNE86DYWoiSvAaL2B6WA_ofOSOhURaPRWzKluSH8Nwa2D8XABCtTu_xpNg6HUMChl-hJ1WgIiJD2NwCuoSy1B4NqvQW68p7-Bvym-L4fueOhmWmv18owzUo9Cmr6dgCLCvTifTdR5MhCFbIjTe4VEun8udmwjeBlWD5JdiEk4VYSGpp6b8M-zjtiQ_Q2AruUWvy44bvFngoi3ByPQaK9gUEpSg8IiP6A2jByU5E7qiAvHPU7pC955TuPso7MhfhN2R9K6kZ5-UmSGYPw8umZc9TLS8w4tbpA&h=XIHp9a4pnCrAiaIUpzzXw9EmFzuPcU1ARTMOVySmHro + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 27758888D2F04DA489D060BAF9F51571 Ref B: MAA201060516035 Ref C: 2024-06-17T06:12:24Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic import-from-apim + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --apim-name --apim-apis + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/d309e38f6ef44117a7b9525ce7fe7a61?api-version=2024-03-01&t=638542015461884458&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4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9a4pnCrAiaIUpzzXw9EmFzuPcU1ARTMOVySmHro + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/d309e38f6ef44117a7b9525ce7fe7a61","name":"d309e38f6ef44117a7b9525ce7fe7a61","status":"InProgress","startTime":"2024-06-17T06:12:26.0865993+00:00"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '302' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:27 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/d309e38f6ef44117a7b9525ce7fe7a61?api-version=2024-03-01&t=638542015474971649&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljL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XttktvxM_fo290UVcEqY4PWi1edtLS5iW_fzLDitGAKliTwrknJuW87boVIdokZWdaafh8S6FncEJWIJRch46rHCaMPVj1d2gF17cANbt8VocKB28tjPGTitVWEgQRWY1IL2ThUJpFPLkTBEmXolXa3kLoVg3fYYHv-AAbGs2NqGl8Kn61vV1mqpBlkKJw7vRRT7dZ3a-A11lC-bS0IIU1j8-qMAT-A&h=jYdVR75bUYiVZIqd9oBDYWTcEXypwPq0CiAyaRZIEHA + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 3DE90D105F2C477B81ECD627BC68D313 Ref B: MAA201060516035 Ref C: 2024-06-17T06:12:26Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic import-from-apim + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --apim-name --apim-apis + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/d309e38f6ef44117a7b9525ce7fe7a61?api-version=2024-03-01&t=638542015474971649&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5t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407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=Bw4eTFUDtxMfoE0LYcrr3w8nFjcGqE1J7u32pB9_rzJs6b8Xp2m0Fgp7BtToia8mzpvNtQbA4Ed4ctB-G70Q_G3NHAa0p_-Wpen7AkcnGtvpZoY2i8KZJA-XttktvxM_fo290UVcEqY4PWi1edtLS5iW_fzLDitGAKliTwrknJuW87boVIdokZWdaafh8S6FncEJWIJRch46rHCaMPVj1d2gF17cANbt8VocKB28tjPGTitVWEgQRWY1IL2ThUJpFPLkTBEmXolXa3kLoVg3fYYHv-AAbGs2NqGl8Kn61vV1mqpBlkKJw7vRRT7dZ3a-A11lC-bS0IIU1j8-qMAT-A&h=jYdVR75bUYiVZIqd9oBDYWTcEXypwPq0CiAyaRZIEHA + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/d309e38f6ef44117a7b9525ce7fe7a61","name":"d309e38f6ef44117a7b9525ce7fe7a61","status":"Succeeded","startTime":"2024-06-17T06:12:26.0865993+00:00","endTime":"2024-06-17T06:12:48.3171848+00:00"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '347' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 286003F9892A40F58A9AE7CFCA484445 Ref B: MAA201060516035 Ref C: 2024-06-17T06:12:57Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_import_selected_apis_from_apim.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_import_selected_apis_from_apim.yaml new file mode 100644 index 00000000000..bb670bcc9af --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_import_selected_apis_from_apim.yaml @@ -0,0 +1,1148 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","identity":{"type":"SystemAssigned","principalId":"a4fdb746-5910-4726-b11c-43bdd6cbf439","tenantId":"f0348563-e707-449c-8685-c83d24eaf3c0"},"sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{},"systemData":{"createdAt":"2024-06-17T06:09:53.468104Z","lastModifiedAt":"2024-06-17T06:09:53.4680927Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '514' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:56 GMT + etag: + - bb01bf59-0000-0100-0000-666fd3320000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 4745D7A58B2346C1A81DB1915758CBA0 Ref B: MAA201060516045 Ref C: 2024-06-17T06:09:55Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clirg000001?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_examples_import_selected_apis_from_apim","date":"2024-06-17T06:10:00Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '380' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B664531D7F3340A18F0B9442C9F996D5 Ref B: MAA201060513023 Ref C: 2024-06-17T06:09:58Z' + status: + code: 200 + message: OK +- request: + body: '{"sku": {"name": "Consumption", "capacity": 0}, "location": "eastus", "properties": + {"notificationSenderEmail": "test@example.com", "virtualNetworkType": "None", + "restore": false, "publisherEmail": "test@example.com", "publisherName": "test"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + Content-Length: + - '243' + Content-Type: + - application/json + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003?api-version=2022-08-01 + response: + body: + string: '{"etag":"AAAAAAGVG5I=","properties":{"publisherEmail":"test@example.com","publisherName":"test","notificationSenderEmail":"test@example.com","provisioningState":"Activating","targetProvisioningState":"Activating","createdAtUtc":"2024-06-17T06:10:02.9271758Z","gatewayUrl":"https://cli000003.azure-api.net","gatewayRegionalUrl":null,"portalUrl":null,"developerPortalUrl":null,"managementApiUrl":null,"scmUrl":null,"hostnameConfigurations":[{"type":"Proxy","hostName":"cli000003.azure-api.net","encodedCertificate":null,"keyVaultId":null,"certificatePassword":null,"negotiateClientCertificate":false,"certificate":null,"defaultSslBinding":true,"identityClientId":null,"certificateSource":"BuiltIn","certificateStatus":null}],"publicIPAddresses":null,"privateIPAddresses":null,"additionalLocations":null,"virtualNetworkConfiguration":null,"customProperties":null,"virtualNetworkType":"None","certificates":null,"disableGateway":false,"natGatewayState":"Disabled","outboundPublicIPAddresses":null,"apiVersionConstraint":{"minApiVersion":null},"publicIpAddressId":null,"publicNetworkAccess":"Enabled","privateEndpointConnections":null,"platformVersion":"mtv1"},"sku":{"name":"Consumption","capacity":0},"identity":null,"zones":null,"systemData":{"createdBy":"blackchoey@outlook.com","createdByType":"User","createdAt":"2024-06-17T06:10:02.7866207Z","lastModifiedBy":"blackchoey@outlook.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-17T06:10:02.7866207Z"},"location":"East + US","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","name":"cli000003","type":"Microsoft.ApiManagement/service"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014056459700&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJ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3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=sFHMY2g_QX6VjrbY3xvjGFsy_GtJ5uLA0oetCCAtnTlNGCer7CVh7HyD10hxDcis5IFe10umE_alyN09cQpDl7nS8q39BhcA_8aH4OciQGzr_kEFMA10HxxR43G1LZtGOUTiLri3PK_aF1B2fRRfKg4qxnx1lpuaOxAtjrLKnRpcqIzmEWPlj5xFQet761T_Lw1pJzK5_-xPTY347VeKC5_4nekluSPKgiwYWQEk2_-_q_D5mBWELsSOgTrfKCFSKyTiIHukAZYSh9ZBjHXnrXy1ecpiDNJthgfTkoa8Uv0jALm-XZrlujPiCu3eljcr53qPEKpmc8FopY0J5KSIgw&h=m2YMf7Y8lzYbALC4sUJp_x-3RhfDlsojFoLggELOupg + cache-control: + - no-cache + content-length: + - '1692' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:10:04 GMT + etag: + - '"AAAAAAGVG5I="' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014056459700&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi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Y3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=sFHMY2g_QX6VjrbY3xvjGFsy_GtJ5uLA0oetCCAtnTlNGCer7CVh7HyD10hxDcis5IFe10umE_alyN09cQpDl7nS8q39BhcA_8aH4OciQGzr_kEFMA10HxxR43G1LZtGOUTiLri3PK_aF1B2fRRfKg4qxnx1lpuaOxAtjrLKnRpcqIzmEWPlj5xFQet761T_Lw1pJzK5_-xPTY347VeKC5_4nekluSPKgiwYWQEk2_-_q_D5mBWELsSOgTrfKCFSKyTiIHukAZYSh9ZBjHXnrXy1ecpiDNJthgfTkoa8Uv0jALm-XZrlujPiCu3eljcr53qPEKpmc8FopY0J5KSIgw&h=m2YMf7Y8lzYbALC4sUJp_x-3RhfDlsojFoLggELOupg + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 43E1092F2CCD4C78B245C4E353DC7DFF Ref B: MAA201060513047 Ref C: 2024-06-17T06:10:00Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014056459700&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaROb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Vh7HyD10hxDcis5IFe10umE_alyN09cQpDl7nS8q39BhcA_8aH4OciQGzr_kEFMA10HxxR43G1LZtGOUTiLri3PK_aF1B2fRRfKg4qxnx1lpuaOxAtjrLKnRpcqIzmEWPlj5xFQet761T_Lw1pJzK5_-xPTY347VeKC5_4nekluSPKgiwYWQEk2_-_q_D5mBWELsSOgTrfKCFSKyTiIHukAZYSh9ZBjHXnrXy1ecpiDNJthgfTkoa8Uv0jALm-XZrlujPiCu3eljcr53qPEKpmc8FopY0J5KSIgw&h=m2YMf7Y8lzYbALC4sUJp_x-3RhfDlsojFoLggELOupg + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014071081586&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jK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szbMTy4QU2AXryhvpLPpth-QtCtnqOb-kpL4bCi4wK6TB2oa1j2Fv3wi4yoxUQEH1BkKE7baX0Zj9vyfWAr7C4QLfRUbJw68Jap6iTxDOyUy2y8oxsuuPGWAsmkmZ8iIFrEGcevj4MKMN7QxopyCRoDC1_uGJVwhZBNv_GQ8EtzsvToqNHJz2skxw6KEVCWYaffwcQnJnORNmEFSAXBPMbhjlF68zR8NAQGSX6SbbS6ZG9RQ2PYiAuE6Z7iYHfyn0uCznwMnq2VJJywBXzqQ&h=Ts0rp51KIrrEToCFj2YsgczSbpgZj6wQJLtUG7vmq74 + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:10:06 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014071237861&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZ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7ffTMMECVNwsC3TtaGS_q4XIJtVEpbyYXfedHse5dBRmH_WXRlHj3vfcESoMHMSsEaN1-NLK6Ek0Lo9BgZple5N4Amd9JFAiVYC_R6iIwbUg1xY1JEE8XX6KqVtttxYCXWS_9EfrIi7UTcJEzITix3Ym1iTSZVXpwqgRQppX9oQlUDYdzmQSGm0LmIPxS9LvyaAW5lSS0PZ-NuXe7aiJtX4Lmr1REzutaXINARA8LyAfz3enSzUUaKyO-9xXV3VkuunFRp8rRROMIPXTiJ3Mtf4KKuQHW-P1oRj8rSIaEar7Gc3k3HQeYZE7poVng&h=XlLXc1iNDOUpeDbXFXc7e0JIf2Y64vZItvq37XBRsnM + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 1CA9DA85B88A414D81D1FC9B1DE16AD1 Ref B: MAA201060513047 Ref C: 2024-06-17T06:10:05Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014056459700&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GU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fxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=sFHMY2g_QX6VjrbY3xvjGFsy_GtJ5uLA0oetCCAtnTlNGCer7CVh7HyD10hxDcis5IFe10umE_alyN09cQpDl7nS8q39BhcA_8aH4OciQGzr_kEFMA10HxxR43G1LZtGOUTiLri3PK_aF1B2fRRfKg4qxnx1lpuaOxAtjrLKnRpcqIzmEWPlj5xFQet761T_Lw1pJzK5_-xPTY347VeKC5_4nekluSPKgiwYWQEk2_-_q_D5mBWELsSOgTrfKCFSKyTiIHukAZYSh9ZBjHXnrXy1ecpiDNJthgfTkoa8Uv0jALm-XZrlujPiCu3eljcr53qPEKpmc8FopY0J5KSIgw&h=m2YMf7Y8lzYbALC4sUJp_x-3RhfDlsojFoLggELOupg + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014279262377&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHh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G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=UGwIE18TcGbBCW0ysZT7_MMKI7IOtUW-lADzdE9HME50d4g30hRwiKRwwJWQy1fgRPUk1apJNizRWt3F5enYtE11Hdq1eRkMkIMGo7YYHWClP3zEVV-e7lTAf-GfAXJqUxJi7pKkJjp52H2-YLp4c2GNPS4Fc7xgKVcaA0pC1RhGBx7kO-mku5AbmW28nngSoYkr7Ppd6yIgqtCGjrcPcIpp4rsnxn_fRJ5F03otNPoFQt0DM8YA4Y_qGqCztMdXj1F9lizkXAHLMbC9qcSJNf4M8jslgMix4mIsnKdy8tJ2LNg6-zPRkf4202DW8evEAUA_H4JPxg3OGSHf1mi8BQ&h=t8IKxs-IRB9iZhJMkTdh4LWm0XdTgUhKa758xLk4GO4 + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:10:26 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014279262377&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFg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p96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=UGwIE18TcGbBCW0ysZT7_MMKI7IOtUW-lADzdE9HME50d4g30hRwiKRwwJWQy1fgRPUk1apJNizRWt3F5enYtE11Hdq1eRkMkIMGo7YYHWClP3zEVV-e7lTAf-GfAXJqUxJi7pKkJjp52H2-YLp4c2GNPS4Fc7xgKVcaA0pC1RhGBx7kO-mku5AbmW28nngSoYkr7Ppd6yIgqtCGjrcPcIpp4rsnxn_fRJ5F03otNPoFQt0DM8YA4Y_qGqCztMdXj1F9lizkXAHLMbC9qcSJNf4M8jslgMix4mIsnKdy8tJ2LNg6-zPRkf4202DW8evEAUA_H4JPxg3OGSHf1mi8BQ&h=t8IKxs-IRB9iZhJMkTdh4LWm0XdTgUhKa758xLk4GO4 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 30FCD81F7B5C4913841AD4B6FA43D19C Ref B: MAA201060513047 Ref C: 2024-06-17T06:10:27Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014056459700&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQ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Progress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014486407695&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi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Y3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=cgwh_StqLVudkqyWbOVdtwmlVSadvUluBJWnD2LuUChtiBCMDstMMLS804ZjbCwP7eXpL8wEmWwa5NDee5bdgMELSvTE7sXSDqFECzsuLa4X1hCTltmg4vY-SRCU3sFtXXy-19sKM1C-y90ZLFkc_OrfBmBnznbPG_0fyfvlzzBuWRfC04OcaHl9p0tRPXb4-1yyLkBZMhTQUhO_VahmCzRO1jLeREKCJIm2bHCH5udjcAOmDcIyW6SlSJWwRb5B1wpgjEwonx9x2_RTh2kp2wBGODtQ6c6p_bzW_5rqkM-rV9riuHNTPviFspb4-DK3WemJ5xtcgVzSQUGPL7ZNyQ&h=JXAua2lEBcxcB9LI-2iK2GRG6EEmbQSX-bnr955RNGY + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:10:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014486564413&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcw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FPnY + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 9633523BCEC24232AABFC36D2421A657 Ref B: MAA201060513047 Ref C: 2024-06-17T06:10:48Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014056459700&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHa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7CVh7HyD10hxDcis5IFe10umE_alyN09cQpDl7nS8q39BhcA_8aH4OciQGzr_kEFMA10HxxR43G1LZtGOUTiLri3PK_aF1B2fRRfKg4qxnx1lpuaOxAtjrLKnRpcqIzmEWPlj5xFQet761T_Lw1pJzK5_-xPTY347VeKC5_4nekluSPKgiwYWQEk2_-_q_D5mBWELsSOgTrfKCFSKyTiIHukAZYSh9ZBjHXnrXy1ecpiDNJthgfTkoa8Uv0jALm-XZrlujPiCu3eljcr53qPEKpmc8FopY0J5KSIgw&h=m2YMf7Y8lzYbALC4sUJp_x-3RhfDlsojFoLggELOupg + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014694861617&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2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SLJrdL7dOkglH4cd3EqxaUpGmWsO2yq3sSKN0A9AdDibfWUA8vhny-9Q6ywq_abyFC8sYyQQTIVe3NR-4JiZSrj5A0iPvCD89YvHfTTNQQ8Uh5oGEwNkFpP9mHsuZYM78LydBj8KxU83qrY3ZuWg25B_FeoxXbLy2dAgVTNt9LS5_kEBO6EQsRbNJFMoQ3mixSaajZY1rKxSGtDS2MZdkGYiOTOPr4NuyfMtJg0JQJq4WpGBpSNDE1eoom3ZddU7HUMGiFnAw3JxQ20uHrrptRJxdw&h=L8KSxQjHuPkyebao4uU4sYEvUTmPbeVQypGNZ_V2iqU + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:11:08 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014695018190&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUpl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dIoOqcJ_0_iCPdBJvHd_-UH3huuyWx1fANvs_QFCLODcAndHmss3SrbyQtnxdH136m_T99X3Uo4QDvQeWRBQFtlsg6I4bLqIuWO8jNft--sf1SUvLwlb7BHZy-rcxDqqYEeplYDWQpKuwvXrwNjTihUx40iJalOakTdjnfUt12hYv1f9xOu1GiQraU_zsLkHI-wPVcxwPJD-voWL5SvlBKJlJul3U8kUO1dTmYbXCuaORCjocv68mRV2TN0vMLeF-nuX0gsVpLX6sQwYudy5RR8XYWEfn84dmji65dwo0zBU-8LQaCh1051a_Ub8f40s22w&h=ru6WM1kH9elpeddMMLRgljZPcd-tTYUN-8-RJLoOJlc + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: A29A0E5CF8F74F39A7FC38E7497628C8 Ref B: MAA201060513047 Ref C: 2024-06-17T06:11:08Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014056459700&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwH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5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=sFHMY2g_QX6VjrbY3xvjGFsy_GtJ5uLA0oetCCAtnTlNGCer7CVh7HyD10hxDcis5IFe10umE_alyN09cQpDl7nS8q39BhcA_8aH4OciQGzr_kEFMA10HxxR43G1LZtGOUTiLri3PK_aF1B2fRRfKg4qxnx1lpuaOxAtjrLKnRpcqIzmEWPlj5xFQet761T_Lw1pJzK5_-xPTY347VeKC5_4nekluSPKgiwYWQEk2_-_q_D5mBWELsSOgTrfKCFSKyTiIHukAZYSh9ZBjHXnrXy1ecpiDNJthgfTkoa8Uv0jALm-XZrlujPiCu3eljcr53qPEKpmc8FopY0J5KSIgw&h=m2YMf7Y8lzYbALC4sUJp_x-3RhfDlsojFoLggELOupg + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014909559305&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc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UjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=g93zMVt18-MapXSQsJC3QAGFX1mKdERqKiGvaZWfQxUKfw_mdSq_UzvcIGfrP9oo8QERawSsOkhGgQ1pA8VUos6AbBi53BcNjJ7-4Oc62WUdfBLQZPXZhjWqH--NAgp9X-fO2mc97muVexs47sLHjunxY1abi3E4nVzoub6X_jdALJZxYCzRwkdu2Y5-_IcikT7YdnTNcfvCil5s0WXFsgORACXol9D6qvBvzTKILZO8Xf2pGgiYt-_Agq7xrG1d2RTGjZCsOItigWnGRkdEIWwI9-dmJ_UBIUxXsTY5zy3Qc1JENrEWqAoKmzZ2LRDzXPoYknngf-1U1ufNHro7WA&h=tZxDZeTq7dX10kkB14FWhw-3eny3d4jwvrte3xG0ffQ + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:11:30 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014909715389&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkE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pQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=Ui7wo5_4194p6xldVITujQTaHJ3NpU84K9Ylme8SAnA4H49x_d4X1dJPuzNsVWPGXj1g5LmcDhOKN7amb7HaivP0yEMrfWBsWj-ZnlrwXSmvQxc4pP4AC4_UBwWrv3R51zDLfilZ1ICpABO8r9-BZ4XGYocn76lGfC4ajXc5XqE8swYAop5jHXqB-rTkT_z6wtnZnMCCJhfc91jRDFjbdEWhIR_X6pOU8daw6hiWzcGilDI9P-fpGvNiNyBvR4GqYyD2Nb_FMgPdjOYzd3L_kSHgbZP17WeD2sWwcuP8tQSvOw5vPV_Dlh2iZyzijDQG0gauhMFik-gtjxXAZ0yEbQ&h=tIacvuAit0TbnmtYFqbSL5ndUdyjYm6ohbO02RuVDtQ + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 8EE1054355EA4337BCC186CD789A97B2 Ref B: MAA201060513047 Ref C: 2024-06-17T06:11:29Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaWlqendkNWc1NHpqNG5lZG9yZmU3eF9BY3RfZGExYmEwNTI=?api-version=2022-08-01&asyncResponse&t=638542014056459700&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm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BgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=sFHMY2g_QX6VjrbY3xvjGFsy_GtJ5uLA0oetCCAtnTlNGCer7CVh7HyD10hxDcis5IFe10umE_alyN09cQpDl7nS8q39BhcA_8aH4OciQGzr_kEFMA10HxxR43G1LZtGOUTiLri3PK_aF1B2fRRfKg4qxnx1lpuaOxAtjrLKnRpcqIzmEWPlj5xFQet761T_Lw1pJzK5_-xPTY347VeKC5_4nekluSPKgiwYWQEk2_-_q_D5mBWELsSOgTrfKCFSKyTiIHukAZYSh9ZBjHXnrXy1ecpiDNJthgfTkoa8Uv0jALm-XZrlujPiCu3eljcr53qPEKpmc8FopY0J5KSIgw&h=m2YMf7Y8lzYbALC4sUJp_x-3RhfDlsojFoLggELOupg + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:11:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 6FD926DD87B140D4A74E29E71F4FC892 Ref B: MAA201060513047 Ref C: 2024-06-17T06:11:51Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003?api-version=2022-08-01 + response: + body: + string: '{"etag":"AAAAAAGVG6I=","properties":{"publisherEmail":"test@example.com","publisherName":"test","notificationSenderEmail":"test@example.com","provisioningState":"Succeeded","targetProvisioningState":"","createdAtUtc":"2024-06-17T06:10:02.9271758Z","gatewayUrl":"https://cli000003.azure-api.net","gatewayRegionalUrl":null,"portalUrl":null,"developerPortalUrl":null,"managementApiUrl":null,"scmUrl":null,"hostnameConfigurations":[{"type":"Proxy","hostName":"cli000003.azure-api.net","encodedCertificate":null,"keyVaultId":null,"certificatePassword":null,"negotiateClientCertificate":false,"certificate":null,"defaultSslBinding":true,"identityClientId":null,"certificateSource":"BuiltIn","certificateStatus":null}],"publicIPAddresses":null,"privateIPAddresses":null,"additionalLocations":null,"virtualNetworkConfiguration":null,"customProperties":{"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2":"False"},"virtualNetworkType":"None","certificates":null,"disableGateway":false,"natGatewayState":"Disabled","outboundPublicIPAddresses":null,"apiVersionConstraint":{"minApiVersion":null},"publicIpAddressId":null,"publicNetworkAccess":"Enabled","privateEndpointConnections":null,"platformVersion":"mtv1"},"sku":{"name":"Consumption","capacity":0},"identity":null,"zones":null,"systemData":{"createdBy":"blackchoey@outlook.com","createdByType":"User","createdAt":"2024-06-17T06:10:02.7866207Z","lastModifiedBy":"blackchoey@outlook.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-17T06:10:02.7866207Z"},"location":"East + US","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","name":"cli000003","type":"Microsoft.ApiManagement/service"}' + headers: + cache-control: + - no-cache + content-length: + - '2180' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:11:53 GMT + etag: + - '"AAAAAAGVG6I="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 1A1CB2327EC345F48F16ECAC96845E67 Ref B: MAA201060513047 Ref C: 2024-06-17T06:11:52Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"type": "http", "subscriptionRequired": false, "displayName": + "Echo API", "path": "/echo", "protocols": ["https"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + Content-Length: + - '131' + Content-Type: + - application/json + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"echo\",\r\n \"properties\": {\r\n \"displayName\": \"Echo API\",\r\ + \n \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"echo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null\r\n },\r\n \"subscriptionKeyParameterNames\": {\r\n \ + \ \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\": \"subscription-key\"\ + \r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '721' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:11:56 GMT + etag: + - '"AAAAAOMyfJs="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 277C6007045642199A368C0ACC91BF55 Ref B: MAA201060514029 Ref C: 2024-06-17T06:11:55Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"echo\",\r\n \"properties\": {\r\n \"displayName\": \"Echo API\",\r\ + \n \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"echo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null,\r\n \"oAuth2AuthenticationSettings\": [],\r\n \"\ + openidAuthenticationSettings\": []\r\n },\r\n \"subscriptionKeyParameterNames\"\ + : {\r\n \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\"\ + : \"subscription-key\"\r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '807' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:11:57 GMT + etag: + - '"AAAAAOMyfJs="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: D4D87237C67F4C18B7DEA1AE46DF44D8 Ref B: MAA201060514029 Ref C: 2024-06-17T06:11:57Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "GetOperation", "method": "GET", "urlTemplate": + "/echo"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api operation create + Connection: + - keep-alive + Content-Length: + - '88' + Content-Type: + - application/json + If-Match: + - '*' + ParameterSetName: + - -g --service-name --api-id --url-template --method --display-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo/operations/2438eafbb55249f9a6169452146c8a8b?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo/operations/2438eafbb55249f9a6169452146c8a8b\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis/operations\",\r\n\ + \ \"name\": \"2438eafbb55249f9a6169452146c8a8b\",\r\n \"properties\": {\r\ + \n \"displayName\": \"GetOperation\",\r\n \"method\": \"GET\",\r\n \ + \ \"urlTemplate\": \"/echo\",\r\n \"templateParameters\": [],\r\n \ + \ \"description\": null,\r\n \"request\": {\r\n \"queryParameters\"\ + : [],\r\n \"headers\": [],\r\n \"representations\": []\r\n },\r\ + \n \"responses\": [],\r\n \"policies\": null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '629' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:00 GMT + etag: + - '"AAAAAOMyfKE="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: A7871EAE3527465EA84F0D7D0A764864 Ref B: MAA201060514053 Ref C: 2024-06-17T06:11:59Z' + status: + code: 201 + message: Created +- request: + body: '{"properties": {"type": "http", "subscriptionRequired": false, "displayName": + "Foo API", "path": "/foo", "protocols": ["https"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + Content-Length: + - '129' + Content-Type: + - application/json + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"foo\",\r\n \"properties\": {\r\n \"displayName\": \"Foo API\",\r\n\ + \ \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"foo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null\r\n },\r\n \"subscriptionKeyParameterNames\": {\r\n \ + \ \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\": \"subscription-key\"\ + \r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '717' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:03 GMT + etag: + - '"AAAAAOMyfKk="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: F303F43A51C84890990493E8700707CF Ref B: MAA201060514027 Ref C: 2024-06-17T06:12:02Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"foo\",\r\n \"properties\": {\r\n \"displayName\": \"Foo API\",\r\n\ + \ \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"foo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null,\r\n \"oAuth2AuthenticationSettings\": [],\r\n \"\ + openidAuthenticationSettings\": []\r\n },\r\n \"subscriptionKeyParameterNames\"\ + : {\r\n \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\"\ + : \"subscription-key\"\r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '803' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:05 GMT + etag: + - '"AAAAAOMyfKk="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: E72B387EC4F64F13AF773ED0D70DD2C3 Ref B: MAA201060514027 Ref C: 2024-06-17T06:12:04Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "GetOperation", "method": "GET", "urlTemplate": + "/foo"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api operation create + Connection: + - keep-alive + Content-Length: + - '87' + Content-Type: + - application/json + If-Match: + - '*' + ParameterSetName: + - -g --service-name --api-id --url-template --method --display-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo/operations/8329e440bce440a394c8ce83253cb046?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo/operations/8329e440bce440a394c8ce83253cb046\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis/operations\",\r\n\ + \ \"name\": \"8329e440bce440a394c8ce83253cb046\",\r\n \"properties\": {\r\ + \n \"displayName\": \"GetOperation\",\r\n \"method\": \"GET\",\r\n \ + \ \"urlTemplate\": \"/foo\",\r\n \"templateParameters\": [],\r\n \"\ + description\": null,\r\n \"request\": {\r\n \"queryParameters\": [],\r\ + \n \"headers\": [],\r\n \"representations\": []\r\n },\r\n \ + \ \"responses\": [],\r\n \"policies\": null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '627' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:08 GMT + etag: + - '"AAAAAOMyfLM="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: D647F2001E1845DF87B8E5AB2C05E9BC Ref B: MAA201060515037 Ref C: 2024-06-17T06:12:07Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --role --assignee-object-id --assignee-principal-type --scope + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27API%20Management%20Service%20Reader%20Role%27&api-version=2022-05-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"API Management Service Reader + Role","type":"BuiltInRole","description":"Read-only access to service and + APIs","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.ApiManagement/service/*/read","Microsoft.ApiManagement/service/read","Microsoft.Authorization/*/read","Microsoft.Insights/alertRules/*","Microsoft.ResourceHealth/availabilityStatuses/read","Microsoft.Resources/deployments/*","Microsoft.Resources/subscriptions/resourceGroups/read","Microsoft.Support/*"],"notActions":["Microsoft.ApiManagement/service/users/keys/read"],"dataActions":[],"notDataActions":[]}],"createdOn":"2016-11-09T00:26:45.1540473Z","updatedOn":"2021-11-11T20:13:11.8704466Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d","type":"Microsoft.Authorization/roleDefinitions","name":"71522526-b88f-4d52-b57f-d31fc3546d0d"}]}' + headers: + cache-control: + - no-cache + content-length: + - '982' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:11 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 13F8E4F524704A5E97DB8CF19CDE0BE1 Ref B: MAA201060513039 Ref C: 2024-06-17T06:12:11Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d", + "principalId": "a4fdb746-5910-4726-b11c-43bdd6cbf439", "principalType": "ServicePrincipal"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '270' + Content-Type: + - application/json + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --role --assignee-object-id --assignee-principal-type --scope + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleAssignments/3cafff33-1091-4e7e-8a34-88f9eb7c0461?api-version=2022-04-01 + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d","principalId":"a4fdb746-5910-4726-b11c-43bdd6cbf439","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","condition":null,"conditionVersion":null,"createdOn":"2024-06-17T06:12:12.0044555Z","updatedOn":"2024-06-17T06:12:12.5644623Z","createdBy":null,"updatedBy":"7557db67-613b-4194-a890-de2ba9a4ec8e","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleAssignments/3cafff33-1091-4e7e-8a34-88f9eb7c0461","type":"Microsoft.Authorization/roleAssignments","name":"3cafff33-1091-4e7e-8a34-88f9eb7c0461"}' + headers: + cache-control: + - no-cache + content-length: + - '981' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: B7F4FB48835F4C5697F1E21DF6F58440 Ref B: MAA201060513039 Ref C: 2024-06-17T06:12:11Z' + status: + code: 201 + message: Created +- request: + body: '{"sourceResourceIds": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic import-from-apim + Connection: + - keep-alive + Content-Length: + - '310' + Content-Type: + - application/json + ParameterSetName: + - -g --service-name --apim-name --apim-apis + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/importFromApim?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:12:17 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/963dccf52a6e483ab40aca7016943818?api-version=2024-03-01&t=638542015374111586&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQ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no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 27CC017B9A8F4D1DB63CEAE90170EE20 Ref B: MAA201060514047 Ref C: 2024-06-17T06:12:16Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic import-from-apim + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --apim-name --apim-apis + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/963dccf52a6e483ab40aca7016943818?api-version=2024-03-01&t=638542015374111586&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPq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fZh-62ZOaVu7uir4V8gqHQUuWqKPuB9hGANJJdSvsOReCtuBq3WT6I0CU-vAwVBoNVFOinByBkcmdecHUdCYD6FHd9jA7x_lhNlnA132VShM4Knd01EvZsmWxmCkZsjD3dUFwxwDC13-mEk6WN88ixSdW7h-W2H6TjcPN-x6PcXEjdKQvqGjpBSnJyWy6orBeTGwHenY60c-rB6IAHrn-CHvYx7BxL_yYg4mcrnGfYAhOLQAPTmbTr8A2CckgWv7Q9kEwh2_yE3p1zbgTekmP-T86xmAbkLw&h=n3QWf5_2BjzuYhxrrDOSu9WMiVjyRX6dE5rmdHtgqXU + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/963dccf52a6e483ab40aca7016943818","name":"963dccf52a6e483ab40aca7016943818","status":"NotStarted"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '254' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:18 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/963dccf52a6e483ab40aca7016943818?api-version=2024-03-01&t=638542015388139041&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rU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N7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=L-lvTm_sWDURDvgATPEQXTvwGKUwHWmidZ1juLqiEmUqDwr5rLGP7-CBJ5hc-vhqfuxIBaOjIbQAxlnFtf5gf6Gl1MSYwrpKJW2k11Kc3EFhOQqoxTuCK9jrmfi-uqrhq2gMi-qCyQKmnPyGRjWd6skUV7MmMW5nuIEK7Pwn0SozfiNV7nIJQ3tJVGCNn43P6ZmOTY5FH-87KMiNgs_KZ1kEPG6JG3Rn9v3tHz0aoenEzMG013MNFzP-NXE-cwzFNg2poSiCvRpsbM3zr7rniictKOMa5o9GPbi-92n3qsyzivkFGCqhIwZVCg-eGdixemfsLafOhEoiL96DvF6DhQ&h=XP-eGf77qx1gvSXHqyrQPcDTXkTq995XibT63z4TkaM + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 4F3C513073FE4561864FEE6CF5828A7A Ref B: MAA201060514047 Ref C: 2024-06-17T06:12:17Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic import-from-apim + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --apim-name --apim-apis + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/963dccf52a6e483ab40aca7016943818?api-version=2024-03-01&t=638542015388139041&c=MIIHpTCCBo2gAwIBAgITO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BgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=L-lvTm_sWDURDvgATPEQXTvwGKUwHWmidZ1juLqiEmUqDwr5rLGP7-CBJ5hc-vhqfuxIBaOjIbQAxlnFtf5gf6Gl1MSYwrpKJW2k11Kc3EFhOQqoxTuCK9jrmfi-uqrhq2gMi-qCyQKmnPyGRjWd6skUV7MmMW5nuIEK7Pwn0SozfiNV7nIJQ3tJVGCNn43P6ZmOTY5FH-87KMiNgs_KZ1kEPG6JG3Rn9v3tHz0aoenEzMG013MNFzP-NXE-cwzFNg2poSiCvRpsbM3zr7rniictKOMa5o9GPbi-92n3qsyzivkFGCqhIwZVCg-eGdixemfsLafOhEoiL96DvF6DhQ&h=XP-eGf77qx1gvSXHqyrQPcDTXkTq995XibT63z4TkaM + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/963dccf52a6e483ab40aca7016943818","name":"963dccf52a6e483ab40aca7016943818","status":"Succeeded","startTime":"2024-06-17T06:12:19.5292067+00:00","endTime":"2024-06-17T06:12:26.0955899+00:00"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '347' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 4CEC405F88CE4414B5AC82055BBF2715 Ref B: MAA201060514047 Ref C: 2024-06-17T06:12:49Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_import_specification_example_1.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_import_specification_example_1.yaml new file mode 100644 index 00000000000..72d7228f7ef --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_import_specification_example_1.yaml @@ -0,0 +1,58 @@ +interactions: +- request: + body: '{"format": "inline", "specification": {"name": "openapi", "version": "3.0.0"}, + "value": "{\"openapi\":\"3.0.1\",\"info\":{\"title\":\"httpbin.org\",\"description\":\"API + Management facade for a very handy and free online HTTP tool.\",\"version\":\"1.0\"}}"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition import-specification + Connection: + - keep-alive + Content-Length: + - '257' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --definition-id --format --value --specification + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/importSpecification?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:04:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 67206446009D4A85B6E155DA039592B4 Ref B: MAA201060514031 Ref C: 2024-06-17T06:04:35Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_import_specification_example_2.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_import_specification_example_2.yaml new file mode 100644 index 00000000000..814f704c105 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_import_specification_example_2.yaml @@ -0,0 +1,165 @@ +interactions: +- request: + body: '{"format": "link", "specification": {"name": "openapi", "version": "3.0.0"}, + "value": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition import-specification + Connection: + - keep-alive + Content-Length: + - '181' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --definition-id --format --value --specification + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/importSpecification?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:05:01 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/c7c50e862b1b4b7da490e7744f0b8b3a?api-version=2024-03-01&t=638542011026419245&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEv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3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=Jcxgc40ICmcsodKfDfAluFs_swe_xGy3uk8Lfpg_Ywfr8LHjSWPGY6agruDBGyJa--nkPNS_Vaww5v-bViqmjw-dhYaag5r-s7-r3Pn4GcCkb3xLk6KaSGkriSjgUJ8c54Oq7bTZl9JZZfMvAfOyVeozim6R4izq7hzRSXXnPIYb6f1Iu4lml_qmQ2_xCh7o9JiCfzd8rMtwTTfJydyDWm_VSzi1pEjdIt-45KGXd0HLTtg-K77PCiB4mBcf2fmO6YlRqbK7CykOpX-PGjWzaUGPZAQQ8NRfhORazm90TzDLwwZ3n4FcidygiwulaEm1uGmW_iV14NkiR4c7SM_WZA&h=HTzq9MhLvqQeguTlMHrx2oLUhR06W43FO8B0i2juZ7o + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 19A5E71A49444162AA8EE79D358D110B Ref B: MAA201060516031 Ref C: 2024-06-17T06:05:01Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition import-specification + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --definition-id --format --value --specification + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/c7c50e862b1b4b7da490e7744f0b8b3a?api-version=2024-03-01&t=638542011026419245&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lF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Ja--nkPNS_Vaww5v-bViqmjw-dhYaag5r-s7-r3Pn4GcCkb3xLk6KaSGkriSjgUJ8c54Oq7bTZl9JZZfMvAfOyVeozim6R4izq7hzRSXXnPIYb6f1Iu4lml_qmQ2_xCh7o9JiCfzd8rMtwTTfJydyDWm_VSzi1pEjdIt-45KGXd0HLTtg-K77PCiB4mBcf2fmO6YlRqbK7CykOpX-PGjWzaUGPZAQQ8NRfhORazm90TzDLwwZ3n4FcidygiwulaEm1uGmW_iV14NkiR4c7SM_WZA&h=HTzq9MhLvqQeguTlMHrx2oLUhR06W43FO8B0i2juZ7o + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/c7c50e862b1b4b7da490e7744f0b8b3a","name":"c7c50e862b1b4b7da490e7744f0b8b3a","status":"NotStarted"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '322' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:05:03 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/c7c50e862b1b4b7da490e7744f0b8b3a?api-version=2024-03-01&t=638542011039777909&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0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ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=QUgw54Tp-TfE0esLqyOFPIel7IBORoiqGosHYIgag-XME2jp8lCWHuwPR_nj6qUrwkLfEyb44XVMZb8UKUjMp1z-rnZEKS_ood6pSo5MapTI0jbg03kj_Un5wOzGBNuNQVGqDOg7cYwDj75NHPPh5e4SG6vl-L53PatlsjMIjcn0UngQFep-qvoB-3nh2r2SBh5wzFyGhj_IEz-rVfVHp10uwCHgp6YtN4YItWLvjxKusf5j0kjZXgLBWZOnv0ttpYLgwZjSqlmIQUqC1J5tTLz43ePs_Xl0RsOJELtma-LzPJQsLr32W9acalWljGe2ywiRET6yE9hEmy0rW7G7Dg&h=XEVFALZNyHZexa1-3MpjreX0BT90iMjjnSv3ZRD0-Zg + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 1EAFB103218B4ED5AE052B4A0E7DE261 Ref B: MAA201060516031 Ref C: 2024-06-17T06:05:02Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition import-specification + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --definition-id --format --value --specification + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/c7c50e862b1b4b7da490e7744f0b8b3a?api-version=2024-03-01&t=638542011039777909&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJB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ADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=QUgw54Tp-TfE0esLqyOFPIel7IBORoiqGosHYIgag-XME2jp8lCWHuwPR_nj6qUrwkLfEyb44XVMZb8UKUjMp1z-rnZEKS_ood6pSo5MapTI0jbg03kj_Un5wOzGBNuNQVGqDOg7cYwDj75NHPPh5e4SG6vl-L53PatlsjMIjcn0UngQFep-qvoB-3nh2r2SBh5wzFyGhj_IEz-rVfVHp10uwCHgp6YtN4YItWLvjxKusf5j0kjZXgLBWZOnv0ttpYLgwZjSqlmIQUqC1J5tTLz43ePs_Xl0RsOJELtma-LzPJQsLr32W9acalWljGe2ywiRET6yE9hEmy0rW7G7Dg&h=XEVFALZNyHZexa1-3MpjreX0BT90iMjjnSv3ZRD0-Zg + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/apis/clitest000003/versions/clitest000004/definitions/clitest000005/operationResults/c7c50e862b1b4b7da490e7744f0b8b3a","name":"c7c50e862b1b4b7da490e7744f0b8b3a","status":"Succeeded","startTime":"2024-06-17T06:05:13.5499172+00:00","endTime":"2024-06-17T06:05:14.042373+00:00"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '414' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:05:34 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 5BCD016795104056ACFEA684BD6ADADB Ref B: MAA201060516031 Ref C: 2024-06-17T06:05:34Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_api_definitions.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_api_definitions.yaml new file mode 100644 index 00000000000..26bfb523c01 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_api_definitions.yaml @@ -0,0 +1,54 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition list + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"OpenAPI"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005","name":"clitest000005","systemData":{"createdAt":"2024-06-17T06:05:59.2452441Z","lastModifiedAt":"2024-06-17T06:05:59.2452429Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"OpenAPI"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000006","name":"clitest000006","systemData":{"createdAt":"2024-06-17T06:06:02.2718157Z","lastModifiedAt":"2024-06-17T06:06:02.271815Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '940' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:06:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 70CC9BC9AF2B48AEAB664E377FCC8668 Ref B: MAA201060514023 Ref C: 2024-06-17T06:06:03Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_api_deployments.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_api_deployments.yaml new file mode 100644 index 00000000000..093ca567c7a --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_api_deployments.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment list + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"test + deployment","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/clitest000007","name":"clitest000007","systemData":{"createdAt":"2024-06-17T06:04:02.8312217Z","lastModifiedAt":"2024-06-17T06:04:02.8312208Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"test + deployment","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/clitest000008","name":"clitest000008","systemData":{"createdAt":"2024-06-17T06:04:05.651842Z","lastModifiedAt":"2024-06-17T06:04:05.6518414Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1412' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:04:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 16280E8AB8154E0A80FFD2C06546E53D Ref B: MAA201060515031 Ref C: 2024-06-17T06:04:07Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_api_versions.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_api_versions.yaml new file mode 100644 index 00000000000..acb8b5f331e --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_api_versions.yaml @@ -0,0 +1,54 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version list + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"v1.0.0","lifecycleStage":"production"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:14:41.8672506Z","lastModifiedAt":"2024-06-17T06:14:41.8672498Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"v1.0.0","lifecycleStage":"production"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000005","name":"clitest000005","systemData":{"createdAt":"2024-06-17T06:14:44.5904618Z","lastModifiedAt":"2024-06-17T06:14:44.5904611Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '923' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:14:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 93099C364EF647EB85717421C2B4F976 Ref B: MAA201060514027 Ref C: 2024-06-17T06:14:46Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_apis.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_apis.yaml new file mode 100644 index 00000000000..851d485a962 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_apis.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api list + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:02:02.635307Z","lastModifiedAt":"2024-06-17T06:02:02.6353057Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:02:05.6392129Z","lastModifiedAt":"2024-06-17T06:02:05.6392117Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '956' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:02:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 7D511647AFB9425DB1283B50D1220A0D Ref B: MAA201060514047 Ref C: 2024-06-17T06:02:07Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_apis_with_filter.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_apis_with_filter.yaml new file mode 100644 index 00000000000..079af079c40 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_apis_with_filter.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api list + Connection: + - keep-alive + ParameterSetName: + - -g -n --filter + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis?$filter=kind%20eq%20%27rest%27&api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:02:26.5911367Z","lastModifiedAt":"2024-06-17T06:02:26.5911352Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:02:29.4053327Z","lastModifiedAt":"2024-06-17T06:02:29.4053313Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '957' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:02:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: BBABBBF131B745D78B57077E6BBD52A0 Ref B: MAA201060516021 Ref C: 2024-06-17T06:02:31Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_environments.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_environments.yaml new file mode 100644 index 00000000000..cdc32b7e8d5 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_environments.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment list + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"test + environment","kind":"testing","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:06:15.174523Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"test + environment","kind":"testing","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:06:18.049122Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '831' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:06:19 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: D0C1DDC22B474726A5ED1EA282170759 Ref B: MAA201060515009 Ref C: 2024-06-17T06:06:19Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_metadata.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_metadata.yaml new file mode 100644 index 00000000000..cf6b0b4bf31 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_metadata.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata list + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false},{"entity":"environment","required":true,"deprecated":false},{"entity":"deployment","required":true,"deprecated":false}],"schema":"{\"type\":\"boolean\", + \"title\":\"Public Facing\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:08:09.2513656Z","lastModifiedAt":"2024-06-17T06:08:09.2513649Z"}},{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false},{"entity":"environment","required":true,"deprecated":false},{"entity":"deployment","required":true,"deprecated":false}],"schema":"{\"type\":\"boolean\", + \"title\":\"Public Facing\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:08:12.1031258Z","lastModifiedAt":"2024-06-17T06:08:12.103125Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1246' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 0A76811DCED74A4EB781EF0278AADFF5 Ref B: MAA201060513009 Ref C: 2024-06-17T06:08:13Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_services_in_resource_group.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_services_in_resource_group.yaml new file mode 100644 index 00000000000..a4c9198ceb0 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_list_services_in_resource_group.yaml @@ -0,0 +1,54 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{},"systemData":{"createdAt":"2024-06-17T06:09:48.0496461Z","lastModifiedAt":"2024-06-17T06:09:48.0496372Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 0AA818D91284444389BF1DD25530C3B5 Ref B: MAA201060515019 Ref C: 2024-06-17T06:09:50Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_register_with_json_spec.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_register_with_json_spec.yaml new file mode 100644 index 00000000000..c3a3548bbb4 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_register_with_json_spec.yaml @@ -0,0 +1,691 @@ +interactions: +- request: + body: '{"properties": {"contacts": [{"email": "apiteam@swagger.io"}], "description": + "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)", + "kind": "rest", "license": {"name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html"}, + "summary": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve", "title": "Swagger Petstore + - OpenAPI 3.0"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '1144' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-location --environment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Swagger + Petstore - OpenAPI 3.0","summary":"This is a sample Pet Store Server based + on the OpenAPI 3.0 specification. You can find out more about\nSwagger at + [http://swagger.io](http://swagger.io). In the third iteration of the pet + store, we''ve","description":"This is a sample Pet Store Server based on the + OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)","kind":"rest","license":{"name":"Apache + 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"externalDocumentation":[],"contacts":[{"email":"apiteam@swagger.io"}],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30","name":"swaggerpetstore-openapi30","systemData":{"createdAt":"2024-06-17T06:08:33.8316101Z","lastModifiedAt":"2024-06-17T06:08:33.831609Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1560' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:33 GMT + etag: + - da0232e3-0000-0100-0000-666fd2e10000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 32A124D04F404187A8D82D6DF81B550F Ref B: MAA201060515019 Ref C: 2024-06-17T06:08:32Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"lifecycleStage": "design", "title": "1-0-19"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '63' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-location --environment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"1-0-19","lifecycleStage":"design"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19","name":"1-0-19","systemData":{"createdAt":"2024-06-17T06:08:36.6120967Z","lastModifiedAt":"2024-06-17T06:08:36.6120958Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '449' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:36 GMT + etag: + - 88044a18-0000-0100-0000-666fd2e40000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: A584D766ED874443B5F9A7CE93BF0887 Ref B: MAA201060515017 Ref C: 2024-06-17T06:08:35Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"description": "This is a sample Pet Store Server based + on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)", + "title": "openapi"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '749' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-location --environment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19/definitions/openapi?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"openapi","description":"This + is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19/definitions/openapi","name":"openapi","systemData":{"createdAt":"2024-06-17T06:08:39.6896406Z","lastModifiedAt":"2024-06-17T06:08:39.6896397Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1168' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:39 GMT + etag: + - 1301719a-0000-0100-0000-666fd2e70000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 4C2A3F2B5A9742F79C39BDA0CFB64A79 Ref B: MAA201060515033 Ref C: 2024-06-17T06:08:38Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"format": "inline", "specification": {"name": "openapi", "version": "3-0-2"}, + "value": "{\n \"openapi\": \"3.0.2\",\n \"info\": {\n \"title\": + \"Swagger Petstore - OpenAPI 3.0\",\n \"description\": \"This is a sample + Pet Store Server based on the OpenAPI 3.0 specification. You can find out more + about\\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration + of the pet store, we''ve switched to the design first approach!\\nYou can now + help us improve the API whether it''s by making changes to the definition itself + or to the code.\\nThat way, with time, we can improve the API in general, and + expose some of the new features in OAS3.\\n\\nSome useful links:\\n- [The Pet + Store repository](https://github.com/swagger-api/swagger-petstore)\\n- [The + source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)\",\n \"termsOfService\": + \"http://swagger.io/terms/\",\n \"contact\": {\n \"email\": + \"apiteam@swagger.io\"\n },\n \"license\": {\n \"name\": + \"Apache 2.0\",\n \"url\": \"http://www.apache.org/licenses/LICENSE-2.0.html\"\n },\n \"version\": + \"1.0.19\"\n },\n \"externalDocs\": {\n \"description\": \"Find + out more about Swagger\",\n \"url\": \"http://swagger.io\"\n },\n \"servers\": + [\n {\n \"url\": \"/api/v3\"\n }\n ],\n \"tags\": + [\n {\n \"name\": \"pet\",\n \"description\": \"Everything + about your Pets\",\n \"externalDocs\": {\n \"description\": + \"Find out more\",\n \"url\": \"http://swagger.io\"\n }\n },\n {\n \"name\": + \"store\",\n \"description\": \"Access to Petstore orders\",\n \"externalDocs\": + {\n \"description\": \"Find out more about our store\",\n \"url\": + \"http://swagger.io\"\n }\n },\n {\n \"name\": + \"user\",\n \"description\": \"Operations about user\"\n }\n ],\n \"paths\": + {\n \"/pet\": {\n \"put\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Update an existing pet\",\n \"description\": \"Update an existing + pet by Id\",\n \"operationId\": \"updatePet\",\n \"requestBody\": + {\n \"description\": \"Update an existent pet in the store\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"required\": + true\n },\n \"responses\": {\n \"200\": + {\n \"description\": \"Successful operation\",\n \"content\": + {\n \"application/xml\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Pet not found\"\n },\n \"405\": + {\n \"description\": \"Validation exception\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n },\n \"post\": + {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Add a new pet to the store\",\n \"description\": \"Add a new + pet to the store\",\n \"operationId\": \"addPet\",\n \"requestBody\": + {\n \"description\": \"Create a new pet in the store\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"required\": + true\n },\n \"responses\": {\n \"200\": + {\n \"description\": \"Successful operation\",\n \"content\": + {\n \"application/xml\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"405\": + {\n \"description\": \"Invalid input\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/findByStatus\": + {\n \"get\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Finds Pets by status\",\n \"description\": \"Multiple status + values can be provided with comma separated strings\",\n \"operationId\": + \"findPetsByStatus\",\n \"parameters\": [\n {\n \"name\": + \"status\",\n \"in\": \"query\",\n \"description\": + \"Status values that need to be considered for filter\",\n \"required\": + false,\n \"explode\": true,\n \"schema\": + {\n \"type\": \"string\",\n \"default\": + \"available\",\n \"enum\": [\n \"available\",\n \"pending\",\n \"sold\"\n ]\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid status value\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/findByTags\": + {\n \"get\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Finds Pets by tags\",\n \"description\": \"Multiple tags can + be provided with comma separated strings. Use tag1, tag2, tag3 for testing.\",\n \"operationId\": + \"findPetsByTags\",\n \"parameters\": [\n {\n \"name\": + \"tags\",\n \"in\": \"query\",\n \"description\": + \"Tags to filter by\",\n \"required\": false,\n \"explode\": + true,\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"type\": + \"string\"\n }\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid tag value\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/{petId}\": + {\n \"get\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Find pet by ID\",\n \"description\": \"Returns a single pet\",\n \"operationId\": + \"getPetById\",\n \"parameters\": [\n {\n \"name\": + \"petId\",\n \"in\": \"path\",\n \"description\": + \"ID of pet to return\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Pet not found\"\n }\n },\n \"security\": + [\n {\n \"api_key\": []\n },\n {\n \"petstore_auth\": + [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n },\n \"post\": + {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Updates a pet in the store with form data\",\n \"description\": + \"\",\n \"operationId\": \"updatePetWithForm\",\n \"parameters\": + [\n {\n \"name\": \"petId\",\n \"in\": + \"path\",\n \"description\": \"ID of pet that needs to + be updated\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n },\n {\n \"name\": + \"name\",\n \"in\": \"query\",\n \"description\": + \"Name of pet that needs to be updated\",\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n {\n \"name\": + \"status\",\n \"in\": \"query\",\n \"description\": + \"Status of pet that needs to be updated\",\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"responses\": + {\n \"405\": {\n \"description\": + \"Invalid input\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n },\n \"delete\": + {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Deletes a pet\",\n \"description\": \"\",\n \"operationId\": + \"deletePet\",\n \"parameters\": [\n {\n \"name\": + \"api_key\",\n \"in\": \"header\",\n \"description\": + \"\",\n \"required\": false,\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n {\n \"name\": + \"petId\",\n \"in\": \"path\",\n \"description\": + \"Pet id to delete\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"400\": {\n \"description\": + \"Invalid pet value\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/{petId}/uploadImage\": + {\n \"post\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"uploads an image\",\n \"description\": \"\",\n \"operationId\": + \"uploadFile\",\n \"parameters\": [\n {\n \"name\": + \"petId\",\n \"in\": \"path\",\n \"description\": + \"ID of pet to update\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n },\n {\n \"name\": + \"additionalMetadata\",\n \"in\": \"query\",\n \"description\": + \"Additional Metadata\",\n \"required\": false,\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"requestBody\": + {\n \"content\": {\n \"application/octet-stream\": + {\n \"schema\": {\n \"type\": + \"string\",\n \"format\": \"binary\"\n }\n }\n }\n },\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/ApiResponse\"\n }\n }\n }\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/store/inventory\": + {\n \"get\": {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Returns pet inventories by status\",\n \"description\": \"Returns + a map of status codes to quantities\",\n \"operationId\": \"getInventory\",\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"object\",\n \"additionalProperties\": {\n \"type\": + \"integer\",\n \"format\": \"int32\"\n }\n }\n }\n }\n }\n },\n \"security\": + [\n {\n \"api_key\": []\n }\n ]\n }\n },\n \"/store/order\": + {\n \"post\": {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Place an order for a pet\",\n \"description\": \"Place a new + order in the store\",\n \"operationId\": \"placeOrder\",\n \"requestBody\": + {\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n }\n }\n },\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n }\n }\n },\n \"405\": + {\n \"description\": \"Invalid input\"\n }\n }\n }\n },\n \"/store/order/{orderId}\": + {\n \"get\": {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Find purchase order by ID\",\n \"description\": \"For valid + response try integer IDs with value <= 5 or > 10. Other values will generate + exceptions.\",\n \"operationId\": \"getOrderById\",\n \"parameters\": + [\n {\n \"name\": \"orderId\",\n \"in\": + \"path\",\n \"description\": \"ID of order that needs + to be fetched\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Order not found\"\n }\n }\n },\n \"delete\": + {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Delete purchase order by ID\",\n \"description\": \"For valid + response try integer IDs with value < 1000. Anything above 1000 or nonintegers + will generate API errors\",\n \"operationId\": \"deleteOrder\",\n \"parameters\": + [\n {\n \"name\": \"orderId\",\n \"in\": + \"path\",\n \"description\": \"ID of the order that needs + to be deleted\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"400\": {\n \"description\": + \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Order not found\"\n }\n }\n }\n },\n \"/user\": + {\n \"post\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Create user\",\n \"description\": \"This can only be done by + the logged in user.\",\n \"operationId\": \"createUser\",\n \"requestBody\": + {\n \"description\": \"Created user object\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"responses\": + {\n \"default\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n }\n }\n }\n },\n \"/user/createWithList\": + {\n \"post\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Creates list of users with given input array\",\n \"description\": + \"Creates list of users with given input array\",\n \"operationId\": + \"createUsersWithListInput\",\n \"requestBody\": {\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"type\": \"array\",\n \"items\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n }\n }\n }\n },\n \"responses\": + {\n \"200\": {\n \"description\": + \"Successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"default\": + {\n \"description\": \"successful operation\"\n }\n }\n }\n },\n \"/user/login\": + {\n \"get\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Logs user into the system\",\n \"description\": \"\",\n \"operationId\": + \"loginUser\",\n \"parameters\": [\n {\n \"name\": + \"username\",\n \"in\": \"query\",\n \"description\": + \"The user name for login\",\n \"required\": false,\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n {\n \"name\": + \"password\",\n \"in\": \"query\",\n \"description\": + \"The password for login in clear text\",\n \"required\": + false,\n \"schema\": {\n \"type\": + \"string\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"headers\": {\n \"X-Rate-Limit\": + {\n \"description\": \"calls per hour allowed + by the user\",\n \"schema\": {\n \"type\": + \"integer\",\n \"format\": \"int32\"\n }\n },\n \"X-Expires-After\": + {\n \"description\": \"date in UTC when token + expires\",\n \"schema\": {\n \"type\": + \"string\",\n \"format\": \"date-time\"\n }\n }\n },\n \"content\": + {\n \"application/xml\": {\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"string\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid username/password supplied\"\n }\n }\n }\n },\n \"/user/logout\": + {\n \"get\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Logs out current logged in user session\",\n \"description\": + \"\",\n \"operationId\": \"logoutUser\",\n \"parameters\": + [],\n \"responses\": {\n \"default\": {\n \"description\": + \"successful operation\"\n }\n }\n }\n },\n \"/user/{username}\": + {\n \"get\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Get user by user name\",\n \"description\": \"\",\n \"operationId\": + \"getUserByName\",\n \"parameters\": [\n {\n \"name\": + \"username\",\n \"in\": \"path\",\n \"description\": + \"The name that needs to be fetched. Use user1 for testing. \",\n \"required\": + true,\n \"schema\": {\n \"type\": + \"string\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid username supplied\"\n },\n \"404\": + {\n \"description\": \"User not found\"\n }\n }\n },\n \"put\": + {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Update user\",\n \"description\": \"This can only be done by + the logged in user.\",\n \"operationId\": \"updateUser\",\n \"parameters\": + [\n {\n \"name\": \"username\",\n \"in\": + \"path\",\n \"description\": \"name that needs to be + updated\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"requestBody\": + {\n \"description\": \"Update an existent user in the store\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"responses\": + {\n \"default\": {\n \"description\": + \"successful operation\"\n }\n }\n },\n \"delete\": + {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Delete user\",\n \"description\": \"This can only be done by + the logged in user.\",\n \"operationId\": \"deleteUser\",\n \"parameters\": + [\n {\n \"name\": \"username\",\n \"in\": + \"path\",\n \"description\": \"The name that needs to + be deleted\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"responses\": + {\n \"400\": {\n \"description\": + \"Invalid username supplied\"\n },\n \"404\": + {\n \"description\": \"User not found\"\n }\n }\n }\n }\n },\n \"components\": + {\n \"schemas\": {\n \"Order\": {\n \"type\": + \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 10\n },\n \"petId\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 198772\n },\n \"quantity\": + {\n \"type\": \"integer\",\n \"format\": + \"int32\",\n \"example\": 7\n },\n \"shipDate\": + {\n \"type\": \"string\",\n \"format\": + \"date-time\"\n },\n \"status\": {\n \"type\": + \"string\",\n \"description\": \"Order Status\",\n \"example\": + \"approved\",\n \"enum\": [\n \"placed\",\n \"approved\",\n \"delivered\"\n ]\n },\n \"complete\": + {\n \"type\": \"boolean\"\n }\n },\n \"xml\": + {\n \"name\": \"order\"\n }\n },\n \"Customer\": + {\n \"type\": \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 100000\n },\n \"username\": + {\n \"type\": \"string\",\n \"example\": + \"fehguy\"\n },\n \"address\": {\n \"type\": + \"array\",\n \"xml\": {\n \"name\": + \"addresses\",\n \"wrapped\": true\n },\n \"items\": + {\n \"$ref\": \"#/components/schemas/Address\"\n }\n }\n },\n \"xml\": + {\n \"name\": \"customer\"\n }\n },\n \"Address\": + {\n \"type\": \"object\",\n \"properties\": {\n \"street\": + {\n \"type\": \"string\",\n \"example\": + \"437 Lytton\"\n },\n \"city\": {\n \"type\": + \"string\",\n \"example\": \"Palo Alto\"\n },\n \"state\": + {\n \"type\": \"string\",\n \"example\": + \"CA\"\n },\n \"zip\": {\n \"type\": + \"string\",\n \"example\": \"94301\"\n }\n },\n \"xml\": + {\n \"name\": \"address\"\n }\n },\n \"Category\": + {\n \"type\": \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 1\n },\n \"name\": + {\n \"type\": \"string\",\n \"example\": + \"Dogs\"\n }\n },\n \"xml\": + {\n \"name\": \"category\"\n }\n },\n \"User\": + {\n \"type\": \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 10\n },\n \"username\": + {\n \"type\": \"string\",\n \"example\": + \"theUser\"\n },\n \"firstName\": {\n \"type\": + \"string\",\n \"example\": \"John\"\n },\n \"lastName\": + {\n \"type\": \"string\",\n \"example\": + \"James\"\n },\n \"email\": {\n \"type\": + \"string\",\n \"example\": \"john@email.com\"\n },\n \"password\": + {\n \"type\": \"string\",\n \"example\": + \"12345\"\n },\n \"phone\": {\n \"type\": + \"string\",\n \"example\": \"12345\"\n },\n \"userStatus\": + {\n \"type\": \"integer\",\n \"description\": + \"User Status\",\n \"format\": \"int32\",\n \"example\": + 1\n }\n },\n \"xml\": {\n \"name\": + \"user\"\n }\n },\n \"Tag\": {\n \"type\": + \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n },\n \"name\": {\n \"type\": + \"string\"\n }\n },\n \"xml\": + {\n \"name\": \"tag\"\n }\n },\n \"Pet\": + {\n \"required\": [\n \"name\",\n \"photoUrls\"\n ],\n \"type\": + \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 10\n },\n \"name\": + {\n \"type\": \"string\",\n \"example\": + \"doggie\"\n },\n \"category\": {\n \"$ref\": + \"#/components/schemas/Category\"\n },\n \"photoUrls\": + {\n \"type\": \"array\",\n \"xml\": + {\n \"wrapped\": true\n },\n \"items\": + {\n \"type\": \"string\",\n \"xml\": + {\n \"name\": \"photoUrl\"\n }\n }\n },\n \"tags\": + {\n \"type\": \"array\",\n \"xml\": + {\n \"wrapped\": true\n },\n \"items\": + {\n \"$ref\": \"#/components/schemas/Tag\"\n }\n },\n \"status\": + {\n \"type\": \"string\",\n \"description\": + \"pet status in the store\",\n \"enum\": [\n \"available\",\n \"pending\",\n \"sold\"\n ]\n }\n },\n \"xml\": + {\n \"name\": \"pet\"\n }\n },\n \"ApiResponse\": + {\n \"type\": \"object\",\n \"properties\": {\n \"code\": + {\n \"type\": \"integer\",\n \"format\": + \"int32\"\n },\n \"type\": {\n \"type\": + \"string\"\n },\n \"message\": {\n \"type\": + \"string\"\n }\n },\n \"xml\": + {\n \"name\": \"##default\"\n }\n }\n },\n \"requestBodies\": + {\n \"Pet\": {\n \"description\": \"Pet object that + needs to be added to the store\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"UserArray\": + {\n \"description\": \"List of user object\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"type\": \"array\",\n \"items\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n }\n }\n }\n }\n },\n \"securitySchemes\": + {\n \"petstore_auth\": {\n \"type\": \"oauth2\",\n \"flows\": + {\n \"implicit\": {\n \"authorizationUrl\": + \"https://petstore3.swagger.io/oauth/authorize\",\n \"scopes\": + {\n \"write:pets\": \"modify pets in your account\",\n \"read:pets\": + \"read your pets\"\n }\n }\n }\n },\n \"api_key\": + {\n \"type\": \"apiKey\",\n \"name\": \"api_key\",\n \"in\": + \"header\"\n }\n }\n }\n}"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '47822' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-location --environment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19/definitions/openapi/importSpecification?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:08:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 8B9E66E3AF7344EE94C19E0A714A855D Ref B: MAA201060515035 Ref C: 2024-06-17T06:08:41Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_register_with_yml_spec.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_register_with_yml_spec.yaml new file mode 100644 index 00000000000..ecbf25ae1f2 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_register_with_yml_spec.yaml @@ -0,0 +1,268 @@ +interactions: +- request: + body: '{"properties": {"description": "API Description", "kind": "rest", "license": + {"name": "MIT"}, "summary": "API Description", "title": "Swagger Petstore"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-location --environment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Swagger + Petstore","summary":"API Description","description":"API Description","kind":"rest","license":{"name":"MIT"},"externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore","name":"swaggerpetstore","systemData":{"createdAt":"2024-06-17T06:09:02.8682859Z","lastModifiedAt":"2024-06-17T06:09:02.868285Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '568' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:02 GMT + etag: + - da0276e8-0000-0100-0000-666fd2fe0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 4F377773028A447197D16CE761E102A5 Ref B: MAA201060515019 Ref C: 2024-06-17T06:09:01Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"lifecycleStage": "design", "title": "1-0-0"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '62' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-location --environment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"1-0-0","lifecycleStage":"design"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0","name":"1-0-0","systemData":{"createdAt":"2024-06-17T06:09:05.6754636Z","lastModifiedAt":"2024-06-17T06:09:05.6754628Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '436' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:05 GMT + etag: + - 88044b23-0000-0100-0000-666fd3010000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 17D41011204E4ABEBAC5EA26142E16F4 Ref B: MAA201060515027 Ref C: 2024-06-17T06:09:04Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"description": "API Description", "title": "openapi"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '70' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-location --environment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0/definitions/openapi?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"openapi","description":"API + Description"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0/definitions/openapi","name":"openapi","systemData":{"createdAt":"2024-06-17T06:09:07.821597Z","lastModifiedAt":"2024-06-17T06:09:07.8215963Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '477' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:07 GMT + etag: + - 1301619e-0000-0100-0000-666fd3030000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: B6113623BAFA4500AB33E3F2DCEE2E9C Ref B: MAA201060515033 Ref C: 2024-06-17T06:09:07Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"format": "inline", "specification": {"name": "openapi", "version": "3-0-0"}, + "value": "openapi: \"3.0.0\"\ninfo:\n version: 1.0.0\n title: Swagger Petstore\n license:\n name: + MIT\nservers:\n - url: http://petstore.swagger.io/v1\npaths:\n /pets:\n get:\n summary: + List all pets\n operationId: listPets\n tags:\n - pets\n parameters:\n - + name: limit\n in: query\n description: How many items to return + at one time (max 100)\n required: false\n schema:\n type: + integer\n maximum: 100\n format: int32\n responses:\n ''200'':\n description: + A paged array of pets\n headers:\n x-next:\n description: + A link to the next page of responses\n schema:\n type: + string\n content:\n application/json: \n schema:\n $ref: + \"#/components/schemas/Pets\"\n default:\n description: unexpected + error\n content:\n application/json:\n schema:\n $ref: + \"#/components/schemas/Error\"\n post:\n summary: Create a pet\n operationId: + createPets\n tags:\n - pets\n requestBody:\n content:\n application/json:\n schema:\n $ref: + ''#/components/schemas/Pet''\n required: true\n responses:\n ''201'':\n description: + Null response\n default:\n description: unexpected error\n content:\n application/json:\n schema:\n $ref: + \"#/components/schemas/Error\"\n /pets/{petId}:\n get:\n summary: Info + for a specific pet\n operationId: showPetById\n tags:\n - pets\n parameters:\n - + name: petId\n in: path\n required: true\n description: + The id of the pet to retrieve\n schema:\n type: string\n responses:\n ''200'':\n description: + Expected response to a valid request\n content:\n application/json:\n schema:\n $ref: + \"#/components/schemas/Pet\"\n default:\n description: unexpected + error\n content:\n application/json:\n schema:\n $ref: + \"#/components/schemas/Error\"\ncomponents:\n schemas:\n Pet:\n type: + object\n required:\n - id\n - name\n properties:\n id:\n type: + integer\n format: int64\n name:\n type: string\n tag:\n type: + string\n Pets:\n type: array\n maxItems: 100\n items:\n $ref: + \"#/components/schemas/Pet\"\n Error:\n type: object\n required:\n - + code\n - message\n properties:\n code:\n type: integer\n format: + int32\n message:\n type: string\n"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '2996' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-location --environment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0/definitions/openapi/importSpecification?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:09:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 0215EC2C5E7141A1AEE5E7F97DA974C8 Ref B: MAA201060514031 Ref C: 2024-06-17T06:09:09Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_api_definition_details.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_api_definition_details.yaml new file mode 100644 index 00000000000..2077dd6794d --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_api_definition_details.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --definition-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"OpenAPI"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005","name":"clitest000005","systemData":{"createdAt":"2024-06-17T06:06:27.5864276Z","lastModifiedAt":"2024-06-17T06:06:27.5864268Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '464' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:06:30 GMT + etag: + - 1301718e-0000-0100-0000-666fd2630000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 3352D82D8A1B430BB69F66E51ED160C2 Ref B: MAA201060516021 Ref C: 2024-06-17T06:06:29Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_api_deployment_details.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_api_deployment_details.yaml new file mode 100644 index 00000000000..3e3894c0d10 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_api_deployment_details.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment show + Connection: + - keep-alive + ParameterSetName: + - -g -n --deployment-id --api-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"test + deployment","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/clitest000007","name":"clitest000007","systemData":{"createdAt":"2024-06-17T06:04:33.2572684Z","lastModifiedAt":"2024-06-17T06:04:33.2572668Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '700' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:04:34 GMT + etag: + - 85019203-0000-0100-0000-666fd1f10000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 0E1F8918811441368CD258555E601C98 Ref B: MAA201060515027 Ref C: 2024-06-17T06:04:35Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_api_details.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_api_details.yaml new file mode 100644 index 00000000000..64a8e537d3d --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_api_details.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:02:46.154261Z","lastModifiedAt":"2024-06-17T06:02:46.1542596Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '471' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:02:48 GMT + etag: + - da02f09d-0000-0100-0000-666fd1860000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 4C3EF35F4FEB4675B0E0788EC2AB76EA Ref B: MAA201060516009 Ref C: 2024-06-17T06:02:47Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_api_version_details.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_api_version_details.yaml new file mode 100644 index 00000000000..55ee12191fc --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_api_version_details.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"v1.0.0","lifecycleStage":"production"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:13:57.3360238Z","lastModifiedAt":"2024-06-17T06:13:57.3360229Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '455' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:14:00 GMT + etag: + - 88046295-0000-0100-0000-666fd4250000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 56258CAEFF90451E87A8B4FCD4F0B1BE Ref B: MAA201060516033 Ref C: 2024-06-17T06:13:59Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_environment_details.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_environment_details.yaml new file mode 100644 index 00000000000..3744f6a40ef --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_environment_details.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment show + Connection: + - keep-alive + ParameterSetName: + - -g -n --environment-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"test + environment","kind":"testing","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:06:39.999785Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '409' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:06:42 GMT + etag: + - 64013d68-0000-0100-0000-666fd2700000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 2AE6BBE678794788B668AF9A2FDA1E93 Ref B: MAA201060514031 Ref C: 2024-06-17T06:06:41Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_metadata_1.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_metadata_1.yaml new file mode 100644 index 00000000000..0c394d9addb --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_metadata_1.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata show + Connection: + - keep-alive + ParameterSetName: + - -g -n --metadata-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false},{"entity":"environment","required":true,"deprecated":false},{"entity":"deployment","required":true,"deprecated":false}],"schema":"{\"type\":\"boolean\", + \"title\":\"Public Facing\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:07:24.2545594Z","lastModifiedAt":"2024-06-17T06:07:24.2545587Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '617' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:07:26 GMT + etag: + - 66024ba6-0000-0100-0000-666fd29c0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: A2C3DC11EBF9422A9BE007E5AB54D2CC Ref B: MAA201060515019 Ref C: 2024-06-17T06:07:25Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_metadata_2.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_metadata_2.yaml new file mode 100644 index 00000000000..7422147a6ab --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_metadata_2.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --service-name --metadata-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false},{"entity":"environment","required":true,"deprecated":false},{"entity":"deployment","required":true,"deprecated":false}],"schema":"{\"type\":\"boolean\", + \"title\":\"Public Facing\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:07:43.763974Z","lastModifiedAt":"2024-06-17T06:07:43.7639731Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '616' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:07:46 GMT + etag: + - 660206a8-0000-0100-0000-666fd2af0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 3482BF1743B4449D855F24D661A177FB Ref B: MAA201060515019 Ref C: 2024-06-17T06:07:45Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_service_details.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_service_details.yaml new file mode 100644 index 00000000000..1f74d8a996d --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_show_service_details.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{},"systemData":{"createdAt":"2024-06-17T06:10:02.9971503Z","lastModifiedAt":"2024-06-17T06:10:02.9971428Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '375' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:10:04 GMT + etag: + - bb01645a-0000-0100-0000-666fd33c0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 3FF449D375B1428E8AE96F50E182F982 Ref B: MAA201060514039 Ref C: 2024-06-17T06:10:04Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_api.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_api.yaml new file mode 100644 index 00000000000..dc581d0eab5 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_api.yaml @@ -0,0 +1,119 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api update + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --summary + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:00:43.8961437Z","lastModifiedAt":"2024-06-17T06:00:43.8961428Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '472' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:00:46 GMT + etag: + - da02ce98-0000-0100-0000-666fd10b0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 1F6A49907923422DB22888AFAB448672 Ref B: MAA201060516053 Ref C: 2024-06-17T06:00:45Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"contacts": [], "customProperties": {}, "externalDocumentation": + [], "kind": "rest", "summary": "Basic REST API service", "title": "Echo API"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api update + Connection: + - keep-alive + Content-Length: + - '159' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --summary + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","summary":"Basic REST API service","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"lastModifiedAt":"2024-06-17T06:00:48.4600766Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '464' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:00:48 GMT + etag: + - da021099-0000-0100-0000-666fd1100000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 13CFDACADB4F46A09475F7E483B414F2 Ref B: MAA201060516053 Ref C: 2024-06-17T06:00:47Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_api_definition.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_api_definition.yaml new file mode 100644 index 00000000000..05f3b890bdc --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_api_definition.yaml @@ -0,0 +1,116 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition update + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --definition-id --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"OpenAPI"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005","name":"clitest000005","systemData":{"createdAt":"2024-06-17T06:06:51.8237574Z","lastModifiedAt":"2024-06-17T06:06:51.823757Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '463' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:06:54 GMT + etag: + - 1301d38e-0000-0100-0000-666fd27b0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 9535DF7868234564BC4B5D950D0386B7 Ref B: MAA201060515045 Ref C: 2024-06-17T06:06:53Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"title": "OpenAPI"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition update + Connection: + - keep-alive + Content-Length: + - '36' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --definition-id --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"OpenAPI"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004/definitions/clitest000005","name":"clitest000005","systemData":{"lastModifiedAt":"2024-06-17T06:06:55.5375378Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '421' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:06:55 GMT + etag: + - 1301da8e-0000-0100-0000-666fd27f0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: AB54729D42AA4341AA105C0E69F88699 Ref B: MAA201060515045 Ref C: 2024-06-17T06:06:54Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_api_deployment.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_api_deployment.yaml new file mode 100644 index 00000000000..45ea223eb36 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_api_deployment.yaml @@ -0,0 +1,120 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment update + Connection: + - keep-alive + ParameterSetName: + - -g -n --deployment-id --title --api-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"test + deployment","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/clitest000007","name":"clitest000007","systemData":{"createdAt":"2024-06-17T06:05:03.2174422Z","lastModifiedAt":"2024-06-17T06:05:03.2174413Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '700' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:05:05 GMT + etag: + - 85012c09-0000-0100-0000-666fd20f0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 64D808906E64452EA88E58105C27FB63 Ref B: MAA201060513011 Ref C: 2024-06-17T06:05:04Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"customProperties": {}, "definitionId": "/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006", + "environmentId": "/workspaces/default/environments/clitest000003", "server": + {"runtimeUri": ["https://example.com"]}, "title": "Production deployment"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api deployment update + Connection: + - keep-alive + Content-Length: + - '299' + Content-Type: + - application/json + ParameterSetName: + - -g -n --deployment-id --title --api-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"Production + deployment","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/clitest000007","name":"clitest000007","systemData":{"lastModifiedAt":"2024-06-17T06:05:07.2940903Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '663' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:05:07 GMT + etag: + - 8501ba09-0000-0100-0000-666fd2130000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 953F367BF10D44459A489F768A393CFC Ref B: MAA201060513011 Ref C: 2024-06-17T06:05:06Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_api_version.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_api_version.yaml new file mode 100644 index 00000000000..b30631e4520 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_api_version.yaml @@ -0,0 +1,116 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version update + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"v1.0.0","lifecycleStage":"production"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:14:03.0281298Z","lastModifiedAt":"2024-06-17T06:14:03.028129Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '454' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:14:05 GMT + etag: + - 88048097-0000-0100-0000-666fd42b0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: AD84D06E8340462CA4C445BA5642F958 Ref B: MAA201060513009 Ref C: 2024-06-17T06:14:05Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"lifecycleStage": "production", "title": "2023-01-01"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version update + Connection: + - keep-alive + Content-Length: + - '71' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"2023-01-01","lifecycleStage":"production"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004","name":"clitest000004","systemData":{"lastModifiedAt":"2024-06-17T06:14:07.4023252Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '416' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:14:07 GMT + etag: + - 8804c299-0000-0100-0000-666fd42f0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: DB3FAB01D5CE4E18A92F3120B0058CC5 Ref B: MAA201060513009 Ref C: 2024-06-17T06:14:06Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_custom_properties.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_custom_properties.yaml new file mode 100644 index 00000000000..3bb0fcf7853 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_custom_properties.yaml @@ -0,0 +1,119 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api update + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --custom-properties + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:01:04.8798001Z","lastModifiedAt":"2024-06-17T06:01:04.8797987Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '472' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:01:10 GMT + etag: + - da02fc99-0000-0100-0000-666fd1200000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 0270353E19644F19BF2C77BAFE8CAF8A Ref B: MAA201060514029 Ref C: 2024-06-17T06:01:09Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"contacts": [], "customProperties": {"clitest000004": true}, + "externalDocumentation": [], "kind": "rest", "title": "Echo API"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api update + Connection: + - keep-alive + Content-Length: + - '143' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --custom-properties + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{"clitest000004":true}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"lastModifiedAt":"2024-06-17T06:01:12.1207942Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '449' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:01:11 GMT + etag: + - da02439a-0000-0100-0000-666fd1280000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 0D31B0FEC0C14B4A801D159E9454200E Ref B: MAA201060514029 Ref C: 2024-06-17T06:01:10Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_environment.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_environment.yaml new file mode 100644 index 00000000000..e0ed65c1d57 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_environment.yaml @@ -0,0 +1,119 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment update + Connection: + - keep-alive + ParameterSetName: + - -g -n --environment-id --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"test + environment","kind":"testing","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:06:58.4859682Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '410' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:07:01 GMT + etag: + - 64019369-0000-0100-0000-666fd2820000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 514388F4E538459AA3F179C5AAA95EA4 Ref B: MAA201060514025 Ref C: 2024-06-17T06:07:00Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"customProperties": {}, "kind": "testing", "title": "Public + cloud"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic environment update + Connection: + - keep-alive + Content-Length: + - '84' + Content-Type: + - application/json + ParameterSetName: + - -g -n --environment-id --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"Public + cloud","kind":"testing","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/clitest000003","name":"clitest000003","systemData":{"lastModifiedAt":"2024-06-17T06:07:03.2067912Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '411' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:07:03 GMT + etag: + - 6401e469-0000-0100-0000-666fd2870000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: E37ED7CA1720424EB4C451FEF1B694F3 Ref B: MAA201060514025 Ref C: 2024-06-17T06:07:01Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_metadata.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_metadata.yaml new file mode 100644 index 00000000000..3f08ff5829b --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_metadata.yaml @@ -0,0 +1,121 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --service-name --metadata-name --schema + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false},{"entity":"environment","required":true,"deprecated":false},{"entity":"deployment","required":true,"deprecated":false}],"schema":"{\"type\":\"boolean\", + \"title\":\"Public Facing\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:08:01.2493855Z","lastModifiedAt":"2024-06-17T06:08:01.2493846Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '617' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:04 GMT + etag: + - 66022daa-0000-0100-0000-666fd2c10000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: E429D9C923F74789AD640192BE58456A Ref B: MAA201060513009 Ref C: 2024-06-17T06:08:03Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"assignedTo": [{"deprecated": false, "entity": "api", "required": + true}, {"deprecated": false, "entity": "environment", "required": true}, {"deprecated": + false, "entity": "deployment", "required": true}], "schema": "{\"type\": \"string\", + \"title\":\"Last name\", \"pattern\": \"^[a-zA-Z0-9]+$\"}"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata update + Connection: + - keep-alive + Content-Length: + - '315' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --service-name --metadata-name --schema + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false},{"entity":"environment","required":true,"deprecated":false},{"entity":"deployment","required":true,"deprecated":false}],"schema":"{\"type\": + \"string\", \"title\":\"Last name\", \"pattern\": \"^[a-zA-Z0-9]+$\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003","name":"clitest000003","systemData":{"lastModifiedAt":"2024-06-17T06:08:05.6760041Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '603' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:05 GMT + etag: + - 6602beaa-0000-0100-0000-666fd2c50000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: BC878E519675422B9E27E67AF32A7BFE Ref B: MAA201060513009 Ref C: 2024-06-17T06:08:04Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_service_details.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_service_details.yaml new file mode 100644 index 00000000000..728dee74ebf --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_update_service_details.yaml @@ -0,0 +1,115 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic update + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{},"systemData":{"createdAt":"2024-06-24T07:41:10.8479478Z","lastModifiedAt":"2024-06-24T07:41:10.8479401Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '375' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jun 2024 07:41:13 GMT + etag: + - 1a00fba9-0000-0100-0000-667923180000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: E1B5EFEBCBF949AEABCBBA2C75F2C15D Ref B: MAA201060513029 Ref C: 2024-06-24T07:41:13Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "properties": {}, "sku": {"name": "Free"}, "tags": + {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic update + Connection: + - keep-alive + Content-Length: + - '77' + Content-Type: + - application/json + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{"dataApiHostname":"clitest000002.data.eastus.azure-apicenter.ms"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{},"systemData":{"createdAt":"2024-06-24T07:41:10.8479478Z","lastModifiedAt":"2024-06-24T07:41:15.5003845Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '439' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jun 2024 07:41:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 43C6D292DD9F43F2A006A9D01E4DD4E5 Ref B: MAA201060513029 Ref C: 2024-06-24T07:41:14Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_import_from_apim.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_import_from_apim.yaml index e22f3f54d53..a424530b0eb 100644 --- a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_import_from_apim.yaml +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_import_from_apim.yaml @@ -1,56 +1,760 @@ interactions: - request: - body: '{"sourceResourceIds": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Api-Default-Central-US-EUAP/providers/Microsoft.ApiManagement/service/alzasloneuap06/apis/doesnotexist"]}' + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","identity":{"type":"SystemAssigned","principalId":"37b3863d-0cea-4c1f-b8af-bbaf46869811","tenantId":"f0348563-e707-449c-8685-c83d24eaf3c0"},"sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{},"systemData":{"createdAt":"2024-06-17T06:10:05.8578551Z","lastModifiedAt":"2024-06-17T06:10:05.8578472Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '515' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:10:08 GMT + etag: + - bb01825a-0000-0100-0000-666fd33e0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 97A70872465247979B5EB9A6966CD839 Ref B: MAA201060513021 Ref C: 2024-06-17T06:10:07Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clirg000001?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_import_from_apim","date":"2024-06-17T06:10:13Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '357' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:10:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 21F3B39963E24418BFC64DB2EAC0C914 Ref B: MAA201060513039 Ref C: 2024-06-17T06:10:10Z' + status: + code: 200 + message: OK +- request: + body: '{"sku": {"name": "Consumption", "capacity": 0}, "location": "eastus", "properties": + {"notificationSenderEmail": "test@example.com", "virtualNetworkType": "None", + "restore": false, "publisherEmail": "test@example.com", "publisherName": "test"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + Content-Length: + - '243' + Content-Type: + - application/json + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003?api-version=2022-08-01 + response: + body: + string: '{"etag":"AAAAAAGVG5c=","properties":{"publisherEmail":"test@example.com","publisherName":"test","notificationSenderEmail":"test@example.com","provisioningState":"Activating","targetProvisioningState":"Activating","createdAtUtc":"2024-06-17T06:10:15.5802218Z","gatewayUrl":"https://cli000003.azure-api.net","gatewayRegionalUrl":null,"portalUrl":null,"developerPortalUrl":null,"managementApiUrl":null,"scmUrl":null,"hostnameConfigurations":[{"type":"Proxy","hostName":"cli000003.azure-api.net","encodedCertificate":null,"keyVaultId":null,"certificatePassword":null,"negotiateClientCertificate":false,"certificate":null,"defaultSslBinding":true,"identityClientId":null,"certificateSource":"BuiltIn","certificateStatus":null}],"publicIPAddresses":null,"privateIPAddresses":null,"additionalLocations":null,"virtualNetworkConfiguration":null,"customProperties":null,"virtualNetworkType":"None","certificates":null,"disableGateway":false,"natGatewayState":"Disabled","outboundPublicIPAddresses":null,"apiVersionConstraint":{"minApiVersion":null},"publicIpAddressId":null,"publicNetworkAccess":"Enabled","privateEndpointConnections":null,"platformVersion":"mtv1"},"sku":{"name":"Consumption","capacity":0},"identity":null,"zones":null,"systemData":{"createdBy":"blackchoey@outlook.com","createdByType":"User","createdAt":"2024-06-17T06:10:14.7047383Z","lastModifiedBy":"blackchoey@outlook.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-17T06:10:14.7047383Z"},"location":"East + US","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","name":"cli000003","type":"Microsoft.ApiManagement/service"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014194548284&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1K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LvLUPNmbqn9YVzF31JbPnOl5MNh8LGpmBb6rVCHWHp6C0gZpnTdKHT5gi1STo2If0uzpvFCs9XnbYhBM5fBFz-yghCUSEnNp7E7rv2iM192wuCRjWqeEI_-2Xa32alHb9Yfo1Q3mUuJ845Wcauxyg&h=kprI7HH98Kl1zx0A50ZpNj0vz5NLxbmeEwgVuvWPmgU + cache-control: + - no-cache + content-length: + - '1692' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:10:19 GMT + etag: + - '"AAAAAAGVG5c="' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014194548284&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KW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BC1LcK2WaJXEkahS5K_dzC4XXMfLiFznpSZ8ai21jBqmpSY6FehpLTdYrd4wVY0lAaFd7E0fLvLUPNmbqn9YVzF31JbPnOl5MNh8LGpmBb6rVCHWHp6C0gZpnTdKHT5gi1STo2If0uzpvFCs9XnbYhBM5fBFz-yghCUSEnNp7E7rv2iM192wuCRjWqeEI_-2Xa32alHb9Yfo1Q3mUuJ845Wcauxyg&h=kprI7HH98Kl1zx0A50ZpNj0vz5NLxbmeEwgVuvWPmgU + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 3920098C32B64B62B7BE584F828BED03 Ref B: MAA201060513049 Ref C: 2024-06-17T06:10:12Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014194548284&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEz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n43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=WFa6-uYqyX0cqE9rh-3ced183nn0qMlrLsAwiu2pOhq37cWA_fDMfiTAN0PpQikWda0_LiBsV0Rt_yHt0zEZeK2a3FxkwCTRUKH7HeQ3OCHm2ZNQNFjCJeHOdBC1LcK2WaJXEkahS5K_dzC4XXMfLiFznpSZ8ai21jBqmpSY6FehpLTdYrd4wVY0lAaFd7E0fLvLUPNmbqn9YVzF31JbPnOl5MNh8LGpmBb6rVCHWHp6C0gZpnTdKHT5gi1STo2If0uzpvFCs9XnbYhBM5fBFz-yghCUSEnNp7E7rv2iM192wuCRjWqeEI_-2Xa32alHb9Yfo1Q3mUuJ845Wcauxyg&h=kprI7HH98Kl1zx0A50ZpNj0vz5NLxbmeEwgVuvWPmgU + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014208894399&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQD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Abn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=e7EgyVyruG248Y9ZFyyyZczyb8RmHQZp5ue6ZZDmK5JurstGLeSv3ClQ_iwiygVUzY9F0gKloBDcEqfzS7UtpPiJgUAMTw74gC98ZSC85B0blW7qwsTwYpHC6OM7RrWEGxxuKkZmeeVpvb_7Zm0nZjcrvdkoOV8ZqDNpegOPSVWSFWtksgtavA0s4Tj-ictNemU0IJ4CPx3V_8ESzeSZ9iKblKYilUgnTnu8l5_IIz89-ahBKAT77oulaV_ahxRpV0Y7Eth8qWClczs2ClDY9m7-mVyjGb54RBaxjObVyur36gDhHml6IQkwxikAdeQb7uA02XnJkilIh4EhVrbrww&h=Ht1EPbvkpR5JZufH6cgRloBy42ehe0TRr6E_ccXj-Fo + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:10:20 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014209051493&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUw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ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=JjsZmPJF43V5ifnVpe6XORErrEii2e_i8gqXjfPrj8hTUOcHi1rQiH7YIYl8j1F9aFCh-UfmqzSHkmKBNRsDemAk54oJr8LsYrON7zYaPpMykqEc1DJizYL7U9tI9QAHe6LLKRVYur3f5WbdsmgH4Wl6U1BeXE2d8J7wRzAej3oimxyPntJKX1uCtDEVmloDRqbsf3YYsDWdYdkMKPV8OrnGPz9duIpnLkKB1m5OEH1viEvspPNH13osZXoQb8uEa-v1pbazwKzBu0PbQhbZOz7UZunD3Aq0HvbzZpD2JN_pmK5snSjRCMxU-d8YFFfJ23cWWXru70YUfUChSY_XGQ&h=Tyo179fged1dZ0QsFDEuP-9HUyCnipcxqFHOe3WdowI + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 0F6EE3D687CF4F3DA2A28CD430C429E4 Ref B: MAA201060513049 Ref C: 2024-06-17T06:10:19Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014194548284&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUE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YI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=WFa6-uYqyX0cqE9rh-3ced183nn0qMlrLsAwiu2pOhq37cWA_fDMfiTAN0PpQikWda0_LiBsV0Rt_yHt0zEZeK2a3FxkwCTRUKH7HeQ3OCHm2ZNQNFjCJeHOdBC1LcK2WaJXEkahS5K_dzC4XXMfLiFznpSZ8ai21jBqmpSY6FehpLTdYrd4wVY0lAaFd7E0fLvLUPNmbqn9YVzF31JbPnOl5MNh8LGpmBb6rVCHWHp6C0gZpnTdKHT5gi1STo2If0uzpvFCs9XnbYhBM5fBFz-yghCUSEnNp7E7rv2iM192wuCRjWqeEI_-2Xa32alHb9Yfo1Q3mUuJ845Wcauxyg&h=kprI7HH98Kl1zx0A50ZpNj0vz5NLxbmeEwgVuvWPmgU + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014423783240&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlky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EAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=qsiBiSOdANGXz-3uoyfemVJ8Rtl8R3WJNabvAZzJDZquEmV135mktWc5zvMk76MIB08Gnu-FSFOAkZ0R2AV0whQJx1HZLoO75LTtYy5kXOob1y8zxPf4gSYYPoTC5_E1Jhs_0tHepDfn61hxziqDllDraYYcnuIanx9cESS_nW-ayG2wcV0EhuxhC37qbC89bo3LiyLFTfxj-3eD57lNYZxGMuCEtE24FbWF5WTT0znJLqjnsuYsknSUopEE-IUeDeKw_HjAbQJRmjllYGuMSqLcsa8VgN0GnBpB4BJtxI0GUdAxhjYA3NJ6DxhxRuIG2fFmtJt4qyZe-SAix4QiIA&h=ds1ps-xI64E3dvMVtQiWFTXR7Z8NefsO-AKozXjboc4 + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:10:42 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014423783240&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5j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IwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=qsiBiSOdANGXz-3uoyfemVJ8Rtl8R3WJNabvAZzJDZquEmV135mktWc5zvMk76MIB08Gnu-FSFOAkZ0R2AV0whQJx1HZLoO75LTtYy5kXOob1y8zxPf4gSYYPoTC5_E1Jhs_0tHepDfn61hxziqDllDraYYcnuIanx9cESS_nW-ayG2wcV0EhuxhC37qbC89bo3LiyLFTfxj-3eD57lNYZxGMuCEtE24FbWF5WTT0znJLqjnsuYsknSUopEE-IUeDeKw_HjAbQJRmjllYGuMSqLcsa8VgN0GnBpB4BJtxI0GUdAxhjYA3NJ6DxhxRuIG2fFmtJt4qyZe-SAix4QiIA&h=ds1ps-xI64E3dvMVtQiWFTXR7Z8NefsO-AKozXjboc4 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 1C5669A4DE76411FB54480B7531F36C1 Ref B: MAA201060513049 Ref C: 2024-06-17T06:10:41Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014194548284&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZT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eQ3OCHm2ZNQNFjCJeHOdBC1LcK2WaJXEkahS5K_dzC4XXMfLiFznpSZ8ai21jBqmpSY6FehpLTdYrd4wVY0lAaFd7E0fLvLUPNmbqn9YVzF31JbPnOl5MNh8LGpmBb6rVCHWHp6C0gZpnTdKHT5gi1STo2If0uzpvFCs9XnbYhBM5fBFz-yghCUSEnNp7E7rv2iM192wuCRjWqeEI_-2Xa32alHb9Yfo1Q3mUuJ845Wcauxyg&h=kprI7HH98Kl1zx0A50ZpNj0vz5NLxbmeEwgVuvWPmgU + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014631018930&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XK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dxyV7O0giW90NONDSDatJKu4b7GInYLayyoZ9zv2bY27SFdnYCNfv39RNJJUDZSQ3KkCMQY0BhyyaM87lkFb5vFgRXiJv8rd_ArOgewfGEO-NjrXlvl2KBvUd9I_QmeN9d1r-tC9wDoK2gI15FLLPMz8ioJWbYPP3hJBN7WlrJS2IFWX0dhi2-lENNdt9autcWIBVkFzDdS5YO_6zJ4oy4TAncvA1ulWXW4ssCqXTT3wg&h=HUwcZQB_7xL9KQP45aBAJe_ubYP-yqfORsZT9_LfUCE + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:11:02 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014631018930&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30L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kS0sgal-Ey-AW_id_eENNtmK0GYtdxyV7O0giW90NONDSDatJKu4b7GInYLayyoZ9zv2bY27SFdnYCNfv39RNJJUDZSQ3KkCMQY0BhyyaM87lkFb5vFgRXiJv8rd_ArOgewfGEO-NjrXlvl2KBvUd9I_QmeN9d1r-tC9wDoK2gI15FLLPMz8ioJWbYPP3hJBN7WlrJS2IFWX0dhi2-lENNdt9autcWIBVkFzDdS5YO_6zJ4oy4TAncvA1ulWXW4ssCqXTT3wg&h=HUwcZQB_7xL9KQP45aBAJe_ubYP-yqfORsZT9_LfUCE + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3748' + x-msedge-ref: + - 'Ref A: 7D7D4018F8904D439E0E1E342FE5113A Ref B: MAA201060513049 Ref C: 2024-06-17T06:11:02Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014194548284&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT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pHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=WFa6-uYqyX0cqE9rh-3ced183nn0qMlrLsAwiu2pOhq37cWA_fDMfiTAN0PpQikWda0_LiBsV0Rt_yHt0zEZeK2a3FxkwCTRUKH7HeQ3OCHm2ZNQNFjCJeHOdBC1LcK2WaJXEkahS5K_dzC4XXMfLiFznpSZ8ai21jBqmpSY6FehpLTdYrd4wVY0lAaFd7E0fLvLUPNmbqn9YVzF31JbPnOl5MNh8LGpmBb6rVCHWHp6C0gZpnTdKHT5gi1STo2If0uzpvFCs9XnbYhBM5fBFz-yghCUSEnNp7E7rv2iM192wuCRjWqeEI_-2Xa32alHb9Yfo1Q3mUuJ845Wcauxyg&h=kprI7HH98Kl1zx0A50ZpNj0vz5NLxbmeEwgVuvWPmgU + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014845606372&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBA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0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=nEahLH2G-QrcZDIBTubTv6DPlu3Rmh9nW3vxmdRnYarZozAn5O6dwXBKWqJBikwPPNFxFArTZXje7fNPmUvjKuxPuLPum7dpfmtujbFe-rCUezeXKbqQxu1hUsKU-1Nexg4AEt_tLwOXQJGg75oV72t0tfXfvCPLUrwViBwYZEA9FtvxD6aYMlrJTMTnARXGYQ-P8_ewfz-P8JAfn5KnGPeWlRh29Xs1oMk6_iv7Jbv2ltJVscMX6MUK7oR-OdQTLE_m7n-iwSwzW2ulINJdrH6DbWG7TsKD0-MtGAfcIk2NoZ1l4BcSFUUOaHUzB_js5IZzMh83xsGkHpqiwmuCww&h=vB-SPZ4tOLEOavsVbPd72AMl_NjQ0XHMKKmewLqdrQA + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:11:24 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014845606372&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwN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lKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=nEahLH2G-QrcZDIBTubTv6DPlu3Rmh9nW3vxmdRnYarZozAn5O6dwXBKWqJBikwPPNFxFArTZXje7fNPmUvjKuxPuLPum7dpfmtujbFe-rCUezeXKbqQxu1hUsKU-1Nexg4AEt_tLwOXQJGg75oV72t0tfXfvCPLUrwViBwYZEA9FtvxD6aYMlrJTMTnARXGYQ-P8_ewfz-P8JAfn5KnGPeWlRh29Xs1oMk6_iv7Jbv2ltJVscMX6MUK7oR-OdQTLE_m7n-iwSwzW2ulINJdrH6DbWG7TsKD0-MtGAfcIk2NoZ1l4BcSFUUOaHUzB_js5IZzMh83xsGkHpqiwmuCww&h=vB-SPZ4tOLEOavsVbPd72AMl_NjQ0XHMKKmewLqdrQA + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 34CFF39178064BF28D626AB5F3958549 Ref B: MAA201060513049 Ref C: 2024-06-17T06:11:23Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014194548284&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGt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KwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=WFa6-uYqyX0cqE9rh-3ced183nn0qMlrLsAwiu2pOhq37cWA_fDMfiTAN0PpQikWda0_LiBsV0Rt_yHt0zEZeK2a3FxkwCTRUKH7HeQ3OCHm2ZNQNFjCJeHOdBC1LcK2WaJXEkahS5K_dzC4XXMfLiFznpSZ8ai21jBqmpSY6FehpLTdYrd4wVY0lAaFd7E0fLvLUPNmbqn9YVzF31JbPnOl5MNh8LGpmBb6rVCHWHp6C0gZpnTdKHT5gi1STo2If0uzpvFCs9XnbYhBM5fBFz-yghCUSEnNp7E7rv2iM192wuCRjWqeEI_-2Xa32alHb9Yfo1Q3mUuJ845Wcauxyg&h=kprI7HH98Kl1zx0A50ZpNj0vz5NLxbmeEwgVuvWPmgU + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542015053130866&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vc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YKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=aewG4nfj1p15CfdozBV76OEUzPTMoKewbHczAY6yaFO0DqAaqTupvAUwpKA1syuWA3G4INgXRig30aJFmaS1wIwz0vD4Oz12j3ocFuligQyMcJ60XjaY-T0LqiaIBT_gbC4Y7idKjDe2Jv-zGvm3UG2lXl09RZ2CNAQ2D4q8illPfP-okpdDvBF1gBc7XEJWFH8PPqBXQHrCsHynu0J6vPVOvZaM2myIwI9OHXrNWV6xi226_qWW7-vd2biKpASZ6Gd86h2Gb1KrUAYp0IerfK9vHSxuspf3YoiChgaMpiVXfJxGo5mKyuj3ZzHPBzHhUsblUz-NJjX3TvYWol9hFQ&h=IAyCGD9sgdMb0InL7zwYuFq2SoR9yNYmCDltStN0qeQ + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:11:45 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542015053287514&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRw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: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: D2C038DFDAE241E0A1224FA0A53FBE60 Ref B: MAA201060513049 Ref C: 2024-06-17T06:11:44Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXl1a2NwdzJteDZpaW03NjV5MnVsZl9BY3RfOWVjYjBhNDM=?api-version=2022-08-01&asyncResponse&t=638542014194548284&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBD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sV0Rt_yHt0zEZeK2a3FxkwCTRUKH7HeQ3OCHm2ZNQNFjCJeHOdBC1LcK2WaJXEkahS5K_dzC4XXMfLiFznpSZ8ai21jBqmpSY6FehpLTdYrd4wVY0lAaFd7E0fLvLUPNmbqn9YVzF31JbPnOl5MNh8LGpmBb6rVCHWHp6C0gZpnTdKHT5gi1STo2If0uzpvFCs9XnbYhBM5fBFz-yghCUSEnNp7E7rv2iM192wuCRjWqeEI_-2Xa32alHb9Yfo1Q3mUuJ845Wcauxyg&h=kprI7HH98Kl1zx0A50ZpNj0vz5NLxbmeEwgVuvWPmgU + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:12:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 236E854724344BDE905276F7984B9141 Ref B: MAA201060513049 Ref C: 2024-06-17T06:12:05Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003?api-version=2022-08-01 + response: + body: + string: '{"etag":"AAAAAAGVG6o=","properties":{"publisherEmail":"test@example.com","publisherName":"test","notificationSenderEmail":"test@example.com","provisioningState":"Succeeded","targetProvisioningState":"","createdAtUtc":"2024-06-17T06:10:15.5802218Z","gatewayUrl":"https://cli000003.azure-api.net","gatewayRegionalUrl":null,"portalUrl":null,"developerPortalUrl":null,"managementApiUrl":null,"scmUrl":null,"hostnameConfigurations":[{"type":"Proxy","hostName":"cli000003.azure-api.net","encodedCertificate":null,"keyVaultId":null,"certificatePassword":null,"negotiateClientCertificate":false,"certificate":null,"defaultSslBinding":true,"identityClientId":null,"certificateSource":"BuiltIn","certificateStatus":null}],"publicIPAddresses":null,"privateIPAddresses":null,"additionalLocations":null,"virtualNetworkConfiguration":null,"customProperties":{"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2":"False"},"virtualNetworkType":"None","certificates":null,"disableGateway":false,"natGatewayState":"Disabled","outboundPublicIPAddresses":null,"apiVersionConstraint":{"minApiVersion":null},"publicIpAddressId":null,"publicNetworkAccess":"Enabled","privateEndpointConnections":null,"platformVersion":"mtv1"},"sku":{"name":"Consumption","capacity":0},"identity":null,"zones":null,"systemData":{"createdBy":"blackchoey@outlook.com","createdByType":"User","createdAt":"2024-06-17T06:10:14.7047383Z","lastModifiedBy":"blackchoey@outlook.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-17T06:10:14.7047383Z"},"location":"East + US","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","name":"cli000003","type":"Microsoft.ApiManagement/service"}' + headers: + cache-control: + - no-cache + content-length: + - '2180' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:08 GMT + etag: + - '"AAAAAAGVG6o="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 030809940FC34B968DB8768A38A1ECDD Ref B: MAA201060513049 Ref C: 2024-06-17T06:12:06Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"type": "http", "subscriptionRequired": false, "displayName": + "Echo API", "path": "/echo", "protocols": ["https"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + Content-Length: + - '131' + Content-Type: + - application/json + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"echo\",\r\n \"properties\": {\r\n \"displayName\": \"Echo API\",\r\ + \n \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"echo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null\r\n },\r\n \"subscriptionKeyParameterNames\": {\r\n \ + \ \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\": \"subscription-key\"\ + \r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '721' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:10 GMT + etag: + - '"AAAAAOMyfMA="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 725A7EB19DFB4C14AFCA2C0B8D45C458 Ref B: MAA201060515035 Ref C: 2024-06-17T06:12:10Z' + status: + code: 201 + message: Created +- request: + body: null headers: Accept: - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - apic service import-from-apim + - apim api create + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"echo\",\r\n \"properties\": {\r\n \"displayName\": \"Echo API\",\r\ + \n \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"echo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null,\r\n \"oAuth2AuthenticationSettings\": [],\r\n \"\ + openidAuthenticationSettings\": []\r\n },\r\n \"subscriptionKeyParameterNames\"\ + : {\r\n \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\"\ + : \"subscription-key\"\r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '807' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:11 GMT + etag: + - '"AAAAAOMyfMA="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: C779063C16B743AC8B368F92B42CD1D9 Ref B: MAA201060515035 Ref C: 2024-06-17T06:12:11Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "GetOperation", "method": "GET", "urlTemplate": + "/echo"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api operation create Connection: - keep-alive Content-Length: - - '196' + - '88' Content-Type: - application/json + If-Match: + - '*' ParameterSetName: - - -g --service-name --source-resource-ids + - -g --service-name --api-id --url-template --method --display-name User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/api-center-test/providers/Microsoft.ApiCenter/services/contosoeuap/importFromApim?api-version=2024-03-01 + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo/operations/49e023ced9dd4ddabd8251c336f7c0a4?api-version=2022-08-01 response: body: - string: '' + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo/operations/49e023ced9dd4ddabd8251c336f7c0a4\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis/operations\",\r\n\ + \ \"name\": \"49e023ced9dd4ddabd8251c336f7c0a4\",\r\n \"properties\": {\r\ + \n \"displayName\": \"GetOperation\",\r\n \"method\": \"GET\",\r\n \ + \ \"urlTemplate\": \"/echo\",\r\n \"templateParameters\": [],\r\n \ + \ \"description\": null,\r\n \"request\": {\r\n \"queryParameters\"\ + : [],\r\n \"headers\": [],\r\n \"representations\": []\r\n },\r\ + \n \"responses\": [],\r\n \"policies\": null\r\n }\r\n}" headers: - api-supported-versions: - - 2023-07-01-preview, 2024-03-01 cache-control: - no-cache content-length: - - '0' + - '629' + content-type: + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 05:39:28 GMT + - Mon, 17 Jun 2024 06:12:14 GMT + etag: + - '"AAAAAOMyfNI="' expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/api-center-test/providers/Microsoft.ApiCenter/services/contosoeuap/operationResults/c3d9b2f2-e9ac-48d4-bcdf-642e621f9d9f?api-version=2024-03-01&t=638411531694600298&c=MIIHADCCBeigAwIBAgITHgORCU8eKXDLsVSbWAAAA5EJTzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjMxMTAzMDM0MzMwWhcNMjQxMDI4MDM0MzMwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANrs2LW36vihrxbI7M0sTmep6R-Sr1n1BIy11gNYMYNBFayRIsZHphQyQ3HACEMCaYZ_HjfAfwyRvrgFuHllf3TI4haJ-OnF20kuF3i1kqAXYrpEfAR0D3lY_qbGUYwvR6xPxUxV7KpoiEeo_qRmmyWntw0A6fGpiijGFMD2hU-01ANLHrUe5uyZyPnSS9X2oku8QNoYc8gPK2n-uERXH9unZe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qsZ1l7iZC1nPowj5IrPpQrDJAZdSTIJsaINCoe5KQQ5Ab3-Zaps7q3moA&h=me5zP4CQTdRy8z-3-euVnUpD9EXm2afSX0rgCk1Wh_s pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-powered-by: - - ASP.NET + - '199' + x-msedge-ref: + - 'Ref A: 3E336A031BF9469AAD81485DEF944E42 Ref B: MAA201060513029 Ref C: 2024-06-17T06:12:13Z' status: - code: 202 - message: Accepted + code: 201 + message: Created +- request: + body: '{"properties": {"type": "http", "subscriptionRequired": false, "displayName": + "Foo API", "path": "/foo", "protocols": ["https"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + Content-Length: + - '129' + Content-Type: + - application/json + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"foo\",\r\n \"properties\": {\r\n \"displayName\": \"Foo API\",\r\n\ + \ \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"foo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null\r\n },\r\n \"subscriptionKeyParameterNames\": {\r\n \ + \ \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\": \"subscription-key\"\ + \r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '717' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:17 GMT + etag: + - '"AAAAAOMyfNY="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 6FBAFA3C3FE24171A704644811AF5FC9 Ref B: MAA201060513051 Ref C: 2024-06-17T06:12:16Z' + status: + code: 201 + message: Created - request: body: null headers: @@ -59,97 +763,276 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - apic service import-from-apim + - apim api create Connection: - keep-alive ParameterSetName: - - -g --service-name --source-resource-ids + - -g --service-name --api-id --display-name --path User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/api-center-test/providers/Microsoft.ApiCenter/services/contosoeuap/operationResults/c3d9b2f2-e9ac-48d4-bcdf-642e621f9d9f?api-version=2024-03-01&t=638411531694600298&c=MIIHADCCBeigAwIBAgITHgORCU8eKXDLsVSbWAAAA5EJTzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjMxMTAzMDM0M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indc6Qn8ymUd6c5LjW9elkr3DRVHKGM6iH4YM_wyXZKmVgbMSd9kEqRZ_tfgEtcEtDPUKlHyqTJRr7y_eGUVDN-duw&s=NOOyeMHvuOyBfkiNWOsNrLxDankVV4ce4I83kDNU5A6YD9u3-BjEgyFE1wAiY_b9j-YvLz0A-CYra-e4jnOJjsKXMmwtamdS2GqPecLDzAcztcq7tdrxFIY_YVf478gs_Io9ic0iOHubOaqySSTA8mvNfwkYJ1NNOq_XqoAYaugeOogItIqUyrymrNc1E00X06NoftVbhcIFw5GNaHsE-74dhqPIJNyqPrlCWbvTecxYtijJCjo6eE6MSwF2nIYNDGfFOdLrOpiBFaHPTHPj2eFerGxvFqsZ1l7iZC1nPowj5IrPpQrDJAZdSTIJsaINCoe5KQQ5Ab3-Zaps7q3moA&h=me5zP4CQTdRy8z-3-euVnUpD9EXm2afSX0rgCk1Wh_s + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo?api-version=2022-08-01 response: body: - string: '{"provisioningState":"Failed","comment":"Failed to obtain schema from - APIM for /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/api-default-central-us-euap/providers/microsoft.apimanagement/service/alzasloneuap06/apis/doesnotexist\nFailed - when talking to APIM: Unable to fetch credential for identity 72f988bf-86f1-41af-91ab-2d7cd011db47/05285404-1485-4915-94be-9f4fd0f57b7b/systemAssigned.","error":{"code":"400","message":"Failed - to obtain schema from APIM for /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/api-default-central-us-euap/providers/microsoft.apimanagement/service/alzasloneuap06/apis/doesnotexist\nFailed - when talking to APIM: Unable to fetch credential for identity 72f988bf-86f1-41af-91ab-2d7cd011db47/05285404-1485-4915-94be-9f4fd0f57b7b/systemAssigned."}}' + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"foo\",\r\n \"properties\": {\r\n \"displayName\": \"Foo API\",\r\n\ + \ \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"foo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null,\r\n \"oAuth2AuthenticationSettings\": [],\r\n \"\ + openidAuthenticationSettings\": []\r\n },\r\n \"subscriptionKeyParameterNames\"\ + : {\r\n \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\"\ + : \"subscription-key\"\r\n },\r\n \"isCurrent\": true\r\n }\r\n}" headers: - api-supported-versions: - - 2023-07-01-preview, 2024-03-01 cache-control: - no-cache content-length: - - '813' + - '803' content-type: - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 05:39:29 GMT + - Mon, 17 Jun 2024 06:12:18 GMT + etag: + - '"AAAAAOMyfNY="' expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: E73A1991643E44FFAB172EAC67BAEE66 Ref B: MAA201060513051 Ref C: 2024-06-17T06:12:18Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "GetOperation", "method": "GET", "urlTemplate": + "/foo"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api operation create + Connection: + - keep-alive + Content-Length: + - '87' + Content-Type: + - application/json + If-Match: + - '*' + ParameterSetName: + - -g --service-name --api-id --url-template --method --display-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo/operations/cb01a571e0294bc084069039b0008661?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo/operations/cb01a571e0294bc084069039b0008661\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis/operations\",\r\n\ + \ \"name\": \"cb01a571e0294bc084069039b0008661\",\r\n \"properties\": {\r\ + \n \"displayName\": \"GetOperation\",\r\n \"method\": \"GET\",\r\n \ + \ \"urlTemplate\": \"/foo\",\r\n \"templateParameters\": [],\r\n \"\ + description\": null,\r\n \"request\": {\r\n \"queryParameters\": [],\r\ + \n \"headers\": [],\r\n \"representations\": []\r\n },\r\n \ + \ \"responses\": [],\r\n \"policies\": null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '627' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:20 GMT + etag: + - '"AAAAAOMyfOA="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: DDF4673B79644F32A13E5E475607B167 Ref B: MAA201060516023 Ref C: 2024-06-17T06:12:20Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --role --assignee-object-id --assignee-principal-type --scope + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27API%20Management%20Service%20Reader%20Role%27&api-version=2022-05-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"API Management Service Reader + Role","type":"BuiltInRole","description":"Read-only access to service and + APIs","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.ApiManagement/service/*/read","Microsoft.ApiManagement/service/read","Microsoft.Authorization/*/read","Microsoft.Insights/alertRules/*","Microsoft.ResourceHealth/availabilityStatuses/read","Microsoft.Resources/deployments/*","Microsoft.Resources/subscriptions/resourceGroups/read","Microsoft.Support/*"],"notActions":["Microsoft.ApiManagement/service/users/keys/read"],"dataActions":[],"notDataActions":[]}],"createdOn":"2016-11-09T00:26:45.1540473Z","updatedOn":"2021-11-11T20:13:11.8704466Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d","type":"Microsoft.Authorization/roleDefinitions","name":"71522526-b88f-4d52-b57f-d31fc3546d0d"}]}' + headers: + cache-control: + - no-cache + content-length: + - '982' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:22 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 0F0AFFFC5DBA4EBEB72CFA388968E0F7 Ref B: MAA201060514031 Ref C: 2024-06-17T06:12:22Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d", + "principalId": "37b3863d-0cea-4c1f-b8af-bbaf46869811", "principalType": "ServicePrincipal"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '270' + Content-Type: + - application/json + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --role --assignee-object-id --assignee-principal-type --scope + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleAssignments/89ab53ad-466d-484c-9e59-3320d696abf4?api-version=2022-04-01 + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d","principalId":"37b3863d-0cea-4c1f-b8af-bbaf46869811","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","condition":null,"conditionVersion":null,"createdOn":"2024-06-17T06:12:23.9369545Z","updatedOn":"2024-06-17T06:12:24.3409600Z","createdBy":null,"updatedBy":"7557db67-613b-4194-a890-de2ba9a4ec8e","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleAssignments/89ab53ad-466d-484c-9e59-3320d696abf4","type":"Microsoft.Authorization/roleAssignments","name":"89ab53ad-466d-484c-9e59-3320d696abf4"}' + headers: + cache-control: + - no-cache + content-length: + - '981' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:24 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 42D9F52DF40D49238B518490C5EE6858 Ref B: MAA201060514031 Ref C: 2024-06-17T06:12:23Z' status: - code: 400 - message: Bad Request + code: 201 + message: Created - request: - body: '{"sourceResourceIds": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Api-Default-Central-US-EUAP/providers/Microsoft.ApiManagement/service/alzasloneuap06/apis/uspto"]}' + body: '{"sourceResourceIds": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/*"]}' headers: Accept: - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - apic service import-from-apim + - apic import-from-apim Connection: - keep-alive Content-Length: - - '189' + - '164' Content-Type: - application/json ParameterSetName: - - -g --service-name --source-resource-ids --debug + - -g --service-name --apim-name --apim-apis User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/api-center-test/providers/Microsoft.ApiCenter/services/contosoeuap/importFromApim?api-version=2024-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/importFromApim?api-version=2024-03-01 response: body: string: '' headers: api-supported-versions: - - 2023-07-01-preview, 2024-03-01 + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview cache-control: - no-cache content-length: - '0' date: - - Thu, 18 Jan 2024 05:39:30 GMT + - Mon, 17 Jun 2024 06:12:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/api-center-test/providers/Microsoft.ApiCenter/services/contosoeuap/operationResults/577dfbbb-8f47-4b1a-9117-7962517a4bdb?api-version=2024-03-01&t=638411531707420554&c=MIIHADCCBeigAwIBAgITHgORCU8eKXDLsVSbWAAAA5EJTzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjMxMTAzMDM0MzMwWhcNMjQxMDI4MDM0MzMwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANrs2LW36vihrxbI7M0sTmep6R-Sr1n1BIy11gNYMYNBFayRIsZHphQyQ3HACEMCaYZ_HjfAfwyRvrgFuHllf3TI4haJ-OnF20kuF3i1kqAXYrpEfAR0D3lY_qbGUYwvR6xPxUxV7KpoiEeo_qRmmyWntw0A6fGpiijGFMD2hU-01ANLHrUe5uyZyPnSS9X2oku8QNoYc8gPK2n-uERXH9unZe4R4j-3v195YjbEyxFqoHnw71RVsZVpRW4UQ8Ke2bQ6ciXl74WUsy9rp9uC7IAhzaAtdLpVjiO16HSJeg_JMSKxVuN7FH_VUxgem0huiiRx3riHxt9xLRKmaVydx10CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0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BQUHAwIwDQYJKoZIhvcNAQELBQADggEBAAVvuv9hEriWJEdeDXPmIL7m33xbYA_16oLWy2Gx0E_jiUvxECW7LpWEbDzirYH4Ohf0ZwHTZ6cdyR_vQYbb8H-Vf5KgBiH_ehE15lk-Q1xGnjStL7TJkI5aftiSEAtoNE9RcRzRhv5JIX3uqCQ2wuXFdCuuhTLSYwDZQ3g2Rfgq0qEMcECpRflaIxPlKci97SOMASX5v_2rA21OhJmtdDpkqslnW09zd3wXqxImSSoCD9GaKgEm_imyqY8vWindc6Qn8ymUd6c5LjW9elkr3DRVHKGM6iH4YM_wyXZKmVgbMSd9kEqRZ_tfgEtcEtDPUKlHyqTJRr7y_eGUVDN-duw&s=RnWO6E9wWaP2xoOOoD8p5gVI2nnLxcBdAgdAZRaKfzG2ao49FrXNsh4DCRaiEjqgzbYIEnZwqg9Ms2UGuzhxvG_PThdgo_MdysEwN4syer4sESQ-ppAHbEucSdXwSwTTUidPyaU5gAmLgsZtZU86ZDC7fTxuj4AL6ALKwxSt7is9I5xHxMFfTd_naXWXAEhlcuSu3Xn405xyZGMVpKJnfzC8wUAFrO46J1Z8QSUvGIu33VOH6TWD6E4Sj18h1RBsBGjQrthpuH0vRACQd-KXSkVu9t2heoqI3HTDAPmaFKzDqt4uLEr9mvSEuDnZPdBpcxe8IEc4gv7GaruhvFmkdQ&h=6owrq1HJH1JixpFMzQToJT4kX8NyA8Rw6dIEoFTWYEM + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/0690b2f85c5b4e6fb4bd0b780c94eca0?api-version=2024-03-01&t=638542015473351545&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMj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RUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=r3BPtlTitRtJAdMx9A-yad3ey3zgoQvhKBXX4w6kqeIGaJWDwWxs5aoY3D9nWyfFA6JXUUr7KlMuGbO3VPhH6wncr76p_xWVOeJbfsSt-Qr45mcBHnqTZQPzlvBmkPy-G3bW4DxZsNkJGP9Cu06C7kv06ofA0i34TsuWydVlllfTSJDZWjCVoSPWAwf3qbOPG0l4aRqB9uDhm8t0qI5dLfLpSqSkxikZcXrcjIjO0uofz_Mxlqd-uq_vGezsgMghmsUUgTjwz3YP-w6bLSIWbuRIDvX22bzuY7evKFwZdXfctz81oCW_OvzzNCB6LmgMKfa4aqZMTDVvRi6QEH_amQ&h=KKZOnr-iiuYm6vD98wvq8z0CffVk578qwRWFGhKW9zI pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '199' + x-msedge-ref: + - 'Ref A: FA8BFC3B081D4828BD2CDA42330685BB Ref B: MAA201060515031 Ref C: 2024-06-17T06:12:26Z' x-powered-by: - ASP.NET status: @@ -163,41 +1046,47 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - apic service import-from-apim + - apic import-from-apim Connection: - keep-alive ParameterSetName: - - -g --service-name --source-resource-ids --debug + - -g --service-name --apim-name --apim-apis User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/api-center-test/providers/Microsoft.ApiCenter/services/contosoeuap/operationResults/577dfbbb-8f47-4b1a-9117-7962517a4bdb?api-version=2024-03-01&t=638411531707420554&c=MIIHADCCBeigAwIBAgITHgORCU8eKXDLsVSbWAAAA5EJTzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjMxMTAzMDM0MzMwWhcNMjQxMDI4MDM0MzMwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANrs2LW36vihrxbI7M0sTmep6R-Sr1n1BIy11gNYMYNBFayRIsZHphQyQ3HACEMCaYZ_HjfAfwyRvrgFuHllf3TI4haJ-OnF20kuF3i1kqAXYrpEfAR0D3lY_qbGUYwvR6xPxUxV7KpoiEeo_qRmmyWntw0A6fGpiijGFMD2hU-01ANLHrUe5uyZyPnSS9X2oku8QNoYc8gPK2n-uERXH9unZe4R4j-3v195YjbEyxFqoHnw71RVsZVpRW4UQ8Ke2bQ6ciXl74WUsy9rp9uC7IAhzaAtdLpVjiO16HSJeg_JMSKxVuN7FH_VUxgem0huiiRx3riHxt9xLRKmaVydx10CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZv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2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAAVvuv9hEriWJEdeDXPmIL7m33xbYA_16oLWy2Gx0E_jiUvxECW7LpWEbDzirYH4Ohf0ZwHTZ6cdyR_vQYbb8H-Vf5KgBiH_ehE15lk-Q1xGnjStL7TJkI5aftiSEAtoNE9RcRzRhv5JIX3uqCQ2wuXFdCuuhTLSYwDZQ3g2Rfgq0qEMcECpRflaIxPlKci97SOMASX5v_2rA21OhJmtdDpkqslnW09zd3wXqxImSSoCD9GaKgEm_imyqY8vWindc6Qn8ymUd6c5LjW9elkr3DRVHKGM6iH4YM_wyXZKmVgbMSd9kEqRZ_tfgEtcEtDPUKlHyqTJRr7y_eGUVDN-duw&s=RnWO6E9wWaP2xoOOoD8p5gVI2nnLxcBdAgdAZRaKfzG2ao49FrXNsh4DCRaiEjqgzbYIEnZwqg9Ms2UGuzhxvG_PThdgo_MdysEwN4syer4sESQ-ppAHbEucSdXwSwTTUidPyaU5gAmLgsZtZU86ZDC7fTxuj4AL6ALKwxSt7is9I5xHxMFfTd_naXWXAEhlcuSu3Xn405xyZGMVpKJnfzC8wUAFrO46J1Z8QSUvGIu33VOH6TWD6E4Sj18h1RBsBGjQrthpuH0vRACQd-KXSkVu9t2heoqI3HTDAPmaFKzDqt4uLEr9mvSEuDnZPdBpcxe8IEc4gv7GaruhvFmkdQ&h=6owrq1HJH1JixpFMzQToJT4kX8NyA8Rw6dIEoFTWYEM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/0690b2f85c5b4e6fb4bd0b780c94eca0?api-version=2024-03-01&t=638542015473351545&c=MIIHpTCCBo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AGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=r3BPtlTitRtJAdMx9A-yad3ey3zgoQvhKBXX4w6kqeIGaJWDwWxs5aoY3D9nWyfFA6JXUUr7KlMuGbO3VPhH6wncr76p_xWVOeJbfsSt-Qr45mcBHnqTZQPzlvBmkPy-G3bW4DxZsNkJGP9Cu06C7kv06ofA0i34TsuWydVlllfTSJDZWjCVoSPWAwf3qbOPG0l4aRqB9uDhm8t0qI5dLfLpSqSkxikZcXrcjIjO0uofz_Mxlqd-uq_vGezsgMghmsUUgTjwz3YP-w6bLSIWbuRIDvX22bzuY7evKFwZdXfctz81oCW_OvzzNCB6LmgMKfa4aqZMTDVvRi6QEH_amQ&h=KKZOnr-iiuYm6vD98wvq8z0CffVk578qwRWFGhKW9zI response: body: - string: '{"provisioningState":"InProgress"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/0690b2f85c5b4e6fb4bd0b780c94eca0","name":"0690b2f85c5b4e6fb4bd0b780c94eca0","status":"InProgress","startTime":"2024-06-17T06:12:28.055181+00:00"}' headers: api-supported-versions: - - 2023-07-01-preview, 2024-03-01 + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview cache-control: - no-cache content-length: - - '34' + - '301' content-type: - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 05:39:30 GMT + - Mon, 17 Jun 2024 06:12:27 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/0690b2f85c5b4e6fb4bd0b780c94eca0?api-version=2024-03-01&t=638542015486806852&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8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C7IQFeA_DhgV0NSEADjbEQkqnIwA&h=IYFfiocJruOlcjUdkXU02KmG9bMuhRuFmMhfUKSb-kQ pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains vary: - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: A476DEE1FE51416CAA3A862EA313FBEA Ref B: MAA201060515031 Ref C: 2024-06-17T06:12:27Z' x-powered-by: - ASP.NET status: @@ -211,43 +1100,99 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - apic service import-from-apim + - apic import-from-apim + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --apim-name --apim-apis + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/0690b2f85c5b4e6fb4bd0b780c94eca0?api-version=2024-03-01&t=638542015486806852&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7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WeNMEyWsm5RLA&s=wkvgjyiKEXMri6QH_ZrFnNvt7ynqsTCeCswCBZ8iIXWpKOjlMk9H0PI8hgr_aBi_SzQtYtI4XcTZ3fN5UQdWvEOlt6SDJant9zxGysfW_-3dqf0u8rkyNE_Z90IKd5xZlu4jmIGWPl8GD-Mwi5nK6gHRF-s9JkW8Jz4FVDR2xQZjrVM4QwuD_CPCwNZhdU3NxjnblvE4r_u7Nls9tNcleDBytZINxkacfUfsZz85wKJSwy2X7CPUoJpoaJ3Bq_CDWQ6-RJYD8ZusPXspZ9WIw3azLZxHlfeEFwVSugdZ0VhRnlSy2r-U3yZc71C7IQFeA_DhgV0NSEADjbEQkqnIwA&h=IYFfiocJruOlcjUdkXU02KmG9bMuhRuFmMhfUKSb-kQ + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/0690b2f85c5b4e6fb4bd0b780c94eca0","name":"0690b2f85c5b4e6fb4bd0b780c94eca0","status":"Succeeded","startTime":"2024-06-17T06:12:28.055181+00:00","endTime":"2024-06-17T06:12:31.6572206+00:00"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '346' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:59 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 92031EAEC8AB4010B05C524D66F9C6C7 Ref B: MAA201060515031 Ref C: 2024-06-17T06:12:58Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api list Connection: - keep-alive ParameterSetName: - - -g --service-name --source-resource-ids --debug + - -g -n User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/api-center-test/providers/Microsoft.ApiCenter/services/contosoeuap/operationResults/577dfbbb-8f47-4b1a-9117-7962517a4bdb?api-version=2024-03-01&t=638411531707420554&c=MIIHADCCBeigAwIBAgITHgORCU8eKXDLsVSbWAAAA5EJTzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjMxMTAzMDM0MzMwWhcNMjQxMDI4MDM0MzMwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANrs2LW36vihrxbI7M0sTmep6R-Sr1n1BIy11gNYMYNBFayRIsZHphQyQ3HACEMCaYZ_HjfAfwyRvrgFuHllf3TI4haJ-OnF20kuF3i1kqAXYrpEfAR0D3lY_qbGUYwvR6xPxUxV7KpoiEeo_qRmmyWntw0A6fGpiijGFMD2hU-01ANLHrUe5uyZyPnSS9X2oku8QNoYc8gPK2n-uERXH9unZe4R4j-3v195YjbEyxFqoHnw71RVsZVpRW4UQ8Ke2bQ6ciXl74WUsy9rp9uC7IAhzaAtdLpVjiO16HSJeg_JMSKxVuN7FH_VUxgem0huiiRx3riHxt9xLRKmaVydx10CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNx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odHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAAVvuv9hEriWJEdeDXPmIL7m33xbYA_16oLWy2Gx0E_jiUvxECW7LpWEbDzirYH4Ohf0ZwHTZ6cdyR_vQYbb8H-Vf5KgBiH_ehE15lk-Q1xGnjStL7TJkI5aftiSEAtoNE9RcRzRhv5JIX3uqCQ2wuXFdCuuhTLSYwDZQ3g2Rfgq0qEMcECpRflaIxPlKci97SOMASX5v_2rA21OhJmtdDpkqslnW09zd3wXqxImSSoCD9GaKgEm_imyqY8vWindc6Qn8ymUd6c5LjW9elkr3DRVHKGM6iH4YM_wyXZKmVgbMSd9kEqRZ_tfgEtcEtDPUKlHyqTJRr7y_eGUVDN-duw&s=RnWO6E9wWaP2xoOOoD8p5gVI2nnLxcBdAgdAZRaKfzG2ao49FrXNsh4DCRaiEjqgzbYIEnZwqg9Ms2UGuzhxvG_PThdgo_MdysEwN4syer4sESQ-ppAHbEucSdXwSwTTUidPyaU5gAmLgsZtZU86ZDC7fTxuj4AL6ALKwxSt7is9I5xHxMFfTd_naXWXAEhlcuSu3Xn405xyZGMVpKJnfzC8wUAFrO46J1Z8QSUvGIu33VOH6TWD6E4Sj18h1RBsBGjQrthpuH0vRACQd-KXSkVu9t2heoqI3HTDAPmaFKzDqt4uLEr9mvSEuDnZPdBpcxe8IEc4gv7GaruhvFmkdQ&h=6owrq1HJH1JixpFMzQToJT4kX8NyA8Rw6dIEoFTWYEM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis?api-version=2024-03-01 response: body: - string: '{"provisioningState":"Succeeded"}' + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"REST","lifecycleStage":"design","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/1350260644678572616","name":"1350260644678572616","systemData":{"createdAt":"2024-06-17T06:12:30.6197092Z","lastModifiedAt":"2024-06-17T06:12:30.6197079Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Foo + API","kind":"REST","lifecycleStage":"design","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/3153417326716957883","name":"3153417326716957883","systemData":{"createdAt":"2024-06-17T06:12:30.6875201Z","lastModifiedAt":"2024-06-17T06:12:30.6875191Z"}}]}' headers: api-supported-versions: - - 2023-07-01-preview, 2024-03-01 + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview cache-control: - no-cache content-length: - - '33' + - '1032' content-type: - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 05:40:00 GMT + - Mon, 17 Jun 2024 06:13:02 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 81E55180C6C049ADA1038D7C68D0BBC6 Ref B: MAA201060514009 Ref C: 2024-06-17T06:13:02Z' x-powered-by: - ASP.NET status: diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_import_from_apim_for_multiple_apis.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_import_from_apim_for_multiple_apis.yaml new file mode 100644 index 00000000000..45188c8fa17 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_import_from_apim_for_multiple_apis.yaml @@ -0,0 +1,1152 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","identity":{"type":"SystemAssigned","principalId":"7e2a7251-d163-45bb-a519-426edfdd0e31","tenantId":"f0348563-e707-449c-8685-c83d24eaf3c0"},"sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{},"systemData":{"createdAt":"2024-06-17T06:10:18.1709276Z","lastModifiedAt":"2024-06-17T06:10:18.1709154Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '515' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:10:20 GMT + etag: + - bb01425c-0000-0100-0000-666fd34b0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B32BF88D18A64FE4B4F2E3A1B930FA36 Ref B: MAA201060514011 Ref C: 2024-06-17T06:10:20Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clirg000001?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_import_from_apim_for_multiple_apis","date":"2024-06-17T06:10:27Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '375' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:10:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 1A8B283E577F439588C1022F9971234E Ref B: MAA201060514053 Ref C: 2024-06-17T06:10:23Z' + status: + code: 200 + message: OK +- request: + body: '{"sku": {"name": "Consumption", "capacity": 0}, "location": "eastus", "properties": + {"notificationSenderEmail": "test@example.com", "virtualNetworkType": "None", + "restore": false, "publisherEmail": "test@example.com", "publisherName": "test"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + Content-Length: + - '243' + Content-Type: + - application/json + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003?api-version=2022-08-01 + response: + body: + string: '{"etag":"AAAAAAGVG5o=","properties":{"publisherEmail":"test@example.com","publisherName":"test","notificationSenderEmail":"test@example.com","provisioningState":"Activating","targetProvisioningState":"Activating","createdAtUtc":"2024-06-17T06:10:27.7425178Z","gatewayUrl":"https://cli000003.azure-api.net","gatewayRegionalUrl":null,"portalUrl":null,"developerPortalUrl":null,"managementApiUrl":null,"scmUrl":null,"hostnameConfigurations":[{"type":"Proxy","hostName":"cli000003.azure-api.net","encodedCertificate":null,"keyVaultId":null,"certificatePassword":null,"negotiateClientCertificate":false,"certificate":null,"defaultSslBinding":true,"identityClientId":null,"certificateSource":"BuiltIn","certificateStatus":null}],"publicIPAddresses":null,"privateIPAddresses":null,"additionalLocations":null,"virtualNetworkConfiguration":null,"customProperties":null,"virtualNetworkType":"None","certificates":null,"disableGateway":false,"natGatewayState":"Disabled","outboundPublicIPAddresses":null,"apiVersionConstraint":{"minApiVersion":null},"publicIpAddressId":null,"publicNetworkAccess":"Enabled","privateEndpointConnections":null,"platformVersion":"mtv1"},"sku":{"name":"Consumption","capacity":0},"identity":null,"zones":null,"systemData":{"createdBy":"blackchoey@outlook.com","createdByType":"User","createdAt":"2024-06-17T06:10:26.8619052Z","lastModifiedBy":"blackchoey@outlook.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-17T06:10:26.8619052Z"},"location":"East + US","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","name":"cli000003","type":"Microsoft.ApiManagement/service"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFudTduZV9BY3RfZTU3ZTE3NzY=?api-version=2022-08-01&asyncResponse&t=638542014311591452&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgk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KidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=r1bPa6IfVZ1cA8nad5rPNs11v71mKQ70iI6po1rF3Ncc2iYx9oFqa4oQN3Jr8fOKGyYAQ_Eq9jrm-6DZ8zn62i_T0tHXzP2gLh58wzbpYS4VNssbhMWLW_br7CZ3cRg9plMs-GfWwF7rvQ6DfFltS0HXwyQashJFE2k2wJwoNgLuhWuDUXSmeelQGFv0OhMj-CwzvEZ9Ty69nzSyjdpF838i-Oj3wmQ1JGikMvEtrw5o5p9q8GUcK-ge7NPU2r5XYA-XJBZnGoI0yM4QymTV3BxPHdyXKhLkuxxcAsKwrlL0y8ALRNpvlIAx5HIFxh-WcGeP2ohakqfqnex6owthCQ&h=cFVVJ4090Zos2nUKrvW_Y9G7TOuuofJkCcgXlqGHt48 + cache-control: + - no-cache + content-length: + - '1692' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:10:30 GMT + etag: + - '"AAAAAAGVG5o="' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFudTduZV9BY3RfZTU3ZTE3NzY=?api-version=2022-08-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BkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=Y9oIDCnh8Tuqda7_DtH-fkH-MnRuWabr7FMyfOlF_pSFvD9WVVteGaR8XtZ8s1aEMrWqS9PjuUYKBC9MLOkgJypu1btAm6NuPt0cL8pQG5bLVQ2eTLFvaT_igR1dq64R6ZyQ77lPO84RiuSzdcrplir-NSu8dvu3QImWXslA3zcH6QoTTvvrkti8lFJO5P4cbZyj1oj5vZEJDPcq5-MjKshrC_hZ9BmXH48sb8yo2PJRHoYn0g8316pgnNIaCVPJxdl6TwfyZAlekoXLpHxhRgQHj6AVgOO4TFESjJG-qdsNd8upS8YG26XHmCmsL9oMwT1KA92PsMTPd6vXwi4RfQ&h=CiL5fTZva1CnXPgA3G5bJH5umen5niOJFjPxxONsggE + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 1AEF1DA6BC6B4461A50E999B5458560B Ref B: MAA201060514017 Ref C: 2024-06-17T06:10:24Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFudTduZV9BY3RfZTU3ZTE3NzY=?api-version=2022-08-01&asyncResponse&t=638542014311591452&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSs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-Oj3wmQ1JGikMvEtrw5o5p9q8GUcK-ge7NPU2r5XYA-XJBZnGoI0yM4QymTV3BxPHdyXKhLkuxxcAsKwrlL0y8ALRNpvlIAx5HIFxh-WcGeP2ohakqfqnex6owthCQ&h=cFVVJ4090Zos2nUKrvW_Y9G7TOuuofJkCcgXlqGHt48 + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFudTduZV9BY3RfZTU3ZTE3NzY=?api-version=2022-08-01&asyncResponse&t=638542014326499613&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGC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8Zv8XVaXsJVbgUkBSefp4c86Wb0-vBL3HwYRD9haVlqw_HzFe8lHW8MZMJl3KYuDMmUACSbfAfh_MS9EU2rWSYIH1I7PEbsyv84btfJBAtKbFHMOo6zqFSD02ih4A&h=qE3G9lL8tizIqa3W6R2vs26FlJBAM_5eHLr8FIZt9Oc + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:10:32 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFudTduZV9BY3RfZTU3ZTE3NzY=?api-version=2022-08-01&asyncResponse&t=638542014326656797&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI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66T_Tl_gSBDBP0_DvCN-FFbd0gz9hWA0qjB3ligPNx56oUPMFiL_FxH5-4G4XydbMo67kDHswttFJlsDq-VhaS_mVTywiKPExaF-1x1R97cnZ-WpECtO_EjiDHtgkvzWOso8fRoLM_xClGt2eqqY7PQ&h=j6WytsPhxUx9Bd_ke8WUr9CjQBTx7Euan52O_6a-ZD0 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: AEC5A5C8BB564F06B0BCDB39189A6A0F Ref B: MAA201060514017 Ref C: 2024-06-17T06:10:31Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFudTduZV9BY3RfZTU3ZTE3NzY=?api-version=2022-08-01&asyncResponse&t=638542014311591452&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD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pXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=r1bPa6IfVZ1cA8nad5rPNs11v71mKQ70iI6po1rF3Ncc2iYx9oFqa4oQN3Jr8fOKGyYAQ_Eq9jrm-6DZ8zn62i_T0tHXzP2gLh58wzbpYS4VNssbhMWLW_br7CZ3cRg9plMs-GfWwF7rvQ6DfFltS0HXwyQashJFE2k2wJwoNgLuhWuDUXSmeelQGFv0OhMj-CwzvEZ9Ty69nzSyjdpF838i-Oj3wmQ1JGikMvEtrw5o5p9q8GUcK-ge7NPU2r5XYA-XJBZnGoI0yM4QymTV3BxPHdyXKhLkuxxcAsKwrlL0y8ALRNpvlIAx5HIFxh-WcGeP2ohakqfqnex6owthCQ&h=cFVVJ4090Zos2nUKrvW_Y9G7TOuuofJkCcgXlqGHt48 + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFudTduZV9BY3RfZTU3ZTE3NzY=?api-version=2022-08-01&asyncResponse&t=638542014541644941&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBB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PGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=Q7Bod5OcJfMNSgv3RN0AC8hOP-P4uwVMpwOoM8oVAyA0r84gpnps6pRL2uPu6iT9cPnlj9x9bBZOXdGzREpOWgHkPtlDSTKeNq4H0gv1sxCcGcWB6kMJILrnuNELsJztq4WkfjlWswUV43Jgk-G_22Omtw4SOGh8ZMSAf0zC9pyx9Z909KlBxnExVqitC4GsEpy3UzbiRXrTEE1x-OZbAw-DkssFFvtgO0vIDBKME8v7RDNIX891xqJYA91sOL_5sRktsAZOCXR7mM7KZQXb2GVzbQLvddNPpUW2043_co1idZGLl9HnmT1PHyDsv8pX1xetAnGivRYb1o939TOifA&h=Rx98xZkv5XaQizSU20jyDAyaXRWtaj1pdcE-kNiLgW0 + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:10:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFudTduZV9BY3RfZTU3ZTE3NzY=?api-version=2022-08-01&asyncResponse&t=638542014541644941&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbT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Y7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=Q7Bod5OcJfMNSgv3RN0AC8hOP-P4uwVMpwOoM8oVAyA0r84gpnps6pRL2uPu6iT9cPnlj9x9bBZOXdGzREpOWgHkPtlDSTKeNq4H0gv1sxCcGcWB6kMJILrnuNELsJztq4WkfjlWswUV43Jgk-G_22Omtw4SOGh8ZMSAf0zC9pyx9Z909KlBxnExVqitC4GsEpy3UzbiRXrTEE1x-OZbAw-DkssFFvtgO0vIDBKME8v7RDNIX891xqJYA91sOL_5sRktsAZOCXR7mM7KZQXb2GVzbQLvddNPpUW2043_co1idZGLl9HnmT1PHyDsv8pX1xetAnGivRYb1o939TOifA&h=Rx98xZkv5XaQizSU20jyDAyaXRWtaj1pdcE-kNiLgW0 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: BACFBFC2B1434090985BD507DC251B40 Ref B: MAA201060514017 Ref C: 2024-06-17T06:10:52Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFudTduZV9BY3RfZTU3ZTE3NzY=?api-version=2022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AMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=r1bPa6IfVZ1cA8nad5rPNs11v71mKQ70iI6po1rF3Ncc2iYx9oFqa4oQN3Jr8fOKGyYAQ_Eq9jrm-6DZ8zn62i_T0tHXzP2gLh58wzbpYS4VNssbhMWLW_br7CZ3cRg9plMs-GfWwF7rvQ6DfFltS0HXwyQashJFE2k2wJwoNgLuhWuDUXSmeelQGFv0OhMj-CwzvEZ9Ty69nzSyjdpF838i-Oj3wmQ1JGikMvEtrw5o5p9q8GUcK-ge7NPU2r5XYA-XJBZnGoI0yM4QymTV3BxPHdyXKhLkuxxcAsKwrlL0y8ALRNpvlIAx5HIFxh-WcGeP2ohakqfqnex6owthCQ&h=cFVVJ4090Zos2nUKrvW_Y9G7TOuuofJkCcgXlqGHt48 + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFudTduZV9BY3RfZTU3ZTE3NzY=?api-version=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ADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=LU3XeAr6PNoR55q5DAYXQt0jGwM3bG9zNmL7Muvfrv4JU3RA2KofLKfgFx9kO1tc1ZQIH8gSagGajwm5caJWtsWE4RVHPf6jHScL8jmINQsdJIAcjTPj_g37psrQHTvj9e9_DD1MXTdByOE7PGIJd2NHrlJZCs3xRbCQvj79AKCEWI-dwUOCxYLmr3u7YCQkspUBpijPsbDnGQrnE9eyRpUsOPH5zHVDHMkEVHpXzKZn8Km99Ad23XTI04UPYIAjCnOEz00H9hXOZUsffoqfmy-zrdPtSgXiTZecqiyi9GuP152GFUWoOVBuj1mYiteZ-2VYPidqMf5AOU0r7EzMeA&h=b9qHvekBt8FEj9Hhfa-DWTas4JA7NbSgN0rqSz9pMsQ + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:11:15 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFud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ADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=bBeUwcE7rYf1Q8CbLgW4tJfxAuErbPX7J7gj19Lmsn_l1xc6z7FjU5lZkECUNX0t172lpYM0tSj52DcRbuA5VMXOJ5GgoUpmktOxtfAf3OPHC5F1aYnK4gTAUaAZyYceOyX6GiKVckIMeTdYOrJfNaFg7ygiyIKlBOuhHUWPomnq1H6ndnmsylO6o1phIR8XVc0EQd2dwCdRvlM8PlBHm4iDlk9IRh--Gi04qilhEffcwmb-lG4nMngCaRaE7ed0TwRIY9tKL2Rp3BhpeDEDIhfDTmKWsiefm5gLQbXgSYQd0ltfmiwi-IdKbrTalH7jEoI8vEIJpRr6NeBVvh-ppQ&h=MtkGWcxU4WIKHOZCRqox0P5ZKEBF-yaz1uJU0YGthXs + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 9CF1252F3CB54CDCBB58924CF0125D63 Ref B: MAA201060514017 Ref C: 2024-06-17T06:11:14Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFudTduZV9BY3RfZTU3ZTE3NzY=?api-version=2022-08-01&asyncResponse&t=638542014311591452&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCB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ty69nzSyjdpF838i-Oj3wmQ1JGikMvEtrw5o5p9q8GUcK-ge7NPU2r5XYA-XJBZnGoI0yM4QymTV3BxPHdyXKhLkuxxcAsKwrlL0y8ALRNpvlIAx5HIFxh-WcGeP2ohakqfqnex6owthCQ&h=cFVVJ4090Zos2nUKrvW_Y9G7TOuuofJkCcgXlqGHt48 + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFudTduZV9BY3RfZTU3ZTE3NzY=?api-version=2022-08-01&asyncResponse&t=638542014971683690&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaO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YxP6Aw9f9acsSMJtPMYakCbY0e1dLJg4-aq1WfHWl-jD5nz1FPVh4aJpQEKxgDAKpc9vo6V_jQS_TfsPG4CMjE46vsfjPpEk2u9nnanwSu_Rc-Yl1YnOf00f7sf9hehosd5FO4Jy8Ysg&h=4SX0OSNoTirJDEd4cG8uv7FioQ3yvrBsPtjggXtmQm8 + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:11:36 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFudTduZV9BY3RfZTU3ZTE3NzY=?api-version=2022-08-01&asyncResponse&t=638542014971683690&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQr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3Y2bE0R5K91nHDzP-5wg1vvGlpsdu9MhfOlnlxYxP6Aw9f9acsSMJtPMYakCbY0e1dLJg4-aq1WfHWl-jD5nz1FPVh4aJpQEKxgDAKpc9vo6V_jQS_TfsPG4CMjE46vsfjPpEk2u9nnanwSu_Rc-Yl1YnOf00f7sf9hehosd5FO4Jy8Ysg&h=4SX0OSNoTirJDEd4cG8uv7FioQ3yvrBsPtjggXtmQm8 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: C46CE0A803244721BFC8AB3F24210C51 Ref B: MAA201060514017 Ref C: 2024-06-17T06:11:35Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXdhemluampwc2F4Z2syMnFudTduZV9BY3RfZTU3ZTE3NzY=?api-version=2022-08-01&asyncResponse&t=638542014311591452&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJl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SOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=r1bPa6IfVZ1cA8nad5rPNs11v71mKQ70iI6po1rF3Ncc2iYx9oFqa4oQN3Jr8fOKGyYAQ_Eq9jrm-6DZ8zn62i_T0tHXzP2gLh58wzbpYS4VNssbhMWLW_br7CZ3cRg9plMs-GfWwF7rvQ6DfFltS0HXwyQashJFE2k2wJwoNgLuhWuDUXSmeelQGFv0OhMj-CwzvEZ9Ty69nzSyjdpF838i-Oj3wmQ1JGikMvEtrw5o5p9q8GUcK-ge7NPU2r5XYA-XJBZnGoI0yM4QymTV3BxPHdyXKhLkuxxcAsKwrlL0y8ALRNpvlIAx5HIFxh-WcGeP2ohakqfqnex6owthCQ&h=cFVVJ4090Zos2nUKrvW_Y9G7TOuuofJkCcgXlqGHt48 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:11:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 576AB6B1A38E4DE89D0C45B89FF191BF Ref B: MAA201060514017 Ref C: 2024-06-17T06:11:57Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003?api-version=2022-08-01 + response: + body: + string: '{"etag":"AAAAAAGVG6w=","properties":{"publisherEmail":"test@example.com","publisherName":"test","notificationSenderEmail":"test@example.com","provisioningState":"Succeeded","targetProvisioningState":"","createdAtUtc":"2024-06-17T06:10:27.7425178Z","gatewayUrl":"https://cli000003.azure-api.net","gatewayRegionalUrl":null,"portalUrl":null,"developerPortalUrl":null,"managementApiUrl":null,"scmUrl":null,"hostnameConfigurations":[{"type":"Proxy","hostName":"cli000003.azure-api.net","encodedCertificate":null,"keyVaultId":null,"certificatePassword":null,"negotiateClientCertificate":false,"certificate":null,"defaultSslBinding":true,"identityClientId":null,"certificateSource":"BuiltIn","certificateStatus":null}],"publicIPAddresses":null,"privateIPAddresses":null,"additionalLocations":null,"virtualNetworkConfiguration":null,"customProperties":{"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2":"False"},"virtualNetworkType":"None","certificates":null,"disableGateway":false,"natGatewayState":"Disabled","outboundPublicIPAddresses":null,"apiVersionConstraint":{"minApiVersion":null},"publicIpAddressId":null,"publicNetworkAccess":"Enabled","privateEndpointConnections":null,"platformVersion":"mtv1"},"sku":{"name":"Consumption","capacity":0},"identity":null,"zones":null,"systemData":{"createdBy":"blackchoey@outlook.com","createdByType":"User","createdAt":"2024-06-17T06:10:26.8619052Z","lastModifiedBy":"blackchoey@outlook.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-17T06:10:26.8619052Z"},"location":"East + US","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","name":"cli000003","type":"Microsoft.ApiManagement/service"}' + headers: + cache-control: + - no-cache + content-length: + - '2180' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:11:59 GMT + etag: + - '"AAAAAAGVG6w="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: CA8BFEACEC3844F19C7208B736C3CB43 Ref B: MAA201060514017 Ref C: 2024-06-17T06:11:59Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"type": "http", "subscriptionRequired": false, "displayName": + "Echo API", "path": "/echo", "protocols": ["https"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + Content-Length: + - '131' + Content-Type: + - application/json + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"echo\",\r\n \"properties\": {\r\n \"displayName\": \"Echo API\",\r\ + \n \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"echo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null\r\n },\r\n \"subscriptionKeyParameterNames\": {\r\n \ + \ \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\": \"subscription-key\"\ + \r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '721' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:03 GMT + etag: + - '"AAAAAOMyfKQ="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: F807289B1A7B4B55B8C0E93AE38A20E5 Ref B: MAA201060514045 Ref C: 2024-06-17T06:12:01Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"echo\",\r\n \"properties\": {\r\n \"displayName\": \"Echo API\",\r\ + \n \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"echo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null,\r\n \"oAuth2AuthenticationSettings\": [],\r\n \"\ + openidAuthenticationSettings\": []\r\n },\r\n \"subscriptionKeyParameterNames\"\ + : {\r\n \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\"\ + : \"subscription-key\"\r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '807' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:04 GMT + etag: + - '"AAAAAOMyfKQ="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: E47E924D845641218C5801AC979E1A16 Ref B: MAA201060514045 Ref C: 2024-06-17T06:12:03Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "GetOperation", "method": "GET", "urlTemplate": + "/echo"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api operation create + Connection: + - keep-alive + Content-Length: + - '88' + Content-Type: + - application/json + If-Match: + - '*' + ParameterSetName: + - -g --service-name --api-id --url-template --method --display-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo/operations/67a41d441ab74814929d17d78fff16ae?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo/operations/67a41d441ab74814929d17d78fff16ae\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis/operations\",\r\n\ + \ \"name\": \"67a41d441ab74814929d17d78fff16ae\",\r\n \"properties\": {\r\ + \n \"displayName\": \"GetOperation\",\r\n \"method\": \"GET\",\r\n \ + \ \"urlTemplate\": \"/echo\",\r\n \"templateParameters\": [],\r\n \ + \ \"description\": null,\r\n \"request\": {\r\n \"queryParameters\"\ + : [],\r\n \"headers\": [],\r\n \"representations\": []\r\n },\r\ + \n \"responses\": [],\r\n \"policies\": null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '629' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:07 GMT + etag: + - '"AAAAAOMyfK8="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 0ED660F191D24604AB8224BC2548DBF0 Ref B: MAA201060514051 Ref C: 2024-06-17T06:12:05Z' + status: + code: 201 + message: Created +- request: + body: '{"properties": {"type": "http", "subscriptionRequired": false, "displayName": + "Foo API", "path": "/foo", "protocols": ["https"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + Content-Length: + - '129' + Content-Type: + - application/json + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"foo\",\r\n \"properties\": {\r\n \"displayName\": \"Foo API\",\r\n\ + \ \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"foo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null\r\n },\r\n \"subscriptionKeyParameterNames\": {\r\n \ + \ \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\": \"subscription-key\"\ + \r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '717' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:10 GMT + etag: + - '"AAAAAOMyfLs="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 955B6B2EE7824FA89ECE79B1FF871AE8 Ref B: MAA201060514023 Ref C: 2024-06-17T06:12:09Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"foo\",\r\n \"properties\": {\r\n \"displayName\": \"Foo API\",\r\n\ + \ \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"foo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null,\r\n \"oAuth2AuthenticationSettings\": [],\r\n \"\ + openidAuthenticationSettings\": []\r\n },\r\n \"subscriptionKeyParameterNames\"\ + : {\r\n \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\"\ + : \"subscription-key\"\r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '803' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:11 GMT + etag: + - '"AAAAAOMyfLs="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3748' + x-msedge-ref: + - 'Ref A: 87E657C40BDA4A8FBF63E684251C5B48 Ref B: MAA201060514023 Ref C: 2024-06-17T06:12:11Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "GetOperation", "method": "GET", "urlTemplate": + "/foo"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api operation create + Connection: + - keep-alive + Content-Length: + - '87' + Content-Type: + - application/json + If-Match: + - '*' + ParameterSetName: + - -g --service-name --api-id --url-template --method --display-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo/operations/25bed34bb5f74cf98210fbe680b5aaf7?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo/operations/25bed34bb5f74cf98210fbe680b5aaf7\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis/operations\",\r\n\ + \ \"name\": \"25bed34bb5f74cf98210fbe680b5aaf7\",\r\n \"properties\": {\r\ + \n \"displayName\": \"GetOperation\",\r\n \"method\": \"GET\",\r\n \ + \ \"urlTemplate\": \"/foo\",\r\n \"templateParameters\": [],\r\n \"\ + description\": null,\r\n \"request\": {\r\n \"queryParameters\": [],\r\ + \n \"headers\": [],\r\n \"representations\": []\r\n },\r\n \ + \ \"responses\": [],\r\n \"policies\": null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '627' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:14 GMT + etag: + - '"AAAAAOMyfMo="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 688793574FA54D7D92574AE8EDEFBAE5 Ref B: MAA201060513019 Ref C: 2024-06-17T06:12:13Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --role --assignee-object-id --assignee-principal-type --scope + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27API%20Management%20Service%20Reader%20Role%27&api-version=2022-05-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"API Management Service Reader + Role","type":"BuiltInRole","description":"Read-only access to service and + APIs","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.ApiManagement/service/*/read","Microsoft.ApiManagement/service/read","Microsoft.Authorization/*/read","Microsoft.Insights/alertRules/*","Microsoft.ResourceHealth/availabilityStatuses/read","Microsoft.Resources/deployments/*","Microsoft.Resources/subscriptions/resourceGroups/read","Microsoft.Support/*"],"notActions":["Microsoft.ApiManagement/service/users/keys/read"],"dataActions":[],"notDataActions":[]}],"createdOn":"2016-11-09T00:26:45.1540473Z","updatedOn":"2021-11-11T20:13:11.8704466Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d","type":"Microsoft.Authorization/roleDefinitions","name":"71522526-b88f-4d52-b57f-d31fc3546d0d"}]}' + headers: + cache-control: + - no-cache + content-length: + - '982' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:16 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 1F27FF1692884C3ABF3DB6485F783039 Ref B: MAA201060515047 Ref C: 2024-06-17T06:12:16Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d", + "principalId": "7e2a7251-d163-45bb-a519-426edfdd0e31", "principalType": "ServicePrincipal"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '270' + Content-Type: + - application/json + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --role --assignee-object-id --assignee-principal-type --scope + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleAssignments/72eea349-6db8-4877-8005-affd9304c182?api-version=2022-04-01 + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d","principalId":"7e2a7251-d163-45bb-a519-426edfdd0e31","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","condition":null,"conditionVersion":null,"createdOn":"2024-06-17T06:12:17.3005099Z","updatedOn":"2024-06-17T06:12:17.7215134Z","createdBy":null,"updatedBy":"7557db67-613b-4194-a890-de2ba9a4ec8e","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleAssignments/72eea349-6db8-4877-8005-affd9304c182","type":"Microsoft.Authorization/roleAssignments","name":"72eea349-6db8-4877-8005-affd9304c182"}' + headers: + cache-control: + - no-cache + content-length: + - '981' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:19 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 3B1516C44B4240D38809286C7B36F571 Ref B: MAA201060515047 Ref C: 2024-06-17T06:12:16Z' + status: + code: 201 + message: Created +- request: + body: '{"sourceResourceIds": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic import-from-apim + Connection: + - keep-alive + Content-Length: + - '310' + Content-Type: + - application/json + ParameterSetName: + - -g --service-name --apim-name --apim-apis + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/importFromApim?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:12:22 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/e14238741513467fa37839cb67223d01?api-version=2024-03-01&t=638542015423435569&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0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m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=heHUVMERtI7fOYlwk3iPoUG9kDNTxn5ZigMLahPJZIVFjtJ1ME6QzZmfbXjb2qdRSXLOomC8kJuHLas52Md1ioSvD3kFQxYOc8NguM_pdQDgBhRw0wKEpJ67g1OPZCHCavuWOH43VWDZznEMZeuGEWZm2-QEajhtVOw6NY71Kd5qSyN4DHBmBQE7f7akbmCTkjobNDaRGZ1QzxXhMDrSAe_vxWGYFE5VF2EB8vOeOl5rYMD6lNuMUeuamQ_U9nEnYyRJ7FdNwBSyVnUMZN-m804cFKpS4SUpGqOs8HrGu_8-dBt-jrhoPttkQX-2koYJgtAbV_UjeWA_Sb0Re4jTog&h=GfLjQGm7ji4jIuoawX2ItIVjZSfHfky6Lj2ttzmN1DY + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: AF2D39A0012B4A99AA2B57FDEBF5CFCE Ref B: MAA201060514047 Ref C: 2024-06-17T06:12:21Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic import-from-apim + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --apim-name --apim-apis + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/e14238741513467fa37839cb67223d01?api-version=2024-03-01&t=638542015423435569&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJTIwQ0ElMjAwMSg0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AZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=heHUVMERtI7fOYlwk3iPoUG9kDNTxn5ZigMLahPJZIVFjtJ1ME6QzZmfbXjb2qdRSXLOomC8kJuHLas52Md1ioSvD3kFQxYOc8NguM_pdQDgBhRw0wKEpJ67g1OPZCHCavuWOH43VWDZznEMZeuGEWZm2-QEajhtVOw6NY71Kd5qSyN4DHBmBQE7f7akbmCTkjobNDaRGZ1QzxXhMDrSAe_vxWGYFE5VF2EB8vOeOl5rYMD6lNuMUeuamQ_U9nEnYyRJ7FdNwBSyVnUMZN-m804cFKpS4SUpGqOs8HrGu_8-dBt-jrhoPttkQX-2koYJgtAbV_UjeWA_Sb0Re4jTog&h=GfLjQGm7ji4jIuoawX2ItIVjZSfHfky6Lj2ttzmN1DY + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/e14238741513467fa37839cb67223d01","name":"e14238741513467fa37839cb67223d01","status":"InProgress","startTime":"2024-06-17T06:12:22.2300346+00:00"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '302' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:23 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/e14238741513467fa37839cb67223d01?api-version=2024-03-01&t=638542015436717512&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjD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9YYOYJ2-REEN3XdJ2iOpoQ8fA&h=QPGs6PQygbh5Y_lwxrj2jz7h85hR5mAFqD9q2XhhQbY + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 3A7D47255B88448B81FECEDF9A88E78C Ref B: MAA201060514047 Ref C: 2024-06-17T06:12:22Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic import-from-apim + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --apim-name --apim-apis + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/e14238741513467fa37839cb67223d01?api-version=2024-03-01&t=638542015436717512&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbY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m5RLA&s=qwwzCVg6Cq3CzCcYiraahfUwye_IY9a1enjsyS20bxRcKIJ5EbL4Z253phKVO-gfQvWgUUh4VdVrMIzChn7xw6RICqwL0-orIdN60so7bOddW8T5EpE8nbJ-oN9M-etK-bYqGpJ5U-My7UcD0nohV2AumZhsHrelQmBIRpbUE3iSx5Kgm1TFbInHjHjWgQB5heorO_m5DEW320TDgJ4qVJiIAEdeDFXD5Q0HYNYWqpyGjzume-jtRP_K3UvgPK3LJbq7Mc1ZAS7W8dFjDW_i0soxx2G0ypsmfZ-RUTQsZqd54GBjdYoDR_dlHXeJV9YYOYJ2-REEN3XdJ2iOpoQ8fA&h=QPGs6PQygbh5Y_lwxrj2jz7h85hR5mAFqD9q2XhhQbY + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/e14238741513467fa37839cb67223d01","name":"e14238741513467fa37839cb67223d01","status":"Succeeded","startTime":"2024-06-17T06:12:22.2300346+00:00","endTime":"2024-06-17T06:12:46.4370026+00:00"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '347' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:55 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 8C3217E6D19D4872971967306FFF1A04 Ref B: MAA201060514047 Ref C: 2024-06-17T06:12:53Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api list + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Foo + API","kind":"REST","lifecycleStage":"design","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/2151143754375031773","name":"2151143754375031773","systemData":{"createdAt":"2024-06-17T06:12:45.1330919Z","lastModifiedAt":"2024-06-17T06:12:45.1330857Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"REST","lifecycleStage":"design","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/14543756663253766538","name":"14543756663253766538","systemData":{"createdAt":"2024-06-17T06:12:45.8462987Z","lastModifiedAt":"2024-06-17T06:12:45.846294Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1033' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:12:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 3F9D6583D63340A78748D1E3B828EA04 Ref B: MAA201060515019 Ref C: 2024-06-17T06:12:56Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_import_from_apim_for_one_api.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_import_from_apim_for_one_api.yaml new file mode 100644 index 00000000000..5ff4256d5f3 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_import_from_apim_for_one_api.yaml @@ -0,0 +1,1204 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","identity":{"type":"SystemAssigned","principalId":"d1c6fc80-9867-4b3b-8546-b43321e84db4","tenantId":"f0348563-e707-449c-8685-c83d24eaf3c0"},"sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{},"systemData":{"createdAt":"2024-06-17T06:13:18.9731994Z","lastModifiedAt":"2024-06-17T06:13:18.9731837Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '515' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:13:21 GMT + etag: + - bb010777-0000-0100-0000-666fd3ff0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 04C81BD0EC9B4FBE83999DD4CA7D732A Ref B: MAA201060514019 Ref C: 2024-06-17T06:13:20Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clirg000001?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001","name":"clirg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","test":"test_import_from_apim_for_one_api","date":"2024-06-17T06:13:25Z","module":"apic-extension"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '369' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:13:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 777E4A7B721F480EA9784D1D21CA8223 Ref B: MAA201060514027 Ref C: 2024-06-17T06:13:23Z' + status: + code: 200 + message: OK +- request: + body: '{"sku": {"name": "Consumption", "capacity": 0}, "location": "eastus", "properties": + {"notificationSenderEmail": "test@example.com", "virtualNetworkType": "None", + "restore": false, "publisherEmail": "test@example.com", "publisherName": "test"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + Content-Length: + - '243' + Content-Type: + - application/json + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003?api-version=2022-08-01 + response: + body: + string: '{"etag":"AAAAAAGVG7w=","properties":{"publisherEmail":"test@example.com","publisherName":"test","notificationSenderEmail":"test@example.com","provisioningState":"Activating","targetProvisioningState":"Activating","createdAtUtc":"2024-06-17T06:13:28.3961328Z","gatewayUrl":"https://cli000003.azure-api.net","gatewayRegionalUrl":null,"portalUrl":null,"developerPortalUrl":null,"managementApiUrl":null,"scmUrl":null,"hostnameConfigurations":[{"type":"Proxy","hostName":"cli000003.azure-api.net","encodedCertificate":null,"keyVaultId":null,"certificatePassword":null,"negotiateClientCertificate":false,"certificate":null,"defaultSslBinding":true,"identityClientId":null,"certificateSource":"BuiltIn","certificateStatus":null}],"publicIPAddresses":null,"privateIPAddresses":null,"additionalLocations":null,"virtualNetworkConfiguration":null,"customProperties":null,"virtualNetworkType":"None","certificates":null,"disableGateway":false,"natGatewayState":"Disabled","outboundPublicIPAddresses":null,"apiVersionConstraint":{"minApiVersion":null},"publicIpAddressId":null,"publicNetworkAccess":"Enabled","privateEndpointConnections":null,"platformVersion":"mtv1"},"sku":{"name":"Consumption","capacity":0},"identity":null,"zones":null,"systemData":{"createdBy":"blackchoey@outlook.com","createdByType":"User","createdAt":"2024-06-17T06:13:27.5444749Z","lastModifiedBy":"blackchoey@outlook.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-17T06:13:27.5444749Z"},"location":"East + US","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","name":"cli000003","type":"Microsoft.ApiManagement/service"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXpkbHl0b2Juc2Q0ZTNma3p3cGNqal9BY3RfNjg3NTYyZGI=?api-version=2022-08-01&asyncResponse&t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QQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=EbhcjHewq6yQTdcsVFFYiHEEI0kVwWdXYN7_UphI27lDlcfZIdR0p6nj8FRXZ7fwEStGwVIz0egQbgybpNNjPO8B-2uNkgaKJv2X-5g6B0x1WjkW9vFhzbnjL2jzFCpfyY-VpU4U6giB7Z4MmjDPNRL4jzi6eQZczKAxgfANhFNCgVVY15PDkZh4uOMhu12rXATOk03i2_04auT3HIBeSsiCG17rRFw4PrPXdsrUc122Qw2yjVDiI9nkYtov0xE7K5raeSXCXJxJnPNoXHj250IH4wvkbJLnZ3eglYgDMJuSznm9P8cvzHreKpbPEqiB5nVJwujll0EL612LVxEeLg&h=z_S6CiNBQ4u85v54xEfVbWQ45aKtWXDaXRhgEfvlSSk + cache-control: + - no-cache + content-length: + - '1692' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:13:31 GMT + etag: + - '"AAAAAAGVG7w="' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXpkbHl0b2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AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=EbhcjHewq6yQTdcsVFFYiHEEI0kVwWdXYN7_UphI27lDlcfZIdR0p6nj8FRXZ7fwEStGwVIz0egQbgybpNNjPO8B-2uNkgaKJv2X-5g6B0x1WjkW9vFhzbnjL2jzFCpfyY-VpU4U6giB7Z4MmjDPNRL4jzi6eQZczKAxgfANhFNCgVVY15PDkZh4uOMhu12rXATOk03i2_04auT3HIBeSsiCG17rRFw4PrPXdsrUc122Qw2yjVDiI9nkYtov0xE7K5raeSXCXJxJnPNoXHj250IH4wvkbJLnZ3eglYgDMJuSznm9P8cvzHreKpbPEqiB5nVJwujll0EL612LVxEeLg&h=z_S6CiNBQ4u85v54xEfVbWQ45aKtWXDaXRhgEfvlSSk + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 1F4B684A06734CAABD52479DA080D6B3 Ref B: MAA201060516011 Ref C: 2024-06-17T06:13:24Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXpkbHl0b2Juc2Q0ZTNma3p3cGNqal9BY3RfNjg3NTYyZGI=?api-version=2022-08-01&asyncResponse&t=638542016122007628&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar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NCgVVY15PDkZh4uOMhu12rXATOk03i2_04auT3HIBeSsiCG17rRFw4PrPXdsrUc122Qw2yjVDiI9nkYtov0xE7K5raeSXCXJxJnPNoXHj250IH4wvkbJLnZ3eglYgDMJuSznm9P8cvzHreKpbPEqiB5nVJwujll0EL612LVxEeLg&h=z_S6CiNBQ4u85v54xEfVbWQ45aKtWXDaXRhgEfvlSSk + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXpkbHl0b2Juc2Q0ZTNma3p3cGNqal9BY3RfNjg3NTYyZGI=?api-version=2022-08-01&asyncResponse&t=638542016129039660&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtv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A4vRU-sgDA0SQlvpgL6swWwonpgRZCUiUX1MEEOT79jvdsYQ26gcghGYNNWSonnhvXMs27aXmYXbcK7JXdaS0aVzuLRSraEUsBkS23ELEepLJkil70jPwxhgaL-CwMiQ9V0JFnl2oSmHwLkYSTsmISCwp1_WfaE-9OYNw&h=OOb5D9jbKp0BtpPAS7BMPbNq06kYpXSEXsdvXHS2CLM + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:13:32 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXpkbHl0b2Juc2Q0ZTNma3p3cGNqal9BY3RfNjg3NTYyZGI=?api-version=2022-08-01&asyncResponse&t=638542016129039660&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8T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Km-j4miAM4pqnTed8HE4p-s6fedYo01H4M6VNso1kA4vRU-sgDA0SQlvpgL6swWwonpgRZCUiUX1MEEOT79jvdsYQ26gcghGYNNWSonnhvXMs27aXmYXbcK7JXdaS0aVzuLRSraEUsBkS23ELEepLJkil70jPwxhgaL-CwMiQ9V0JFnl2oSmHwLkYSTsmISCwp1_WfaE-9OYNw&h=OOb5D9jbKp0BtpPAS7BMPbNq06kYpXSEXsdvXHS2CLM + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 5428B9DD42F341A79B5DB06F8FA8CFCB Ref B: MAA201060516011 Ref C: 2024-06-17T06:13:32Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXpkbHl0b2Juc2Q0ZTNma3p3cGNqal9BY3RfNjg3NTYyZGI=?api-version=2022-08-01&asyncResponse&t=638542016122007628&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0Z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8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=EbhcjHewq6yQTdcsVFFYiHEEI0kVwWdXYN7_UphI27lDlcfZIdR0p6nj8FRXZ7fwEStGwVIz0egQbgybpNNjPO8B-2uNkgaKJv2X-5g6B0x1WjkW9vFhzbnjL2jzFCpfyY-VpU4U6giB7Z4MmjDPNRL4jzi6eQZczKAxgfANhFNCgVVY15PDkZh4uOMhu12rXATOk03i2_04auT3HIBeSsiCG17rRFw4PrPXdsrUc122Qw2yjVDiI9nkYtov0xE7K5raeSXCXJxJnPNoXHj250IH4wvkbJLnZ3eglYgDMJuSznm9P8cvzHreKpbPEqiB5nVJwujll0EL612LVxEeLg&h=z_S6CiNBQ4u85v54xEfVbWQ45aKtWXDaXRhgEfvlSSk + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXpkbHl0b2Juc2Q0ZTNma3p3cGNqal9BY3RfNjg3NTYyZGI=?api-version=2022-08-01&asyncResponse&t=638542016343296044&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ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6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=QqNepJBmFFXZ5d41Zyxt_Gn2B7Abc8IkS0D8tOC8L12hjpPe7kJKMGS8JCAV503iSF0nm1kTJFW8IGuA-H1K_IUViI9ZNcFfPe-4UerxET2v6M6b7AMOAYr9xZzrALHeG-L5XQwuRYcHtqrP789wQipkwFIXjcxAUxGqi01ABmY3Z8BrqQYpYfA637QaRRgI4pn1_ZAd5PUkZLAD3_WKxKmaRh1pJyHMfoymlIYVXGrzMyOLovjRJa6ldx4JT1Zt-4fVyFzXe0WZX9CICRCyX_ymk6DBtAqnQZRyCHfbV2lyGz9TgUnDSExfoihnXJi8jqFmxQb2iDNeJ_nKR3Udmg&h=QCqQBXqAMlPD8oFQq5sDdsgOPkMHFtEXw77UornLTwQ + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:13:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXpkbHl0b2Juc2Q0ZTNma3p3cGNqal9BY3RfNjg3NTYyZGI=?api-version=2022-08-01&asyncResponse&t=638542016343296044&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhd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oyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=QqNepJBmFFXZ5d41Zyxt_Gn2B7Abc8IkS0D8tOC8L12hjpPe7kJKMGS8JCAV503iSF0nm1kTJFW8IGuA-H1K_IUViI9ZNcFfPe-4UerxET2v6M6b7AMOAYr9xZzrALHeG-L5XQwuRYcHtqrP789wQipkwFIXjcxAUxGqi01ABmY3Z8BrqQYpYfA637QaRRgI4pn1_ZAd5PUkZLAD3_WKxKmaRh1pJyHMfoymlIYVXGrzMyOLovjRJa6ldx4JT1Zt-4fVyFzXe0WZX9CICRCyX_ymk6DBtAqnQZRyCHfbV2lyGz9TgUnDSExfoihnXJi8jqFmxQb2iDNeJ_nKR3Udmg&h=QCqQBXqAMlPD8oFQq5sDdsgOPkMHFtEXw77UornLTwQ + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: D50CC0A29AB74EE69FED27ADAF3E4EA4 Ref B: MAA201060516011 Ref C: 2024-06-17T06:13:53Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXpkbHl0b2Juc2Q0ZTNma3p3cGNqal9BY3RfNjg3NTYyZGI=?api-version=2022-08-01&asyncResponse&t=638542016122007628&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRS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IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=EbhcjHewq6yQTdcsVFFYiHEEI0kVwWdXYN7_UphI27lDlcfZIdR0p6nj8FRXZ7fwEStGwVIz0egQbgybpNNjPO8B-2uNkgaKJv2X-5g6B0x1WjkW9vFhzbnjL2jzFCpfyY-VpU4U6giB7Z4MmjDPNRL4jzi6eQZczKAxgfANhFNCgVVY15PDkZh4uOMhu12rXATOk03i2_04auT3HIBeSsiCG17rRFw4PrPXdsrUc122Qw2yjVDiI9nkYtov0xE7K5raeSXCXJxJnPNoXHj250IH4wvkbJLnZ3eglYgDMJuSznm9P8cvzHreKpbPEqiB5nVJwujll0EL612LVxEeLg&h=z_S6CiNBQ4u85v54xEfVbWQ45aKtWXDaXRhgEfvlSSk + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/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AAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=rSHv80TkW0EMSr7SlYU89kMiDtwxbKlRMbugzg3zrJEX4hsDoKFCe72b7DbN5JWHRvDccic3FimtSq0qprTTzsgV3WkrA-JVlINm7mNbSsM0q6wIb3d4ZuQCFs4-mm3pBrBDRlb4r2xL7w92Sv6vb_zrex4xoxK2YxbTllEb5hC3pU2FTLS0d9d9b7gaBK9279-rofJ0bHPdusg-Z5hJe7AgMOOteQ9m-IBO6_Zao8Ort1kQLe8BAIzIOQCmXUJ4_E7WBaQjh9E7ZIVd-fGN7FeBGBcsC7Hj2sx6JKuIjYsw_xybKCp88PFPaZQXV3gpcMOgG83cVxXJEtUGQyemjw&h=V-hk9WYXfkNFth25nQgoFVtKXzC4NJMBU8ia5ggR8IM + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:14:15 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXpkbHl0b2Juc2Q0ZTNma3p3cGNqal9BY3RfNjg3NTYyZGI=?api-version=2022-08-01&asyncResponse&t=638542016558333231&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUE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YI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=fr19wh9zu0sbx9qRk9z2yjRx27_zCu4R9YgBCO3yBUq08jZAZVOQXseKRAjJKJtmxmFq5lnd9TiZoOzSs2dQpr4Bq12LpQwQYGsb3X0YE8fxbruedOKVzGwrjs2IICoP-jUf2DpB8lKBh8lRuAuaKiHHNejBv-QS50s1cwNOPDHaGvBu22Vwowk5MCt1lrfZ3Di0UoAuz_VyZ1MGxC6U9MNrd8c_t2U702Rpsr7pAq5JoiPfs0IlNQDVIQ1MN_8bHdo3F8m-Z_9ArhT1pmP3lVDLCnX3uNZ8iTme9rez8v3BTsgXvSd_cgRE0GJRIC0LFn-RNgmpz-JRrOR5lnhsrg&h=0e0f7DHDpIZNMdYdZuJ5fJaIUS---LLJSU9I2wTLHA0 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 3F6421775B234414BA93105333A2B7C0 Ref B: MAA201060516011 Ref C: 2024-06-17T06:14:14Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXpkbHl0b2Juc2Q0ZTNma3p3cGNqal9BY3RfNjg3NTYyZGI=?api-version=2022-08-01&asyncResponse&t=638542016122007628&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3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FhzbnjL2jzFCpfyY-VpU4U6giB7Z4MmjDPNRL4jzi6eQZczKAxgfANhFNCgVVY15PDkZh4uOMhu12rXATOk03i2_04auT3HIBeSsiCG17rRFw4PrPXdsrUc122Qw2yjVDiI9nkYtov0xE7K5raeSXCXJxJnPNoXHj250IH4wvkbJLnZ3eglYgDMJuSznm9P8cvzHreKpbPEqiB5nVJwujll0EL612LVxEeLg&h=z_S6CiNBQ4u85v54xEfVbWQ45aKtWXDaXRhgEfvlSSk + response: + body: + string: '{"status":"InProgress"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXpkbHl0b2Juc2Q0ZTNma3p3cGNqal9BY3RfNjg3NTYyZGI=?api-version=2022-08-01&asyncResponse&t=638542016773236471&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KW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0IeAzvisvd0VOvnTIXqqGoMbc2nigPyPKwwdlrmZ9IqLYkt08s4PzwwvPLdb-507b0x8TyBW9n3CB0LyfnOQARx_xxV9PgJKbIKVk6ciDtz7WaKaI0odsTXNnj3I_VY-A18y6zfEkHFRX15Gzi7P5CnHpS6UnrZtQefmX3iPC2zGFamZGuzUe7J6ZeGGGjAlHKJlOhLXHYJthPxwGx63LmQHVA-TQ&h=DU3kL1rjwT_CXE7hAKQeTVMrUxOgnHE46xEhYcABbrU + cache-control: + - no-cache + content-length: + - '23' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:14:36 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXpkbHl0b2Juc2Q0ZTNma3p3cGNqal9BY3RfNjg3NTYyZGI=?api-version=2022-08-01&asyncResponse&t=638542016773236471&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1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v0rbhWjq_O-iTbszL8T4YZgpKiMX5Wqvlz2CoMt0IeAzvisvd0VOvnTIXqqGoMbc2nigPyPKwwdlrmZ9IqLYkt08s4PzwwvPLdb-507b0x8TyBW9n3CB0LyfnOQARx_xxV9PgJKbIKVk6ciDtz7WaKaI0odsTXNnj3I_VY-A18y6zfEkHFRX15Gzi7P5CnHpS6UnrZtQefmX3iPC2zGFamZGuzUe7J6ZeGGGjAlHKJlOhLXHYJthPxwGx63LmQHVA-TQ&h=DU3kL1rjwT_CXE7hAKQeTVMrUxOgnHE46xEhYcABbrU + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 9E13A2B2FFA34FF1A0F7F4BF7795EC56 Ref B: MAA201060516011 Ref C: 2024-06-17T06:14:36Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/operationresults/ZWFzdHVzOmNsaXpkbHl0b2Juc2Q0ZTNma3p3cGNqal9BY3RfNjg3NTYyZGI=?api-version=2022-08-01&asyncResponse&t=638542016122007628&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0Mz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l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=EbhcjHewq6yQTdcsVFFYiHEEI0kVwWdXYN7_UphI27lDlcfZIdR0p6nj8FRXZ7fwEStGwVIz0egQbgybpNNjPO8B-2uNkgaKJv2X-5g6B0x1WjkW9vFhzbnjL2jzFCpfyY-VpU4U6giB7Z4MmjDPNRL4jzi6eQZczKAxgfANhFNCgVVY15PDkZh4uOMhu12rXATOk03i2_04auT3HIBeSsiCG17rRFw4PrPXdsrUc122Qw2yjVDiI9nkYtov0xE7K5raeSXCXJxJnPNoXHj250IH4wvkbJLnZ3eglYgDMJuSznm9P8cvzHreKpbPEqiB5nVJwujll0EL612LVxEeLg&h=z_S6CiNBQ4u85v54xEfVbWQ45aKtWXDaXRhgEfvlSSk + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 06:14:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 09D76622F38D41B48223A73B6EDEC469 Ref B: MAA201060516011 Ref C: 2024-06-17T06:14:57Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim create + Connection: + - keep-alive + ParameterSetName: + - -g --name --publisher-name --publisher-email --sku-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003?api-version=2022-08-01 + response: + body: + string: '{"etag":"AAAAAAGVG9Q=","properties":{"publisherEmail":"test@example.com","publisherName":"test","notificationSenderEmail":"test@example.com","provisioningState":"Succeeded","targetProvisioningState":"","createdAtUtc":"2024-06-17T06:13:28.3961328Z","gatewayUrl":"https://cli000003.azure-api.net","gatewayRegionalUrl":null,"portalUrl":null,"developerPortalUrl":null,"managementApiUrl":null,"scmUrl":null,"hostnameConfigurations":[{"type":"Proxy","hostName":"cli000003.azure-api.net","encodedCertificate":null,"keyVaultId":null,"certificatePassword":null,"negotiateClientCertificate":false,"certificate":null,"defaultSslBinding":true,"identityClientId":null,"certificateSource":"BuiltIn","certificateStatus":null}],"publicIPAddresses":null,"privateIPAddresses":null,"additionalLocations":null,"virtualNetworkConfiguration":null,"customProperties":{"Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30":"False","Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2":"False"},"virtualNetworkType":"None","certificates":null,"disableGateway":false,"natGatewayState":"Disabled","outboundPublicIPAddresses":null,"apiVersionConstraint":{"minApiVersion":null},"publicIpAddressId":null,"publicNetworkAccess":"Enabled","privateEndpointConnections":null,"platformVersion":"mtv1"},"sku":{"name":"Consumption","capacity":0},"identity":null,"zones":null,"systemData":{"createdBy":"blackchoey@outlook.com","createdByType":"User","createdAt":"2024-06-17T06:13:27.5444749Z","lastModifiedBy":"blackchoey@outlook.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-17T06:13:27.5444749Z"},"location":"East + US","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","name":"cli000003","type":"Microsoft.ApiManagement/service"}' + headers: + cache-control: + - no-cache + content-length: + - '2180' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:14:58 GMT + etag: + - '"AAAAAAGVG9Q="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 1799AB4C20514176AA5E1C2E0EAAC117 Ref B: MAA201060516011 Ref C: 2024-06-17T06:14:58Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"type": "http", "subscriptionRequired": false, "displayName": + "Echo API", "path": "/echo", "protocols": ["https"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + Content-Length: + - '131' + Content-Type: + - application/json + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"echo\",\r\n \"properties\": {\r\n \"displayName\": \"Echo API\",\r\ + \n \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"echo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null\r\n },\r\n \"subscriptionKeyParameterNames\": {\r\n \ + \ \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\": \"subscription-key\"\ + \r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '721' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:15:01 GMT + etag: + - '"AAAAAOMyfRU="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 3E3E5DDC5A0941E28736DFB098951453 Ref B: MAA201060513025 Ref C: 2024-06-17T06:15:00Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"echo\",\r\n \"properties\": {\r\n \"displayName\": \"Echo API\",\r\ + \n \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"echo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null,\r\n \"oAuth2AuthenticationSettings\": [],\r\n \"\ + openidAuthenticationSettings\": []\r\n },\r\n \"subscriptionKeyParameterNames\"\ + : {\r\n \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\"\ + : \"subscription-key\"\r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '807' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:15:02 GMT + etag: + - '"AAAAAOMyfRU="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B7AEBE7A367740B1AF02809D21597167 Ref B: MAA201060513025 Ref C: 2024-06-17T06:15:01Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "GetOperation", "method": "GET", "urlTemplate": + "/echo"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api operation create + Connection: + - keep-alive + Content-Length: + - '88' + Content-Type: + - application/json + If-Match: + - '*' + ParameterSetName: + - -g --service-name --api-id --url-template --method --display-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo/operations/bbb6eef40258462cb7036103495d2591?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo/operations/bbb6eef40258462cb7036103495d2591\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis/operations\",\r\n\ + \ \"name\": \"bbb6eef40258462cb7036103495d2591\",\r\n \"properties\": {\r\ + \n \"displayName\": \"GetOperation\",\r\n \"method\": \"GET\",\r\n \ + \ \"urlTemplate\": \"/echo\",\r\n \"templateParameters\": [],\r\n \ + \ \"description\": null,\r\n \"request\": {\r\n \"queryParameters\"\ + : [],\r\n \"headers\": [],\r\n \"representations\": []\r\n },\r\ + \n \"responses\": [],\r\n \"policies\": null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '629' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:15:05 GMT + etag: + - '"AAAAAOMyfRs="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 96F9D50673E64599AC10BAC4DF7913DA Ref B: MAA201060515025 Ref C: 2024-06-17T06:15:05Z' + status: + code: 201 + message: Created +- request: + body: '{"properties": {"type": "http", "subscriptionRequired": false, "displayName": + "Foo API", "path": "/foo", "protocols": ["https"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + Content-Length: + - '129' + Content-Type: + - application/json + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"foo\",\r\n \"properties\": {\r\n \"displayName\": \"Foo API\",\r\n\ + \ \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"foo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null\r\n },\r\n \"subscriptionKeyParameterNames\": {\r\n \ + \ \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\": \"subscription-key\"\ + \r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '717' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:15:08 GMT + etag: + - '"AAAAAOMyfSI="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 664657B14A284AD4B6541AEFD4027FE9 Ref B: MAA201060513049 Ref C: 2024-06-17T06:15:07Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api create + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --api-id --display-name --path + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis\",\r\n \"name\":\ + \ \"foo\",\r\n \"properties\": {\r\n \"displayName\": \"Foo API\",\r\n\ + \ \"apiRevision\": \"1\",\r\n \"description\": null,\r\n \"subscriptionRequired\"\ + : false,\r\n \"serviceUrl\": null,\r\n \"backendId\": null,\r\n \"\ + path\": \"foo\",\r\n \"protocols\": [\r\n \"https\"\r\n ],\r\n\ + \ \"authenticationSettings\": {\r\n \"oAuth2\": null,\r\n \"\ + openid\": null,\r\n \"oAuth2AuthenticationSettings\": [],\r\n \"\ + openidAuthenticationSettings\": []\r\n },\r\n \"subscriptionKeyParameterNames\"\ + : {\r\n \"header\": \"Ocp-Apim-Subscription-Key\",\r\n \"query\"\ + : \"subscription-key\"\r\n },\r\n \"isCurrent\": true\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '803' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:15:09 GMT + etag: + - '"AAAAAOMyfSI="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B5B8394D72DE448C9EDDDEE259314BB5 Ref B: MAA201060513049 Ref C: 2024-06-17T06:15:08Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "GetOperation", "method": "GET", "urlTemplate": + "/foo"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apim api operation create + Connection: + - keep-alive + Content-Length: + - '87' + Content-Type: + - application/json + If-Match: + - '*' + ParameterSetName: + - -g --service-name --api-id --url-template --method --display-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo/operations/a2ba51fea17b48bca6f153cb05d7ffcc?api-version=2022-08-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/foo/operations/a2ba51fea17b48bca6f153cb05d7ffcc\"\ + ,\r\n \"type\": \"Microsoft.ApiManagement/service/apis/operations\",\r\n\ + \ \"name\": \"a2ba51fea17b48bca6f153cb05d7ffcc\",\r\n \"properties\": {\r\ + \n \"displayName\": \"GetOperation\",\r\n \"method\": \"GET\",\r\n \ + \ \"urlTemplate\": \"/foo\",\r\n \"templateParameters\": [],\r\n \"\ + description\": null,\r\n \"request\": {\r\n \"queryParameters\": [],\r\ + \n \"headers\": [],\r\n \"representations\": []\r\n },\r\n \ + \ \"responses\": [],\r\n \"policies\": null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '627' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:15:11 GMT + etag: + - '"AAAAAOMyfSk="' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: AC503B5CB8024F358451DED126D00DEE Ref B: MAA201060515033 Ref C: 2024-06-17T06:15:11Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --role --assignee-object-id --assignee-principal-type --scope + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27API%20Management%20Service%20Reader%20Role%27&api-version=2022-05-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"API Management Service Reader + Role","type":"BuiltInRole","description":"Read-only access to service and + APIs","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.ApiManagement/service/*/read","Microsoft.ApiManagement/service/read","Microsoft.Authorization/*/read","Microsoft.Insights/alertRules/*","Microsoft.ResourceHealth/availabilityStatuses/read","Microsoft.Resources/deployments/*","Microsoft.Resources/subscriptions/resourceGroups/read","Microsoft.Support/*"],"notActions":["Microsoft.ApiManagement/service/users/keys/read"],"dataActions":[],"notDataActions":[]}],"createdOn":"2016-11-09T00:26:45.1540473Z","updatedOn":"2021-11-11T20:13:11.8704466Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d","type":"Microsoft.Authorization/roleDefinitions","name":"71522526-b88f-4d52-b57f-d31fc3546d0d"}]}' + headers: + cache-control: + - no-cache + content-length: + - '982' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:15:13 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 89687809CF734552A2FC522EEA688562 Ref B: MAA201060515011 Ref C: 2024-06-17T06:15:13Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d", + "principalId": "d1c6fc80-9867-4b3b-8546-b43321e84db4", "principalType": "ServicePrincipal"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '270' + Content-Type: + - application/json + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --role --assignee-object-id --assignee-principal-type --scope + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleAssignments/1274b623-3734-4339-9fe0-c92b227df6bd?api-version=2022-04-01 + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/71522526-b88f-4d52-b57f-d31fc3546d0d","principalId":"d1c6fc80-9867-4b3b-8546-b43321e84db4","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003","condition":null,"conditionVersion":null,"createdOn":"2024-06-17T06:15:14.7830948Z","updatedOn":"2024-06-17T06:15:15.2200970Z","createdBy":null,"updatedBy":"7557db67-613b-4194-a890-de2ba9a4ec8e","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/providers/Microsoft.Authorization/roleAssignments/1274b623-3734-4339-9fe0-c92b227df6bd","type":"Microsoft.Authorization/roleAssignments","name":"1274b623-3734-4339-9fe0-c92b227df6bd"}' + headers: + cache-control: + - no-cache + content-length: + - '981' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:15:16 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: D97B46EBF35B4E5EBE2AE9A4B992E148 Ref B: MAA201060515011 Ref C: 2024-06-17T06:15:14Z' + status: + code: 201 + message: Created +- request: + body: '{"sourceResourceIds": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiManagement/service/cli000003/apis/echo"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic import-from-apim + Connection: + - keep-alive + Content-Length: + - '167' + Content-Type: + - application/json + ParameterSetName: + - -g --service-name --apim-name --apim-apis + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/importFromApim?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:15:19 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/0025978703e447f7beebda125d12b1c5?api-version=2024-03-01&t=638542017200164996&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmd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AmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=sl8DBHNWKBu4ACJAVgQtWL_z1ihXzoKvY3O0Sb5Rg-LoXmQlS48sh2NDTYu1Jq_lczT6bk-rzCv8o78b6fQSAh7B0d8MposQYtit49kVyDxGLGE4ddWzlZijo0Isb_IMZM8DoWs3R3aFRWajFPCBYUHC6_6GFghrqi5Uw8miM8KZqHNK02X_Ck7V4rZQjY0o0Fzj6ThQszmMA7pwZWWADVhoLExCEaojiZvFdWJYjqkT-LcTs-nyPrr5dWhix51QBj0ZutOCYNVN79PNF8rOFK0QlYtB9qv3EWbbkw67KExY-l4WLJ8aXkjxk7NXq8bSrk-E8ioNbxHvgRtv1uBQtw&h=430f3gFMvMnTfuTrEZMJ0L4OpQi9u11v8qH8mBpvXpg + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 1E815640AE61492E9A5212DD92DA145B Ref B: MAA201060513037 Ref C: 2024-06-17T06:15:18Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic import-from-apim + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --apim-name --apim-apis + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/0025978703e447f7beebda125d12b1c5?api-version=2024-03-01&t=638542017200164996&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJTIwQ0ElMjAwMSg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QAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=sl8DBHNWKBu4ACJAVgQtWL_z1ihXzoKvY3O0Sb5Rg-LoXmQlS48sh2NDTYu1Jq_lczT6bk-rzCv8o78b6fQSAh7B0d8MposQYtit49kVyDxGLGE4ddWzlZijo0Isb_IMZM8DoWs3R3aFRWajFPCBYUHC6_6GFghrqi5Uw8miM8KZqHNK02X_Ck7V4rZQjY0o0Fzj6ThQszmMA7pwZWWADVhoLExCEaojiZvFdWJYjqkT-LcTs-nyPrr5dWhix51QBj0ZutOCYNVN79PNF8rOFK0QlYtB9qv3EWbbkw67KExY-l4WLJ8aXkjxk7NXq8bSrk-E8ioNbxHvgRtv1uBQtw&h=430f3gFMvMnTfuTrEZMJ0L4OpQi9u11v8qH8mBpvXpg + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/0025978703e447f7beebda125d12b1c5","name":"0025978703e447f7beebda125d12b1c5","status":"NotStarted"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '254' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:15:20 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/0025978703e447f7beebda125d12b1c5?api-version=2024-03-01&t=638542017208602370&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUjUplv8OZZSK5OvCrsyCwkmsg2yKxfHaRObmPqpu65x8lFk2jKBDK30LBTk2StP96kJI1VnIe3fxGXE6_1XKZTCJH9o_4vYvmA3wTHxlu8KWljLk10ttEqy736mEq9ex8TqnJVHebwRZ33UQTFZClqhQrIcLUrar5PXwlFMtvhgI1-Du5tVtKr1KECAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6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A&h=BZrEuK5kyd7JSx8wceHdi1h_aEkPtM3B9voGvL-k2oY + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: A9FD18D336464F5598CD4BC84E690FBC Ref B: MAA201060513037 Ref C: 2024-06-17T06:15:20Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic import-from-apim + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --apim-name --apim-apis + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/0025978703e447f7beebda125d12b1c5?api-version=2024-03-01&t=638542017208602370&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMm-rUyPQv0z_LgvMVxRmSGe7k2sSDcjhZtJtacrGF0aA0mXhldjASVDsIKbducmYozS8YVn2yXvxW_2yo82m2q934keEf1UEKaSADUrozDPX5msTyt18UcXAPp7vPi8MXbYjFOyyuc1uzgXltAbdS5P2ki32RUj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Nhqeau0NxUvQWR1czvCJQxWruuFJnnHO1yQqLASpwsOyX0hkI5yNOuiAW50ioySPYyG4D_tncW8kXoGZC4wxdpE6WyS56TiATMPv9fKPKad8io7BqKPA87IM9ptie50iIgfpdsOSsy6-8JV08eLvzWoF2rp99kRm6AhpOzgogRokRLz9Tmr7AV8Mlwo37Tv7hJxAquf9J9nTjj4Ra4sb3XdZo04oyXR0vdrBJSAuZlhqbuxDVuT5STjJJdQ9SlpGRdTwT_kxEvGNqMw3eRq2hyeS3l0diR58IptX1EGgXx3zosiwUt83aNLXzCtE7NRa4VAA&h=BZrEuK5kyd7JSx8wceHdi1h_aEkPtM3B9voGvL-k2oY + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/0025978703e447f7beebda125d12b1c5","name":"0025978703e447f7beebda125d12b1c5","status":"InProgress","startTime":"2024-06-17T06:15:48.6323627+00:00"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '302' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:15:51 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/0025978703e447f7beebda125d12b1c5?api-version=2024-03-01&t=638542017521882280&c=MIIHpTCCBo2gAwIBAgITOgMPIyvO-SSNo3JCxQAEAw8jKzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNTE3MDc0MzI1WhcNMjUwNTEyMDc0MzI1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF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z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=r-nahC11FGBl9b-5QMBLhUGXqD4Mf-eOUpu75ZcQTlQAVlsWzUfCwlvAb_XYQvFBpKhuEKPOy3XDKBIZfnYMZ7z5iKGYVoaXlVbuw-7vHJQaXui137Hsh7M5gT92cAvR95RmDLOYKesUAU7bfP-Mx7DCi9pLnlsSQA_6f3NgrpfAJi4mKz1oRqwzWP6H3NyAzDZSmGuskuOI0nlPfJfwr-Kg33eVUe9llb4C-rfzSMy_6JVbl6N7LuYWtcMiJo9kJ3OpgHLn3SYMkkKSiPL0rYMSYEyZjjSntKI9povtpiiQT9liFxu1NeMV2p80gVj_ZKiKRQGyBTKPeMTJ4Nce0A&h=XgLyj8RREDxdM4LX63LrPyD1VtvqDAW_Ypwq5vK-eM0 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 9DCBC437B3DD496896FD69F7B086B6FE Ref B: MAA201060513037 Ref C: 2024-06-17T06:15:51Z' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic import-from-apim + Connection: + - keep-alive + ParameterSetName: + - -g --service-name --apim-name --apim-apis + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operation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YgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD-urQp96AuB916E-Te8RmgK90YXOfxpQ9UFVrx1h5G83WkRUIlKdESHrUjduIESxCRdkRY2ntf__S09h5_4l7f3rT0jpHXw-_8dUrAbn43jMiQmB2LXzLoyIWaLagT18F_wbUAmRMU1m1WEJE66ngt8mx407-SRKz6rKaPUCD2z-wIeSOcaXXY7KbRVUtbPS4GhSTo3fCRHPGpXS9ftpm-v7z3JFkXFsN7jcHBQDn2YqE7eFoPVqmoQtJZXXzAsWMeqSilE2wmsqn8Ty0ykZnqcfjuRNXoTC9CpuEhZYirAwmdBN87Cb7ZrhR2s8flm-uIqdEhk4mWeNMEyWsm5RLA&s=r-nahC11FGBl9b-5QMBLhUGXqD4Mf-eOUpu75ZcQTlQAVlsWzUfCwlvAb_XYQvFBpKhuEKPOy3XDKBIZfnYMZ7z5iKGYVoaXlVbuw-7vHJQaXui137Hsh7M5gT92cAvR95RmDLOYKesUAU7bfP-Mx7DCi9pLnlsSQA_6f3NgrpfAJi4mKz1oRqwzWP6H3NyAzDZSmGuskuOI0nlPfJfwr-Kg33eVUe9llb4C-rfzSMy_6JVbl6N7LuYWtcMiJo9kJ3OpgHLn3SYMkkKSiPL0rYMSYEyZjjSntKI9povtpiiQT9liFxu1NeMV2p80gVj_ZKiKRQGyBTKPeMTJ4Nce0A&h=XgLyj8RREDxdM4LX63LrPyD1VtvqDAW_Ypwq5vK-eM0 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/operationResults/0025978703e447f7beebda125d12b1c5","name":"0025978703e447f7beebda125d12b1c5","status":"Succeeded","startTime":"2024-06-17T06:15:48.6323627+00:00","endTime":"2024-06-17T06:16:07.5748957+00:00"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '347' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:16:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: E43AD282E10B43FCA3E51A3D1E8BD4D6 Ref B: MAA201060513037 Ref C: 2024-06-17T06:16:22Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api list + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo + API","kind":"REST","lifecycleStage":"design","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/14389343672246031653","name":"14389343672246031653","systemData":{"createdAt":"2024-06-17T06:16:06.9343119Z","lastModifiedAt":"2024-06-17T06:16:06.9343105Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '524' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:16:25 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 3F616D49DB1245CEA9396A0EDA9DB2BF Ref B: MAA201060515047 Ref C: 2024-06-17T06:16:25Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_list_service_in_rg.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_list_service_in_rg.yaml new file mode 100644 index 00000000000..13be29ae587 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_list_service_in_rg.yaml @@ -0,0 +1,54 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{},"systemData":{"createdAt":"2024-06-17T06:13:14.8031021Z","lastModifiedAt":"2024-06-17T06:13:14.8030943Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:13:17 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 38C96D78AD0843EC93ADE4704051272B Ref B: MAA201060516035 Ref C: 2024-06-17T06:13:16Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_create.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_create.yaml new file mode 100644 index 00000000000..1eb26c1b492 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_create.yaml @@ -0,0 +1,64 @@ +interactions: +- request: + body: '{"properties": {"assignedTo": [{"deprecated": false, "entity": "api", "required": + true}], "schema": "{\"type\":\"boolean\", \"title\":\"Public Facing\"}"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata create + Connection: + - keep-alive + Content-Length: + - '155' + Content-Type: + - application/json + ParameterSetName: + - -g -n --metadata-name --schema --assignments + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/cli000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false}],"schema":"{\"type\":\"boolean\", + \"title\":\"Public Facing\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/cli000003","name":"cli000003","systemData":{"createdAt":"2024-06-17T06:08:19.7901178Z","lastModifiedAt":"2024-06-17T06:08:19.7901171Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '490' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:19 GMT + etag: + - 66022eac-0000-0100-0000-666fd2d30000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: D32DBBFF21A64200892C292D6B8D6F3A Ref B: MAA201060515023 Ref C: 2024-06-17T06:08:18Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_create_with_file.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_create_with_file.yaml new file mode 100644 index 00000000000..653cde09f6c --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_create_with_file.yaml @@ -0,0 +1,64 @@ +interactions: +- request: + body: '{"properties": {"assignedTo": [{"deprecated": false, "entity": "api", "required": + true}], "schema": "{\"type\": \"boolean\", \"title\": \"Public Facing\"}"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata create + Connection: + - keep-alive + Content-Length: + - '157' + Content-Type: + - application/json + ParameterSetName: + - -g -n --metadata-name --schema --assignments + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/cli000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false}],"schema":"{\"type\": + \"boolean\", \"title\": \"Public Facing\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/cli000003","name":"cli000003","systemData":{"createdAt":"2024-06-17T06:08:14.2121324Z","lastModifiedAt":"2024-06-17T06:08:14.2121318Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '492' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:13 GMT + etag: + - 6602d5ab-0000-0100-0000-666fd2ce0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 6E66440B33CD40FB806A462C6A3CDD8D Ref B: MAA201060513035 Ref C: 2024-06-17T06:08:12Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_delete.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_delete.yaml new file mode 100644 index 00000000000..e16315b3685 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_delete.yaml @@ -0,0 +1,104 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --metadata-name --yes + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + date: + - Mon, 17 Jun 2024 06:08:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: 2C10A69E082D4753A949F56542CC4363 Ref B: MAA201060513047 Ref C: 2024-06-17T06:08:34Z' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata show + Connection: + - keep-alive + ParameterSetName: + - -g -n --metadata-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"code":"404"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '14' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 1CCCBB5871A24123AEB3FEF7A224F8FB Ref B: MAA201060513025 Ref C: 2024-06-17T06:08:38Z' + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_export.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_export.yaml new file mode 100644 index 00000000000..83816a0eca8 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_export.yaml @@ -0,0 +1,73 @@ +interactions: +- request: + body: '{"assignedTo": "api"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata export + Connection: + - keep-alive + Content-Length: + - '21' + Content-Type: + - application/json + ParameterSetName: + - -g -n --assignments --file-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/exportMetadataSchema?api-version=2024-03-01 + response: + body: + string: '{"format":"json-schema","value":"{\"type\":\"object\",\"properties\":{\"Id\":{\"type\":\"string\"},\"Name\":{\"type\":\"string\"},\"WorkspaceName\":{\"type\":\"string\"},\"Title\":{\"type\":\"string\"},\"Summary\":{\"type\":\"string\"},\"Description\":{\"type\":\"string\"},\"Kind\":{\"type\":\"string\"},\"LifecycleStage\":{\"type\":\"string\",\"enum\":[\"design\",\"development\",\"testing\",\"preview\",\"production\",\"deprecated\",\"retired\"]},\"TermsOfService\":{\"type\":\"object\",\"properties\":{\"url\":{\"description\":\"URL + pointing to the terms of service.\",\"type\":\"string\",\"maxLength\":200,\"format\":\"uri\"}}},\"License\":{\"type\":\"object\",\"properties\":{\"name\":{\"description\":\"Name + of the license.\",\"type\":\"string\",\"maxLength\":50},\"url\":{\"description\":\"URL + pointing to the license details. The URL field is mutually exclusive of the + identifier field.\",\"type\":\"string\",\"maxLength\":200,\"format\":\"uri\"},\"identifier\":{\"description\":\"SPDX + license information for the API. The identifier field is mutually exclusive + of the URL field.\",\"type\":\"string\",\"maxLength\":200,\"format\":\"uri\"}}},\"ExternalDocumentation\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"title\":{\"description\":\"Title + of the documentation.\",\"type\":\"string\",\"maxLength\":50},\"description\":{\"description\":\"Description + of the documentation.\",\"type\":\"string\",\"maxLength\":1000},\"url\":{\"description\":\"URL + pointing to the documentation.\",\"type\":\"string\",\"maxLength\":200,\"format\":\"uri\"}}}},\"Contacts\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"name\":{\"description\":\"Name + of the contact.\",\"type\":\"string\",\"maxLength\":100},\"url\":{\"description\":\"URL + for the contact.\",\"type\":\"string\",\"maxLength\":200,\"format\":\"uri\"},\"email\":{\"description\":\"Email + address for the contact.\",\"type\":\"string\",\"maxLength\":100,\"format\":\"email\"}}}},\"CustomPropertiesData\":{},\"CatalogNameTypeSafe\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"Name\":{\"type\":\"string\"}}},\"CatalogName\":{\"type\":\"string\"},\"SubscriptionId\":{\"type\":\"string\"},\"SubscriptionIdTypeSafe\":{\"type\":\"string\"},\"ResourceGroupName\":{\"type\":\"string\"},\"ResourceGroupNameTypeSafe\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"Name\":{\"type\":\"string\"}}},\"ETag\":{\"type\":\"string\"},\"Created\":{\"type\":\"string\",\"format\":\"date-time\"},\"Updated\":{\"type\":\"string\",\"format\":\"date-time\"},\"CreatedBy\":{\"type\":\"string\"},\"UpdatedBy\":{\"type\":\"string\"},\"customProperties\":{\"type\":\"object\",\"properties\":{\"clitest000003\":{\"type\":\"boolean\",\"title\":\"Public + Facing\"}},\"unevaluatedProperties\":false,\"required\":[\"clitest000003\"]}}}"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '2854' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 46C80D5D89D04B468089C5C639E203B3 Ref B: MAA201060514031 Ref C: 2024-06-17T06:08:59Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_list.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_list.yaml new file mode 100644 index 00000000000..534b6c9ee88 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_list.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata list + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false},{"entity":"environment","required":true,"deprecated":false},{"entity":"deployment","required":true,"deprecated":false}],"schema":"{\"type\":\"boolean\", + \"title\":\"Public Facing\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:09:20.446154Z","lastModifiedAt":"2024-06-17T06:09:20.4461531Z"}},{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false},{"entity":"environment","required":true,"deprecated":false},{"entity":"deployment","required":true,"deprecated":false}],"schema":"{\"type\":\"boolean\", + \"title\":\"Public Facing\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:09:23.2865529Z","lastModifiedAt":"2024-06-17T06:09:23.2865521Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1246' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:25 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: FDB76E516133447FA104C4E115E5657C Ref B: MAA201060515047 Ref C: 2024-06-17T06:09:24Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_list_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_list_with_all_optional_params.yaml new file mode 100644 index 00000000000..e91eab64abb --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_list_with_all_optional_params.yaml @@ -0,0 +1,55 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata list + Connection: + - keep-alive + ParameterSetName: + - -g -n --filter + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas?$filter=name%20eq%20%27clitest000003%27&api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false},{"entity":"environment","required":true,"deprecated":false},{"entity":"deployment","required":true,"deprecated":false}],"schema":"{\"type\":\"boolean\", + \"title\":\"Public Facing\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:08:14.7702975Z","lastModifiedAt":"2024-06-17T06:08:14.7702965Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '629' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:19 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 11776356A4F4430C837763FE75586214 Ref B: MAA201060516029 Ref C: 2024-06-17T06:08:19Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_show.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_show.yaml new file mode 100644 index 00000000000..b9a5aa7d4a4 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_show.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata show + Connection: + - keep-alive + ParameterSetName: + - -g -n --metadata-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false},{"entity":"environment","required":true,"deprecated":false},{"entity":"deployment","required":true,"deprecated":false}],"schema":"{\"type\":\"boolean\", + \"title\":\"Public Facing\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:08:35.5821846Z","lastModifiedAt":"2024-06-17T06:08:35.5821839Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '617' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:38 GMT + etag: + - 6602c2ad-0000-0100-0000-666fd2e30000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 87F705D7F2394BDC88112F41943B4384 Ref B: MAA201060513049 Ref C: 2024-06-17T06:08:37Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_update.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_update.yaml new file mode 100644 index 00000000000..14f67419e46 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_metadata_update.yaml @@ -0,0 +1,121 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata update + Connection: + - keep-alive + ParameterSetName: + - -g -n --metadata-name --schema + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false},{"entity":"environment","required":true,"deprecated":false},{"entity":"deployment","required":true,"deprecated":false}],"schema":"{\"type\":\"boolean\", + \"title\":\"Public Facing\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:08:56.191846Z","lastModifiedAt":"2024-06-17T06:08:56.1918453Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '616' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:58 GMT + etag: + - 6602f5b0-0000-0100-0000-666fd2f80000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 604BD0C7867A445A8AE3E67593495BAF Ref B: MAA201060516037 Ref C: 2024-06-17T06:08:57Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"assignedTo": [{"deprecated": false, "entity": "api", "required": + true}, {"deprecated": false, "entity": "environment", "required": true}, {"deprecated": + false, "entity": "deployment", "required": true}], "schema": "{\"type\":\"boolean\", + \"title\":\"Updated Title\"}"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic metadata update + Connection: + - keep-alive + Content-Length: + - '286' + Content-Type: + - application/json + ParameterSetName: + - -g -n --metadata-name --schema + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false},{"entity":"environment","required":true,"deprecated":false},{"entity":"deployment","required":true,"deprecated":false}],"schema":"{\"type\":\"boolean\", + \"title\":\"Updated Title\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/clitest000003","name":"clitest000003","systemData":{"lastModifiedAt":"2024-06-17T06:08:59.7704977Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '574' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:59 GMT + etag: + - 6602abb1-0000-0100-0000-666fd2fb0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: E772990A91294410A19E5D385980730F Ref B: MAA201060516037 Ref C: 2024-06-17T06:08:59Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_register_with_json_spec.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_register_with_json_spec.yaml new file mode 100644 index 00000000000..13e474eda74 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_register_with_json_spec.yaml @@ -0,0 +1,1344 @@ +interactions: +- request: + body: '{"properties": {"contacts": [{"email": "apiteam@swagger.io"}], "description": + "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)", + "kind": "rest", "license": {"name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html"}, + "summary": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve", "title": "Swagger Petstore + - OpenAPI 3.0"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '1144' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Swagger + Petstore - OpenAPI 3.0","summary":"This is a sample Pet Store Server based + on the OpenAPI 3.0 specification. You can find out more about\nSwagger at + [http://swagger.io](http://swagger.io). In the third iteration of the pet + store, we''ve","description":"This is a sample Pet Store Server based on the + OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)","kind":"rest","license":{"name":"Apache + 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"externalDocumentation":[],"contacts":[{"email":"apiteam@swagger.io"}],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30","name":"swaggerpetstore-openapi30","systemData":{"createdAt":"2024-06-17T06:09:27.6338825Z","lastModifiedAt":"2024-06-17T06:09:27.6338814Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1561' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:27 GMT + etag: + - da0282ef-0000-0100-0000-666fd3170000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 490937ED77EF4AC390219FB5B0C36E9E Ref B: MAA201060513033 Ref C: 2024-06-17T06:09:27Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"lifecycleStage": "design", "title": "1-0-19"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '63' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"1-0-19","lifecycleStage":"design"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19","name":"1-0-19","systemData":{"createdAt":"2024-06-17T06:09:30.530961Z","lastModifiedAt":"2024-06-17T06:09:30.5309599Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '448' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:30 GMT + etag: + - 8804752d-0000-0100-0000-666fd31a0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 45F3EA56500C4DC98858CA2E1DC37229 Ref B: MAA201060514021 Ref C: 2024-06-17T06:09:29Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"description": "This is a sample Pet Store Server based + on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)", + "title": "openapi"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '749' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19/definitions/openapi?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"openapi","description":"This + is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19/definitions/openapi","name":"openapi","systemData":{"createdAt":"2024-06-17T06:09:33.0394919Z","lastModifiedAt":"2024-06-17T06:09:33.0394913Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1168' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:32 GMT + etag: + - 1301ee9f-0000-0100-0000-666fd31d0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: D76CABDB0388446786EF230AAC4AAEF3 Ref B: MAA201060515017 Ref C: 2024-06-17T06:09:31Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"format": "inline", "specification": {"name": "openapi", "version": "3-0-2"}, + "value": "{\n \"openapi\": \"3.0.2\",\n \"info\": {\n \"title\": + \"Swagger Petstore - OpenAPI 3.0\",\n \"description\": \"This is a sample + Pet Store Server based on the OpenAPI 3.0 specification. You can find out more + about\\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration + of the pet store, we''ve switched to the design first approach!\\nYou can now + help us improve the API whether it''s by making changes to the definition itself + or to the code.\\nThat way, with time, we can improve the API in general, and + expose some of the new features in OAS3.\\n\\nSome useful links:\\n- [The Pet + Store repository](https://github.com/swagger-api/swagger-petstore)\\n- [The + source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)\",\n \"termsOfService\": + \"http://swagger.io/terms/\",\n \"contact\": {\n \"email\": + \"apiteam@swagger.io\"\n },\n \"license\": {\n \"name\": + \"Apache 2.0\",\n \"url\": \"http://www.apache.org/licenses/LICENSE-2.0.html\"\n },\n \"version\": + \"1.0.19\"\n },\n \"externalDocs\": {\n \"description\": \"Find + out more about Swagger\",\n \"url\": \"http://swagger.io\"\n },\n \"servers\": + [\n {\n \"url\": \"/api/v3\"\n }\n ],\n \"tags\": + [\n {\n \"name\": \"pet\",\n \"description\": \"Everything + about your Pets\",\n \"externalDocs\": {\n \"description\": + \"Find out more\",\n \"url\": \"http://swagger.io\"\n }\n },\n {\n \"name\": + \"store\",\n \"description\": \"Access to Petstore orders\",\n \"externalDocs\": + {\n \"description\": \"Find out more about our store\",\n \"url\": + \"http://swagger.io\"\n }\n },\n {\n \"name\": + \"user\",\n \"description\": \"Operations about user\"\n }\n ],\n \"paths\": + {\n \"/pet\": {\n \"put\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Update an existing pet\",\n \"description\": \"Update an existing + pet by Id\",\n \"operationId\": \"updatePet\",\n \"requestBody\": + {\n \"description\": \"Update an existent pet in the store\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"required\": + true\n },\n \"responses\": {\n \"200\": + {\n \"description\": \"Successful operation\",\n \"content\": + {\n \"application/xml\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Pet not found\"\n },\n \"405\": + {\n \"description\": \"Validation exception\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n },\n \"post\": + {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Add a new pet to the store\",\n \"description\": \"Add a new + pet to the store\",\n \"operationId\": \"addPet\",\n \"requestBody\": + {\n \"description\": \"Create a new pet in the store\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"required\": + true\n },\n \"responses\": {\n \"200\": + {\n \"description\": \"Successful operation\",\n \"content\": + {\n \"application/xml\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"405\": + {\n \"description\": \"Invalid input\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/findByStatus\": + {\n \"get\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Finds Pets by status\",\n \"description\": \"Multiple status + values can be provided with comma separated strings\",\n \"operationId\": + \"findPetsByStatus\",\n \"parameters\": [\n {\n \"name\": + \"status\",\n \"in\": \"query\",\n \"description\": + \"Status values that need to be considered for filter\",\n \"required\": + false,\n \"explode\": true,\n \"schema\": + {\n \"type\": \"string\",\n \"default\": + \"available\",\n \"enum\": [\n \"available\",\n \"pending\",\n \"sold\"\n ]\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid status value\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/findByTags\": + {\n \"get\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Finds Pets by tags\",\n \"description\": \"Multiple tags can + be provided with comma separated strings. Use tag1, tag2, tag3 for testing.\",\n \"operationId\": + \"findPetsByTags\",\n \"parameters\": [\n {\n \"name\": + \"tags\",\n \"in\": \"query\",\n \"description\": + \"Tags to filter by\",\n \"required\": false,\n \"explode\": + true,\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"type\": + \"string\"\n }\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid tag value\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/{petId}\": + {\n \"get\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Find pet by ID\",\n \"description\": \"Returns a single pet\",\n \"operationId\": + \"getPetById\",\n \"parameters\": [\n {\n \"name\": + \"petId\",\n \"in\": \"path\",\n \"description\": + \"ID of pet to return\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Pet not found\"\n }\n },\n \"security\": + [\n {\n \"api_key\": []\n },\n {\n \"petstore_auth\": + [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n },\n \"post\": + {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Updates a pet in the store with form data\",\n \"description\": + \"\",\n \"operationId\": \"updatePetWithForm\",\n \"parameters\": + [\n {\n \"name\": \"petId\",\n \"in\": + \"path\",\n \"description\": \"ID of pet that needs to + be updated\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n },\n {\n \"name\": + \"name\",\n \"in\": \"query\",\n \"description\": + \"Name of pet that needs to be updated\",\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n {\n \"name\": + \"status\",\n \"in\": \"query\",\n \"description\": + \"Status of pet that needs to be updated\",\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"responses\": + {\n \"405\": {\n \"description\": + \"Invalid input\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n },\n \"delete\": + {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Deletes a pet\",\n \"description\": \"\",\n \"operationId\": + \"deletePet\",\n \"parameters\": [\n {\n \"name\": + \"api_key\",\n \"in\": \"header\",\n \"description\": + \"\",\n \"required\": false,\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n {\n \"name\": + \"petId\",\n \"in\": \"path\",\n \"description\": + \"Pet id to delete\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"400\": {\n \"description\": + \"Invalid pet value\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/{petId}/uploadImage\": + {\n \"post\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"uploads an image\",\n \"description\": \"\",\n \"operationId\": + \"uploadFile\",\n \"parameters\": [\n {\n \"name\": + \"petId\",\n \"in\": \"path\",\n \"description\": + \"ID of pet to update\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n },\n {\n \"name\": + \"additionalMetadata\",\n \"in\": \"query\",\n \"description\": + \"Additional Metadata\",\n \"required\": false,\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"requestBody\": + {\n \"content\": {\n \"application/octet-stream\": + {\n \"schema\": {\n \"type\": + \"string\",\n \"format\": \"binary\"\n }\n }\n }\n },\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/ApiResponse\"\n }\n }\n }\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/store/inventory\": + {\n \"get\": {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Returns pet inventories by status\",\n \"description\": \"Returns + a map of status codes to quantities\",\n \"operationId\": \"getInventory\",\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"object\",\n \"additionalProperties\": {\n \"type\": + \"integer\",\n \"format\": \"int32\"\n }\n }\n }\n }\n }\n },\n \"security\": + [\n {\n \"api_key\": []\n }\n ]\n }\n },\n \"/store/order\": + {\n \"post\": {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Place an order for a pet\",\n \"description\": \"Place a new + order in the store\",\n \"operationId\": \"placeOrder\",\n \"requestBody\": + {\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n }\n }\n },\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n }\n }\n },\n \"405\": + {\n \"description\": \"Invalid input\"\n }\n }\n }\n },\n \"/store/order/{orderId}\": + {\n \"get\": {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Find purchase order by ID\",\n \"description\": \"For valid + response try integer IDs with value <= 5 or > 10. Other values will generate + exceptions.\",\n \"operationId\": \"getOrderById\",\n \"parameters\": + [\n {\n \"name\": \"orderId\",\n \"in\": + \"path\",\n \"description\": \"ID of order that needs + to be fetched\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Order not found\"\n }\n }\n },\n \"delete\": + {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Delete purchase order by ID\",\n \"description\": \"For valid + response try integer IDs with value < 1000. Anything above 1000 or nonintegers + will generate API errors\",\n \"operationId\": \"deleteOrder\",\n \"parameters\": + [\n {\n \"name\": \"orderId\",\n \"in\": + \"path\",\n \"description\": \"ID of the order that needs + to be deleted\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"400\": {\n \"description\": + \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Order not found\"\n }\n }\n }\n },\n \"/user\": + {\n \"post\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Create user\",\n \"description\": \"This can only be done by + the logged in user.\",\n \"operationId\": \"createUser\",\n \"requestBody\": + {\n \"description\": \"Created user object\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"responses\": + {\n \"default\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n }\n }\n }\n },\n \"/user/createWithList\": + {\n \"post\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Creates list of users with given input array\",\n \"description\": + \"Creates list of users with given input array\",\n \"operationId\": + \"createUsersWithListInput\",\n \"requestBody\": {\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"type\": \"array\",\n \"items\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n }\n }\n }\n },\n \"responses\": + {\n \"200\": {\n \"description\": + \"Successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"default\": + {\n \"description\": \"successful operation\"\n }\n }\n }\n },\n \"/user/login\": + {\n \"get\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Logs user into the system\",\n \"description\": \"\",\n \"operationId\": + \"loginUser\",\n \"parameters\": [\n {\n \"name\": + \"username\",\n \"in\": \"query\",\n \"description\": + \"The user name for login\",\n \"required\": false,\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n {\n \"name\": + \"password\",\n \"in\": \"query\",\n \"description\": + \"The password for login in clear text\",\n \"required\": + false,\n \"schema\": {\n \"type\": + \"string\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"headers\": {\n \"X-Rate-Limit\": + {\n \"description\": \"calls per hour allowed + by the user\",\n \"schema\": {\n \"type\": + \"integer\",\n \"format\": \"int32\"\n }\n },\n \"X-Expires-After\": + {\n \"description\": \"date in UTC when token + expires\",\n \"schema\": {\n \"type\": + \"string\",\n \"format\": \"date-time\"\n }\n }\n },\n \"content\": + {\n \"application/xml\": {\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"string\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid username/password supplied\"\n }\n }\n }\n },\n \"/user/logout\": + {\n \"get\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Logs out current logged in user session\",\n \"description\": + \"\",\n \"operationId\": \"logoutUser\",\n \"parameters\": + [],\n \"responses\": {\n \"default\": {\n \"description\": + \"successful operation\"\n }\n }\n }\n },\n \"/user/{username}\": + {\n \"get\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Get user by user name\",\n \"description\": \"\",\n \"operationId\": + \"getUserByName\",\n \"parameters\": [\n {\n \"name\": + \"username\",\n \"in\": \"path\",\n \"description\": + \"The name that needs to be fetched. Use user1 for testing. \",\n \"required\": + true,\n \"schema\": {\n \"type\": + \"string\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid username supplied\"\n },\n \"404\": + {\n \"description\": \"User not found\"\n }\n }\n },\n \"put\": + {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Update user\",\n \"description\": \"This can only be done by + the logged in user.\",\n \"operationId\": \"updateUser\",\n \"parameters\": + [\n {\n \"name\": \"username\",\n \"in\": + \"path\",\n \"description\": \"name that needs to be + updated\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"requestBody\": + {\n \"description\": \"Update an existent user in the store\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"responses\": + {\n \"default\": {\n \"description\": + \"successful operation\"\n }\n }\n },\n \"delete\": + {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Delete user\",\n \"description\": \"This can only be done by + the logged in user.\",\n \"operationId\": \"deleteUser\",\n \"parameters\": + [\n {\n \"name\": \"username\",\n \"in\": + \"path\",\n \"description\": \"The name that needs to + be deleted\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"responses\": + {\n \"400\": {\n \"description\": + \"Invalid username supplied\"\n },\n \"404\": + {\n \"description\": \"User not found\"\n }\n }\n }\n }\n },\n \"components\": + {\n \"schemas\": {\n \"Order\": {\n \"type\": + \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 10\n },\n \"petId\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 198772\n },\n \"quantity\": + {\n \"type\": \"integer\",\n \"format\": + \"int32\",\n \"example\": 7\n },\n \"shipDate\": + {\n \"type\": \"string\",\n \"format\": + \"date-time\"\n },\n \"status\": {\n \"type\": + \"string\",\n \"description\": \"Order Status\",\n \"example\": + \"approved\",\n \"enum\": [\n \"placed\",\n \"approved\",\n \"delivered\"\n ]\n },\n \"complete\": + {\n \"type\": \"boolean\"\n }\n },\n \"xml\": + {\n \"name\": \"order\"\n }\n },\n \"Customer\": + {\n \"type\": \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 100000\n },\n \"username\": + {\n \"type\": \"string\",\n \"example\": + \"fehguy\"\n },\n \"address\": {\n \"type\": + \"array\",\n \"xml\": {\n \"name\": + \"addresses\",\n \"wrapped\": true\n },\n \"items\": + {\n \"$ref\": \"#/components/schemas/Address\"\n }\n }\n },\n \"xml\": + {\n \"name\": \"customer\"\n }\n },\n \"Address\": + {\n \"type\": \"object\",\n \"properties\": {\n \"street\": + {\n \"type\": \"string\",\n \"example\": + \"437 Lytton\"\n },\n \"city\": {\n \"type\": + \"string\",\n \"example\": \"Palo Alto\"\n },\n \"state\": + {\n \"type\": \"string\",\n \"example\": + \"CA\"\n },\n \"zip\": {\n \"type\": + \"string\",\n \"example\": \"94301\"\n }\n },\n \"xml\": + {\n \"name\": \"address\"\n }\n },\n \"Category\": + {\n \"type\": \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 1\n },\n \"name\": + {\n \"type\": \"string\",\n \"example\": + \"Dogs\"\n }\n },\n \"xml\": + {\n \"name\": \"category\"\n }\n },\n \"User\": + {\n \"type\": \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 10\n },\n \"username\": + {\n \"type\": \"string\",\n \"example\": + \"theUser\"\n },\n \"firstName\": {\n \"type\": + \"string\",\n \"example\": \"John\"\n },\n \"lastName\": + {\n \"type\": \"string\",\n \"example\": + \"James\"\n },\n \"email\": {\n \"type\": + \"string\",\n \"example\": \"john@email.com\"\n },\n \"password\": + {\n \"type\": \"string\",\n \"example\": + \"12345\"\n },\n \"phone\": {\n \"type\": + \"string\",\n \"example\": \"12345\"\n },\n \"userStatus\": + {\n \"type\": \"integer\",\n \"description\": + \"User Status\",\n \"format\": \"int32\",\n \"example\": + 1\n }\n },\n \"xml\": {\n \"name\": + \"user\"\n }\n },\n \"Tag\": {\n \"type\": + \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n },\n \"name\": {\n \"type\": + \"string\"\n }\n },\n \"xml\": + {\n \"name\": \"tag\"\n }\n },\n \"Pet\": + {\n \"required\": [\n \"name\",\n \"photoUrls\"\n ],\n \"type\": + \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 10\n },\n \"name\": + {\n \"type\": \"string\",\n \"example\": + \"doggie\"\n },\n \"category\": {\n \"$ref\": + \"#/components/schemas/Category\"\n },\n \"photoUrls\": + {\n \"type\": \"array\",\n \"xml\": + {\n \"wrapped\": true\n },\n \"items\": + {\n \"type\": \"string\",\n \"xml\": + {\n \"name\": \"photoUrl\"\n }\n }\n },\n \"tags\": + {\n \"type\": \"array\",\n \"xml\": + {\n \"wrapped\": true\n },\n \"items\": + {\n \"$ref\": \"#/components/schemas/Tag\"\n }\n },\n \"status\": + {\n \"type\": \"string\",\n \"description\": + \"pet status in the store\",\n \"enum\": [\n \"available\",\n \"pending\",\n \"sold\"\n ]\n }\n },\n \"xml\": + {\n \"name\": \"pet\"\n }\n },\n \"ApiResponse\": + {\n \"type\": \"object\",\n \"properties\": {\n \"code\": + {\n \"type\": \"integer\",\n \"format\": + \"int32\"\n },\n \"type\": {\n \"type\": + \"string\"\n },\n \"message\": {\n \"type\": + \"string\"\n }\n },\n \"xml\": + {\n \"name\": \"##default\"\n }\n }\n },\n \"requestBodies\": + {\n \"Pet\": {\n \"description\": \"Pet object that + needs to be added to the store\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"UserArray\": + {\n \"description\": \"List of user object\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"type\": \"array\",\n \"items\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n }\n }\n }\n }\n },\n \"securitySchemes\": + {\n \"petstore_auth\": {\n \"type\": \"oauth2\",\n \"flows\": + {\n \"implicit\": {\n \"authorizationUrl\": + \"https://petstore3.swagger.io/oauth/authorize\",\n \"scopes\": + {\n \"write:pets\": \"modify pets in your account\",\n \"read:pets\": + \"read your pets\"\n }\n }\n }\n },\n \"api_key\": + {\n \"type\": \"apiKey\",\n \"name\": \"api_key\",\n \"in\": + \"header\"\n }\n }\n }\n}"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '47822' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19/definitions/openapi/importSpecification?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:09:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: C25DD1880C20473FB32F559C7947C635 Ref B: MAA201060516039 Ref C: 2024-06-17T06:09:34Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Swagger + Petstore - OpenAPI 3.0","summary":"This is a sample Pet Store Server based + on the OpenAPI 3.0 specification. You can find out more about\nSwagger at + [http://swagger.io](http://swagger.io). In the third iteration of the pet + store, we''ve","description":"This is a sample Pet Store Server based on the + OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)","kind":"rest","lifecycleStage":"design","license":{"name":"Apache + 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"externalDocumentation":[],"contacts":[{"email":"apiteam@swagger.io"}],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30","name":"swaggerpetstore-openapi30","systemData":{"createdAt":"2024-06-17T06:09:27.6338825Z","lastModifiedAt":"2024-06-17T06:09:27.6338814Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1587' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:38 GMT + etag: + - da025ef0-0000-0100-0000-666fd31a0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: A85BA831B6244CEABD87A540BA9FE3EB Ref B: MAA201060516037 Ref C: 2024-06-17T06:09:38Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"1-0-19","lifecycleStage":"design"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19","name":"1-0-19","systemData":{"createdAt":"2024-06-17T06:09:30.530961Z","lastModifiedAt":"2024-06-17T06:09:30.5309599Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '448' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:41 GMT + etag: + - 8804752d-0000-0100-0000-666fd31a0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 4E04CB8F2C334098B97D4EAEE7363C5B Ref B: MAA201060515039 Ref C: 2024-06-17T06:09:41Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --definition-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19/definitions/openapi?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"openapi","description":"This + is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)","specification":{"name":"openapi","version":"3-0-2"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19/definitions/openapi","name":"openapi","systemData":{"createdAt":"2024-06-17T06:09:33.0394919Z","lastModifiedAt":"2024-06-17T06:09:36.1392447Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1221' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:43 GMT + etag: + - 1301fb9f-0000-0100-0000-666fd3200000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 30E7668021084909AAD0796285EEDB77 Ref B: MAA201060514033 Ref C: 2024-06-17T06:09:43Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition export-specification + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --api-id --version-id --definition-id --file-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19/definitions/openapi/exportSpecification?api-version=2024-03-01 + response: + body: + string: '{"format":"inline","value":"{\n \"openapi\": \"3.0.2\",\n \"info\": + {\n \"title\": \"Swagger Petstore - OpenAPI 3.0\",\n \"description\": + \"This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\\n\\nSome + useful links:\\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)\",\n \"termsOfService\": + \"http://swagger.io/terms/\",\n \"contact\": {\n \"email\": + \"apiteam@swagger.io\"\n },\n \"license\": {\n \"name\": + \"Apache 2.0\",\n \"url\": \"http://www.apache.org/licenses/LICENSE-2.0.html\"\n },\n \"version\": + \"1.0.19\"\n },\n \"externalDocs\": {\n \"description\": \"Find + out more about Swagger\",\n \"url\": \"http://swagger.io\"\n },\n \"servers\": + [\n {\n \"url\": \"/api/v3\"\n }\n ],\n \"tags\": + [\n {\n \"name\": \"pet\",\n \"description\": + \"Everything about your Pets\",\n \"externalDocs\": {\n \"description\": + \"Find out more\",\n \"url\": \"http://swagger.io\"\n }\n },\n {\n \"name\": + \"store\",\n \"description\": \"Access to Petstore orders\",\n \"externalDocs\": + {\n \"description\": \"Find out more about our store\",\n \"url\": + \"http://swagger.io\"\n }\n },\n {\n \"name\": + \"user\",\n \"description\": \"Operations about user\"\n }\n ],\n \"paths\": + {\n \"/pet\": {\n \"put\": {\n \"tags\": + [\n \"pet\"\n ],\n \"summary\": + \"Update an existing pet\",\n \"description\": \"Update an + existing pet by Id\",\n \"operationId\": \"updatePet\",\n \"requestBody\": + {\n \"description\": \"Update an existent pet in the store\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"required\": + true\n },\n \"responses\": {\n \"200\": + {\n \"description\": \"Successful operation\",\n \"content\": + {\n \"application/xml\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Pet not found\"\n },\n \"405\": + {\n \"description\": \"Validation exception\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n },\n \"post\": + {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Add a new pet to the store\",\n \"description\": \"Add a + new pet to the store\",\n \"operationId\": \"addPet\",\n \"requestBody\": + {\n \"description\": \"Create a new pet in the store\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"required\": + true\n },\n \"responses\": {\n \"200\": + {\n \"description\": \"Successful operation\",\n \"content\": + {\n \"application/xml\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"405\": + {\n \"description\": \"Invalid input\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/findByStatus\": + {\n \"get\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Finds Pets by status\",\n \"description\": \"Multiple status + values can be provided with comma separated strings\",\n \"operationId\": + \"findPetsByStatus\",\n \"parameters\": [\n {\n \"name\": + \"status\",\n \"in\": \"query\",\n \"description\": + \"Status values that need to be considered for filter\",\n \"required\": + false,\n \"explode\": true,\n \"schema\": + {\n \"type\": \"string\",\n \"default\": + \"available\",\n \"enum\": [\n \"available\",\n \"pending\",\n \"sold\"\n ]\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid status value\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/findByTags\": + {\n \"get\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Finds Pets by tags\",\n \"description\": \"Multiple tags + can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.\",\n \"operationId\": + \"findPetsByTags\",\n \"parameters\": [\n {\n \"name\": + \"tags\",\n \"in\": \"query\",\n \"description\": + \"Tags to filter by\",\n \"required\": false,\n \"explode\": + true,\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"type\": + \"string\"\n }\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid tag value\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/{petId}\": + {\n \"get\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Find pet by ID\",\n \"description\": \"Returns a single pet\",\n \"operationId\": + \"getPetById\",\n \"parameters\": [\n {\n \"name\": + \"petId\",\n \"in\": \"path\",\n \"description\": + \"ID of pet to return\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Pet not found\"\n }\n },\n \"security\": + [\n {\n \"api_key\": []\n },\n {\n \"petstore_auth\": + [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n },\n \"post\": + {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Updates a pet in the store with form data\",\n \"description\": + \"\",\n \"operationId\": \"updatePetWithForm\",\n \"parameters\": + [\n {\n \"name\": \"petId\",\n \"in\": + \"path\",\n \"description\": \"ID of pet that needs + to be updated\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n },\n {\n \"name\": + \"name\",\n \"in\": \"query\",\n \"description\": + \"Name of pet that needs to be updated\",\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n {\n \"name\": + \"status\",\n \"in\": \"query\",\n \"description\": + \"Status of pet that needs to be updated\",\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"responses\": + {\n \"405\": {\n \"description\": + \"Invalid input\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n },\n \"delete\": + {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Deletes a pet\",\n \"description\": \"\",\n \"operationId\": + \"deletePet\",\n \"parameters\": [\n {\n \"name\": + \"api_key\",\n \"in\": \"header\",\n \"description\": + \"\",\n \"required\": false,\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n {\n \"name\": + \"petId\",\n \"in\": \"path\",\n \"description\": + \"Pet id to delete\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"400\": {\n \"description\": + \"Invalid pet value\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/{petId}/uploadImage\": + {\n \"post\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"uploads an image\",\n \"description\": \"\",\n \"operationId\": + \"uploadFile\",\n \"parameters\": [\n {\n \"name\": + \"petId\",\n \"in\": \"path\",\n \"description\": + \"ID of pet to update\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n },\n {\n \"name\": + \"additionalMetadata\",\n \"in\": \"query\",\n \"description\": + \"Additional Metadata\",\n \"required\": false,\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"requestBody\": + {\n \"content\": {\n \"application/octet-stream\": + {\n \"schema\": {\n \"type\": + \"string\",\n \"format\": \"binary\"\n }\n }\n }\n },\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/ApiResponse\"\n }\n }\n }\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/store/inventory\": + {\n \"get\": {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Returns pet inventories by status\",\n \"description\": \"Returns + a map of status codes to quantities\",\n \"operationId\": \"getInventory\",\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"object\",\n \"additionalProperties\": + {\n \"type\": \"integer\",\n \"format\": + \"int32\"\n }\n }\n }\n }\n }\n },\n \"security\": + [\n {\n \"api_key\": []\n }\n ]\n }\n },\n \"/store/order\": + {\n \"post\": {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Place an order for a pet\",\n \"description\": \"Place a + new order in the store\",\n \"operationId\": \"placeOrder\",\n \"requestBody\": + {\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n }\n }\n },\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n }\n }\n },\n \"405\": + {\n \"description\": \"Invalid input\"\n }\n }\n }\n },\n \"/store/order/{orderId}\": + {\n \"get\": {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Find purchase order by ID\",\n \"description\": \"For valid + response try integer IDs with value <= 5 or > 10. Other values will generate + exceptions.\",\n \"operationId\": \"getOrderById\",\n \"parameters\": + [\n {\n \"name\": \"orderId\",\n \"in\": + \"path\",\n \"description\": \"ID of order that needs + to be fetched\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Order not found\"\n }\n }\n },\n \"delete\": + {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Delete purchase order by ID\",\n \"description\": \"For valid + response try integer IDs with value < 1000. Anything above 1000 or nonintegers + will generate API errors\",\n \"operationId\": \"deleteOrder\",\n \"parameters\": + [\n {\n \"name\": \"orderId\",\n \"in\": + \"path\",\n \"description\": \"ID of the order that + needs to be deleted\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"400\": {\n \"description\": + \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Order not found\"\n }\n }\n }\n },\n \"/user\": + {\n \"post\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Create user\",\n \"description\": \"This can only be done + by the logged in user.\",\n \"operationId\": \"createUser\",\n \"requestBody\": + {\n \"description\": \"Created user object\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"responses\": + {\n \"default\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n }\n }\n }\n },\n \"/user/createWithList\": + {\n \"post\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Creates list of users with given input array\",\n \"description\": + \"Creates list of users with given input array\",\n \"operationId\": + \"createUsersWithListInput\",\n \"requestBody\": {\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"type\": \"array\",\n \"items\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n }\n }\n }\n },\n \"responses\": + {\n \"200\": {\n \"description\": + \"Successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"default\": + {\n \"description\": \"successful operation\"\n }\n }\n }\n },\n \"/user/login\": + {\n \"get\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Logs user into the system\",\n \"description\": \"\",\n \"operationId\": + \"loginUser\",\n \"parameters\": [\n {\n \"name\": + \"username\",\n \"in\": \"query\",\n \"description\": + \"The user name for login\",\n \"required\": false,\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n {\n \"name\": + \"password\",\n \"in\": \"query\",\n \"description\": + \"The password for login in clear text\",\n \"required\": + false,\n \"schema\": {\n \"type\": + \"string\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"headers\": {\n \"X-Rate-Limit\": + {\n \"description\": \"calls per hour allowed + by the user\",\n \"schema\": {\n \"type\": + \"integer\",\n \"format\": \"int32\"\n }\n },\n \"X-Expires-After\": + {\n \"description\": \"date in UTC when token + expires\",\n \"schema\": {\n \"type\": + \"string\",\n \"format\": \"date-time\"\n }\n }\n },\n \"content\": + {\n \"application/xml\": {\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"string\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid username/password supplied\"\n }\n }\n }\n },\n \"/user/logout\": + {\n \"get\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Logs out current logged in user session\",\n \"description\": + \"\",\n \"operationId\": \"logoutUser\",\n \"parameters\": + [],\n \"responses\": {\n \"default\": {\n \"description\": + \"successful operation\"\n }\n }\n }\n },\n \"/user/{username}\": + {\n \"get\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Get user by user name\",\n \"description\": \"\",\n \"operationId\": + \"getUserByName\",\n \"parameters\": [\n {\n \"name\": + \"username\",\n \"in\": \"path\",\n \"description\": + \"The name that needs to be fetched. Use user1 for testing. \",\n \"required\": + true,\n \"schema\": {\n \"type\": + \"string\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid username supplied\"\n },\n \"404\": + {\n \"description\": \"User not found\"\n }\n }\n },\n \"put\": + {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Update user\",\n \"description\": \"This can only be done + by the logged in user.\",\n \"operationId\": \"updateUser\",\n \"parameters\": + [\n {\n \"name\": \"username\",\n \"in\": + \"path\",\n \"description\": \"name that needs to be + updated\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"requestBody\": + {\n \"description\": \"Update an existent user in the store\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"responses\": + {\n \"default\": {\n \"description\": + \"successful operation\"\n }\n }\n },\n \"delete\": + {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Delete user\",\n \"description\": \"This can only be done + by the logged in user.\",\n \"operationId\": \"deleteUser\",\n \"parameters\": + [\n {\n \"name\": \"username\",\n \"in\": + \"path\",\n \"description\": \"The name that needs + to be deleted\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"responses\": + {\n \"400\": {\n \"description\": + \"Invalid username supplied\"\n },\n \"404\": + {\n \"description\": \"User not found\"\n }\n }\n }\n }\n },\n \"components\": + {\n \"schemas\": {\n \"Order\": {\n \"type\": + \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 10\n },\n \"petId\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 198772\n },\n \"quantity\": + {\n \"type\": \"integer\",\n \"format\": + \"int32\",\n \"example\": 7\n },\n \"shipDate\": + {\n \"type\": \"string\",\n \"format\": + \"date-time\"\n },\n \"status\": {\n \"type\": + \"string\",\n \"description\": \"Order Status\",\n \"example\": + \"approved\",\n \"enum\": [\n \"placed\",\n \"approved\",\n \"delivered\"\n ]\n },\n \"complete\": + {\n \"type\": \"boolean\"\n }\n },\n \"xml\": + {\n \"name\": \"order\"\n }\n },\n \"Customer\": + {\n \"type\": \"object\",\n \"properties\": + {\n \"id\": {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 100000\n },\n \"username\": + {\n \"type\": \"string\",\n \"example\": + \"fehguy\"\n },\n \"address\": {\n \"type\": + \"array\",\n \"xml\": {\n \"name\": + \"addresses\",\n \"wrapped\": true\n },\n \"items\": + {\n \"$ref\": \"#/components/schemas/Address\"\n }\n }\n },\n \"xml\": + {\n \"name\": \"customer\"\n }\n },\n \"Address\": + {\n \"type\": \"object\",\n \"properties\": + {\n \"street\": {\n \"type\": \"string\",\n \"example\": + \"437 Lytton\"\n },\n \"city\": {\n \"type\": + \"string\",\n \"example\": \"Palo Alto\"\n },\n \"state\": + {\n \"type\": \"string\",\n \"example\": + \"CA\"\n },\n \"zip\": {\n \"type\": + \"string\",\n \"example\": \"94301\"\n }\n },\n \"xml\": + {\n \"name\": \"address\"\n }\n },\n \"Category\": + {\n \"type\": \"object\",\n \"properties\": + {\n \"id\": {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 1\n },\n \"name\": + {\n \"type\": \"string\",\n \"example\": + \"Dogs\"\n }\n },\n \"xml\": + {\n \"name\": \"category\"\n }\n },\n \"User\": + {\n \"type\": \"object\",\n \"properties\": + {\n \"id\": {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 10\n },\n \"username\": + {\n \"type\": \"string\",\n \"example\": + \"theUser\"\n },\n \"firstName\": {\n \"type\": + \"string\",\n \"example\": \"John\"\n },\n \"lastName\": + {\n \"type\": \"string\",\n \"example\": + \"James\"\n },\n \"email\": {\n \"type\": + \"string\",\n \"example\": \"john@email.com\"\n },\n \"password\": + {\n \"type\": \"string\",\n \"example\": + \"12345\"\n },\n \"phone\": {\n \"type\": + \"string\",\n \"example\": \"12345\"\n },\n \"userStatus\": + {\n \"type\": \"integer\",\n \"description\": + \"User Status\",\n \"format\": \"int32\",\n \"example\": + 1\n }\n },\n \"xml\": {\n \"name\": + \"user\"\n }\n },\n \"Tag\": {\n \"type\": + \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n },\n \"name\": {\n \"type\": + \"string\"\n }\n },\n \"xml\": + {\n \"name\": \"tag\"\n }\n },\n \"Pet\": + {\n \"required\": [\n \"name\",\n \"photoUrls\"\n ],\n \"type\": + \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 10\n },\n \"name\": + {\n \"type\": \"string\",\n \"example\": + \"doggie\"\n },\n \"category\": {\n \"$ref\": + \"#/components/schemas/Category\"\n },\n \"photoUrls\": + {\n \"type\": \"array\",\n \"xml\": + {\n \"wrapped\": true\n },\n \"items\": + {\n \"type\": \"string\",\n \"xml\": + {\n \"name\": \"photoUrl\"\n }\n }\n },\n \"tags\": + {\n \"type\": \"array\",\n \"xml\": + {\n \"wrapped\": true\n },\n \"items\": + {\n \"$ref\": \"#/components/schemas/Tag\"\n }\n },\n \"status\": + {\n \"type\": \"string\",\n \"description\": + \"pet status in the store\",\n \"enum\": [\n \"available\",\n \"pending\",\n \"sold\"\n ]\n }\n },\n \"xml\": + {\n \"name\": \"pet\"\n }\n },\n \"ApiResponse\": + {\n \"type\": \"object\",\n \"properties\": + {\n \"code\": {\n \"type\": \"integer\",\n \"format\": + \"int32\"\n },\n \"type\": {\n \"type\": + \"string\"\n },\n \"message\": {\n \"type\": + \"string\"\n }\n },\n \"xml\": + {\n \"name\": \"##default\"\n }\n }\n },\n \"requestBodies\": + {\n \"Pet\": {\n \"description\": \"Pet object that + needs to be added to the store\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"UserArray\": + {\n \"description\": \"List of user object\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"type\": \"array\",\n \"items\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n }\n }\n }\n }\n },\n \"securitySchemes\": + {\n \"petstore_auth\": {\n \"type\": \"oauth2\",\n \"flows\": + {\n \"implicit\": {\n \"authorizationUrl\": + \"https://petstore3.swagger.io/oauth/authorize\",\n \"scopes\": + {\n \"write:pets\": \"modify pets in your account\",\n \"read:pets\": + \"read your pets\"\n }\n }\n }\n },\n \"api_key\": + {\n \"type\": \"apiKey\",\n \"name\": \"api_key\",\n \"in\": + \"header\"\n }\n }\n }\n}"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '47761' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 5B318CEF451E4F4B87E1AFE20FD8884B Ref B: MAA201060514009 Ref C: 2024-06-17T06:09:45Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_register_with_long_openapi_description.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_register_with_long_openapi_description.yaml new file mode 100644 index 00000000000..65778f693dc --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_register_with_long_openapi_description.yaml @@ -0,0 +1,787 @@ +interactions: +- request: + body: '{"properties": {"contacts": [{"email": "apiteam@swagger.io"}], "description": + "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)This + is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can + find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the + third iteration of the pet store, we''ve switched to the design first approach!\nYou + can now help us improve the API whether it''s by making changes to the", "kind": + "rest", "license": {"name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html"}, + "summary": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve", "title": "Swagger Petstore + - OpenAPI 3.0"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '1459' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Swagger + Petstore - OpenAPI 3.0","summary":"This is a sample Pet Store Server based + on the OpenAPI 3.0 specification. You can find out more about\nSwagger at + [http://swagger.io](http://swagger.io). In the third iteration of the pet + store, we''ve","description":"This is a sample Pet Store Server based on the + OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)This + is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the","kind":"rest","license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"externalDocumentation":[],"contacts":[{"email":"apiteam@swagger.io"}],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30","name":"swaggerpetstore-openapi30","systemData":{"createdAt":"2024-06-17T06:08:34.6174273Z","lastModifiedAt":"2024-06-17T06:08:34.6174254Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1876' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:33 GMT + etag: + - da024ee3-0000-0100-0000-666fd2e20000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: FFCC359FEF39449DAF950B9BE68EA8E3 Ref B: MAA201060515009 Ref C: 2024-06-17T06:08:33Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"lifecycleStage": "design", "title": "1-0-19"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '63' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"1-0-19","lifecycleStage":"design"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19","name":"1-0-19","systemData":{"createdAt":"2024-06-17T06:08:37.2375191Z","lastModifiedAt":"2024-06-17T06:08:37.2375184Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '449' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:36 GMT + etag: + - 88045818-0000-0100-0000-666fd2e50000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 70777143C25343D89964BEB02AA35BFD Ref B: MAA201060515017 Ref C: 2024-06-17T06:08:35Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"description": "This is a sample Pet Store Server based + on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)This + is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can + find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the + third iteration of the pet store, we''ve switched to the design first approach!\nYou + can now help us improve the API whether it''s by making changes to the", "title": + "openapi"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '1064' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19/definitions/openapi?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"openapi","description":"This + is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)This + is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19/definitions/openapi","name":"openapi","systemData":{"createdAt":"2024-06-17T06:08:39.3849904Z","lastModifiedAt":"2024-06-17T06:08:39.3849896Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1483' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:39 GMT + etag: + - 13016e9a-0000-0100-0000-666fd2e70000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 696F9A5E43D74FA889D4E12CC0089E05 Ref B: MAA201060516025 Ref C: 2024-06-17T06:08:38Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"format": "inline", "specification": {"name": "openapi", "version": "3-0-2"}, + "value": "{\n \"openapi\": \"3.0.2\",\n \"info\": {\n \"title\": + \"Swagger Petstore - OpenAPI 3.0\",\n \"description\": \"This is a sample + Pet Store Server based on the OpenAPI 3.0 specification. You can find out more + about\\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration + of the pet store, we''ve switched to the design first approach!\\nYou can now + help us improve the API whether it''s by making changes to the definition itself + or to the code.\\nThat way, with time, we can improve the API in general, and + expose some of the new features in OAS3.\\n\\nSome useful links:\\n- [The Pet + Store repository](https://github.com/swagger-api/swagger-petstore)\\n- [The + source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)This + is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can + find out more about\\nSwagger at [http://swagger.io](http://swagger.io). In + the third iteration of the pet store, we''ve switched to the design first approach!\\nYou + can now help us improve the API whether it''s by making changes to the definition + itself or to the code.\\nThat way, with time, we can improve the API in general, + and expose some of the new features in OAS3.\\n\\nSome useful links:\\n- [The + Pet Store repository](https://github.com/swagger-api/swagger-petstore)\\n- [The + source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)\",\n \"termsOfService\": + \"http://swagger.io/terms/\",\n \"contact\": {\n \"email\": + \"apiteam@swagger.io\"\n },\n \"license\": {\n \"name\": + \"Apache 2.0\",\n \"url\": \"http://www.apache.org/licenses/LICENSE-2.0.html\"\n },\n \"version\": + \"1.0.19\"\n },\n \"externalDocs\": {\n \"description\": \"Find + out more about Swagger\",\n \"url\": \"http://swagger.io\"\n },\n \"servers\": + [\n {\n \"url\": \"/api/v3\"\n }\n ],\n \"tags\": + [\n {\n \"name\": \"pet\",\n \"description\": \"Everything + about your Pets\",\n \"externalDocs\": {\n \"description\": + \"Find out more\",\n \"url\": \"http://swagger.io\"\n }\n },\n {\n \"name\": + \"store\",\n \"description\": \"Access to Petstore orders\",\n \"externalDocs\": + {\n \"description\": \"Find out more about our store\",\n \"url\": + \"http://swagger.io\"\n }\n },\n {\n \"name\": + \"user\",\n \"description\": \"Operations about user\"\n }\n ],\n \"paths\": + {\n \"/pet\": {\n \"put\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Update an existing pet\",\n \"description\": \"Update an existing + pet by Id\",\n \"operationId\": \"updatePet\",\n \"requestBody\": + {\n \"description\": \"Update an existent pet in the store\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"required\": + true\n },\n \"responses\": {\n \"200\": + {\n \"description\": \"Successful operation\",\n \"content\": + {\n \"application/xml\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Pet not found\"\n },\n \"405\": + {\n \"description\": \"Validation exception\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n },\n \"post\": + {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Add a new pet to the store\",\n \"description\": \"Add a new + pet to the store\",\n \"operationId\": \"addPet\",\n \"requestBody\": + {\n \"description\": \"Create a new pet in the store\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"required\": + true\n },\n \"responses\": {\n \"200\": + {\n \"description\": \"Successful operation\",\n \"content\": + {\n \"application/xml\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/Pet\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"405\": + {\n \"description\": \"Invalid input\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/findByStatus\": + {\n \"get\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Finds Pets by status\",\n \"description\": \"Multiple status + values can be provided with comma separated strings\",\n \"operationId\": + \"findPetsByStatus\",\n \"parameters\": [\n {\n \"name\": + \"status\",\n \"in\": \"query\",\n \"description\": + \"Status values that need to be considered for filter\",\n \"required\": + false,\n \"explode\": true,\n \"schema\": + {\n \"type\": \"string\",\n \"default\": + \"available\",\n \"enum\": [\n \"available\",\n \"pending\",\n \"sold\"\n ]\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid status value\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/findByTags\": + {\n \"get\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Finds Pets by tags\",\n \"description\": \"Multiple tags can + be provided with comma separated strings. Use tag1, tag2, tag3 for testing.\",\n \"operationId\": + \"findPetsByTags\",\n \"parameters\": [\n {\n \"name\": + \"tags\",\n \"in\": \"query\",\n \"description\": + \"Tags to filter by\",\n \"required\": false,\n \"explode\": + true,\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"type\": + \"string\"\n }\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"array\",\n \"items\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid tag value\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/{petId}\": + {\n \"get\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Find pet by ID\",\n \"description\": \"Returns a single pet\",\n \"operationId\": + \"getPetById\",\n \"parameters\": [\n {\n \"name\": + \"petId\",\n \"in\": \"path\",\n \"description\": + \"ID of pet to return\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Pet not found\"\n }\n },\n \"security\": + [\n {\n \"api_key\": []\n },\n {\n \"petstore_auth\": + [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n },\n \"post\": + {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Updates a pet in the store with form data\",\n \"description\": + \"\",\n \"operationId\": \"updatePetWithForm\",\n \"parameters\": + [\n {\n \"name\": \"petId\",\n \"in\": + \"path\",\n \"description\": \"ID of pet that needs to + be updated\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n },\n {\n \"name\": + \"name\",\n \"in\": \"query\",\n \"description\": + \"Name of pet that needs to be updated\",\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n {\n \"name\": + \"status\",\n \"in\": \"query\",\n \"description\": + \"Status of pet that needs to be updated\",\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"responses\": + {\n \"405\": {\n \"description\": + \"Invalid input\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n },\n \"delete\": + {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"Deletes a pet\",\n \"description\": \"\",\n \"operationId\": + \"deletePet\",\n \"parameters\": [\n {\n \"name\": + \"api_key\",\n \"in\": \"header\",\n \"description\": + \"\",\n \"required\": false,\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n {\n \"name\": + \"petId\",\n \"in\": \"path\",\n \"description\": + \"Pet id to delete\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"400\": {\n \"description\": + \"Invalid pet value\"\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/pet/{petId}/uploadImage\": + {\n \"post\": {\n \"tags\": [\n \"pet\"\n ],\n \"summary\": + \"uploads an image\",\n \"description\": \"\",\n \"operationId\": + \"uploadFile\",\n \"parameters\": [\n {\n \"name\": + \"petId\",\n \"in\": \"path\",\n \"description\": + \"ID of pet to update\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n },\n {\n \"name\": + \"additionalMetadata\",\n \"in\": \"query\",\n \"description\": + \"Additional Metadata\",\n \"required\": false,\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"requestBody\": + {\n \"content\": {\n \"application/octet-stream\": + {\n \"schema\": {\n \"type\": + \"string\",\n \"format\": \"binary\"\n }\n }\n }\n },\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/ApiResponse\"\n }\n }\n }\n }\n },\n \"security\": + [\n {\n \"petstore_auth\": [\n \"write:pets\",\n \"read:pets\"\n ]\n }\n ]\n }\n },\n \"/store/inventory\": + {\n \"get\": {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Returns pet inventories by status\",\n \"description\": \"Returns + a map of status codes to quantities\",\n \"operationId\": \"getInventory\",\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"object\",\n \"additionalProperties\": {\n \"type\": + \"integer\",\n \"format\": \"int32\"\n }\n }\n }\n }\n }\n },\n \"security\": + [\n {\n \"api_key\": []\n }\n ]\n }\n },\n \"/store/order\": + {\n \"post\": {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Place an order for a pet\",\n \"description\": \"Place a new + order in the store\",\n \"operationId\": \"placeOrder\",\n \"requestBody\": + {\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n }\n }\n },\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n }\n }\n },\n \"405\": + {\n \"description\": \"Invalid input\"\n }\n }\n }\n },\n \"/store/order/{orderId}\": + {\n \"get\": {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Find purchase order by ID\",\n \"description\": \"For valid + response try integer IDs with value <= 5 or > 10. Other values will generate + exceptions.\",\n \"operationId\": \"getOrderById\",\n \"parameters\": + [\n {\n \"name\": \"orderId\",\n \"in\": + \"path\",\n \"description\": \"ID of order that needs + to be fetched\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Order\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Order not found\"\n }\n }\n },\n \"delete\": + {\n \"tags\": [\n \"store\"\n ],\n \"summary\": + \"Delete purchase order by ID\",\n \"description\": \"For valid + response try integer IDs with value < 1000. Anything above 1000 or nonintegers + will generate API errors\",\n \"operationId\": \"deleteOrder\",\n \"parameters\": + [\n {\n \"name\": \"orderId\",\n \"in\": + \"path\",\n \"description\": \"ID of the order that needs + to be deleted\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n }\n }\n ],\n \"responses\": + {\n \"400\": {\n \"description\": + \"Invalid ID supplied\"\n },\n \"404\": + {\n \"description\": \"Order not found\"\n }\n }\n }\n },\n \"/user\": + {\n \"post\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Create user\",\n \"description\": \"This can only be done by + the logged in user.\",\n \"operationId\": \"createUser\",\n \"requestBody\": + {\n \"description\": \"Created user object\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"responses\": + {\n \"default\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n }\n }\n }\n },\n \"/user/createWithList\": + {\n \"post\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Creates list of users with given input array\",\n \"description\": + \"Creates list of users with given input array\",\n \"operationId\": + \"createUsersWithListInput\",\n \"requestBody\": {\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"type\": \"array\",\n \"items\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n }\n }\n }\n },\n \"responses\": + {\n \"200\": {\n \"description\": + \"Successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"default\": + {\n \"description\": \"successful operation\"\n }\n }\n }\n },\n \"/user/login\": + {\n \"get\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Logs user into the system\",\n \"description\": \"\",\n \"operationId\": + \"loginUser\",\n \"parameters\": [\n {\n \"name\": + \"username\",\n \"in\": \"query\",\n \"description\": + \"The user name for login\",\n \"required\": false,\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n {\n \"name\": + \"password\",\n \"in\": \"query\",\n \"description\": + \"The password for login in clear text\",\n \"required\": + false,\n \"schema\": {\n \"type\": + \"string\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"headers\": {\n \"X-Rate-Limit\": + {\n \"description\": \"calls per hour allowed + by the user\",\n \"schema\": {\n \"type\": + \"integer\",\n \"format\": \"int32\"\n }\n },\n \"X-Expires-After\": + {\n \"description\": \"date in UTC when token + expires\",\n \"schema\": {\n \"type\": + \"string\",\n \"format\": \"date-time\"\n }\n }\n },\n \"content\": + {\n \"application/xml\": {\n \"schema\": + {\n \"type\": \"string\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"type\": + \"string\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid username/password supplied\"\n }\n }\n }\n },\n \"/user/logout\": + {\n \"get\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Logs out current logged in user session\",\n \"description\": + \"\",\n \"operationId\": \"logoutUser\",\n \"parameters\": + [],\n \"responses\": {\n \"default\": {\n \"description\": + \"successful operation\"\n }\n }\n }\n },\n \"/user/{username}\": + {\n \"get\": {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Get user by user name\",\n \"description\": \"\",\n \"operationId\": + \"getUserByName\",\n \"parameters\": [\n {\n \"name\": + \"username\",\n \"in\": \"path\",\n \"description\": + \"The name that needs to be fetched. Use user1 for testing. \",\n \"required\": + true,\n \"schema\": {\n \"type\": + \"string\"\n }\n }\n ],\n \"responses\": + {\n \"200\": {\n \"description\": + \"successful operation\",\n \"content\": {\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"400\": + {\n \"description\": \"Invalid username supplied\"\n },\n \"404\": + {\n \"description\": \"User not found\"\n }\n }\n },\n \"put\": + {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Update user\",\n \"description\": \"This can only be done by + the logged in user.\",\n \"operationId\": \"updateUser\",\n \"parameters\": + [\n {\n \"name\": \"username\",\n \"in\": + \"path\",\n \"description\": \"name that needs to be + updated\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"requestBody\": + {\n \"description\": \"Update an existent user in the store\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n },\n \"application/x-www-form-urlencoded\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/User\"\n }\n }\n }\n },\n \"responses\": + {\n \"default\": {\n \"description\": + \"successful operation\"\n }\n }\n },\n \"delete\": + {\n \"tags\": [\n \"user\"\n ],\n \"summary\": + \"Delete user\",\n \"description\": \"This can only be done by + the logged in user.\",\n \"operationId\": \"deleteUser\",\n \"parameters\": + [\n {\n \"name\": \"username\",\n \"in\": + \"path\",\n \"description\": \"The name that needs to + be deleted\",\n \"required\": true,\n \"schema\": + {\n \"type\": \"string\"\n }\n }\n ],\n \"responses\": + {\n \"400\": {\n \"description\": + \"Invalid username supplied\"\n },\n \"404\": + {\n \"description\": \"User not found\"\n }\n }\n }\n }\n },\n \"components\": + {\n \"schemas\": {\n \"Order\": {\n \"type\": + \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 10\n },\n \"petId\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 198772\n },\n \"quantity\": + {\n \"type\": \"integer\",\n \"format\": + \"int32\",\n \"example\": 7\n },\n \"shipDate\": + {\n \"type\": \"string\",\n \"format\": + \"date-time\"\n },\n \"status\": {\n \"type\": + \"string\",\n \"description\": \"Order Status\",\n \"example\": + \"approved\",\n \"enum\": [\n \"placed\",\n \"approved\",\n \"delivered\"\n ]\n },\n \"complete\": + {\n \"type\": \"boolean\"\n }\n },\n \"xml\": + {\n \"name\": \"order\"\n }\n },\n \"Customer\": + {\n \"type\": \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 100000\n },\n \"username\": + {\n \"type\": \"string\",\n \"example\": + \"fehguy\"\n },\n \"address\": {\n \"type\": + \"array\",\n \"xml\": {\n \"name\": + \"addresses\",\n \"wrapped\": true\n },\n \"items\": + {\n \"$ref\": \"#/components/schemas/Address\"\n }\n }\n },\n \"xml\": + {\n \"name\": \"customer\"\n }\n },\n \"Address\": + {\n \"type\": \"object\",\n \"properties\": {\n \"street\": + {\n \"type\": \"string\",\n \"example\": + \"437 Lytton\"\n },\n \"city\": {\n \"type\": + \"string\",\n \"example\": \"Palo Alto\"\n },\n \"state\": + {\n \"type\": \"string\",\n \"example\": + \"CA\"\n },\n \"zip\": {\n \"type\": + \"string\",\n \"example\": \"94301\"\n }\n },\n \"xml\": + {\n \"name\": \"address\"\n }\n },\n \"Category\": + {\n \"type\": \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 1\n },\n \"name\": + {\n \"type\": \"string\",\n \"example\": + \"Dogs\"\n }\n },\n \"xml\": + {\n \"name\": \"category\"\n }\n },\n \"User\": + {\n \"type\": \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 10\n },\n \"username\": + {\n \"type\": \"string\",\n \"example\": + \"theUser\"\n },\n \"firstName\": {\n \"type\": + \"string\",\n \"example\": \"John\"\n },\n \"lastName\": + {\n \"type\": \"string\",\n \"example\": + \"James\"\n },\n \"email\": {\n \"type\": + \"string\",\n \"example\": \"john@email.com\"\n },\n \"password\": + {\n \"type\": \"string\",\n \"example\": + \"12345\"\n },\n \"phone\": {\n \"type\": + \"string\",\n \"example\": \"12345\"\n },\n \"userStatus\": + {\n \"type\": \"integer\",\n \"description\": + \"User Status\",\n \"format\": \"int32\",\n \"example\": + 1\n }\n },\n \"xml\": {\n \"name\": + \"user\"\n }\n },\n \"Tag\": {\n \"type\": + \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\"\n },\n \"name\": {\n \"type\": + \"string\"\n }\n },\n \"xml\": + {\n \"name\": \"tag\"\n }\n },\n \"Pet\": + {\n \"required\": [\n \"name\",\n \"photoUrls\"\n ],\n \"type\": + \"object\",\n \"properties\": {\n \"id\": + {\n \"type\": \"integer\",\n \"format\": + \"int64\",\n \"example\": 10\n },\n \"name\": + {\n \"type\": \"string\",\n \"example\": + \"doggie\"\n },\n \"category\": {\n \"$ref\": + \"#/components/schemas/Category\"\n },\n \"photoUrls\": + {\n \"type\": \"array\",\n \"xml\": + {\n \"wrapped\": true\n },\n \"items\": + {\n \"type\": \"string\",\n \"xml\": + {\n \"name\": \"photoUrl\"\n }\n }\n },\n \"tags\": + {\n \"type\": \"array\",\n \"xml\": + {\n \"wrapped\": true\n },\n \"items\": + {\n \"$ref\": \"#/components/schemas/Tag\"\n }\n },\n \"status\": + {\n \"type\": \"string\",\n \"description\": + \"pet status in the store\",\n \"enum\": [\n \"available\",\n \"pending\",\n \"sold\"\n ]\n }\n },\n \"xml\": + {\n \"name\": \"pet\"\n }\n },\n \"ApiResponse\": + {\n \"type\": \"object\",\n \"properties\": {\n \"code\": + {\n \"type\": \"integer\",\n \"format\": + \"int32\"\n },\n \"type\": {\n \"type\": + \"string\"\n },\n \"message\": {\n \"type\": + \"string\"\n }\n },\n \"xml\": + {\n \"name\": \"##default\"\n }\n }\n },\n \"requestBodies\": + {\n \"Pet\": {\n \"description\": \"Pet object that + needs to be added to the store\",\n \"content\": {\n \"application/json\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n },\n \"application/xml\": + {\n \"schema\": {\n \"$ref\": + \"#/components/schemas/Pet\"\n }\n }\n }\n },\n \"UserArray\": + {\n \"description\": \"List of user object\",\n \"content\": + {\n \"application/json\": {\n \"schema\": + {\n \"type\": \"array\",\n \"items\": + {\n \"$ref\": \"#/components/schemas/User\"\n }\n }\n }\n }\n }\n },\n \"securitySchemes\": + {\n \"petstore_auth\": {\n \"type\": \"oauth2\",\n \"flows\": + {\n \"implicit\": {\n \"authorizationUrl\": + \"https://petstore3.swagger.io/oauth/authorize\",\n \"scopes\": + {\n \"write:pets\": \"modify pets in your account\",\n \"read:pets\": + \"read your pets\"\n }\n }\n }\n },\n \"api_key\": + {\n \"type\": \"apiKey\",\n \"name\": \"api_key\",\n \"in\": + \"header\"\n }\n }\n }\n}"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '48523' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30/versions/1-0-19/definitions/openapi/importSpecification?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:08:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: D1D4672FD4E4435682223D2D5C1EED09 Ref B: MAA201060514023 Ref C: 2024-06-17T06:08:41Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Swagger + Petstore - OpenAPI 3.0","summary":"This is a sample Pet Store Server based + on the OpenAPI 3.0 specification. You can find out more about\nSwagger at + [http://swagger.io](http://swagger.io). In the third iteration of the pet + store, we''ve","description":"This is a sample Pet Store Server based on the + OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the definition itself or to the code.\nThat way, with time, we can improve + the API in general, and expose some of the new features in OAS3.\n\nSome useful + links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- + [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)This + is a sample Pet Store Server based on the OpenAPI 3.0 specification. You + can find out more about\nSwagger at [http://swagger.io](http://swagger.io). + In the third iteration of the pet store, we''ve switched to the design first + approach!\nYou can now help us improve the API whether it''s by making changes + to the","kind":"rest","lifecycleStage":"design","license":{"name":"Apache + 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"externalDocumentation":[],"contacts":[{"email":"apiteam@swagger.io"}],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore-openapi30","name":"swaggerpetstore-openapi30","systemData":{"createdAt":"2024-06-17T06:08:34.6174273Z","lastModifiedAt":"2024-06-17T06:08:34.6174254Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '1902' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:08:45 GMT + etag: + - da0290e3-0000-0100-0000-666fd2e50000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 04EDEA4A58CA4DF082A93CA5C7305A98 Ref B: MAA201060514053 Ref C: 2024-06-17T06:08:44Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_register_with_yml_spec.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_register_with_yml_spec.yaml new file mode 100644 index 00000000000..224114dd74a --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_register_with_yml_spec.yaml @@ -0,0 +1,517 @@ +interactions: +- request: + body: '{"properties": {"description": "API Description", "kind": "rest", "license": + {"name": "MIT"}, "summary": "API Description", "title": "Swagger Petstore"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Swagger + Petstore","summary":"API Description","description":"API Description","kind":"rest","license":{"name":"MIT"},"externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore","name":"swaggerpetstore","systemData":{"createdAt":"2024-06-17T06:09:01.2050628Z","lastModifiedAt":"2024-06-17T06:09:01.2050618Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '569' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:00 GMT + etag: + - da02eee7-0000-0100-0000-666fd2fd0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2998' + x-ms-ratelimit-remaining-subscription-writes: + - '198' + x-msedge-ref: + - 'Ref A: 0B9634E70C414F59B7D0CC9A6B18FCC0 Ref B: MAA201060514019 Ref C: 2024-06-17T06:09:00Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"lifecycleStage": "design", "title": "1-0-0"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '62' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"1-0-0","lifecycleStage":"design"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0","name":"1-0-0","systemData":{"createdAt":"2024-06-17T06:09:03.6355127Z","lastModifiedAt":"2024-06-17T06:09:03.6355117Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '436' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:03 GMT + etag: + - 88041d22-0000-0100-0000-666fd2ff0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 39C87F8559FC4CCCB76DF0F445EB7457 Ref B: MAA201060516025 Ref C: 2024-06-17T06:09:02Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"description": "API Description", "title": "openapi"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '70' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0/definitions/openapi?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"openapi","description":"API + Description"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0/definitions/openapi","name":"openapi","systemData":{"createdAt":"2024-06-17T06:09:06.6076629Z","lastModifiedAt":"2024-06-17T06:09:06.6076622Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '478' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:06 GMT + etag: + - 13015e9e-0000-0100-0000-666fd3020000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 00EBE4627A5D4FF3AB88752AFFAD4AC6 Ref B: MAA201060514009 Ref C: 2024-06-17T06:09:05Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"format": "inline", "specification": {"name": "openapi", "version": "3-0-0"}, + "value": "openapi: \"3.0.0\"\ninfo:\n version: 1.0.0\n title: Swagger Petstore\n license:\n name: + MIT\nservers:\n - url: http://petstore.swagger.io/v1\npaths:\n /pets:\n get:\n summary: + List all pets\n operationId: listPets\n tags:\n - pets\n parameters:\n - + name: limit\n in: query\n description: How many items to return + at one time (max 100)\n required: false\n schema:\n type: + integer\n maximum: 100\n format: int32\n responses:\n ''200'':\n description: + A paged array of pets\n headers:\n x-next:\n description: + A link to the next page of responses\n schema:\n type: + string\n content:\n application/json: \n schema:\n $ref: + \"#/components/schemas/Pets\"\n default:\n description: unexpected + error\n content:\n application/json:\n schema:\n $ref: + \"#/components/schemas/Error\"\n post:\n summary: Create a pet\n operationId: + createPets\n tags:\n - pets\n requestBody:\n content:\n application/json:\n schema:\n $ref: + ''#/components/schemas/Pet''\n required: true\n responses:\n ''201'':\n description: + Null response\n default:\n description: unexpected error\n content:\n application/json:\n schema:\n $ref: + \"#/components/schemas/Error\"\n /pets/{petId}:\n get:\n summary: Info + for a specific pet\n operationId: showPetById\n tags:\n - pets\n parameters:\n - + name: petId\n in: path\n required: true\n description: + The id of the pet to retrieve\n schema:\n type: string\n responses:\n ''200'':\n description: + Expected response to a valid request\n content:\n application/json:\n schema:\n $ref: + \"#/components/schemas/Pet\"\n default:\n description: unexpected + error\n content:\n application/json:\n schema:\n $ref: + \"#/components/schemas/Error\"\ncomponents:\n schemas:\n Pet:\n type: + object\n required:\n - id\n - name\n properties:\n id:\n type: + integer\n format: int64\n name:\n type: string\n tag:\n type: + string\n Pets:\n type: array\n maxItems: 100\n items:\n $ref: + \"#/components/schemas/Pet\"\n Error:\n type: object\n required:\n - + code\n - message\n properties:\n code:\n type: integer\n format: + int32\n message:\n type: string\n"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api register + Connection: + - keep-alive + Content-Length: + - '2996' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0/definitions/openapi/importSpecification?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 17 Jun 2024 06:09:09 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: E3167A3517204EEF86BC908F5B1EFD53 Ref B: MAA201060516045 Ref C: 2024-06-17T06:09:08Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Swagger + Petstore","summary":"API Description","description":"API Description","kind":"rest","lifecycleStage":"design","license":{"name":"MIT"},"externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore","name":"swaggerpetstore","systemData":{"createdAt":"2024-06-17T06:09:01.2050628Z","lastModifiedAt":"2024-06-17T06:09:01.2050618Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '595' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:12 GMT + etag: + - da02abe8-0000-0100-0000-666fd2ff0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 0D78482DBF344B2187B50927B70F4CF8 Ref B: MAA201060514025 Ref C: 2024-06-17T06:09:11Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"1-0-0","lifecycleStage":"design"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0","name":"1-0-0","systemData":{"createdAt":"2024-06-17T06:09:03.6355127Z","lastModifiedAt":"2024-06-17T06:09:03.6355117Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '436' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:14 GMT + etag: + - 88041d22-0000-0100-0000-666fd2ff0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 45C177AEFEBA41C88A62D66A88AC20FF Ref B: MAA201060515017 Ref C: 2024-06-17T06:09:13Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --definition-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0/definitions/openapi?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions/definitions","properties":{"title":"openapi","description":"API + Description","specification":{"name":"openapi","version":"3-0-0"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0/definitions/openapi","name":"openapi","systemData":{"createdAt":"2024-06-17T06:09:06.6076629Z","lastModifiedAt":"2024-06-17T06:09:09.4740396Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '531' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:17 GMT + etag: + - 13016d9e-0000-0100-0000-666fd3050000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: C4B7C1939F914EDBABA0E8B808BC6E83 Ref B: MAA201060515047 Ref C: 2024-06-17T06:09:16Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api definition export-specification + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --api-id --version-id --definition-id --file-name + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/swaggerpetstore/versions/1-0-0/definitions/openapi/exportSpecification?api-version=2024-03-01 + response: + body: + string: '{"format":"inline","value":"openapi: \"3.0.0\"\ninfo:\n version: 1.0.0\n title: + Swagger Petstore\n license:\n name: MIT\nservers:\n - url: http://petstore.swagger.io/v1\npaths:\n /pets:\n get:\n summary: + List all pets\n operationId: listPets\n tags:\n - pets\n parameters:\n - + name: limit\n in: query\n description: How many items to + return at one time (max 100)\n required: false\n schema:\n type: + integer\n maximum: 100\n format: int32\n responses:\n ''200'':\n description: + A paged array of pets\n headers:\n x-next:\n description: + A link to the next page of responses\n schema:\n type: + string\n content:\n application/json: \n schema:\n $ref: + \"#/components/schemas/Pets\"\n default:\n description: unexpected + error\n content:\n application/json:\n schema:\n $ref: + \"#/components/schemas/Error\"\n post:\n summary: Create a pet\n operationId: + createPets\n tags:\n - pets\n requestBody:\n content:\n application/json:\n schema:\n $ref: + ''#/components/schemas/Pet''\n required: true\n responses:\n ''201'':\n description: + Null response\n default:\n description: unexpected error\n content:\n application/json:\n schema:\n $ref: + \"#/components/schemas/Error\"\n /pets/{petId}:\n get:\n summary: + Info for a specific pet\n operationId: showPetById\n tags:\n - + pets\n parameters:\n - name: petId\n in: path\n required: + true\n description: The id of the pet to retrieve\n schema:\n type: + string\n responses:\n ''200'':\n description: Expected + response to a valid request\n content:\n application/json:\n schema:\n $ref: + \"#/components/schemas/Pet\"\n default:\n description: unexpected + error\n content:\n application/json:\n schema:\n $ref: + \"#/components/schemas/Error\"\ncomponents:\n schemas:\n Pet:\n type: + object\n required:\n - id\n - name\n properties:\n id:\n type: + integer\n format: int64\n name:\n type: string\n tag:\n type: + string\n Pets:\n type: array\n maxItems: 100\n items:\n $ref: + \"#/components/schemas/Pet\"\n Error:\n type: object\n required:\n - + code\n - message\n properties:\n code:\n type: + integer\n format: int32\n message:\n type: string\n"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '2935' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:09:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 7C2F6E86BA1841C686584FA2D404C581 Ref B: MAA201060516035 Ref C: 2024-06-17T06:09:20Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_show_service.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_show_service.yaml index d202042a462..2232a0760cc 100644 --- a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_show_service.yaml +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_show_service.yaml @@ -7,31 +7,31 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - apic service show + - apic show Connection: - keep-alive ParameterSetName: - - -g -s + - -g -n User-Agent: - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 response: body: - string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"None"},"properties":{"dataApiHostname":"clitest000002.data.eastus.azure-apicenter.ms","provisioningState":"InProgress"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{},"systemData":{"createdAt":"2024-04-25T05:47:09.5042261Z","lastModifiedAt":"2024-04-25T05:47:09.504214Z"}}' + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{"dataApiHostname":"clitest000002.data.eastus.azure-apicenter.ms"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{},"systemData":{"createdAt":"2024-06-17T06:13:18.7030891Z","lastModifiedAt":"2024-06-17T06:13:18.7030835Z"}}' headers: api-supported-versions: - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview cache-control: - no-cache content-length: - - '471' + - '439' content-type: - application/json; charset=utf-8 date: - - Thu, 25 Apr 2024 05:47:12 GMT + - Mon, 17 Jun 2024 06:14:21 GMT etag: - - 7400a819-0000-0100-0000-6629ee5d0000 + - bb01427b-0000-0100-0000-666fd4160000 expires: - '-1' pragma: @@ -44,8 +44,10 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' x-msedge-ref: - - 'Ref A: 892D1AB7D8DF4DA799DBA03E5FCDD07E Ref B: MAA201060515031 Ref C: 2024-04-25T05:47:11Z' + - 'Ref A: 8D5F9F08A88546C99DE94BE094FFA053 Ref B: MAA201060515019 Ref C: 2024-06-17T06:14:20Z' x-powered-by: - ASP.NET status: diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_update_service.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_update_service.yaml index 56a95425d41..cec8d535f39 100644 --- a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_update_service.yaml +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_update_service.yaml @@ -1,41 +1,94 @@ interactions: - request: - body: '{"tags": {"test": "value"}}' + body: null headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - apic service update + - apic update + Connection: + - keep-alive + ParameterSetName: + - -g -n --tags + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{},"systemData":{"createdAt":"2024-06-24T07:41:17.4551506Z","lastModifiedAt":"2024-06-24T07:41:17.4551422Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '375' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jun 2024 07:41:19 GMT + etag: + - 1a0001aa-0000-0100-0000-6679231d0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: FE306FF527424F5B8D768270F03A2F05 Ref B: MAA201060516031 Ref C: 2024-06-24T07:41:19Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus", "properties": {}, "sku": {"name": "Free"}, "tags": + {"test": "value"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic update Connection: - keep-alive Content-Length: - - '27' + - '92' Content-Type: - application/json ParameterSetName: - - -g -s --tags + - -g -n --tags User-Agent: - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) - method: PATCH + method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 response: body: - string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","identity":{"type":"None"},"sku":{"name":"None"},"properties":{"dataApiHostname":"clitest000002.data.eastus.azure-apicenter.ms"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{"test":"value"},"systemData":{"lastModifiedAt":"2024-04-25T05:47:34.2771576Z"}}' + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{"dataApiHostname":"clitest000002.data.eastus.azure-apicenter.ms"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{"test":"value"},"systemData":{"createdAt":"2024-06-24T07:41:17.4551506Z","lastModifiedAt":"2024-06-24T07:41:23.490113Z"}}' headers: api-supported-versions: - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview cache-control: - no-cache content-length: - - '437' + - '452' content-type: - application/json; charset=utf-8 date: - - Thu, 25 Apr 2024 05:47:35 GMT - etag: - - 74005a1e-0000-0100-0000-6629ee760000 + - Mon, 24 Jun 2024 07:41:25 GMT expires: - '-1' pragma: @@ -48,10 +101,12 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' x-msedge-ref: - - 'Ref A: DEF4CDC2694E41269679420F72147A72 Ref B: MAA201060516019 Ref C: 2024-04-25T05:47:32Z' + - 'Ref A: 232B150B725448CCAAA5128DB231487F Ref B: MAA201060516031 Ref C: 2024-06-24T07:41:20Z' x-powered-by: - ASP.NET status: diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_update_service_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_update_service_with_all_optional_params.yaml new file mode 100644 index 00000000000..bdd10ddf544 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_update_service_with_all_optional_params.yaml @@ -0,0 +1,115 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic update + Connection: + - keep-alive + ParameterSetName: + - -g -n --tags --identity + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{},"systemData":{"createdAt":"2024-06-24T07:41:17.2805444Z","lastModifiedAt":"2024-06-24T07:41:17.280535Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '374' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jun 2024 07:41:20 GMT + etag: + - 1a0000aa-0000-0100-0000-6679231d0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B83AEB98C6DD44B9B3E5394810480682 Ref B: MAA201060513051 Ref C: 2024-06-24T07:41:19Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned"}, "location": "eastus", "properties": + {}, "sku": {"name": "Free"}, "tags": {"test": "value"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic update + Connection: + - keep-alive + Content-Length: + - '132' + Content-Type: + - application/json + ParameterSetName: + - -g -n --tags --identity + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","identity":{"type":"SystemAssigned","principalId":"994e5256-bca5-4bb4-8baf-45094cc2c011","tenantId":"f0348563-e707-449c-8685-c83d24eaf3c0"},"sku":{"name":"Free"},"properties":{"dataApiHostname":"clitest000002.data.eastus.azure-apicenter.ms"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002","name":"clitest000002","tags":{"test":"value"},"systemData":{"createdAt":"2024-06-24T07:41:17.2805444Z","lastModifiedAt":"2024-06-24T07:41:26.9585745Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '593' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jun 2024 07:41:29 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 3FC4D40800C4486AAC30325E943B8F6D Ref B: MAA201060513051 Ref C: 2024-06-24T07:41:20Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_create.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_create.yaml new file mode 100644 index 00000000000..4cb58013926 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_create.yaml @@ -0,0 +1,62 @@ +interactions: +- request: + body: '{"properties": {"lifecycleStage": "production", "title": "v1.0.0"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version create + Connection: + - keep-alive + Content-Length: + - '67' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --lifecycle-stage --title + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/cli000004?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"v1.0.0","lifecycleStage":"production"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/cli000004","name":"cli000004","systemData":{"createdAt":"2024-06-17T06:14:21.6794554Z","lastModifiedAt":"2024-06-17T06:14:21.6794545Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '447' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:14:21 GMT + etag: + - 8804b79e-0000-0100-0000-666fd43d0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: E3B12D5AF8494FABB8ABCEC18B1A71CC Ref B: MAA201060516009 Ref C: 2024-06-17T06:14:20Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_delete.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_delete.yaml new file mode 100644 index 00000000000..d95f5ff87c9 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_delete.yaml @@ -0,0 +1,104 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --api-id --version-id --yes + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004?api-version=2024-03-01 + response: + body: + string: '' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + date: + - Mon, 17 Jun 2024 06:14:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: D957CE2D6C7849A3B3B05A08F5CC2165 Ref B: MAA201060515031 Ref C: 2024-06-17T06:14:28Z' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004?api-version=2024-03-01 + response: + body: + string: '{"code":"404"}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '14' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:14:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 787774FD63E6453185952DCD1214FFA0 Ref B: MAA201060516011 Ref C: 2024-06-17T06:14:31Z' + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_list.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_list.yaml new file mode 100644 index 00000000000..19601f267b4 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_list.yaml @@ -0,0 +1,54 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version list + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions?api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"v1.0.0","lifecycleStage":"production"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:14:42.5883632Z","lastModifiedAt":"2024-06-17T06:14:42.5883621Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"v1.0.0","lifecycleStage":"production"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000005","name":"clitest000005","systemData":{"createdAt":"2024-06-17T06:14:45.3649023Z","lastModifiedAt":"2024-06-17T06:14:45.3649015Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '923' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:14:47 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: F881185C1D174CDB9362C632CD1E215A Ref B: MAA201060513023 Ref C: 2024-06-17T06:14:47Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_list_with_all_optional_params.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_list_with_all_optional_params.yaml new file mode 100644 index 00000000000..4d8e012ca37 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_list_with_all_optional_params.yaml @@ -0,0 +1,54 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version list + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --filter + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions?$filter=name%20eq%20%27clitest000004%27&api-version=2024-03-01 + response: + body: + string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"v1.0.0","lifecycleStage":"production"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:14:50.9608921Z","lastModifiedAt":"2024-06-17T06:14:50.9608913Z"}}]}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '467' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:14:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 7DE4E1BC7C034ACF85B9500DE8A11192 Ref B: MAA201060513035 Ref C: 2024-06-17T06:14:56Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_show.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_show.yaml new file mode 100644 index 00000000000..80f4c37de59 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_show.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version show + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"v1.0.0","lifecycleStage":"production"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:15:07.3038807Z","lastModifiedAt":"2024-06-17T06:15:07.3038795Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '455' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:15:09 GMT + etag: + - 88042baf-0000-0100-0000-666fd46b0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 40166EE537354C91AA398230DAF70D12 Ref B: MAA201060514039 Ref C: 2024-06-17T06:15:08Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_update.yaml b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_update.yaml new file mode 100644 index 00000000000..c28788a0027 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/recordings/test_version_update.yaml @@ -0,0 +1,116 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version update + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-id --version-id --title --lifecycle-stage + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"v1.0.0","lifecycleStage":"production"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:15:06.323026Z","lastModifiedAt":"2024-06-17T06:15:06.3230252Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '454' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:15:08 GMT + etag: + - 8804c4ae-0000-0100-0000-666fd46a0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 3DE19F8E80DA49AD897437F370722895 Ref B: MAA201060516053 Ref C: 2024-06-17T06:15:07Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"lifecycleStage": "development", "title": "v1.0.1"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - apic api version update + Connection: + - keep-alive + Content-Length: + - '68' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-id --version-id --title --lifecycle-stage + User-Agent: + - AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004?api-version=2024-03-01 + response: + body: + string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/versions","properties":{"title":"v1.0.1","lifecycleStage":"development"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003/versions/clitest000004","name":"clitest000004","systemData":{"lastModifiedAt":"2024-06-17T06:15:10.234047Z"}}' + headers: + api-supported-versions: + - 2023-07-01-preview, 2024-03-01, 2024-03-15-preview + cache-control: + - no-cache + content-length: + - '412' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 06:15:09 GMT + etag: + - 88047cb0-0000-0100-0000-666fd46e0000 + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: FCBE6BAAD69A4B8A883093BB6A617857 Ref B: MAA201060516053 Ref C: 2024-06-17T06:15:09Z' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/apic-extension/azext_apic_extension/tests/latest/test_api_commands.py b/src/apic-extension/azext_apic_extension/tests/latest/test_api_commands.py new file mode 100644 index 00000000000..afdeb45b89e --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/test_api_commands.py @@ -0,0 +1,208 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer +from .utils import ApicServicePreparer, ApicApiPreparer, ApicMetadataPreparer +from .constants import TEST_REGION + +class ApiCommandsTests(ScenarioTest): + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_api_create(self): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24) + }) + self.cmd('az apic api create -g {rg} -n {s} --api-id {name} --title "Echo API" --type rest', checks=[ + self.check('name', '{name}'), + self.check('kind', 'rest'), + self.check('title', 'Echo API'), + self.check('customProperties', {}), + self.check('contacts', []), + self.check('externalDocumentation', []) + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_api_create_with_all_optional_params(self, metadata_name): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24), + 'contacts': '[{email:contact@example.com,name:test,url:example.com}]', + 'customProperties': '{{"{}":true}}'.format(metadata_name), + 'externalDocumentation': '[{title:\'onboarding docs\',url:example.com}]', + 'license': '{url:example.com}', + }) + self.cmd('az apic api create -g {rg} -n {s} --api-id {name} --title "test api" --type rest --contacts "{contacts}" --custom-properties \'{customProperties}\' --description "API description" --external-documentation "{externalDocumentation}" --license "{license}" --summary "summary"', checks=[ + self.check('name', '{name}'), + self.check('kind', 'rest'), + self.check('title', 'test api'), + self.check('contacts', [{"email":"contact@example.com","name":"test","url":"example.com"}]), + self.check('customProperties.{}'.format(metadata_name), True), + self.check('description', 'API description'), + self.check('externalDocumentation', [{"title":"onboarding docs","url":"example.com"}]), + self.check('license', {"url":"example.com"}), + self.check('summary', 'summary') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + def test_api_show(self): + self.cmd('az apic api show -g {rg} -n {s} --api-id {api}', checks=[ + self.check('name', '{api}'), + self.check('kind', 'rest'), + self.check('title', 'Echo API'), + self.check('customProperties', {}), + self.check('contacts', []), + self.check('externalDocumentation', []) + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer(parameter_name='api_id1') + @ApicApiPreparer(parameter_name='api_id2') + def test_api_list(self, api_id1, api_id2): + self.cmd('az apic api list -g {rg} -n {s}', checks=[ + self.check('length(@)', 2), + self.check('@[0].name', api_id1), + self.check('@[1].name', api_id2) + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer(parameter_name='api_id1') + @ApicApiPreparer(parameter_name='api_id2') + def test_api_list_with_all_optional_params(self, api_id1): + self.kwargs.update({ + 'api_id': api_id1 + }) + self.cmd('az apic api list -g {rg} -n {s} --filter "name eq \'{api_id}\'"', checks=[ + self.check('length(@)', 1), + self.check('@[0].name', api_id1), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + def test_api_update(self): + self.cmd('az apic api update -g {rg} -n {s} --api-id {api} --title "Echo API 2"', checks=[ + self.check('title', 'Echo API 2'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicMetadataPreparer() + def test_api_update_with_all_optional_params(self, metadata_name): + self.kwargs.update({ + 'contacts': '[{email:contact@example.com,name:test,url:example.com}]', + 'customProperties': '{{"{}":true}}'.format(metadata_name), + 'externalDocumentation': '[{title:\'onboarding docs\',url:example.com}]', + 'license': '{url:example.com}', + }) + self.cmd('az apic api update -g {rg} -n {s} --api-id {api} --title "test api 2" --type rest --contacts "{contacts}" --custom-properties \'{customProperties}\' --description "API description" --external-documentation "{externalDocumentation}" --license "{license}" --summary "summary"', checks=[ + self.check('kind', 'rest'), + self.check('title', 'test api 2'), + self.check('contacts', [{"email":"contact@example.com","name":"test","url":"example.com"}]), + self.check('customProperties.{}'.format(metadata_name), True), + self.check('description', 'API description'), + self.check('externalDocumentation', [{"title":"onboarding docs","url":"example.com"}]), + self.check('license', {"url":"example.com"}), + self.check('summary', 'summary') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + def test_api_delete(self): + self.cmd('az apic api delete -g {rg} -n {s} --api-id {api} --yes') + self.cmd('az apic api show -g {rg} -n {s} --api-id {api}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_examples_create_api(self): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24) + }) + self.cmd('az apic api create -g {rg} -n {s} --api-id {name} --title "Echo API" --type REST', checks=[ + self.check('name', '{name}'), + self.check('kind', 'rest'), + self.check('title', 'Echo API'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_examples_create_api_with_custom_properties(self, metadata_name): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24), + 'customProperties': '{{"{}":true}}'.format(metadata_name), + }) + self.cmd('az apic api create -g {rg} -n {s} --api-id {name} --title "Echo API" --type rest --custom-properties \'{customProperties}\'', checks=[ + self.check('name', '{name}'), + self.check('kind', 'rest'), + self.check('title', 'Echo API'), + self.check('customProperties.{}'.format(metadata_name), True), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + def test_examples_delete_api(self): + self.cmd('az apic api delete -g {rg} -n {s} --api-id {api} --yes') + self.cmd('az apic api show -g {rg} -n {s} --api-id {api}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer(parameter_name='api_id1') + @ApicApiPreparer(parameter_name='api_id2') + def test_examples_list_apis(self, api_id1, api_id2): + self.cmd('az apic api list -g {rg} -n {s}', checks=[ + self.check('length(@)', 2), + self.check('@[0].name', api_id1), + self.check('@[1].name', api_id2) + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + def test_examples_show_api_details(self): + self.cmd('az apic api show -g {rg} -n {s} --api-id {api}', checks=[ + self.check('name', '{api}'), + self.check('kind', 'rest'), + self.check('title', 'Echo API'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + def test_examples_update_api(self): + self.cmd('az apic api update -g {rg} -n {s} --api-id {api} --summary "Basic REST API service"', checks=[ + self.check('summary', 'Basic REST API service'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicMetadataPreparer() + def test_examples_update_custom_properties(self, metadata_name): + self.kwargs.update({ + 'customProperties': '{{"{}":true}}'.format(metadata_name), + }) + self.cmd('az apic api update -g {rg} -n {s} --api-id {api} --custom-properties \'{customProperties}\'', checks=[ + self.check('customProperties.{}'.format(metadata_name), True), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer(parameter_name='api_id1') + @ApicApiPreparer(parameter_name='api_id2') + def test_examples_list_apis_with_filter(self, api_id1, api_id2): + self.cmd('az apic api list -g {rg} -n {s} --filter "kind eq \'rest\'"', checks=[ + self.check('length(@)', 2), + self.check('@[0].name', api_id1), + self.check('@[1].name', api_id2) + ]) \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/test_apic_extension.py b/src/apic-extension/azext_apic_extension/tests/latest/test_apic_extension.py deleted file mode 100644 index 8dffc341730..00000000000 --- a/src/apic-extension/azext_apic_extension/tests/latest/test_apic_extension.py +++ /dev/null @@ -1,325 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -# Code generated by aaz-dev-tools -# -------------------------------------------------------------------------------------------- - -from azure.cli.testsdk import * -import unittest - - -class ApicExtensionScenario(ScenarioTest): - - @unittest.skip('Test account does not have permissions to create service or use APIM service') - def test_provision_unprovision_defaulthostnames(self): - - self.kwargs.update({ - 'resource_group': 'api-center-test', - 'service_name': 'contosoeuap101-cli' - }) - - # Provision default hostnames - self.cmd('az apic service create -g {resource_group} --service-name {service_name} --location eastus', - checks=[self.check('name', self.kwargs['service_name'], - self.check('dataApiHostName', '{service_name}.data.eastus.azure-apim.net'))]) - - # View service details - self.cmd('az apic service show -g {resource_group} --service-name {service_name}', - checks=[self.check('name', self.kwargs['service_name'], - self.check('dataApiHostName', '{service_name}.data.eastus.azure-apim.net'))]) - - # Unprovision default hostnames - self.cmd('az apic service delete -g {resource_group} --service-name {service_name} --yes') - - @unittest.skip('Test account does not have permissions to create service or use APIM service') - def test_portalconfiguration_default_crud(self): - - authentication_details = '{"clientId":"91247fa2-f214-439f-ae71-512bc75d60db","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"}' - self.kwargs.update({ - 'resource_group': 'api-center-test', - 'service_name': 'contosoeuap', - 'authentication_details': authentication_details - }) - - # Create default portal configuration - self.cmd('az apic service portal default create -g {resource_group} --service-name {service_name} --title ContosoEUAP --enabled false --authentication "{authentication_details}"', - checks=[self.check('name', 'default'), - self.check('portalDefaultHostName', 'contosoeuap.portal.centraluseuap.azure-apicenter.ms'), - self.check('dataApiHostName', 'contosoeuap.data.centraluseuap.azure-apicenter.ms'), - self.check('title', 'ContosoEUAP')]) - - # Show default portal configuration - self.cmd('az apic service portal default show -g {resource_group} --service-name {service_name}', - checks=[self.check('name', 'default'), - self.check('portalDefaultHostName', 'contosoeuap.portal.centraluseuap.azure-apicenter.ms'), - self.check('dataApiHostName', 'contosoeuap.data.centraluseuap.azure-apicenter.ms'), - self.check('title', 'ContosoEUAP')]) - - # Update default portal configuration - self.cmd('az apic service portal default update -g {resource_group} --service-name {service_name} --title ContosoEUAP2 --enabled false --authentication "{authentication_details}"', - checks=[self.check('title', 'ContosoEUAP2')]) - - # Delete default portal configuration - self.cmd('az apic service portal default delete -g {resource_group} --service-name {service_name} --yes') - - - @unittest.skip('Test account does not have permissions to create service or use APIM service') - def test_import_from_apim(self): - - self.kwargs.update({ - 'resource_group': 'api-center-test', - 'service_name': 'contosoeuap' - }) - - # Import from APIM - API does not exist - from azure.core.exceptions import HttpResponseError - import_resource_id_does_not_exist = '"/subscriptions/a200340d-6b82-494d-9dbf-687ba6e33f9e/resourceGroups/Api-Default-Central-US-EUAP/providers/Microsoft.ApiManagement/service/alzasloneuap06/apis/doesnotexist"' - self.kwargs.update({ - 'resource_id_does_not_exist': import_resource_id_does_not_exist - }) - with self.assertRaisesRegexp(HttpResponseError, 'Failed to obtain schema from APIM'): - self.cmd('az apic service import-from-apim -g {resource_group} --service-name {service_name} --source-resource-ids "{resource_id_does_not_exist}"') - - # Import from APIM - API exist - import_resource_id_exists = '"/subscriptions/a200340d-6b82-494d-9dbf-687ba6e33f9e/resourceGroups/Api-Default-Central-US-EUAP/providers/Microsoft.ApiManagement/service/alzasloneuap06/apis/uspto"' - self.kwargs.update({ - 'resource_id_exists': import_resource_id_exists - }) - self.cmd('az apic service import-from-apim -g {resource_group} --service-name {service_name} --source-resource-ids "{resource_id_exists}" --debug') - - @unittest.skip('Test account does not have permissions to create service') - def test_apic_scenarios(self): - - # create service - TODO in future. Use fixed service for now - - # parameters for common use - from datetime import datetime - self.kwargs.update({ - 'resource_group': 'api-center-test', - 'service_name': 'contosoeuap', - 'api_name': 'cli-test-api-106', - 'api_version': 'cli-test-2023-01-02', - 'api_definition_name': 'cli-test-openapi-106', - }) - - # ------------------------------------------- Environment ------------------------------------------- - # create environment - server_details = { - "type": "Azure API Management", - "managementPortalUri": [ - "management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ApiManagement/service/my-api-management-service-0" - ] - } - self.kwargs.update({ - 'server_details': server_details, - 'environment_name': 'cli-test-public' - }) - self.cmd('az apic environment create -g {resource_group} -s {service_name} --name {environment_name} --title "Public cloud" --kind "development" --server "{server_details}"', - checks=[self.check('name', self.kwargs['environment_name']), - self.check('title', 'Public cloud'), - self.check('kind', 'development')]) - - # update environment - server_details = { - "type": "Azure API Management", - "managementPortalUri": [ - "management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ApiManagement/service/my-api-management-service" - ] - } - self.kwargs.update({ - 'server_details': server_details, - }) - self.cmd('az apic environment update -g {resource_group} -s {service_name} --name {environment_name} --title "Public cloud" --kind "development" --server "{server_details}" -w default', - checks=[self.check('name', self.kwargs['environment_name']), - self.check('title', 'Public cloud'), - self.check('kind', 'development'), - self.check('server', self.kwargs['server_details'])]) - - # show environment - self.cmd('az apic environment show -g {resource_group} -s {service_name} --name {environment_name}', - checks=[self.check('name', self.kwargs['environment_name']), - self.check('title', 'Public cloud'), - self.check('kind', 'development')]) - - # list environment - self.cmd('az apic environment list -g {resource_group} -s {service_name}') - - # ------------------------------------------- API ------------------------------------------- - # create api - self.kwargs.update({ - 'api_description': "CLI Test API 106", - 'api_title': "CLI Test API 106" - }) - self.cmd('az apic api create -g {resource_group} -s {service_name} --api-name {api_name} --description "{api_description}" --kind rest --title "{api_title}"', - checks=[self.check('name', self.kwargs['api_name']), - self.check('title', self.kwargs['api_title']), - self.check('description', self.kwargs['api_description']), - self.check('kind', 'rest')]) - - # show api - self.cmd('az apic api show -g {resource_group} -s {service_name} --api-name {api_name}', - checks=[self.check('name', self.kwargs['api_name']), - self.check('title', self.kwargs['api_title']), - self.check('description', self.kwargs['api_description']), - self.check('kind', 'rest')]) - - # list api - self.cmd('az apic api list -g {resource_group} -s {service_name}') - - # ------------------------------------------- API Version ------------------------------------------- - # create api version - self.cmd('az apic api version create -g {resource_group} -s {service_name} --api-name {api_name} --name {api_version} --title {api_version}') - - # update api version - self.kwargs.update({ - 'api_version_title_update': "CLI Test API Version 0" - }) - self.cmd('az apic api version update -g {resource_group} -s {service_name} --api-name {api_name} --name {api_version} --title "{api_version_title_update}" -w default', - checks=[self.check('name', self.kwargs['api_version']), - self.check('title', self.kwargs['api_version_title_update'])]) - - # show api version - self.cmd('az apic api version show -g {resource_group} -s {service_name} --api-name {api_name} --name {api_version}', - checks=[self.check('name', self.kwargs['api_version']), - self.check('title', self.kwargs['api_version_title_update'])]) - - # list api version - self.cmd('az apic api version list -g {resource_group} -s {service_name} --api-name {api_name}') - - # ------------------------------------------- API Definition ------------------------------------------- - # create api definition - self.cmd('az apic api definition create -g {resource_group} -s {service_name} --api-name {api_name} --version {api_version} --name {api_definition_name} --title "OpenAPI" ') - - # update api definition - self.kwargs.update({ - 'api_definition_title_update': "CLI Test API Definition 0" - }) - self.cmd('az apic api definition update -g {resource_group} -s {service_name} --api-name {api_name} --version {api_version} --name {api_definition_name} --title "{api_definition_title_update}" -w default', - checks=[self.check('name', self.kwargs['api_definition_name']), - self.check('title', self.kwargs['api_definition_title_update'])]) - - # show api definition - self.cmd('az apic api definition show -g {resource_group} -s {service_name} --api-name {api_name} --version {api_version} --name {api_definition_name}', - checks=[self.check('name', self.kwargs['api_definition_name']), - self.check('title', self.kwargs['api_definition_title_update'])]) - - # list api definition - self.cmd('az apic api definition list -g {resource_group} -s {service_name} --api-name {api_name} --version {api_version}') - - # ------------------------------------------------ Import Specification ------------------------------------------- - import os - TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) - templateFile = os.path.join( - TEST_DIR, - "data", - "import_spec_payload.json", - ) - specification_details = '{"name":"openapi","version":"3.0.0"}' - self.kwargs.update({ - 'templateFile': templateFile, - 'specification_details': specification_details - }) - self.cmd('az apic api definition import-specification -g {resource_group} -s {service_name} --api-name {api_name} --version {api_version} --name {api_definition_name} --format inline --specification {specification_details} --file-name "{templateFile}"') - - # export specification - templateOutputFile = os.path.join( - TEST_DIR, - "data", - "exported_spec.json", - ) - self.kwargs.update({ - 'templateFile': templateOutputFile - }) - self.cmd('az apic api definition export-specification -g {resource_group} -s {service_name} --api-name {api_name} --version {api_version} --name {api_definition_name} --file-name "{templateFile}"') - - # ------------------------------------------- Deployment ------------------------------------------- - # create deployment - environment_id = "/workspaces/default/environments/" + self.kwargs['environment_name'] - definition_id = "/workspaces/default/apis/" + self.kwargs['api_name'] + "/versions/" + self.kwargs['api_version'] + "/definitions/" + self.kwargs['api_definition_name'] - server = {"runtime-uri": ["https://api.contoso.com"]} - self.kwargs.update({ - 'environment_id': environment_id, - 'definition_id': definition_id, - 'deployment_name': 'production', - 'server': server, - }) - self.cmd('az apic api deployment create -g {resource_group} -s {service_name} --api-name {api_name} --name {deployment_name} --title "CLI Test Production deployment" --description "CLI Test Public cloud production deployment." --environment-id {environment_id} --definition-id {definition_id} --server "{server}"', - checks=[self.check('name', self.kwargs['deployment_name']), - self.check('title', 'CLI Test Production deployment'), - self.check('description', 'CLI Test Public cloud production deployment.')]) - - # show deployment - self.cmd('az apic api deployment show -g {resource_group} -s {service_name} --api-name {api_name} --name {deployment_name}', - checks=[self.check('name', self.kwargs['deployment_name'])]) - - # update deployment - self.kwargs.update({ - 'deployment_title_update': 'CLI Test Production deployment update' - }) - self.cmd('az apic api deployment update -g {resource_group} -s {service_name} --api-name {api_name} --name {deployment_name} --title "{deployment_title_update}" -w default', - checks=[self.check('name', self.kwargs['deployment_name']), - self.check('title', self.kwargs['deployment_title_update'])]) - - # list deployment - self.cmd('az apic api deployment list -g {resource_group} -s {service_name} --api-name {api_name}') - - # ------------------------------------------- Metadata Schema ------------------------------------------- - # create metadata schema - templateInputSchemaFile = os.path.join( - TEST_DIR, - "data", - "import_metadataschema_input.json", - ) - self.kwargs.update({ - 'schemaName': 'cli-test-metadata-schema-1', - 'templateFile': templateInputSchemaFile - - }) - self.cmd('az apic metadata-schema create -g {resource_group} -s {service_name} --name {schemaName} --file-name "{templateFile}"') - - # export metadata schema - templateOutputApiSchemaFile = os.path.join( - TEST_DIR, - "data", - "exported_md_schema_api.json", - ) - templateOutputDeploymentSchemaFile = os.path.join( - TEST_DIR, - "data", - "exported_md_schema_deployment.json", - ) - templateOutputEnvSchemaFile = os.path.join( - TEST_DIR, - "data", - "exported_md_schema_env.json", - ) - self.kwargs.update({ - 'templateFileApi': templateOutputApiSchemaFile, - 'templateFileDeployment': templateOutputDeploymentSchemaFile, - 'templateFileEnvironment': templateOutputEnvSchemaFile - }) - self.cmd('az apic metadata-schema export-metadata-schema -g {resource_group} -s {service_name} --assigned-to api --file-name "{templateFileApi}"') - self.cmd('az apic metadata-schema export-metadata-schema -g {resource_group} -s {service_name} --assigned-to deployment --file-name "{templateFileDeployment}"') - self.cmd('az apic metadata-schema export-metadata-schema -g {resource_group} -s {service_name} --assigned-to environment --file-name "{templateFileEnvironment}"') - - # show metadata schema - self.kwargs.update({ - 'schemaName': 'cli-test-metadata-schema-1' - }) - self.cmd('az apic metadata-schema show -g {resource_group} -s {service_name} --name {schemaName}', checks=[self.check('name', self.kwargs['schemaName'])]) - - # ------------------------------------------- Quick Add ------------------------------------------- - # register api - quick add - templateQuickAddFile = os.path.join( - TEST_DIR, - "data", - "register_quickadd_openai_spec.json", - ) - self.kwargs.update({ - 'templateFile': templateQuickAddFile, - 'environment_name': self.kwargs['environment_name'] - }) - self.cmd('az apic api register -g {resource_group} -s {service_name} --api-location "{templateFile}" --environment-name {environment_name}') - - \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/test_assets/metadata_schema.json b/src/apic-extension/azext_apic_extension/tests/latest/test_assets/metadata_schema.json new file mode 100644 index 00000000000..bc0b60c665f --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/test_assets/metadata_schema.json @@ -0,0 +1 @@ +{"type": "boolean", "title": "Public Facing"} \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/test_assets/petstore.json b/src/apic-extension/azext_apic_extension/tests/latest/test_assets/petstore.json new file mode 100644 index 00000000000..465ff75e5e9 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/test_assets/petstore.json @@ -0,0 +1,1225 @@ +{ + "openapi": "3.0.2", + "info": { + "title": "Swagger Petstore - OpenAPI 3.0", + "description": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!\nYou can now help us improve the API whether it's by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)", + "termsOfService": "http://swagger.io/terms/", + "contact": { + "email": "apiteam@swagger.io" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + }, + "version": "1.0.19" + }, + "externalDocs": { + "description": "Find out more about Swagger", + "url": "http://swagger.io" + }, + "servers": [ + { + "url": "/api/v3" + } + ], + "tags": [ + { + "name": "pet", + "description": "Everything about your Pets", + "externalDocs": { + "description": "Find out more", + "url": "http://swagger.io" + } + }, + { + "name": "store", + "description": "Access to Petstore orders", + "externalDocs": { + "description": "Find out more about our store", + "url": "http://swagger.io" + } + }, + { + "name": "user", + "description": "Operations about user" + } + ], + "paths": { + "/pet": { + "put": { + "tags": [ + "pet" + ], + "summary": "Update an existing pet", + "description": "Update an existing pet by Id", + "operationId": "updatePet", + "requestBody": { + "description": "Update an existent pet in the store", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + } + } + }, + "400": { + "description": "Invalid ID supplied" + }, + "404": { + "description": "Pet not found" + }, + "405": { + "description": "Validation exception" + } + }, + "security": [ + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + }, + "post": { + "tags": [ + "pet" + ], + "summary": "Add a new pet to the store", + "description": "Add a new pet to the store", + "operationId": "addPet", + "requestBody": { + "description": "Create a new pet in the store", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + } + } + }, + "405": { + "description": "Invalid input" + } + }, + "security": [ + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + } + }, + "/pet/findByStatus": { + "get": { + "tags": [ + "pet" + ], + "summary": "Finds Pets by status", + "description": "Multiple status values can be provided with comma separated strings", + "operationId": "findPetsByStatus", + "parameters": [ + { + "name": "status", + "in": "query", + "description": "Status values that need to be considered for filter", + "required": false, + "explode": true, + "schema": { + "type": "string", + "default": "available", + "enum": [ + "available", + "pending", + "sold" + ] + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/xml": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Pet" + } + } + }, + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Pet" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + } + }, + "/pet/findByTags": { + "get": { + "tags": [ + "pet" + ], + "summary": "Finds Pets by tags", + "description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", + "operationId": "findPetsByTags", + "parameters": [ + { + "name": "tags", + "in": "query", + "description": "Tags to filter by", + "required": false, + "explode": true, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/xml": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Pet" + } + } + }, + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Pet" + } + } + } + } + }, + "400": { + "description": "Invalid tag value" + } + }, + "security": [ + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + } + }, + "/pet/{petId}": { + "get": { + "tags": [ + "pet" + ], + "summary": "Find pet by ID", + "description": "Returns a single pet", + "operationId": "getPetById", + "parameters": [ + { + "name": "petId", + "in": "path", + "description": "ID of pet to return", + "required": true, + "schema": { + "type": "integer", + "format": "int64" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + } + } + }, + "400": { + "description": "Invalid ID supplied" + }, + "404": { + "description": "Pet not found" + } + }, + "security": [ + { + "api_key": [] + }, + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + }, + "post": { + "tags": [ + "pet" + ], + "summary": "Updates a pet in the store with form data", + "description": "", + "operationId": "updatePetWithForm", + "parameters": [ + { + "name": "petId", + "in": "path", + "description": "ID of pet that needs to be updated", + "required": true, + "schema": { + "type": "integer", + "format": "int64" + } + }, + { + "name": "name", + "in": "query", + "description": "Name of pet that needs to be updated", + "schema": { + "type": "string" + } + }, + { + "name": "status", + "in": "query", + "description": "Status of pet that needs to be updated", + "schema": { + "type": "string" + } + } + ], + "responses": { + "405": { + "description": "Invalid input" + } + }, + "security": [ + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + }, + "delete": { + "tags": [ + "pet" + ], + "summary": "Deletes a pet", + "description": "", + "operationId": "deletePet", + "parameters": [ + { + "name": "api_key", + "in": "header", + "description": "", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "petId", + "in": "path", + "description": "Pet id to delete", + "required": true, + "schema": { + "type": "integer", + "format": "int64" + } + } + ], + "responses": { + "400": { + "description": "Invalid pet value" + } + }, + "security": [ + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + } + }, + "/pet/{petId}/uploadImage": { + "post": { + "tags": [ + "pet" + ], + "summary": "uploads an image", + "description": "", + "operationId": "uploadFile", + "parameters": [ + { + "name": "petId", + "in": "path", + "description": "ID of pet to update", + "required": true, + "schema": { + "type": "integer", + "format": "int64" + } + }, + { + "name": "additionalMetadata", + "in": "query", + "description": "Additional Metadata", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponse" + } + } + } + } + }, + "security": [ + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + } + }, + "/store/inventory": { + "get": { + "tags": [ + "store" + ], + "summary": "Returns pet inventories by status", + "description": "Returns a map of status codes to quantities", + "operationId": "getInventory", + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ] + } + }, + "/store/order": { + "post": { + "tags": [ + "store" + ], + "summary": "Place an order for a pet", + "description": "Place a new order in the store", + "operationId": "placeOrder", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Order" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Order" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/Order" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Order" + } + } + } + }, + "405": { + "description": "Invalid input" + } + } + } + }, + "/store/order/{orderId}": { + "get": { + "tags": [ + "store" + ], + "summary": "Find purchase order by ID", + "description": "For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.", + "operationId": "getOrderById", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "ID of order that needs to be fetched", + "required": true, + "schema": { + "type": "integer", + "format": "int64" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Order" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/Order" + } + } + } + }, + "400": { + "description": "Invalid ID supplied" + }, + "404": { + "description": "Order not found" + } + } + }, + "delete": { + "tags": [ + "store" + ], + "summary": "Delete purchase order by ID", + "description": "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", + "operationId": "deleteOrder", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "ID of the order that needs to be deleted", + "required": true, + "schema": { + "type": "integer", + "format": "int64" + } + } + ], + "responses": { + "400": { + "description": "Invalid ID supplied" + }, + "404": { + "description": "Order not found" + } + } + } + }, + "/user": { + "post": { + "tags": [ + "user" + ], + "summary": "Create user", + "description": "This can only be done by the logged in user.", + "operationId": "createUser", + "requestBody": { + "description": "Created user object", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/User" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/User" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + } + }, + "responses": { + "default": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/User" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + } + } + } + } + }, + "/user/createWithList": { + "post": { + "tags": [ + "user" + ], + "summary": "Creates list of users with given input array", + "description": "Creates list of users with given input array", + "operationId": "createUsersWithListInput", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } + } + } + }, + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/xml": { + "schema": { + "$ref": "#/components/schemas/User" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + } + }, + "default": { + "description": "successful operation" + } + } + } + }, + "/user/login": { + "get": { + "tags": [ + "user" + ], + "summary": "Logs user into the system", + "description": "", + "operationId": "loginUser", + "parameters": [ + { + "name": "username", + "in": "query", + "description": "The user name for login", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "password", + "in": "query", + "description": "The password for login in clear text", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": { + "X-Rate-Limit": { + "description": "calls per hour allowed by the user", + "schema": { + "type": "integer", + "format": "int32" + } + }, + "X-Expires-After": { + "description": "date in UTC when token expires", + "schema": { + "type": "string", + "format": "date-time" + } + } + }, + "content": { + "application/xml": { + "schema": { + "type": "string" + } + }, + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "400": { + "description": "Invalid username/password supplied" + } + } + } + }, + "/user/logout": { + "get": { + "tags": [ + "user" + ], + "summary": "Logs out current logged in user session", + "description": "", + "operationId": "logoutUser", + "parameters": [], + "responses": { + "default": { + "description": "successful operation" + } + } + } + }, + "/user/{username}": { + "get": { + "tags": [ + "user" + ], + "summary": "Get user by user name", + "description": "", + "operationId": "getUserByName", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "The name that needs to be fetched. Use user1 for testing. ", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/xml": { + "schema": { + "$ref": "#/components/schemas/User" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + } + }, + "400": { + "description": "Invalid username supplied" + }, + "404": { + "description": "User not found" + } + } + }, + "put": { + "tags": [ + "user" + ], + "summary": "Update user", + "description": "This can only be done by the logged in user.", + "operationId": "updateUser", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "name that needs to be updated", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "Update an existent user in the store", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/User" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/User" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + } + }, + "responses": { + "default": { + "description": "successful operation" + } + } + }, + "delete": { + "tags": [ + "user" + ], + "summary": "Delete user", + "description": "This can only be done by the logged in user.", + "operationId": "deleteUser", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "The name that needs to be deleted", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "400": { + "description": "Invalid username supplied" + }, + "404": { + "description": "User not found" + } + } + } + } + }, + "components": { + "schemas": { + "Order": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 10 + }, + "petId": { + "type": "integer", + "format": "int64", + "example": 198772 + }, + "quantity": { + "type": "integer", + "format": "int32", + "example": 7 + }, + "shipDate": { + "type": "string", + "format": "date-time" + }, + "status": { + "type": "string", + "description": "Order Status", + "example": "approved", + "enum": [ + "placed", + "approved", + "delivered" + ] + }, + "complete": { + "type": "boolean" + } + }, + "xml": { + "name": "order" + } + }, + "Customer": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 100000 + }, + "username": { + "type": "string", + "example": "fehguy" + }, + "address": { + "type": "array", + "xml": { + "name": "addresses", + "wrapped": true + }, + "items": { + "$ref": "#/components/schemas/Address" + } + } + }, + "xml": { + "name": "customer" + } + }, + "Address": { + "type": "object", + "properties": { + "street": { + "type": "string", + "example": "437 Lytton" + }, + "city": { + "type": "string", + "example": "Palo Alto" + }, + "state": { + "type": "string", + "example": "CA" + }, + "zip": { + "type": "string", + "example": "94301" + } + }, + "xml": { + "name": "address" + } + }, + "Category": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 1 + }, + "name": { + "type": "string", + "example": "Dogs" + } + }, + "xml": { + "name": "category" + } + }, + "User": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 10 + }, + "username": { + "type": "string", + "example": "theUser" + }, + "firstName": { + "type": "string", + "example": "John" + }, + "lastName": { + "type": "string", + "example": "James" + }, + "email": { + "type": "string", + "example": "john@email.com" + }, + "password": { + "type": "string", + "example": "12345" + }, + "phone": { + "type": "string", + "example": "12345" + }, + "userStatus": { + "type": "integer", + "description": "User Status", + "format": "int32", + "example": 1 + } + }, + "xml": { + "name": "user" + } + }, + "Tag": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "name": { + "type": "string" + } + }, + "xml": { + "name": "tag" + } + }, + "Pet": { + "required": [ + "name", + "photoUrls" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 10 + }, + "name": { + "type": "string", + "example": "doggie" + }, + "category": { + "$ref": "#/components/schemas/Category" + }, + "photoUrls": { + "type": "array", + "xml": { + "wrapped": true + }, + "items": { + "type": "string", + "xml": { + "name": "photoUrl" + } + } + }, + "tags": { + "type": "array", + "xml": { + "wrapped": true + }, + "items": { + "$ref": "#/components/schemas/Tag" + } + }, + "status": { + "type": "string", + "description": "pet status in the store", + "enum": [ + "available", + "pending", + "sold" + ] + } + }, + "xml": { + "name": "pet" + } + }, + "ApiResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "type": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "xml": { + "name": "##default" + } + } + }, + "requestBodies": { + "Pet": { + "description": "Pet object that needs to be added to the store", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + } + } + }, + "UserArray": { + "description": "List of user object", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } + } + } + } + }, + "securitySchemes": { + "petstore_auth": { + "type": "oauth2", + "flows": { + "implicit": { + "authorizationUrl": "https://petstore3.swagger.io/oauth/authorize", + "scopes": { + "write:pets": "modify pets in your account", + "read:pets": "read your pets" + } + } + } + }, + "api_key": { + "type": "apiKey", + "name": "api_key", + "in": "header" + } + } + } +} \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/test_assets/petstore.yaml b/src/apic-extension/azext_apic_extension/tests/latest/test_assets/petstore.yaml new file mode 100644 index 00000000000..7ed987ff63e --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/test_assets/petstore.yaml @@ -0,0 +1,119 @@ +openapi: "3.0.0" +info: + version: 1.0.0 + title: Swagger Petstore + license: + name: MIT +servers: + - url: http://petstore.swagger.io/v1 +paths: + /pets: + get: + summary: List all pets + operationId: listPets + tags: + - pets + parameters: + - name: limit + in: query + description: How many items to return at one time (max 100) + required: false + schema: + type: integer + maximum: 100 + format: int32 + responses: + '200': + description: A paged array of pets + headers: + x-next: + description: A link to the next page of responses + schema: + type: string + content: + application/json: + schema: + $ref: "#/components/schemas/Pets" + default: + description: unexpected error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + post: + summary: Create a pet + operationId: createPets + tags: + - pets + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Pet' + required: true + responses: + '201': + description: Null response + default: + description: unexpected error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + /pets/{petId}: + get: + summary: Info for a specific pet + operationId: showPetById + tags: + - pets + parameters: + - name: petId + in: path + required: true + description: The id of the pet to retrieve + schema: + type: string + responses: + '200': + description: Expected response to a valid request + content: + application/json: + schema: + $ref: "#/components/schemas/Pet" + default: + description: unexpected error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" +components: + schemas: + Pet: + type: object + required: + - id + - name + properties: + id: + type: integer + format: int64 + name: + type: string + tag: + type: string + Pets: + type: array + maxItems: 100 + items: + $ref: "#/components/schemas/Pet" + Error: + type: object + required: + - code + - message + properties: + code: + type: integer + format: int32 + message: + type: string diff --git a/src/apic-extension/azext_apic_extension/tests/latest/test_assets/petstore.yml b/src/apic-extension/azext_apic_extension/tests/latest/test_assets/petstore.yml new file mode 100644 index 00000000000..7ed987ff63e --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/test_assets/petstore.yml @@ -0,0 +1,119 @@ +openapi: "3.0.0" +info: + version: 1.0.0 + title: Swagger Petstore + license: + name: MIT +servers: + - url: http://petstore.swagger.io/v1 +paths: + /pets: + get: + summary: List all pets + operationId: listPets + tags: + - pets + parameters: + - name: limit + in: query + description: How many items to return at one time (max 100) + required: false + schema: + type: integer + maximum: 100 + format: int32 + responses: + '200': + description: A paged array of pets + headers: + x-next: + description: A link to the next page of responses + schema: + type: string + content: + application/json: + schema: + $ref: "#/components/schemas/Pets" + default: + description: unexpected error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + post: + summary: Create a pet + operationId: createPets + tags: + - pets + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Pet' + required: true + responses: + '201': + description: Null response + default: + description: unexpected error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + /pets/{petId}: + get: + summary: Info for a specific pet + operationId: showPetById + tags: + - pets + parameters: + - name: petId + in: path + required: true + description: The id of the pet to retrieve + schema: + type: string + responses: + '200': + description: Expected response to a valid request + content: + application/json: + schema: + $ref: "#/components/schemas/Pet" + default: + description: unexpected error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" +components: + schemas: + Pet: + type: object + required: + - id + - name + properties: + id: + type: integer + format: int64 + name: + type: string + tag: + type: string + Pets: + type: array + maxItems: 100 + items: + $ref: "#/components/schemas/Pet" + Error: + type: object + required: + - code + - message + properties: + code: + type: integer + format: int32 + message: + type: string diff --git a/src/apic-extension/azext_apic_extension/tests/latest/test_assets/spec_with_long_description.json b/src/apic-extension/azext_apic_extension/tests/latest/test_assets/spec_with_long_description.json new file mode 100644 index 00000000000..aa20dcd4dab --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/test_assets/spec_with_long_description.json @@ -0,0 +1,1225 @@ +{ + "openapi": "3.0.2", + "info": { + "title": "Swagger Petstore - OpenAPI 3.0", + "description": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!\nYou can now help us improve the API whether it's by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!\nYou can now help us improve the API whether it's by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)", + "termsOfService": "http://swagger.io/terms/", + "contact": { + "email": "apiteam@swagger.io" + }, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + }, + "version": "1.0.19" + }, + "externalDocs": { + "description": "Find out more about Swagger", + "url": "http://swagger.io" + }, + "servers": [ + { + "url": "/api/v3" + } + ], + "tags": [ + { + "name": "pet", + "description": "Everything about your Pets", + "externalDocs": { + "description": "Find out more", + "url": "http://swagger.io" + } + }, + { + "name": "store", + "description": "Access to Petstore orders", + "externalDocs": { + "description": "Find out more about our store", + "url": "http://swagger.io" + } + }, + { + "name": "user", + "description": "Operations about user" + } + ], + "paths": { + "/pet": { + "put": { + "tags": [ + "pet" + ], + "summary": "Update an existing pet", + "description": "Update an existing pet by Id", + "operationId": "updatePet", + "requestBody": { + "description": "Update an existent pet in the store", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + } + } + }, + "400": { + "description": "Invalid ID supplied" + }, + "404": { + "description": "Pet not found" + }, + "405": { + "description": "Validation exception" + } + }, + "security": [ + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + }, + "post": { + "tags": [ + "pet" + ], + "summary": "Add a new pet to the store", + "description": "Add a new pet to the store", + "operationId": "addPet", + "requestBody": { + "description": "Create a new pet in the store", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + } + } + }, + "405": { + "description": "Invalid input" + } + }, + "security": [ + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + } + }, + "/pet/findByStatus": { + "get": { + "tags": [ + "pet" + ], + "summary": "Finds Pets by status", + "description": "Multiple status values can be provided with comma separated strings", + "operationId": "findPetsByStatus", + "parameters": [ + { + "name": "status", + "in": "query", + "description": "Status values that need to be considered for filter", + "required": false, + "explode": true, + "schema": { + "type": "string", + "default": "available", + "enum": [ + "available", + "pending", + "sold" + ] + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/xml": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Pet" + } + } + }, + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Pet" + } + } + } + } + }, + "400": { + "description": "Invalid status value" + } + }, + "security": [ + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + } + }, + "/pet/findByTags": { + "get": { + "tags": [ + "pet" + ], + "summary": "Finds Pets by tags", + "description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", + "operationId": "findPetsByTags", + "parameters": [ + { + "name": "tags", + "in": "query", + "description": "Tags to filter by", + "required": false, + "explode": true, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/xml": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Pet" + } + } + }, + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Pet" + } + } + } + } + }, + "400": { + "description": "Invalid tag value" + } + }, + "security": [ + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + } + }, + "/pet/{petId}": { + "get": { + "tags": [ + "pet" + ], + "summary": "Find pet by ID", + "description": "Returns a single pet", + "operationId": "getPetById", + "parameters": [ + { + "name": "petId", + "in": "path", + "description": "ID of pet to return", + "required": true, + "schema": { + "type": "integer", + "format": "int64" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + } + } + }, + "400": { + "description": "Invalid ID supplied" + }, + "404": { + "description": "Pet not found" + } + }, + "security": [ + { + "api_key": [] + }, + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + }, + "post": { + "tags": [ + "pet" + ], + "summary": "Updates a pet in the store with form data", + "description": "", + "operationId": "updatePetWithForm", + "parameters": [ + { + "name": "petId", + "in": "path", + "description": "ID of pet that needs to be updated", + "required": true, + "schema": { + "type": "integer", + "format": "int64" + } + }, + { + "name": "name", + "in": "query", + "description": "Name of pet that needs to be updated", + "schema": { + "type": "string" + } + }, + { + "name": "status", + "in": "query", + "description": "Status of pet that needs to be updated", + "schema": { + "type": "string" + } + } + ], + "responses": { + "405": { + "description": "Invalid input" + } + }, + "security": [ + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + }, + "delete": { + "tags": [ + "pet" + ], + "summary": "Deletes a pet", + "description": "", + "operationId": "deletePet", + "parameters": [ + { + "name": "api_key", + "in": "header", + "description": "", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "petId", + "in": "path", + "description": "Pet id to delete", + "required": true, + "schema": { + "type": "integer", + "format": "int64" + } + } + ], + "responses": { + "400": { + "description": "Invalid pet value" + } + }, + "security": [ + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + } + }, + "/pet/{petId}/uploadImage": { + "post": { + "tags": [ + "pet" + ], + "summary": "uploads an image", + "description": "", + "operationId": "uploadFile", + "parameters": [ + { + "name": "petId", + "in": "path", + "description": "ID of pet to update", + "required": true, + "schema": { + "type": "integer", + "format": "int64" + } + }, + { + "name": "additionalMetadata", + "in": "query", + "description": "Additional Metadata", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponse" + } + } + } + } + }, + "security": [ + { + "petstore_auth": [ + "write:pets", + "read:pets" + ] + } + ] + } + }, + "/store/inventory": { + "get": { + "tags": [ + "store" + ], + "summary": "Returns pet inventories by status", + "description": "Returns a map of status codes to quantities", + "operationId": "getInventory", + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "security": [ + { + "api_key": [] + } + ] + } + }, + "/store/order": { + "post": { + "tags": [ + "store" + ], + "summary": "Place an order for a pet", + "description": "Place a new order in the store", + "operationId": "placeOrder", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Order" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Order" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/Order" + } + } + } + }, + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Order" + } + } + } + }, + "405": { + "description": "Invalid input" + } + } + } + }, + "/store/order/{orderId}": { + "get": { + "tags": [ + "store" + ], + "summary": "Find purchase order by ID", + "description": "For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.", + "operationId": "getOrderById", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "ID of order that needs to be fetched", + "required": true, + "schema": { + "type": "integer", + "format": "int64" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Order" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/Order" + } + } + } + }, + "400": { + "description": "Invalid ID supplied" + }, + "404": { + "description": "Order not found" + } + } + }, + "delete": { + "tags": [ + "store" + ], + "summary": "Delete purchase order by ID", + "description": "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", + "operationId": "deleteOrder", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "ID of the order that needs to be deleted", + "required": true, + "schema": { + "type": "integer", + "format": "int64" + } + } + ], + "responses": { + "400": { + "description": "Invalid ID supplied" + }, + "404": { + "description": "Order not found" + } + } + } + }, + "/user": { + "post": { + "tags": [ + "user" + ], + "summary": "Create user", + "description": "This can only be done by the logged in user.", + "operationId": "createUser", + "requestBody": { + "description": "Created user object", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/User" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/User" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + } + }, + "responses": { + "default": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/User" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + } + } + } + } + }, + "/user/createWithList": { + "post": { + "tags": [ + "user" + ], + "summary": "Creates list of users with given input array", + "description": "Creates list of users with given input array", + "operationId": "createUsersWithListInput", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } + } + } + }, + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/xml": { + "schema": { + "$ref": "#/components/schemas/User" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + } + }, + "default": { + "description": "successful operation" + } + } + } + }, + "/user/login": { + "get": { + "tags": [ + "user" + ], + "summary": "Logs user into the system", + "description": "", + "operationId": "loginUser", + "parameters": [ + { + "name": "username", + "in": "query", + "description": "The user name for login", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "password", + "in": "query", + "description": "The password for login in clear text", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": { + "X-Rate-Limit": { + "description": "calls per hour allowed by the user", + "schema": { + "type": "integer", + "format": "int32" + } + }, + "X-Expires-After": { + "description": "date in UTC when token expires", + "schema": { + "type": "string", + "format": "date-time" + } + } + }, + "content": { + "application/xml": { + "schema": { + "type": "string" + } + }, + "application/json": { + "schema": { + "type": "string" + } + } + } + }, + "400": { + "description": "Invalid username/password supplied" + } + } + } + }, + "/user/logout": { + "get": { + "tags": [ + "user" + ], + "summary": "Logs out current logged in user session", + "description": "", + "operationId": "logoutUser", + "parameters": [], + "responses": { + "default": { + "description": "successful operation" + } + } + } + }, + "/user/{username}": { + "get": { + "tags": [ + "user" + ], + "summary": "Get user by user name", + "description": "", + "operationId": "getUserByName", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "The name that needs to be fetched. Use user1 for testing. ", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/xml": { + "schema": { + "$ref": "#/components/schemas/User" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + } + }, + "400": { + "description": "Invalid username supplied" + }, + "404": { + "description": "User not found" + } + } + }, + "put": { + "tags": [ + "user" + ], + "summary": "Update user", + "description": "This can only be done by the logged in user.", + "operationId": "updateUser", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "name that needs to be updated", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "Update an existent user in the store", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/User" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/User" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/User" + } + } + } + }, + "responses": { + "default": { + "description": "successful operation" + } + } + }, + "delete": { + "tags": [ + "user" + ], + "summary": "Delete user", + "description": "This can only be done by the logged in user.", + "operationId": "deleteUser", + "parameters": [ + { + "name": "username", + "in": "path", + "description": "The name that needs to be deleted", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "400": { + "description": "Invalid username supplied" + }, + "404": { + "description": "User not found" + } + } + } + } + }, + "components": { + "schemas": { + "Order": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 10 + }, + "petId": { + "type": "integer", + "format": "int64", + "example": 198772 + }, + "quantity": { + "type": "integer", + "format": "int32", + "example": 7 + }, + "shipDate": { + "type": "string", + "format": "date-time" + }, + "status": { + "type": "string", + "description": "Order Status", + "example": "approved", + "enum": [ + "placed", + "approved", + "delivered" + ] + }, + "complete": { + "type": "boolean" + } + }, + "xml": { + "name": "order" + } + }, + "Customer": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 100000 + }, + "username": { + "type": "string", + "example": "fehguy" + }, + "address": { + "type": "array", + "xml": { + "name": "addresses", + "wrapped": true + }, + "items": { + "$ref": "#/components/schemas/Address" + } + } + }, + "xml": { + "name": "customer" + } + }, + "Address": { + "type": "object", + "properties": { + "street": { + "type": "string", + "example": "437 Lytton" + }, + "city": { + "type": "string", + "example": "Palo Alto" + }, + "state": { + "type": "string", + "example": "CA" + }, + "zip": { + "type": "string", + "example": "94301" + } + }, + "xml": { + "name": "address" + } + }, + "Category": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 1 + }, + "name": { + "type": "string", + "example": "Dogs" + } + }, + "xml": { + "name": "category" + } + }, + "User": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 10 + }, + "username": { + "type": "string", + "example": "theUser" + }, + "firstName": { + "type": "string", + "example": "John" + }, + "lastName": { + "type": "string", + "example": "James" + }, + "email": { + "type": "string", + "example": "john@email.com" + }, + "password": { + "type": "string", + "example": "12345" + }, + "phone": { + "type": "string", + "example": "12345" + }, + "userStatus": { + "type": "integer", + "description": "User Status", + "format": "int32", + "example": 1 + } + }, + "xml": { + "name": "user" + } + }, + "Tag": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "name": { + "type": "string" + } + }, + "xml": { + "name": "tag" + } + }, + "Pet": { + "required": [ + "name", + "photoUrls" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 10 + }, + "name": { + "type": "string", + "example": "doggie" + }, + "category": { + "$ref": "#/components/schemas/Category" + }, + "photoUrls": { + "type": "array", + "xml": { + "wrapped": true + }, + "items": { + "type": "string", + "xml": { + "name": "photoUrl" + } + } + }, + "tags": { + "type": "array", + "xml": { + "wrapped": true + }, + "items": { + "$ref": "#/components/schemas/Tag" + } + }, + "status": { + "type": "string", + "description": "pet status in the store", + "enum": [ + "available", + "pending", + "sold" + ] + } + }, + "xml": { + "name": "pet" + } + }, + "ApiResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "type": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "xml": { + "name": "##default" + } + } + }, + "requestBodies": { + "Pet": { + "description": "Pet object that needs to be added to the store", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + }, + "application/xml": { + "schema": { + "$ref": "#/components/schemas/Pet" + } + } + } + }, + "UserArray": { + "description": "List of user object", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } + } + } + } + }, + "securitySchemes": { + "petstore_auth": { + "type": "oauth2", + "flows": { + "implicit": { + "authorizationUrl": "https://petstore3.swagger.io/oauth/authorize", + "scopes": { + "write:pets": "modify pets in your account", + "read:pets": "read your pets" + } + } + } + }, + "api_key": { + "type": "apiKey", + "name": "api_key", + "in": "header" + } + } + } +} \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/test_definition_commands.py b/src/apic-extension/azext_apic_extension/tests/latest/test_definition_commands.py new file mode 100644 index 00000000000..ad1e22d6f7b --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/test_definition_commands.py @@ -0,0 +1,313 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import requests +import json +import os + +from knack.util import CLIError +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer +from .utils import ApicServicePreparer, ApicApiPreparer, ApicVersionPreparer, ApicDefinitionPreparer +from .constants import TEST_REGION + +current_dir = os.path.dirname(os.path.realpath(__file__)) +test_assets_dir = os.path.join(current_dir, 'test_assets') + +class DefinitionCommandsTests(ScenarioTest): + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + def test_definition_create(self): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24) + }) + self.cmd('az apic api definition create -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {name} --title "OpenAPI"', checks=[ + self.check('name', '{name}'), + self.check('title', 'OpenAPI'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + def test_definition_create_with_all_optional_params(self): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24) + }) + self.cmd('az apic api definition create -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {name} --title "OpenAPI" --description "test description"', checks=[ + self.check('name', '{name}'), + self.check('title', 'OpenAPI'), + self.check('description', 'test description'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + def test_definition_show(self): + self.cmd('az apic api definition show -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d}', checks=[ + self.check('name', '{d}'), + self.check('title', 'OpenAPI'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer(parameter_name="definition_id1") + @ApicDefinitionPreparer(parameter_name="definition_id2") + def test_definition_list(self, definition_id1, definition_id2): + self.cmd('az apic api definition list -g {rg} -n {s} --api-id {api} --version-id {v}', checks=[ + self.check('length(@)', 2), + self.check('[0].name', definition_id1), + self.check('[1].name', definition_id2), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer(parameter_name="definition_id1") + @ApicDefinitionPreparer(parameter_name="definition_id2") + def test_definition_list_with_all_optional_params(self, definition_id1): + self.kwargs.update({ + 'definition_id': definition_id1 + }) + self.cmd('az apic api definition list -g {rg} -n {s} --api-id {api} --version-id {v} --filter "name eq \'{definition_id}\'"', checks=[ + self.check('length(@)', 1), + self.check('[0].name', definition_id1) + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + def test_definition_update(self): + self.cmd('az apic api definition update -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --title "Swagger" --description "test description 2"', checks=[ + self.check('name', '{d}'), + self.check('title', 'Swagger'), + self.check('description', 'test description 2'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + def test_definition_delete(self): + self.cmd('az apic api definition delete -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --yes') + self.cmd('az apic api definition show -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + def test_definition_import_export(self): + self.kwargs.update({ + 'filename': "test_definition_import_export.json", + 'spec_url': "https://petstore3.swagger.io/api/v3/openapi.json", + 'specification': '{"name":"openapi","version":"3.0.2"}' + }) + + self.cmd('az apic api definition import-specification -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --format "link" --specification \'{specification}\' --value "{spec_url}"') + + self.cmd('az apic api definition export-specification -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --file-name {filename}') + + try: + exported_file_path = self.kwargs['filename'] + with open(exported_file_path, 'r') as file: + exported_content = json.load(file) + + # Get the content from the imported URL + imported_url = self.kwargs['spec_url'] + response = requests.get(imported_url) + imported_content = response.json() + + assert exported_content == imported_content, "The exported content is not the same as the imported content." + finally: + os.remove(exported_file_path) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + def test_definition_import_inline(self): + self.kwargs.update({ + 'filename': "test_definition_import_inline.json", + 'specification': '{"name":"openapi","version":"3.0.0"}', + 'value': '{"openapi":"3.0.1","info":{"title":"httpbin.org","description":"API Management facade for a very handy and free online HTTP tool.","version":"1.0"}}' + }) + + self.cmd('az apic api definition import-specification -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --format "inline" --specification \'{specification}\' --value \'{value}\'') + + self.cmd('az apic api definition export-specification -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --file-name {filename}') + + try: + exported_file_path = self.kwargs['filename'] + with open(exported_file_path, 'r') as file: + exported_content = json.load(file) + + imported_content = json.loads(self.kwargs['value']) + + assert exported_content == imported_content, "The exported content is not the same as the imported content." + finally: + os.remove(exported_file_path) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + def test_definition_import_from_file(self): + self.kwargs.update({ + 'import_filename': os.path.join(test_assets_dir, 'petstore.json'), + 'export_filename': "test_definition_import_from_file.json", + 'specification': '{"name":"openapi","version":"3.0.0"}' + }) + + self.cmd('az apic api definition import-specification -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --format "inline" --specification \'{specification}\' --value "@{import_filename}"') + + self.cmd('az apic api definition export-specification -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --file-name {export_filename}') + + try: + exported_file_path = self.kwargs['export_filename'] + with open(exported_file_path, 'r') as file: + exported_content = json.load(file) + + with open(self.kwargs['import_filename'], 'r') as file: + imported_content = json.load(file) + + assert exported_content == imported_content, "The exported content is not the same as the imported content." + finally: + os.remove(exported_file_path) + + def test_definition_import_large_value(self): + self.kwargs.update({ + 'specification': '{"name":"openapi","version":"3.0.0"}', + 'file_name': "test_definition_import_large_value.txt", + 'rg': "mock_resource_group", + 's': 'mock-service-name', + 'api': 'mock-api-id', + 'v': 'mock-version-id', + 'd': 'mock-definition-id' + }) + + try: + with open(self.kwargs['file_name'], 'w') as file: + file.write('a' * 4 * 1024 * 1024) # generate a 4MB file + + with self.assertRaisesRegexp(CLIError, 'The size of "value" is greater than 3 MB. Please use --format "link" to import the specification from a URL for size greater than 3 mb.') as cm: + self.cmd('az apic api definition import-specification -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --format "inline" --specification \'{specification}\' --value "@{file_name}"') + finally: + os.remove(self.kwargs['file_name']) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + def test_examples_create_api_definition(self): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24) + }) + self.cmd('az apic api definition create -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {name} --title "OpenAPI"', checks=[ + self.check('name', '{name}'), + self.check('title', 'OpenAPI'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + def test_examples_delete_api_definition(self): + self.cmd('az apic api definition delete -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --yes') + self.cmd('az apic api definition show -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer(parameter_name="definition_id1") + @ApicDefinitionPreparer(parameter_name="definition_id2") + def test_examples_list_api_definitions(self, definition_id1, definition_id2): + self.cmd('az apic api definition list -g {rg} -n {s} --api-id {api} --version-id {v}', checks=[ + self.check('length(@)', 2), + self.check('[0].name', definition_id1), + self.check('[1].name', definition_id2), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + def test_examples_show_api_definition_details(self): + self.cmd('az apic api definition show -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d}', checks=[ + self.check('name', '{d}'), + self.check('title', 'OpenAPI'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + def test_examples_update_api_definition(self): + self.cmd('az apic api definition update -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --title "OpenAPI"', checks=[ + self.check('name', '{d}'), + self.check('title', 'OpenAPI'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + def test_examples_import_specification_example_1(self): + self.kwargs.update({ + 'value': '{"openapi":"3.0.1","info":{"title":"httpbin.org","description":"API Management facade for a very handy and free online HTTP tool.","version":"1.0"}}', + 'specification': '{"name":"openapi","version":"3.0.0"}' + }) + self.cmd('az apic api definition import-specification -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --format "inline" --value \'{value}\' --specification \'{specification}\'') + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + def test_examples_import_specification_example_2(self): + self.kwargs.update({ + 'value': 'https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json', + 'specification': '{"name":"openapi","version":"3.0.0"}' + }) + self.cmd('az apic api definition import-specification -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --format "link" --value \'{value}\' --specification \'{specification}\'') + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + def test_examples_export_specification(self): + self.kwargs.update({ + 'value': 'https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json', + 'specification': '{"name":"openapi","version":"3.0.0"}', + 'filename': "test_examples_export_specification.json" + }) + # Import a specification first + self.cmd('az apic api definition import-specification -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --format "link" --value \'{value}\' --specification \'{specification}\'') + + self.cmd('az apic api definition export-specification -g {rg} -n {s} --api-id {api} --version-id {v} --definition-id {d} --file-name {filename}') + + try: + # Check the exported file exists + assert os.path.exists(self.kwargs['filename']) + finally: + os.remove(self.kwargs['filename']) \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/test_deployment_commands.py b/src/apic-extension/azext_apic_extension/tests/latest/test_deployment_commands.py new file mode 100644 index 00000000000..dc60fcc95c3 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/test_deployment_commands.py @@ -0,0 +1,217 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer +from .utils import ApicServicePreparer, ApicApiPreparer, ApicVersionPreparer, ApicDefinitionPreparer, ApicEnvironmentPreparer, ApicDeploymentPreparer, ApicMetadataPreparer +from .constants import TEST_REGION + +class DeploymentCommandsTests(ScenarioTest): + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + def test_deployment_create(self): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24), + 'server': '{"runtimeUri":["https://example.com"]}', + }) + self.cmd('az apic api deployment create -g {rg} -n {s} --api-id {api} --definition-id /workspaces/default/apis/{api}/versions/{v}/definitions/{d} --environment-id /workspaces/default/environments/{e} --deployment-id {name} --title "test deployment" --server \'{server}\'', checks=[ + self.check('name', '{name}'), + self.check('title', 'test deployment'), + self.check('server.runtimeUri[0]', 'https://example.com'), + self.check('customProperties', {}), + self.check('definitionId', '/workspaces/default/apis/{api}/versions/{v}/definitions/{d}'), + self.check('environmentId', '/workspaces/default/environments/{e}'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + @ApicMetadataPreparer() + def test_deployment_create_with_all_optional_params(self, metadata_name): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24), + 'server': '{"runtimeUri":["https://example.com"]}', + 'customProperties': '{{"{}":true}}'.format(metadata_name), + }) + self.cmd('az apic api deployment create -g {rg} -n {s} --api-id {api} --definition-id /workspaces/default/apis/{api}/versions/{v}/definitions/{d} --environment-id /workspaces/default/environments/{e} --deployment-id {name} --title "test deployment" --server \'{server}\' --description "deployment description" --custom-properties \'{customProperties}\'', checks=[ + self.check('name', '{name}'), + self.check('title', 'test deployment'), + self.check('server.runtimeUri[0]', 'https://example.com'), + self.check('customProperties.{}'.format(metadata_name), True), + self.check('definitionId', '/workspaces/default/apis/{api}/versions/{v}/definitions/{d}'), + self.check('environmentId', '/workspaces/default/environments/{e}'), + self.check('description', 'deployment description'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + @ApicDeploymentPreparer() + def test_deployment_show(self): + self.cmd('az apic api deployment show -g {rg} -n {s} --api-id {api} --deployment-id {dep}', checks=[ + self.check('name', '{dep}'), + self.check('title', 'test deployment'), + self.check('server.runtimeUri[0]', 'https://example.com'), + self.check('customProperties', {}), + self.check('definitionId', '/workspaces/default/apis/{api}/versions/{v}/definitions/{d}'), + self.check('environmentId', '/workspaces/default/environments/{e}'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + @ApicDeploymentPreparer(parameter_name='deployment_id1') + @ApicDeploymentPreparer(parameter_name='deployment_id2') + def test_deployment_list(self, deployment_id1, deployment_id2): + self.cmd('az apic api deployment list -g {rg} -n {s} --api-id {api}', checks=[ + self.check('length(@)', 2), + self.check('[0].name', deployment_id1), + self.check('[1].name', deployment_id2), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + @ApicDeploymentPreparer(parameter_name='deployment_id1') + @ApicDeploymentPreparer(parameter_name='deployment_id2') + def test_deployment_list_with_all_optional_params(self, deployment_id1): + self.kwargs.update({ + 'deployment_id': deployment_id1 + }) + self.cmd('az apic api deployment list -g {rg} -n {s} --api-id {api} --filter "name eq \'{deployment_id}\'"', checks=[ + self.check('length(@)', 1), + self.check('[0].name', deployment_id1) + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + @ApicDeploymentPreparer() + def test_deployment_update(self): + self.cmd('az apic api deployment update -g {rg} -n {s} --api-id {api} --deployment-id {dep} --title "updated deployment"', checks=[ + self.check('title', 'updated deployment'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + @ApicDeploymentPreparer() + @ApicMetadataPreparer() + def test_deployment_update_with_all_optional_params(self, metadata_name): + self.kwargs.update({ + 'server': '{"runtimeUri":["https://example2.com"]}', + 'customProperties': '{{"{}":true}}'.format(metadata_name), + }) + self.cmd('az apic api deployment update -g {rg} -n {s} --api-id {api} --definition-id /workspaces/default/apis/{api}/versions/{v}/definitions/{d} --environment-id /workspaces/default/environments/{e} --deployment-id {dep} --title "updated deployment" --server \'{server}\' --description "deployment description" --custom-properties \'{customProperties}\'', checks=[ + self.check('title', 'updated deployment'), + self.check('server.runtimeUri[0]', 'https://example2.com'), + self.check('customProperties.{}'.format(metadata_name), True), + self.check('definitionId', '/workspaces/default/apis/{api}/versions/{v}/definitions/{d}'), + self.check('environmentId', '/workspaces/default/environments/{e}'), + self.check('description', 'deployment description'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + @ApicDeploymentPreparer() + def test_deployment_delete(self): + self.cmd('az apic api deployment delete -g {rg} -n {s} --api-id {api} --deployment-id {dep} --yes') + self.cmd('az apic api deployment show -g {rg} -n {s} --api-id {api} --deployment-id {dep}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + def test_examples_create_deployment(self): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24), + 'server': '{"runtimeUri":["https://example.com"]}', + }) + self.cmd('az apic api deployment create -g {rg} -n {s} --deployment-id {name} --title "Production deployment" --description "Public cloud production deployment." --api-id {api} --environment-id "/workspaces/default/environments/{e}" --definition-id "/workspaces/default/apis/{api}/versions/{v}/definitions/{d}" --server \'{server}\'', checks=[ + self.check('name', '{name}'), + self.check('title', 'Production deployment'), + self.check('description', 'Public cloud production deployment.'), + self.check('server.runtimeUri[0]', 'https://example.com'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + @ApicDeploymentPreparer() + def test_examples_delete_api_deployment(self): + self.cmd('az apic api deployment delete -g {rg} -n {s} --deployment-id {dep} --api-id {api} --yes') + self.cmd('az apic api deployment show -g {rg} -n {s} --api-id {api} --deployment-id {dep}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + @ApicDeploymentPreparer(parameter_name='deployment_id1') + @ApicDeploymentPreparer(parameter_name='deployment_id2') + def test_examples_list_api_deployments(self, deployment_id1, deployment_id2): + self.cmd('az apic api deployment list -g {rg} -n {s} --api-id {api}', checks=[ + self.check('length(@)', 2), + self.check('[0].name', deployment_id1), + self.check('[1].name', deployment_id2), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + @ApicDeploymentPreparer() + def test_examples_show_api_deployment_details(self): + self.cmd('az apic api deployment show -g {rg} -n {s} --deployment-id {dep} --api-id {api}', checks=[ + self.check('name', '{dep}'), + self.check('title', 'test deployment'), + self.check('server.runtimeUri[0]', 'https://example.com'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + @ApicDefinitionPreparer() + @ApicDeploymentPreparer() + def test_examples_update_api_deployment(self): + self.cmd('az apic api deployment update -g {rg} -n {s} --deployment-id {dep} --title "Production deployment" --api-id {api}', checks=[ + self.check('title', 'Production deployment'), + ]) \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/test_environment_commands.py b/src/apic-extension/azext_apic_extension/tests/latest/test_environment_commands.py new file mode 100644 index 00000000000..27931865e01 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/test_environment_commands.py @@ -0,0 +1,163 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer +from .utils import ApicServicePreparer, ApicEnvironmentPreparer, ApicMetadataPreparer +from .constants import TEST_REGION + +class EnvironmentCommandsTests(ScenarioTest): + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_environment_create(self): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24) + }) + self.cmd('az apic environment create -g {rg} -n {s} --environment-id {name} --title "test environment" --type testing', checks=[ + self.check('name', '{name}'), + self.check('kind', 'testing'), + self.check('title', 'test environment'), + self.check('customProperties', '{{}}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_environment_create_with_all_optional_params(self, metadata_name): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24), + 'custom_properties': '{{"{}":true}}'.format(metadata_name), + 'onboarding': "{developerPortalUri:['https://developer.contoso.com'],instructions:'instructions markdown'}", + 'server': "{type:'Azure API Management',managementPortalUri:['example.com']}" + }) + self.cmd('az apic environment create -g {rg} -n {s} --environment-id {name} --title "test environment" --type testing --custom-properties \'{custom_properties}\' --description "environment description" --onboarding "{onboarding}" --server "{server}"', checks=[ + self.check('customProperties.{}'.format(metadata_name), True), + self.check('description', 'environment description'), + self.check('kind', 'testing'), + self.check('name', '{name}'), + self.check('onboarding.developerPortalUri[0]', 'https://developer.contoso.com'), + self.check('onboarding.instructions', 'instructions markdown'), + self.check('server.managementPortalUri[0]', 'example.com'), + self.check('server.type', 'Azure API Management'), + self.check('title', 'test environment'), + self.check('type', 'Microsoft.ApiCenter/services/workspaces/environments') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + def test_environment_show(self): + self.cmd('az apic environment show -g {rg} -n {s} --environment-id {e}', checks=[ + self.check('name', '{e}'), + self.check('kind', 'testing'), + self.check('title', 'test environment'), + self.check('customProperties', '{{}}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer(parameter_name='environment_name1') + @ApicEnvironmentPreparer(parameter_name='environment_name2') + def test_environment_list(self, environment_name1, environment_name2): + self.cmd('az apic environment list -g {rg} -n {s}', checks=[ + self.check('length(@)', 2), + self.check('@[0].name', environment_name1), + self.check('@[1].name', environment_name2) + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer(parameter_name='environment_name1') + @ApicEnvironmentPreparer(parameter_name='environment_name2') + def test_environment_list_with_all_optional_params(self, environment_name1): + self.kwargs.update({ + 'environment_name': environment_name1 + }) + self.cmd('az apic environment list -g {rg} -n {s} --filter "name eq \'{environment_name}\'"', checks=[ + self.check('length(@)', 1), + self.check('@[0].name', environment_name1) + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + def test_environment_update(self): + self.cmd('az apic environment update -g {rg} -n {s} --environment-id {e} --title "test environment 2"', checks=[ + self.check('title', 'test environment 2') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + @ApicEnvironmentPreparer() + def test_environment_update_with_all_optional_params(self, metadata_name): + self.kwargs.update({ + 'custom_properties': '{{"{}":true}}'.format(metadata_name), + 'onboarding': "{developerPortalUri:['https://developer.contoso.com'],instructions:'instructions markdown'}", + 'server': "{type:'Azure API Management',managementPortalUri:['example.com']}" + }) + self.cmd('az apic environment update -g {rg} -n {s} --environment-id {e} --title "test environment 2" --type testing --custom-properties \'{custom_properties}\' --description "environment description" --onboarding "{onboarding}" --server "{server}"', checks=[ + self.check('customProperties.{}'.format(metadata_name), True), + self.check('description', 'environment description'), + self.check('kind', 'testing'), + self.check('onboarding.developerPortalUri[0]', 'https://developer.contoso.com'), + self.check('onboarding.instructions', 'instructions markdown'), + self.check('server.managementPortalUri[0]', 'example.com'), + self.check('server.type', 'Azure API Management'), + self.check('title', 'test environment 2'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + def test_environment_delete(self): + self.cmd('az apic environment delete -g {rg} -n {s} --environment-id {e} --yes') + self.cmd('az apic environment show -g {rg} -n {s} --environment-id {e}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_examples_create_environment(self): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24) + }) + self.cmd('az apic environment create -g {rg} -n {s} --environment-id {name} --title "Public cloud" --type "development"', checks=[ + self.check('name', '{name}'), + self.check('title', 'Public cloud'), + self.check('kind', 'development') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + def test_examples_delete_environment(self): + self.cmd('az apic environment delete -g {rg} -n {s} --environment-id {e} --yes') + self.cmd('az apic environment show -g {rg} -n {s} --environment-id {e}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer(parameter_name='environment_name1') + @ApicEnvironmentPreparer(parameter_name='environment_name2') + def test_examples_list_environments(self, environment_name1, environment_name2): + self.cmd('az apic environment list -g {rg} -n {s}', checks=[ + self.check('length(@)', 2), + self.check('@[0].name', environment_name1), + self.check('@[1].name', environment_name2) + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + def test_examples_show_environment_details(self): + self.cmd('az apic environment show -g {rg} -n {s} --environment-id {e}', checks=[ + self.check('name', '{e}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + def test_examples_update_environment(self): + self.cmd('az apic environment update -g {rg} -n {s} --environment-id {e} --title "Public cloud"', checks=[ + self.check('title', 'Public cloud') + ]) diff --git a/src/apic-extension/azext_apic_extension/tests/latest/test_metadata_commands.py b/src/apic-extension/azext_apic_extension/tests/latest/test_metadata_commands.py new file mode 100644 index 00000000000..d482af7754a --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/test_metadata_commands.py @@ -0,0 +1,242 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import json +import os +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer +from .utils import ApicServicePreparer, ApicMetadataPreparer +from .constants import TEST_REGION + +current_dir = os.path.dirname(os.path.realpath(__file__)) +test_assets_dir = os.path.join(current_dir, 'test_assets') + +class MetadataCommandsTests(ScenarioTest): + + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_metadata_create(self): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24), + 'schema': '{"type":"boolean", "title":"Public Facing"}', + 'assignments': '[{entity:api,required:true,deprecated:false}]' + }) + self.cmd('az apic metadata create -g {rg} -n {s} --metadata-name {name} --schema \'{schema}\' --assignments \'{assignments}\'', checks=[ + self.check('name', '{name}'), + self.check('assignedTo[0].entity', 'api'), + self.check('assignedTo[0].required', True), + self.check('assignedTo[0].deprecated', False), + self.check('schema', '{schema}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_metadata_create_with_file(self): + schema_file = os.path.join(test_assets_dir, 'metadata_schema.json') + with open(schema_file, 'r') as f: + expected_result = f.read() + + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24), + 'assignments': '[{entity:api,required:true,deprecated:false}]', + 'schema_file': schema_file, + 'expected_result': expected_result + }) + + + self.cmd('az apic metadata create -g {rg} -n {s} --metadata-name {name} --schema "@{schema_file}" --assignments \'{assignments}\'', checks=[ + self.check('name', '{name}'), + self.check('assignedTo[0].entity', 'api'), + self.check('assignedTo[0].required', True), + self.check('assignedTo[0].deprecated', False), + self.check('schema', '{expected_result}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_metadata_show(self): + self.cmd('az apic metadata show -g {rg} -n {s} --metadata-name {m}', checks=[ + self.check('name', '{m}'), + self.check('assignedTo[0].entity', 'api'), + self.check('assignedTo[0].required', True), + self.check('assignedTo[0].deprecated', False), + self.check('schema', '{{"type":"boolean", "title":"Public Facing"}}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer(parameter_name='metadata_name1') + @ApicMetadataPreparer(parameter_name='metadata_name2') + def test_metadata_list(self, metadata_name1, metadata_name2): + self.cmd('az apic metadata list -g {rg} -n {s}', checks=[ + self.check('length(@)', 2), + self.check('@[0].name', metadata_name1), + self.check('@[1].name', metadata_name2) + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer(parameter_name='metadata_name1') + @ApicMetadataPreparer(parameter_name='metadata_name2') + def test_metadata_list_with_all_optional_params(self, metadata_name1): + self.kwargs.update({ + 'metadata_name': metadata_name1 + }) + self.cmd('az apic metadata list -g {rg} -n {s} --filter "name eq \'{metadata_name}\'"', checks=[ + self.check('length(@)', 1), + self.check('@[0].name', metadata_name1), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_metadata_update(self): + self.kwargs.update({ + 'schema': '{"type":"boolean", "title":"Updated Title"}', + }) + self.cmd('az apic metadata update -g {rg} -n {s} --metadata-name {m} --schema \'{schema}\'', checks=[ + self.check('name', '{m}'), + self.check('schema', '{schema}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_metadata_delete(self): + self.cmd('az apic metadata delete -g {rg} -n {s} --metadata-name {m} --yes') + self.cmd('az apic metadata show -g {rg} -n {s} --metadata-name {m}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_metadata_export(self): + self.kwargs.update({ + 'filename': 'metadata_export.json' + }) + self.cmd('az apic metadata export -g {rg} -n {s} --assignments api --file-name {filename}') + + try: + with open(self.kwargs['filename'], 'r') as f: + data = json.load(f) + + assert 'properties' in data, "properties not found in the exported file" + assert 'customProperties' in data['properties'], "customProperties not found in the exported file" + assert 'properties' in data['properties']['customProperties'], "properties not found in customProperties" + assert len(data['properties']['customProperties']['properties']) == 1, "The number of properties in customProperties does not match the expected number" + finally: + os.remove(self.kwargs['filename']) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_examples_create_metadata_1(self): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24), + 'schema': '{"type":"string", "title":"First name", "pattern": "^[a-zA-Z0-9]+$"}', + 'assignments': '[{entity:api,required:true,deprecated:false}]' + }) + self.cmd('az apic metadata create --resource-group {rg} --service-name {s} --metadata-name {name} --schema \'{schema}\' --assignments \'{assignments}\'', checks=[ + self.check('name', '{name}'), + self.check('schema', '{schema}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_examples_create_metadata_2(self): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24), + 'schema': '{"type":"string","title":"testregion","oneOf":[{"const":"Region1","description":""},{"const":"Region2","description":""},{"const":"Region3","description":""}]}', + 'assignments': '[{entity:api,required:true,deprecated:false},{entity:environment,required:true,deprecated:false}]' + }) + self.cmd('az apic metadata create --resource-group {rg} --service-name {s} --metadata-name {name} --schema \'{schema}\' --assignments \'{assignments}\'', checks=[ + self.check('name', '{name}'), + self.check('schema', '{schema}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_examples_delete_metadata_1(self): + self.cmd('az apic metadata delete --resource-group {rg} --service-name {s} --metadata-name {m} --yes') + self.cmd('az apic metadata show --resource-group {rg} --service-name {s} --metadata-name {m}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_examples_delete_metadata_2(self): + self.cmd('az apic metadata delete -g {rg} -n {s} --metadata-name {m} --yes') + self.cmd('az apic metadata show -g {rg} -n {s} --metadata-name {m}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_examples_export_metadata_assigned_to_api(self): + self.kwargs.update({ + 'filename': 'test_examples_export_metadata_assigned_to_api.json' + }) + self.cmd('az apic metadata export -g {rg} -n {s} --assignments api --file-name {filename}') + + os.remove(self.kwargs['filename']) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_examples_export_metadata_assigned_to_deployment(self): + self.kwargs.update({ + 'filename': 'test_examples_export_metadata_assigned_to_deployment.json' + }) + self.cmd('az apic metadata export -g {rg} -n {s} --assignments deployment --file-name {filename}') + + os.remove(self.kwargs['filename']) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_examples_export_metadata_assigned_to_environment(self): + self.kwargs.update({ + 'filename': 'test_examples_export_metadata_assigned_to_environment.json' + }) + self.cmd('az apic metadata export -g {rg} -n {s} --assignments environment --file-name {filename}') + + os.remove(self.kwargs['filename']) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer(parameter_name='metadata_name1') + @ApicMetadataPreparer(parameter_name='metadata_name2') + def test_examples_list_metadata(self, metadata_name1, metadata_name2): + self.cmd('az apic metadata list -g {rg} -n {s}', checks=[ + self.check('length(@)', 2), + self.check('@[0].name', metadata_name1), + self.check('@[1].name', metadata_name2) + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_examples_show_metadata_1(self): + self.cmd('az apic metadata show -g {rg} -n {s} --metadata-name {m}', checks=[ + self.check('name', '{m}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_examples_show_metadata_2(self): + self.cmd('az apic metadata show --resource-group {rg} --service-name {s} --metadata-name {m}', checks=[ + self.check('name', '{m}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicMetadataPreparer() + def test_examples_update_metadata(self): + self.kwargs.update({ + 'schema': '{"type": "string", "title":"Last name", "pattern": "^[a-zA-Z0-9]+$"}' + }) + self.cmd('az apic metadata update --resource-group {rg} --service-name {s} --metadata-name {m} --schema \'{schema}\'', checks=[ + self.check('name', '{m}'), + self.check('schema', '{schema}') + ]) \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/test_register_command.py b/src/apic-extension/azext_apic_extension/tests/latest/test_register_command.py new file mode 100644 index 00000000000..c4816746b37 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/test_register_command.py @@ -0,0 +1,147 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os + +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer +from .utils import ApicServicePreparer, ApicEnvironmentPreparer +from .constants import TEST_REGION + +current_dir = os.path.dirname(os.path.realpath(__file__)) +test_assets_dir = os.path.join(current_dir, 'test_assets') + +class RegisterCommandTests(ScenarioTest): + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_register_with_yml_spec(self): + self.kwargs.update({ + 'spec_file': os.path.join(test_assets_dir, 'petstore.yaml') + }) + self.cmd('az apic api register -g {rg} -n {s} -l "{spec_file}"') + + # verify command results + self.cmd('az apic api show -g {rg} -n {s} --api-id swaggerpetstore', checks=[ + self.check('description', 'API Description'), # default value when spec does not have description + self.check('summary', 'API Description'), # default value when spec does not have summary + self.check('kind', 'rest'), + self.check('contacts', []), + self.check('customProperties', {}), + self.check('kind', 'rest'), + self.check('license.name', 'MIT'), + self.check('lifecycleStage', 'design'), # default value assigned by APIC + self.check('name', 'swaggerpetstore'), + self.check('title', 'Swagger Petstore') + ]) + + self.cmd('az apic api version show -g {rg} -n {s} --api-id swaggerpetstore --version-id 1-0-0', checks=[ + self.check('lifecycleStage', 'design'), # hard coded now + self.check('name', '1-0-0'), + self.check('title', '1-0-0'), + ]) + + self.cmd('az apic api definition show -g {rg} -n {s} --api-id swaggerpetstore --version-id 1-0-0 --definition-id openapi', checks=[ + self.check('description', 'API Description'), # default value when spec does not have description + self.check('name', 'openapi'), # hard coded when spec is swagger or openapi + self.check('specification.name', 'openapi'), + self.check('specification.version', '3-0-0'), + self.check('title', 'openapi'), + ]) + + self.cmd('az apic api definition export-specification -g {rg} -n {s} --api-id swaggerpetstore --version-id 1-0-0 --definition-id openapi --file-name test_register_with_yml_spec.yml') + + try: + exported_file_path = "test_register_with_yml_spec.yml" + with open(exported_file_path, 'r') as file: + exported_content = file.read() + + input_file_path = self.kwargs['spec_file'] + with open(input_file_path, 'r') as file: + input_content = file.read() + + assert exported_content == input_content, "The exported content is not the same as the input file." + finally: + os.remove(exported_file_path) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_register_with_json_spec(self): + self.kwargs.update({ + 'spec_file': os.path.join(test_assets_dir, 'petstore.json') + }) + self.cmd('az apic api register -g {rg} -n {s} -l "{spec_file}"') + + # verify command results + self.cmd('az apic api show -g {rg} -n {s} --api-id swaggerpetstore-openapi30', checks=[ + self.check('contacts[0].email', 'apiteam@swagger.io'), + self.check('description', 'This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we\'ve switched to the design first approach!\nYou can now help us improve the API whether it\'s by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)'), + self.check('kind', 'rest'), + self.check('license.name', 'Apache 2.0'), + self.check('license.url', 'http://www.apache.org/licenses/LICENSE-2.0.html'), + self.check('lifecycleStage', 'design'), + self.check('name', 'swaggerpetstore-openapi30'), + self.check('summary', 'This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we\'ve'), + self.check('title', 'Swagger Petstore - OpenAPI 3.0'), + ]) + + self.cmd('az apic api version show -g {rg} -n {s} --api-id swaggerpetstore-openapi30 --version-id 1-0-19', checks=[ + self.check('lifecycleStage', 'design'), + self.check('name', '1-0-19'), + self.check('title', '1-0-19'), + ]) + + self.cmd('az apic api definition show -g {rg} -n {s} --api-id swaggerpetstore-openapi30 --version-id 1-0-19 --definition-id openapi', checks=[ + self.check('description', 'This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we\'ve switched to the design first approach!\nYou can now help us improve the API whether it\'s by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)'), + self.check('name', 'openapi'), + self.check('specification.name', 'openapi'), + self.check('specification.version', '3-0-2'), + self.check('title', 'openapi'), + ]) + + self.cmd('az apic api definition export-specification -g {rg} -n {s} --api-id swaggerpetstore-openapi30 --version-id 1-0-19 --definition-id openapi --file-name test_register_with_json_spec.yml') + + try: + exported_file_path = "test_register_with_json_spec.yml" + with open(exported_file_path, 'r') as file: + exported_content = file.read() + + input_file_path = self.kwargs['spec_file'] + with open(input_file_path, 'r') as file: + input_content = file.read() + + assert exported_content == input_content, "The exported content is not the same as the input file." + finally: + os.remove(exported_file_path) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_register_with_long_openapi_description(self): + self.kwargs.update({ + 'spec_file': os.path.join(test_assets_dir, 'spec_with_long_description.json') + }) + self.cmd('az apic api register -g {rg} -n {s} -l "{spec_file}"') + + # verify command results + self.cmd('az apic api show -g {rg} -n {s} --api-id swaggerpetstore-openapi30', checks=[ + self.check('description', 'This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we\'ve switched to the design first approach!\nYou can now help us improve the API whether it\'s by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we\'ve switched to the design first approach!\nYou can now help us improve the API whether it\'s by making changes to the') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + def test_examples_register_with_json_spec(self): + self.kwargs.update({ + 'spec_file': os.path.join(test_assets_dir, 'petstore.json') + }) + self.cmd('az apic api register -g {rg} -n {s} --api-location "{spec_file}" --environment-id {e}') + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicEnvironmentPreparer() + def test_examples_register_with_yml_spec(self): + self.kwargs.update({ + 'spec_file': os.path.join(test_assets_dir, 'petstore.yml') + }) + self.cmd('az apic api register -g {rg} -n {s} --api-location "{spec_file}" --environment-id {e}') diff --git a/src/apic-extension/azext_apic_extension/tests/latest/test_service_commands.py b/src/apic-extension/azext_apic_extension/tests/latest/test_service_commands.py index aaf52cd2fcf..2d532e5759f 100644 --- a/src/apic-extension/azext_apic_extension/tests/latest/test_service_commands.py +++ b/src/apic-extension/azext_apic_extension/tests/latest/test_service_commands.py @@ -3,38 +3,248 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- +import time +import unittest + from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer from .utils import ApicServicePreparer +from .constants import TEST_REGION class ServiceCommandsTests(ScenarioTest): - @ResourceGroupPreparer(name_prefix="clirg", location='eastus', random_name_length=32) + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) def test_create_service(self, resource_group): self.kwargs.update({ 'name': self.create_random_name(prefix='cli', length=24), 'rg': resource_group }) - self.cmd('az apic service create -g {rg} --name {name}', checks=[ + self.cmd('az apic create -g {rg} --name {name}', checks=[ self.check('name', '{name}'), - self.check('resourceGroup', '{rg}') + self.check('resourceGroup', '{rg}'), + self.check('sku.name', 'Free') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + def test_create_service_multiple_times(self, resource_group): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24), + 'rg': resource_group + }) + self.cmd('az apic create -g {rg} --name {name}', checks=[ + self.check('name', '{name}'), + self.check('resourceGroup', '{rg}'), + self.check('sku.name', 'Free') + ]) + self.cmd('az apic create -g {rg} --name {name}', checks=[ + self.check('name', '{name}'), + self.check('resourceGroup', '{rg}'), + self.check('sku.name', 'Free') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + def test_create_service_with_all_optional_params(self, resource_group): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24), + 'rg': resource_group + }) + self.cmd('az apic create -g {rg} --name {name} --location westeurope --tags \'{{test:value}}\' --identity \'{{type:SystemAssigned}}\'', checks=[ + self.check('name', '{name}'), + self.check('resourceGroup', '{rg}'), + self.check('identity.type', 'SystemAssigned'), + self.check('location', 'westeurope'), + self.check('tags.test', 'value'), + self.check('sku.name', 'Free') ]) - @ResourceGroupPreparer(name_prefix="clirg", location='eastus', random_name_length=32) + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) @ApicServicePreparer() def test_show_service(self): - self.cmd('az apic service show -g {rg} -s {s}', checks=[ + if self.is_live: + time.sleep(60) # Wait for service to finish provisioning, so dataApiHostname will be provided + self.cmd('az apic show -g {rg} -n {s}', checks=[ self.check('name', '{s}'), - self.check('resourceGroup', '{rg}') + self.check('resourceGroup', '{rg}'), + self.check('dataApiHostname', '{s}.data.eastus.azure-apicenter.ms'), + self.check('sku.name', 'Free') + ]) + + @unittest.skip('The Control Plane API has bug') + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer(parameter_name='service_name1') + @ApicServicePreparer(parameter_name='service_name2') + def test_list_service(self, service_name1, service_name2): + self.cmd('az apic list', checks=[ + self.check('length(@)', 2), + self.check('@[0].name', service_name1), + self.check('@[1].name', service_name2) ]) - @ResourceGroupPreparer(name_prefix="clirg", location='eastus', random_name_length=32) + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_list_service_in_rg(self, service_name): + self.cmd('az apic list -g {rg}', checks=[ + self.check('length(@)', 1), + self.check('@[0].name', service_name), + self.check('@[0].sku.name', 'Free') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) @ApicServicePreparer() def test_update_service(self): - self.cmd('az apic service update -g {rg} -s {s} --tags "{{test:value}}"', checks=[ + self.cmd('az apic update -g {rg} -n {s} --tags "{{test:value}}"', checks=[ self.check('tags.test', 'value') ]) - @ResourceGroupPreparer(name_prefix="clirg", location='eastus', random_name_length=32) + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_update_service_with_all_optional_params(self): + self.cmd('az apic update -g {rg} -n {s} --tags "{{test:value}}" --identity "{{type:SystemAssigned}}"', checks=[ + self.check('tags.test', 'value'), + self.check('identity.type', 'SystemAssigned') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) @ApicServicePreparer() def test_delete_service(self): - self.cmd('az apic service delete -g {rg} -s {s}a --yes') \ No newline at end of file + self.cmd('az apic delete -g {rg} -n {s} --yes') + self.cmd('az apic show -g {rg} -n {s}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer(enable_system_assigned_identity=True) + def test_import_from_apim(self): + self.kwargs.update({ + 'apim_name': self.create_random_name(prefix='cli', length=24) + }) + self._prepare_apim() + # Import from APIM + self.cmd('az apic import-from-apim -g {rg} --service-name {s} --apim-name {apim_name} --apim-apis *') + + # Check result + self.cmd('az apic api list -g {rg} -n {s}', checks=[ + self.check('length(@)', 2) + ]) + + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer(enable_system_assigned_identity=True) + def test_import_from_apim_for_one_api(self): + self.kwargs.update({ + 'apim_name': self.create_random_name(prefix='cli', length=24) + }) + self._prepare_apim() + # Import from APIM + self.cmd('az apic import-from-apim -g {rg} --service-name {s} --apim-name {apim_name} --apim-apis echo') + + # Check result + self.cmd('az apic api list -g {rg} -n {s}', checks=[ + self.check('length(@)', 1), + self.check('@[0].title', 'Echo API') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer(enable_system_assigned_identity=True) + def test_import_from_apim_for_multiple_apis(self): + self.kwargs.update({ + 'apim_name': self.create_random_name(prefix='cli', length=24) + }) + self._prepare_apim() + # Import from APIM + self.cmd('az apic import-from-apim -g {rg} --service-name {s} --apim-name {apim_name} --apim-apis [echo,foo]') + + # Check result + self.cmd('az apic api list -g {rg} -n {s}', checks=[ + self.check('length(@)', 2), + self.check('contains(@[*].title, `Echo API`)', True), + self.check('contains(@[*].title, `Foo API`)', True) + ]) + + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + def test_examples_create_service_1(self, resource_group): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24), + 'rg': resource_group + }) + self.cmd('az apic create -g {rg} -n {name} -l eastus', checks=[ + self.check('name', '{name}'), + self.check('resourceGroup', '{rg}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + def test_examples_create_service_2(self, resource_group): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24), + 'rg': resource_group + }) + self.cmd('az apic create --resource-group {rg} --name {name} --location eastus', checks=[ + self.check('name', '{name}'), + self.check('resourceGroup', '{rg}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_examples_delete_service(self): + self.cmd('az apic delete -n {s} -g {rg} --yes') + self.cmd('az apic show -g {rg} -n {s}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer(enable_system_assigned_identity=True) + def test_examples_import_all_apis_from_apim(self): + self.kwargs.update({ + 'apim_name': self.create_random_name(prefix='cli', length=24) + }) + self._prepare_apim() + self.cmd('az apic import-from-apim -g {rg} --service-name {s} --apim-name {apim_name} --apim-apis *') + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer(enable_system_assigned_identity=True) + def test_examples_import_selected_apis_from_apim(self): + self.kwargs.update({ + 'apim_name': self.create_random_name(prefix='cli', length=24) + }) + self._prepare_apim() + self.cmd('az apic import-from-apim -g {rg} --service-name {s} --apim-name {apim_name} --apim-apis [echo,foo]') + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_examples_list_services_in_resource_group(self): + self.cmd('az apic list -g {rg}', checks=[ + self.check('length(@)', 1), + self.check('@[0].name', '{s}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_examples_show_service_details(self): + self.cmd('az apic show -g {rg} -n {s}', checks=[ + self.check('name', '{s}'), + self.check('resourceGroup', '{rg}') + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + def test_examples_update_service_details(self): + self.cmd('az apic update -g {rg} -n {s}') + + def _prepare_apim(self): + if self.is_live: + # Only setup APIM in live mode + # Get system assigned identity id for API Center + apic_service = self.cmd('az apic show -g {rg} -n {s}').get_output_in_json() + self.kwargs.update({ + 'identity_id': apic_service['identity']['principalId'] + }) + # Create APIM service + apim_service = self.cmd('az apim create -g {rg} --name {apim_name} --publisher-name test --publisher-email test@example.com --sku-name Consumption').get_output_in_json() + # Add echo api + self.cmd('az apim api create -g {rg} --service-name {apim_name} --api-id echo --display-name "Echo API" --path "/echo"') + self.cmd('az apim api operation create -g {rg} --service-name {apim_name} --api-id echo --url-template "/echo" --method "GET" --display-name "GetOperation"') + # Add foo api + self.cmd('az apim api create -g {rg} --service-name {apim_name} --api-id foo --display-name "Foo API" --path "/foo"') + self.cmd('az apim api operation create -g {rg} --service-name {apim_name} --api-id foo --url-template "/foo" --method "GET" --display-name "GetOperation"') + apim_id = apim_service['id'] + self.kwargs.update({ + 'apim_id': apim_id + }) + # Grant system assigned identity of API Center access to APIM + self.cmd('az role assignment create --role "API Management Service Reader Role" --assignee-object-id {identity_id} --assignee-principal-type ServicePrincipal --scope {apim_id}') diff --git a/src/apic-extension/azext_apic_extension/tests/latest/test_version_commands.py b/src/apic-extension/azext_apic_extension/tests/latest/test_version_commands.py new file mode 100644 index 00000000000..735f19cef04 --- /dev/null +++ b/src/apic-extension/azext_apic_extension/tests/latest/test_version_commands.py @@ -0,0 +1,128 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer +from .utils import ApicServicePreparer, ApicApiPreparer, ApicVersionPreparer +from .constants import TEST_REGION + +class VersionCommandsTests(ScenarioTest): + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + def test_version_create(self): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24) + }) + self.cmd('az apic api version create -g {rg} -n {s} --api-id {api} --version-id {name} --lifecycle-stage production --title "v1.0.0"', checks=[ + self.check('lifecycleStage', 'production'), + self.check('name', '{name}'), + self.check('title', 'v1.0.0'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + def test_version_show(self): + self.cmd('az apic api version show -g {rg} -n {s} --api-id {api} --version-id {v}', checks=[ + self.check('lifecycleStage', 'production'), + self.check('title', 'v1.0.0'), + self.check('name', '{v}'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer(parameter_name='version_id1') + @ApicVersionPreparer(parameter_name='version_id2') + def test_version_list(self, version_id1, version_id2): + self.cmd('az apic api version list -g {rg} -n {s} --api-id {api}', checks=[ + self.check('length(@)', 2), + self.check('@[0].name', version_id1), + self.check('@[1].name', version_id2) + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer(parameter_name='version_id1') + @ApicVersionPreparer(parameter_name='version_id2') + def test_version_list_with_all_optional_params(self, version_id1): + self.kwargs.update({ + 'version_id': version_id1 + }) + self.cmd('az apic api version list -g {rg} -n {s} --api-id {api} --filter "name eq \'{version_id}\'"', checks=[ + self.check('length(@)', 1), + self.check('@[0].name', version_id1) + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + def test_version_update(self): + self.cmd('az apic api version update -g {rg} -n {s} --api-id {api} --version-id {v} --title "v1.0.1" --lifecycle-stage development', checks=[ + self.check('title', 'v1.0.1'), + self.check('lifecycleStage', 'development'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + def test_version_delete(self): + self.cmd('az apic api version delete -g {rg} -n {s} --api-id {api} --version-id {v} --yes') + self.cmd('az apic api version show -g {rg} -n {s} --api-id {api} --version-id {v}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + def test_examples_create_api_version(self): + self.kwargs.update({ + 'name': self.create_random_name(prefix='cli', length=24) + }) + self.cmd('az apic api version create -g {rg} -n {s} --api-id {api} --version-id {name} --title "2023-01-01" --lifecycle-stage production', checks=[ + self.check('name', '{name}'), + self.check('title', '2023-01-01'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + def test_examples_delete_api_version(self): + self.cmd('az apic api version delete -g {rg} -n {s} --api-id {api} --version-id {v} --yes') + self.cmd('az apic api version show -g {rg} -n {s} --api-id {api} --version-id {v}', expect_failure=True) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer(parameter_name='version_id1') + @ApicVersionPreparer(parameter_name='version_id2') + def test_examples_list_api_versions(self, version_id1, version_id2): + self.cmd('az apic api version list -g {rg} -n {s} --api-id {api}', checks=[ + self.check('length(@)', 2), + self.check('@[0].name', version_id1), + self.check('@[1].name', version_id2) + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + def test_examples_show_api_version_details(self): + self.cmd('az apic api version show -g {rg} -n {s} --api-id {api} --version-id {v}', checks=[ + self.check('name', '{v}'), + ]) + + @ResourceGroupPreparer(name_prefix="clirg", location=TEST_REGION, random_name_length=32) + @ApicServicePreparer() + @ApicApiPreparer() + @ApicVersionPreparer() + def test_examples_update_api_version(self): + self.cmd('az apic api version update -g {rg} -n {s} --api-id {api} --version-id {v} --title "2023-01-01"', checks=[ + self.check('title', '2023-01-01'), + ]) \ No newline at end of file diff --git a/src/apic-extension/azext_apic_extension/tests/latest/utils.py b/src/apic-extension/azext_apic_extension/tests/latest/utils.py index 0f38f1860b8..3f9dbb3c8e4 100644 --- a/src/apic-extension/azext_apic_extension/tests/latest/utils.py +++ b/src/apic-extension/azext_apic_extension/tests/latest/utils.py @@ -7,21 +7,29 @@ class ApicServicePreparer(NoTrafficRecordingPreparer, SingleValueReplacer): def __init__(self, name_prefix='clitest', length=24, - parameter_name='service_name', resource_group_parameter_name='resource_group', key='s'): + parameter_name='service_name', resource_group_parameter_name='resource_group', key='s', + enable_system_assigned_identity=False): super(ApicServicePreparer, self).__init__(name_prefix, length) self.cli_ctx = get_dummy_cli() self.resource_group_parameter_name = resource_group_parameter_name self.parameter_name = parameter_name + self.enable_system_assigned_identity = enable_system_assigned_identity self.key = key def create_resource(self, name, **kwargs): group = self._get_resource_group(**kwargs) - template = 'az apic service create --name {} -g {}' - print(template.format(name, group)) - self.live_only_execute(self.cli_ctx, template.format(name, group)) + template = 'az apic create --name {} -g {}' + + if self.enable_system_assigned_identity: + template += ' --identity \'{{type:SystemAssigned}}\'' + + cmd=template.format(name, group) + print(cmd) + self.live_only_execute(self.cli_ctx, cmd) self.test_class_instance.kwargs[self.key] = name + return {self.parameter_name: name} def remove_resource(self, name, **kwargs): @@ -35,3 +43,340 @@ def _get_resource_group(self, **kwargs): template = 'To create a API Center service a resource group is required. Please add ' \ 'decorator @{} in front of this preparer.' raise CliTestError(template.format(ResourceGroupPreparer.__name__)) + +class ApicMetadataPreparer(NoTrafficRecordingPreparer, SingleValueReplacer): + def __init__(self, name_prefix='clitest', length=24, + parameter_name='metadata_name', resource_group_parameter_name='resource_group', + apic_service_parameter_name='service_name', + schema='{"type":"boolean", "title":"Public Facing"}', + assignments='[{entity:api,required:true,deprecated:false},{entity:environment,required:true,deprecated:false},{entity:deployment,required:true,deprecated:false}]', + key='m'): + super(ApicMetadataPreparer, self).__init__(name_prefix, length) + self.cli_ctx = get_dummy_cli() + self.resource_group_parameter_name = resource_group_parameter_name + self.api_service_parameter_name = apic_service_parameter_name + self.parameter_name = parameter_name + self.schema = schema + self.assignments = assignments + self.key = key + + def create_resource(self, name, **kwargs): + group = self._get_resource_group(**kwargs) + service = self._get_apic_service(**kwargs) + + template = 'az apic metadata create -g {} -n {} --metadata-name {} --schema \'{}\' --assignments \'{}\'' + cmd = template.format(group, service, name, self.schema, self.assignments) + print(cmd) + self.live_only_execute(self.cli_ctx, cmd) + + self.test_class_instance.kwargs[self.key] = name + return {self.parameter_name: name} + + def remove_resource(self, name, **kwargs): + # ResourceGroupPreparer will delete everything + pass + + def _get_resource_group(self, **kwargs): + try: + return kwargs.get(self.resource_group_parameter_name) + except KeyError: + template = 'To create an API Center metadata a resource group is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ResourceGroupPreparer.__name__)) + + def _get_apic_service(self, **kwargs): + try: + return kwargs.get(self.api_service_parameter_name) + except KeyError: + template = 'To create an API Center metadata a API Center service is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ApicServicePreparer.__name__)) + +class ApicEnvironmentPreparer(NoTrafficRecordingPreparer, SingleValueReplacer): + def __init__(self, name_prefix='clitest', length=24, + parameter_name='environment_id', resource_group_parameter_name='resource_group', + apic_service_parameter_name='service_name', key='e'): + super(ApicEnvironmentPreparer, self).__init__(name_prefix, length) + self.cli_ctx = get_dummy_cli() + self.resource_group_parameter_name = resource_group_parameter_name + self.api_service_parameter_name = apic_service_parameter_name + self.parameter_name = parameter_name + self.key = key + + def create_resource(self, name, **kwargs): + group = self._get_resource_group(**kwargs) + service = self._get_apic_service(**kwargs) + + template = 'az apic environment create -g {} -n {} --environment-id {} --title "test environment" --type testing' + cmd = template.format(group, service, name) + print(cmd) + self.live_only_execute(self.cli_ctx, cmd) + + self.test_class_instance.kwargs[self.key] = name + return {self.parameter_name: name} + + def remove_resource(self, name, **kwargs): + # ResourceGroupPreparer will delete everything + pass + + def _get_resource_group(self, **kwargs): + try: + return kwargs.get(self.resource_group_parameter_name) + except KeyError: + template = 'To create an API Center environment a resource group is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ResourceGroupPreparer.__name__)) + + def _get_apic_service(self, **kwargs): + try: + return kwargs.get(self.api_service_parameter_name) + except KeyError: + template = 'To create an API Center environment an API Center service is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ApicServicePreparer.__name__)) + +class ApicApiPreparer(NoTrafficRecordingPreparer, SingleValueReplacer): + def __init__(self, name_prefix='clitest', length=24, + parameter_name='api_id', resource_group_parameter_name='resource_group', + apic_service_parameter_name='service_name', key='api'): + super(ApicApiPreparer, self).__init__(name_prefix, length) + self.cli_ctx = get_dummy_cli() + self.resource_group_parameter_name = resource_group_parameter_name + self.api_service_parameter_name = apic_service_parameter_name + self.parameter_name = parameter_name + self.key = key + + def create_resource(self, name, **kwargs): + group = self._get_resource_group(**kwargs) + service = self._get_apic_service(**kwargs) + + template = 'az apic api create -g {} -n {} --api-id {} --title "Echo API" --type rest' + cmd = template.format(group, service, name) + print(cmd) + self.live_only_execute(self.cli_ctx, cmd) + + self.test_class_instance.kwargs[self.key] = name + return {self.parameter_name: name} + + def remove_resource(self, name, **kwargs): + # ResourceGroupPreparer will delete everything + pass + + def _get_resource_group(self, **kwargs): + try: + return kwargs.get(self.resource_group_parameter_name) + except KeyError: + template = 'To create an API Center API a resource group is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ResourceGroupPreparer.__name__)) + + def _get_apic_service(self, **kwargs): + try: + return kwargs.get(self.api_service_parameter_name) + except KeyError: + template = 'To create an API Center API an API Center service is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ApicServicePreparer.__name__)) + +class ApicVersionPreparer(NoTrafficRecordingPreparer, SingleValueReplacer): + def __init__(self, name_prefix='clitest', length=24, + parameter_name='version_id', resource_group_parameter_name='resource_group', + apic_service_parameter_name='service_name', apic_api_parameter_name='api_id', + key='v'): + super(ApicVersionPreparer, self).__init__(name_prefix, length) + self.cli_ctx = get_dummy_cli() + self.resource_group_parameter_name = resource_group_parameter_name + self.apic_service_parameter_name = apic_service_parameter_name + self.parameter_name = parameter_name + self.apic_api_parameter_name = apic_api_parameter_name + self.key = key + + def create_resource(self, name, **kwargs): + group = self._get_resource_group(**kwargs) + service = self._get_apic_service(**kwargs) + api = self._get_apic_api(**kwargs) + + template = 'az apic api version create -g {} -n {} --api-id {} --version-id {} --lifecycle-stage production --title "v1.0.0"' + cmd = template.format(group, service, api, name) + print(cmd) + self.live_only_execute(self.cli_ctx, cmd) + + self.test_class_instance.kwargs[self.key] = name + return {self.parameter_name: name} + + def remove_resource(self, name, **kwargs): + # ResourceGroupPreparer will delete everything + pass + + def _get_resource_group(self, **kwargs): + try: + return kwargs.get(self.resource_group_parameter_name) + except KeyError: + template = 'To create an API Center API a resource group is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ResourceGroupPreparer.__name__)) + + def _get_apic_service(self, **kwargs): + try: + return kwargs.get(self.apic_service_parameter_name) + except KeyError: + template = 'To create an API Center API an API Center service is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ApicServicePreparer.__name__)) + + def _get_apic_api(self, **kwargs): + try: + return kwargs.get(self.apic_api_parameter_name) + except KeyError: + template = 'To create an API Center Version an API Center API is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ApicApiPreparer.__name__)) + +class ApicDefinitionPreparer(NoTrafficRecordingPreparer, SingleValueReplacer): + def __init__(self, name_prefix='clitest', length=24, + parameter_name='definition_id', resource_group_parameter_name='resource_group', + apic_service_parameter_name='service_name', apic_api_parameter_name='api_id', + apic_version_parameter_name='version_id', key='d'): + super(ApicDefinitionPreparer, self).__init__(name_prefix, length) + self.cli_ctx = get_dummy_cli() + self.resource_group_parameter_name = resource_group_parameter_name + self.apic_service_parameter_name = apic_service_parameter_name + self.parameter_name = parameter_name + self.apic_api_parameter_name = apic_api_parameter_name + self.apic_version_parameter_name = apic_version_parameter_name + self.key = key + + def create_resource(self, name, **kwargs): + group = self._get_resource_group(**kwargs) + service = self._get_apic_service(**kwargs) + api = self._get_apic_api(**kwargs) + version = self._get_apic_version(**kwargs) + + template = 'az apic api definition create -g {} -n {} --api-id {} --version-id {} --definition-id {} --title "OpenAPI"' + cmd = template.format(group, service, api, version, name) + print(cmd) + self.live_only_execute(self.cli_ctx, cmd) + + self.test_class_instance.kwargs[self.key] = name + return {self.parameter_name: name} + + def remove_resource(self, name, **kwargs): + # ResourceGroupPreparer will delete everything + pass + + def _get_resource_group(self, **kwargs): + try: + return kwargs.get(self.resource_group_parameter_name) + except KeyError: + template = 'To create an API Center API a resource group is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ResourceGroupPreparer.__name__)) + + def _get_apic_service(self, **kwargs): + try: + return kwargs.get(self.apic_service_parameter_name) + except KeyError: + template = 'To create an API Center API an API Center service is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ApicServicePreparer.__name__)) + + def _get_apic_api(self, **kwargs): + try: + return kwargs.get(self.apic_api_parameter_name) + except KeyError: + template = 'To create an API Center Version an API Center API is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ApicApiPreparer.__name__)) + + def _get_apic_version(self, **kwargs): + try: + return kwargs.get(self.apic_version_parameter_name) + except KeyError: + template = 'To create an API Center Definition an API Center Version is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ApicVersionPreparer.__name__)) + +class ApicDeploymentPreparer(NoTrafficRecordingPreparer, SingleValueReplacer): + def __init__(self, name_prefix='clitest', length=24, + parameter_name='deployment_id', resource_group_parameter_name='resource_group', + apic_service_parameter_name='service_name', apic_api_parameter_name='api_id', + apic_version_parameter_name='version_id', apic_definition_parameter_name='definition_id', + apic_environment_parameter_name='environment_id', key='dep'): + super(ApicDeploymentPreparer, self).__init__(name_prefix, length) + self.cli_ctx = get_dummy_cli() + self.resource_group_parameter_name = resource_group_parameter_name + self.apic_service_parameter_name = apic_service_parameter_name + self.parameter_name = parameter_name + self.apic_api_parameter_name = apic_api_parameter_name + self.apic_version_parameter_name = apic_version_parameter_name + self.apic_definition_parameter_name = apic_definition_parameter_name + self.apic_environment_parameter_name = apic_environment_parameter_name + self.key = key + + def create_resource(self, name, **kwargs): + group = self._get_resource_group(**kwargs) + service = self._get_apic_service(**kwargs) + api = self._get_apic_api(**kwargs) + version = self._get_apic_version(**kwargs) + definition = self._get_apic_definition(**kwargs) + environment = self._get_apic_environment(**kwargs) + + template = 'az apic api deployment create -g {} -n {} --api-id {} --definition-id /workspaces/default/apis/{}/versions/{}/definitions/{} --environment-id /workspaces/default/environments/{} --deployment-id {} --title "test deployment" --server \'{{"runtimeUri":["https://example.com"]}}\'' + cmd = template.format(group, service, api, api, version, definition, environment, name) + print(cmd) + self.live_only_execute(self.cli_ctx, cmd) + + self.test_class_instance.kwargs[self.key] = name + return {self.parameter_name: name} + + def remove_resource(self, name, **kwargs): + # ResourceGroupPreparer will delete everything + pass + + def _get_resource_group(self, **kwargs): + try: + return kwargs.get(self.resource_group_parameter_name) + except KeyError: + template = 'To create an API Center Deployment a resource group is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ResourceGroupPreparer.__name__)) + + def _get_apic_service(self, **kwargs): + try: + return kwargs.get(self.apic_service_parameter_name) + except KeyError: + template = 'To create an API Center Deployment an API Center service is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ApicServicePreparer.__name__)) + + def _get_apic_api(self, **kwargs): + try: + return kwargs.get(self.apic_api_parameter_name) + except KeyError: + template = 'To create an API Center Deployment an API Center API is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ApicApiPreparer.__name__)) + + def _get_apic_version(self, **kwargs): + try: + return kwargs.get(self.apic_version_parameter_name) + except KeyError: + template = 'To create an API Center Deployment an API Center Version is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ApicVersionPreparer.__name__)) + + def _get_apic_definition(self, **kwargs): + try: + return kwargs.get(self.apic_definition_parameter_name) + except KeyError: + template = 'To create an API Center Deployment an API Center Definition is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ApicDefinitionPreparer.__name__)) + + def _get_apic_environment(self, **kwargs): + try: + return kwargs.get(self.apic_environment_parameter_name) + except KeyError: + template = 'To create an API Center Deployment an API Center Environment is required. Please add ' \ + 'decorator @{} in front of this preparer.' + raise CliTestError(template.format(ApicEnvironmentPreparer.__name__)) diff --git a/src/apic-extension/setup.py b/src/apic-extension/setup.py index 5e8d95d7556..6ce68abd759 100644 --- a/src/apic-extension/setup.py +++ b/src/apic-extension/setup.py @@ -10,7 +10,7 @@ # HISTORY.rst entry. -VERSION = '1.0.0b5' +VERSION = '1.0.0' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers