API Modify Batch

Path: API Management > API Modify Batch

In this section, you can find instructions on how to quickly modify APIs when changing the host environment or port number. This functionality is applicable for red-black deployment or API version updates, and the system supports batch modification of registered APIs.

Search by Label and Site

In this section, you can find instructions on how to search for APIs by label and by site.

Search by Label

  1. Click Search by Label to display the label list.

  1. Check the desired labels to search for, and click Confirm.

  1. APIs matching the specified criteria will be displayed.

Search by Site

  1. Click Search by Site to display the site list.

  1. Check the desired target sites to search for, and click Confirm.

  1. APIs matching the specified criteria will be displayed.

Enable, Disable, Activate No Auth, and Deactivate No Auth for APIs

  1. Check multiple APIs at once, and click Enable to enable APIs in batches.

  1. Check multiple APIs at once, and click Disable to disable APIs in batches.

  1. Check multiple APIs at once, and click Active No Auth to activate No Auth for APIs in batches.

  1. Check multiple APIs at once, and click Inactive No Auth to deactivate No Auth for APIs in batches.

Reset label

  1. Check the APIs to modify, and click Reset label.

  1. Enter the desired label, press the Enter key, and click Confirm.

  1. A confirmation prompt displaying the message "The original label will be cleared, Confirm the reset?" will pop up. Click Confirm to apply the label change.

Reset fail handle policy

  1. Check the APIs to modify, and click Reset fail handle policy.

  1. Enter the desired Fail Discovery Policy or Fail Handle Policy, and click Confirm.

  1. A confirmation prompt displaying the message "Confirm reset?" will pop up. Click Confirm to apply the policy change.

API URL Setting

In this section, you can find instructions on how to modify the string or percentage of the API URL.

Modify Percentage

  1. Check the APIs to modify, and click API URL Setting.

  1. Fill in the desired API URL, check Percentage, enter a value, and click Preview.

  • Search/Replace Target*: The URL target or string to be modified.

  • Percentage: If Percentage is checked, modify the percentage of the input item, and set the rest to zero. If the total percentage is not 100 after modification, it will result in failed. Calculation of Total Percentage:

    • When there is no routing, the total percentage is the sum of each percentage for that API.

    • When there is routing, the total percentage is the sum based on the IP field for each item.

  1. Check the results in the Preview page, and upon confirming correctness, click Confirm to save and exit.

Replace String

  1. To replace api.kcg.gov.tw with 127.0.0.1:8080 as shown in the figure below, check the desired API, and click API URL Setting.

  1. Fill in the desired API URL, check Replace String, enter 127.0.0.1:8080 in the input box, and click Preview.

  • Search/Replace Target*: The URL target or string to be modified.

  • Replace String: The string to be modified.

  1. The system will search for the specified condition and replace it with the string entered by the user. Check the results in the Preview page, and upon confirming correctness, click Confirm to save and exit.

Was this helpful?