Get-ITGlueDomain

SYNOPSIS

List all domains in your account / List all domains for a particular organization

SYNTAX

List (Default)

Get-ITGlueDomain [-FilterId <long>] [-FilterOrganizationId <long>] [-Include <string>]
 [-PageNumber <long>] [-PageSize <long>] [-Sort <string>] [-AllResults] [-Raw]

ByOrganization

Get-ITGlueDomain [-OrganizationId] <long> [-FilterId <long>] [-FilterOrganizationId <long>]
 [-Include <string>] [-PageNumber <long>] [-PageSize <long>] [-Sort <string>] [-AllResults] [-Raw]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

Parameter set [ List ] - The Get-ITGlueDomain cmdlet invokes the GET method of the /domains endpoint (List all domains in your account)

Returns a list of domains for all organizations or for a specified organization.

Example return value:

{ “data”: [ { “id”: “1”, “type”: “domains”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “resource-url”: “https://example.com/1/domains/1”, “name”: “happyfrog.itglue.com”, “screenshot”: “/system/domains/screenshots/000/000/003/thumb/httphappyfrogcom.png?1488587288”, “registrar-name”: “MarkMonitor, Inc.”, “notes”: null, “expires-on”: “2020-09-14T04:00:00.000Z”, “updated-at”: “2017-03-04T00:28:09.000Z” } }, { “id”: “2”, “type”: “domains”, “attributes”: { “organization-id”: 3, “organization-name”: “Kraken Techs”, “resource-url”: “https://example.com/2/domains/2”, “name”: “krakentechs.com”, “screenshot”: “/system/domains/screenshots/000/000/003/thumb/httpkrakentechscom.png?1488587288”, “registrar-name”: “MarkMonitor Inc.”, “notes”: null, “expires-on”: “2020-09-14T00:00:00.000Z”, “updated-at”: “2017-07-26T22:05:01.000Z” } } ] }

Parameter set [ ByOrganization ] - The Get-ITGlueDomain cmdlet invokes the GET method of the /organizations/{organization_id}/relationships/domains endpoint (List all domains for a particular organization)

Returns a list of domains for all organizations or for a specified organization.

Example return value:

{ “data”: [ { “id”: “1”, “type”: “domains”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “resource-url”: “https://example.com/1/domains/1”, “name”: “happyfrog.itglue.com”, “screenshot”: “/system/domains/screenshots/000/000/003/thumb/httphappyfrogcom.png?1488587288”, “registrar-name”: “MarkMonitor, Inc.”, “notes”: null, “expires-on”: “2020-09-14T04:00:00.000Z”, “updated-at”: “2017-03-04T00:28:09.000Z” } }, { “id”: “2”, “type”: “domains”, “attributes”: { “organization-id”: 3, “organization-name”: “Kraken Techs”, “resource-url”: “https://example.com/2/domains/2”, “name”: “krakentechs.com”, “screenshot”: “/system/domains/screenshots/000/000/003/thumb/httpkrakentechscom.png?1488587288”, “registrar-name”: “MarkMonitor Inc.”, “notes”: null, “expires-on”: “2020-09-14T00:00:00.000Z”, “updated-at”: “2017-07-26T22:05:01.000Z” } } ] }

EXAMPLES

EXAMPLE 1

Get-ITGlueDomain

Returns the result of the /domains endpoint

EXAMPLE 2

Get-ITGlueDomain -PageNumber 2 -PageSize 10

Returns the second page of 10 items from the /domains endpoint

EXAMPLE 3

Get-ITGlueDomain -AllResults

Returns every item from the /domains endpoint by requesting every page of the results

EXAMPLE 4

Get-ITGlueDomain -OrganizationId 12345

Returns the result of the /organizations/{organization_id}/relationships/domains endpoint

EXAMPLE 5

Get-ITGlueDomain -OrganizationId 12345 -PageNumber 2 -PageSize 10

Returns the second page of 10 items from the /organizations/{organization_id}/relationships/domains endpoint

EXAMPLE 6

Get-ITGlueDomain -OrganizationId 12345 -AllResults

Returns every item from the /organizations/{organization_id}/relationships/domains endpoint by requesting every page of the results

PARAMETERS

-AllResults

Returns all items from the endpoint by requesting every page of the results

When PageSize is not defined 1000 items are requested with each page

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterId

Filter by id

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterOrganizationId

Filter by organization id

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Include

Notes: Comma separated values

Allowed values: ‘passwords’, ‘attachments’, ‘user_resource_accesses’, ‘group_resource_accesses’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-OrganizationId

Only required for nested relationships route.

Notes: Must be a valid organization ID in your account.

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases:
- organization_id
ParameterSets:
- Name: ByOrganization
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-PageNumber

Defines the page number to return

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-PageSize

Defines the number of items to return with each page

The maximum page size is 1000

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Raw

Returns the full API response (data, meta, links, & included) instead of only the data

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Sort

Notes: To Invert order use -, eg: -name Comma separated values

Allowed values: ‘created_at’, ‘updated_at’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.Int64

OUTPUTS

NOTES

Endpoint : GET /domains Endpoint : GET /organizations/{organization_id}/relationships/domains