Skip to content

Commit 267874f

Browse files
authored
update to latest version: v1.4.5 (#40)
1 parent c3690b0 commit 267874f

5 files changed

Lines changed: 15 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.4.5 - 2026-03-18
4+
5+
- Support new region af-south-1
6+
37
## 1.4.4 - 2026-01-19
48

59
- Support new regions eu-west-2 and ca-central-1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Creates a new instance of the grpc Channel, and provisions essential settings, i
200200

201201
| Parameter | Description |
202202
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
203-
| region | The region you obtained your api key. Value provided must be one of the Vision One regions, e.g. `us-east-1`, `eu-central-1`, `ap-northeast-1`, `ap-southeast-2`, `ap-southeast-1`, `ap-south-1`, `me-central-1`, `ca-central-1`, `eu-west-2`,etc. |
203+
| region | The region you obtained your api key. Value provided must be one of the Vision One regions, e.g. `us-east-1`, `eu-central-1`, `ap-northeast-1`, `ap-southeast-2`, `ap-southeast-1`, `ap-south-1`, `me-central-1`, `ca-central-1`, `eu-west-2`, `af-south-1`,etc. |
204204
| api_key | Your own Vision One API Key. |
205205
| enable_tls | Enable or disable TLS. TLS should always be enabled when connecting to the AMaaS server. For more information, see the 'Ensuring Secure Communication with TLS' section. |
206206
| ca_cert | `Optional` CA certificate used to connect to self hosted AMaaS server. |
@@ -216,7 +216,7 @@ Creates a new instance of the grpc aio Channel, and provisions essential setting
216216

217217
| Parameter | Description |
218218
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
219-
| region | The region you obtained your api key. Value provided must be one of the Vision One regions, e.g. `us-east-1`, `eu-central-1`, `ap-northeast-1`, `ap-southeast-2`, `ap-southeast-1`, `ap-south-1`, `me-central-1`,`ca-central-1`, `eu-west-2`, etc. |
219+
| region | The region you obtained your api key. Value provided must be one of the Vision One regions, e.g. `us-east-1`, `eu-central-1`, `ap-northeast-1`, `ap-southeast-2`, `ap-southeast-1`, `ap-south-1`, `me-central-1`, `ca-central-1`, `eu-west-2`, `af-south-1`, etc. |
220220
| api_key | Your own Vision One API Key. |
221221
| enable_tls | Enable or disable TLS. TLS should always be enabled when connecting to the AMaaS server. For more information, see the 'Ensuring Secure Communication with TLS' section. |
222222
| ca_cert | `Optional` CA certificate used to connect to self hosted AMaaS server. |

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.4
1+
1.4.5

amaas/grpc/util.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
AWS_TREND_REGION = "us-east-2"
2121
AWS_GB_REGION = "eu-west-2"
2222
AWS_AE_REGION = "me-central-1"
23+
AWS_ZA_REGION = "af-south-1"
2324
C1_JP_REGION = "jp-1"
2425
C1_SG_REGION = "sg-1"
2526
C1_AU_REGION = "au-1"
@@ -30,13 +31,14 @@
3031
C1_TREND_REGION = "trend-us-1"
3132
C1_GB_REGION = "gb-1"
3233
C1_AE_REGION = "ae-1"
34+
C1_ZA_REGION = "za-1"
3335

3436
C1Regions = [C1_AU_REGION, C1_CA_REGION, C1_DE_REGION, C1_GB_REGION, C1_IN_REGION, C1_JP_REGION, C1_SG_REGION,
35-
C1_US_REGION, C1_TREND_REGION]
36-
V1Regions = [AWS_AU_REGION, AWS_DE_REGION, AWS_IN_REGION, AWS_JP_REGION, AWS_SG_REGION, AWS_US_REGION, AWS_AE_REGION, AWS_CA_REGION, AWS_GB_REGION]
37+
C1_US_REGION, C1_TREND_REGION, C1_ZA_REGION]
38+
V1Regions = [AWS_AU_REGION, AWS_DE_REGION, AWS_IN_REGION, AWS_JP_REGION, AWS_SG_REGION, AWS_US_REGION, AWS_AE_REGION, AWS_CA_REGION, AWS_GB_REGION, AWS_ZA_REGION]
3739
SupportedV1Regions = V1Regions
3840
SupportedC1Regions = [C1_AU_REGION, C1_CA_REGION, C1_DE_REGION, C1_GB_REGION, C1_IN_REGION, C1_JP_REGION, C1_SG_REGION,
39-
C1_US_REGION]
41+
C1_US_REGION, C1_ZA_REGION]
4042

4143
AllRegions = C1Regions + V1Regions
4244
AllValidRegions = SupportedC1Regions + SupportedV1Regions
@@ -51,6 +53,7 @@
5153
AWS_AE_REGION: C1_AE_REGION,
5254
AWS_CA_REGION: C1_CA_REGION,
5355
AWS_GB_REGION: C1_GB_REGION,
56+
AWS_ZA_REGION: C1_ZA_REGION,
5457
}
5558

5659

@@ -101,6 +104,7 @@ def _init_by_region_util(region, api_key, enable_tls=True, ca_cert=None, is_aio_
101104
C1_GB_REGION: 'antimalware.gb-1.cloudone.trendmicro.com:443',
102105
C1_CA_REGION: 'antimalware.ca-1.cloudone.trendmicro.com:443',
103106
C1_AE_REGION: 'antimalware.ae-1.cloudone.trendmicro.com:443',
107+
C1_ZA_REGION: 'antimalware.za-1.cloudone.trendmicro.com:443',
104108
}
105109

106110
# make sure it is valid V1 or C1 region

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ If you plan on using a Trend Vision One region, be sure to pass in region parame
5656
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------- |
5757
| -f FILENAME, --filename FILENAME | File to be scanned | No |
5858
| -a ADDR, --addr ADDR | Trend Vision One File Security server | Yes, either -r or -a |
59-
| -r REGION, --region REGION | The region you obtained your API key. Value provided must be one of the Vision One regions, e.g. `us-east-1`, `eu-central-1`, `ap-southeast-1`, `ap-southeast-2`, `ap-northeast-1`, `ap-south-1` | Yes, either -r or -a |
59+
| -r REGION, --region REGION | The region you obtained your API key. Value provided must be one of the Vision One regions, e.g. `us-east-1`, `eu-central-1`, `ap-northeast-1`, `ap-southeast-2`, `ap-southeast-1`, `ap-south-1`, `me-central-1`, `ca-central-1`, `eu-west-2`, `af-south-1` | Yes, either -r or -a |
6060
| --api_key API_KEY | Vision One API Key | Yes |
6161
| --tls, --no-tls | Enable or disable TLS | Yes |
6262
| --ca_cert CA_CERT | CA certificate used to connect to self hosted AMaaS | Yes |

0 commit comments

Comments
 (0)