beautypg.com

Example, Description – Google Message Security Batch Reference Guide User Manual

Page 214

background image

Batch Commands

217

Example

Batch command interface examples:

List all domains starting with the

sales

org, and sort the results by org

name in ASCII ascending order:

listdomains ALL, targetOrg=sales, childorgs=1, sort=ORGTAG:a

It is important to set the targetOrg value if your authorization is limited to
the targetOrg or below. Otherwise the system will return an authorization
error.

List the domains ending in ‘

com

’, include the aliases, and traverse the

child organizations:

listdomains com$, targetOrg=sales, aliases=1, childorgs=1

List the domains by domain name, org id, and creation date:

listdomains ALL, targetOrg=Sales, childorgs=1,

fields=DOMAINNAME|IID|created_ts

Only list the creation time stamp for the domains in the Sales organization
and below:

listdomains ALL, targetOrg=Sales, childorgs=1,

fields=created_ts

Description

Displays domain name and domainid of a set of domains, filtering and sorting as
requested.

The list is limited to 15,000 domains.

Enclose in double quotes or preceded with a ‘\’ symbol if it
contains a quote (‘), double quote (“), backslash (\), apostrophe, commas, #, =
symbols.

Batch parameter options for listdomains include:

domain name qstring

The domain name you are searching for. This is the target text matched to the
search results using the qstring rules explained below.