- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DescribeIpGroupsCommand
Describes one or more of your IP access control groups.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { WorkSpacesClient, DescribeIpGroupsCommand } from "@aws-sdk/client-workspaces"; // ES Modules import
// const { WorkSpacesClient, DescribeIpGroupsCommand } = require("@aws-sdk/client-workspaces"); // CommonJS import
const client = new WorkSpacesClient(config);
const input = { // DescribeIpGroupsRequest
GroupIds: [ // IpGroupIdList
"STRING_VALUE",
],
NextToken: "STRING_VALUE",
MaxResults: Number("int"),
};
const command = new DescribeIpGroupsCommand(input);
const response = await client.send(command);
// { // DescribeIpGroupsResult
// Result: [ // WorkspacesIpGroupsList
// { // WorkspacesIpGroup
// groupId: "STRING_VALUE",
// groupName: "STRING_VALUE",
// groupDesc: "STRING_VALUE",
// userRules: [ // IpRuleList
// { // IpRuleItem
// ipRule: "STRING_VALUE",
// ruleDesc: "STRING_VALUE",
// },
// ],
// },
// ],
// NextToken: "STRING_VALUE",
// };
DescribeIpGroupsCommand Input
See DescribeIpGroupsCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
GroupIds | string[] | undefined | The identifiers of one or more IP access control groups. |
MaxResults | number | undefined | The maximum number of items to return. |
NextToken | string | undefined | If you received a |
DescribeIpGroupsCommand Output
See DescribeIpGroupsCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
NextToken | string | undefined | The token to use to retrieve the next page of results. This value is null when there are no more results to return. |
Result | WorkspacesIpGroup[] | undefined | Information about the IP access control groups. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | The user is not authorized to access a resource. |
InvalidParameterValuesException | client | One or more parameter values are not valid. |
WorkSpacesServiceException | Base exception class for all service exceptions from WorkSpaces service. |