Get-ITGluePasswordFolder

SYNOPSIS

List all password folders for a particular organization / Retrieve a password folder for a particular organization

SYNTAX

ByOrganization (Default)

Get-ITGluePasswordFolder [-OrganizationId] <long> [-FilterId <long>] [-FilterParentId <long>]
 [-PageNumber <long>] [-PageSize <long>] [-Sort <string>] [-AllResults] [-Raw]

ByOrganizationById

Get-ITGluePasswordFolder [-OrganizationId] <long> [-Id] <long> [-Include <string>] [-Raw]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

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

Returns a list of password folders for a specified organization.

Filtering by parent_id:

Omit filter[parent_id] - returns all password folders filter[parent_id]=null - returns all password folders (no filter applied) filter[parent_id]=0 - returns only root-level folders filter[parent_id]= - returns direct child folders of the given parent folder

Note: Only a single value is accepted; comma-separated values are ignored and return empty results

Example return value:

{ “data”: [ { “id”: “1”, “type”: “password-folders”, “attributes”: { “organization-id”: 1, “organization-name”: “Happy Frog”, “resource-url”: “https://example.com/1/passwords/folder/1”, “restricted”: false, “my-glue”: false, “ancestor-ids”: [], “name”: “Parent Folder”, “parent-id”: null, “created-at”: “2019-07-29T14:36:37.000Z”, “updated-at”: “2019-07-29T14:36:37.000Z”, “passwords-count”: 1 } }, { “id”: “2”, “type”: “password-folders”, “attributes”: { “organization-id”: 1, “organization-name”: “Happy Frog”, “resource-url”: “https://example.com/1/passwords/folder/2”, “restricted”: false, “my-glue”: false, “ancestor-ids”: [1], “name”: “Child Folder”, “parent-id”: 1, “created-at”: “2019-07-30T14:36:37.000Z”, “updated-at”: “2019-07-30T14:36:37.000Z”, “passwords-count”: 2 } } ] }

Parameter set [ ByOrganizationById ] - The Get-ITGluePasswordFolder cmdlet invokes the GET method of the /organizations/{organization_id}/relationships/password_folders/{id} endpoint (Retrieve a password folder for a particular organization)

Returns the details of an existing password folder.

Example return value:

{ “data”: { “id”: “2”, “type”: “password-folders”, “attributes”: { “organization-id”: 1, “organization-name”: “Happy Frog”, “resource-url”: “https://example.com/1/passwords/folder/2”, “restricted”: false, “my-glue”: false, “ancestor-ids”: [1], “name”: “Child Folder”, “parent-id”: 1, “created-at”: “2019-07-30T14:36:37.000Z”, “updated-at”: “2019-07-30T14:36:37.000Z”, “passwords-count”: 2 } } }

EXAMPLES

EXAMPLE 1

Get-ITGluePasswordFolder -OrganizationId 12345

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

EXAMPLE 2

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

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

EXAMPLE 3

Get-ITGluePasswordFolder -OrganizationId 12345 -AllResults

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

EXAMPLE 4

Get-ITGluePasswordFolder -OrganizationId 12345 -Id 12345

Returns the result of the /organizations/{organization_id}/relationships/password_folders/{id} endpoint

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
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
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterParentId

Filter by parent id

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

-Id

Defines the ID of the item

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

-Include

Notes: Comma separated values

Allowed values: ‘user_resource_accesses’, ‘group_resource_accesses’, ‘authorized_users’, ‘ancestors’

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

-OrganizationId

Only required for nested relationships route

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases:
- organization_id
ParameterSets:
- Name: ByOrganizationById
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
- 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
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
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: ‘name’, ‘created_at’, ‘updated_at’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
  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 /organizations/{organization_id}/relationships/password_folders Endpoint : GET /organizations/{organization_id}/relationships/password_folders/{id}