Skip to content

Function: getPolicies() ​

ts
function getPolicies(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  data?: object[];
  links?: {
   [key: string]: unknown;
     next?: string | null;
     prev?: string | null;
     self?: string | null;
  };
  meta?: {
   [key: string]: unknown;
     attributes?: unknown;
     current?: number;
     end_index?: number;
     next?: string | null;
     page_size?: number;
     prev?: string;
     start_index?: number;
     total?: number;
  };
}>;

Defined in: src/admin/api/policies.ts:15

Returns information about org policies

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ cursor?: string; orgId: string; type?: string; }-
parameters.cursor?stringSets the starting point for the page of results to return.
parameters.orgId?stringYour organization has a unique ID. Find this ID in your Atlassian Administration URL or when you create your API key.
parameters.type?stringSets the type for the page of policies to return.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; data?: object[]; links?: { [key: string]: unknown; next?: string | null; prev?: string | null; self?: string | null; }; meta?: { [key: string]: unknown; attributes?: unknown; current?: number; end_index?: number; next?: string | null; page_size?: number; prev?: string; start_index?: number; total?: number; }; }>