mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-03 22:01:39 +00:00
Simplify getting actual Customer ID
This commit is contained in:
@@ -3548,6 +3548,10 @@ gam info customer [formatjson]
|
||||
|
||||
gam info instance [formatjson]
|
||||
|
||||
gam info customerid
|
||||
|
||||
gam info gcporgid
|
||||
|
||||
# Data Transfers
|
||||
|
||||
gam print|show transferapps
|
||||
|
||||
@@ -9,18 +9,25 @@ gam create|update|delete caalevel
|
||||
gam print|show caalevels
|
||||
gam print|show tokens gcpdetails
|
||||
```
|
||||
You can get and set the `gcp_org_id` value with these commands:
|
||||
You can get and set the `gam.cfg/gcp_org_id` value with these commands:
|
||||
```
|
||||
$ gam info gcporgid
|
||||
organizations/906207637890
|
||||
$ gam config gcp_org_id organizations/906207637890 save
|
||||
```
|
||||
|
||||
You can get and set the `gam.cfg/customer_id` value with these commands:
|
||||
```
|
||||
$ gam info customerid
|
||||
C78abc9de
|
||||
$ gam config customer_id C78abc9de save
|
||||
```
|
||||
|
||||
Added the following options to `gam report <ActivityApplicationName>`.
|
||||
```
|
||||
applicationinfofilter <String>
|
||||
networkinfofilter <String>
|
||||
statusfilter <String>
|
||||
applicationinfofilter <String>
|
||||
includesensitivedata
|
||||
```
|
||||
|
||||
|
||||
@@ -12006,6 +12006,12 @@ def getCRMOrgId(forceSearch=False):
|
||||
return orgs[0].get('name')
|
||||
return GC.Values[GC.GCP_ORG_ID]
|
||||
|
||||
# gam info customerid
|
||||
def doInfoCustomerId():
|
||||
checkForExtraneousArguments()
|
||||
setTrueCustomerId(cd=None)
|
||||
writeStdout(f'{GC.Values[GC.CUSTOMER_ID]}\n')
|
||||
|
||||
# gam info gcporgid
|
||||
def doInfoGCPOrgId():
|
||||
checkForExtraneousArguments()
|
||||
@@ -80200,6 +80206,7 @@ MAIN_COMMANDS_WITH_OBJECTS = {
|
||||
Cmd.ARG_CROSTELEMETRY: doInfoPrintShowCrOSTelemetry,
|
||||
Cmd.ARG_CURRENTPROJECTID: doInfoCurrentProjectId,
|
||||
Cmd.ARG_CUSTOMER: doInfoCustomer,
|
||||
Cmd.ARG_CUSTOMERID: doInfoCustomerId,
|
||||
Cmd.ARG_DATATRANSFER: doInfoDataTransfer,
|
||||
Cmd.ARG_DEVICE: doInfoCIDevice,
|
||||
Cmd.ARG_DEVICEUSER: doInfoCIDeviceUser,
|
||||
|
||||
@@ -830,6 +830,7 @@ class GamCLArgs():
|
||||
ARG_CSEKEYPAIRS = 'csekeypairs'
|
||||
ARG_CURRENTPROJECTID = 'currentprojectid'
|
||||
ARG_CUSTOMER = 'customer'
|
||||
ARG_CUSTOMERID = 'customerid'
|
||||
ARG_DATASTUDIOASSET = 'datastudioasset'
|
||||
ARG_DATASTUDIOASSETS = 'datastudioassets'
|
||||
ARG_DATASTUDIOPERMISSION = 'datastudiopermission'
|
||||
|
||||
Reference in New Issue
Block a user