Amazon Parallel Computing Service GetComputeNodeGroup API
The GetComputeNodeGroup API from Amazon Parallel Computing Service — 1 operation(s) for getcomputenodegroup.
The GetComputeNodeGroup API from Amazon Parallel Computing Service — 1 operation(s) for getcomputenodegroup.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/amazon-parallel-computing-service:amazon-parallel-computing-service-getcomputenodegroup-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.1.0
info:
title: AWS Parallel Computing Service Getcomputenodegroup API
version: '2023-02-10'
description: Generated from AWS's published Smithy model for AWS Parallel Computing Service. 1 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://pcs.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
paths:
/#GetComputeNodeGroup:
post:
operationId: GetComputeNodeGroup
summary: Get Compute Node Group
description: Returns detailed information about a compute node group. This API action provides networking information,
EC2 instance type, compute node group status, and scheduler (such as Slurm) configuration.
responses:
'200':
description: Success
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/GetComputeNodeGroupResponse'
'403':
description: AccessDeniedException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'409':
description: ConflictException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ConflictException'
'500':
description: InternalServerException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'429':
description: ThrottlingException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ThrottlingException'
'400':
description: ValidationException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ValidationException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AWSParallelComputingService.GetComputeNodeGroup
requestBody:
required: true
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/GetComputeNodeGroupRequest'
tags:
- Getcomputenodegroup
components:
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: pcs
schemas:
AccessDeniedException:
type: object
properties:
message:
type: string
required:
- message
ComputeNodeGroup:
type: object
properties:
amiId:
type: string
description: The ID of the Amazon Machine Image (AMI) that PCS uses to launch instances. If not present, PCS uses
the AMI ID specified in the custom launch template.
securityGroupIds:
type: array
items:
type: string
description: The IDs of the EC2 security groups configured directly on the compute node group. PCS uses these security
groups instead of the security groups in the custom launch template. This value isn't present if security groups
aren't configured directly on the compute node group. In that case, PCS uses the security groups in the custom
launch template.
sshKeyName:
type: string
description: The name of the EC2 key pair configured directly on the compute node group. PCS uses this key pair
instead of the key pair in the custom launch template. This value isn't present if a key pair isn't configured
directly on the compute node group. In that case, PCS uses the key pair in the custom launch template, if one
is specified.
name:
type: string
description: The name that identifies the compute node group.
id:
type: string
description: The generated unique ID of the compute node group.
arn:
type: string
description: The unique Amazon Resource Name (ARN) of the compute node group.
clusterId:
type: string
description: The ID of the cluster of the compute node group.
createdAt:
type: string
description: The date and time the resource was created.
modifiedAt:
type: string
description: The date and time the resource was modified.
status:
type: string
enum:
- CREATING
- ACTIVE
- UPDATING
- DELETING
- CREATE_FAILED
- DELETE_FAILED
- UPDATE_FAILED
- DELETED
- SUSPENDING
- SUSPENDED
- RESUMING
description: The provisioning status of the compute node group. The provisioning status doesn't indicate the overall
health of the compute node group. The resource enters the SUSPENDING and SUSPENDED states when the scheduler is
beyond end of life and we have suspended the cluster. When in these states, you can't use the cluster. The cluster
controller is down and all compute instances are terminated. The resources still count toward your service quotas.
You can delete a resource if its status is SUSPENDED. For more information, see Frequently asked questions about
Slurm versions in PCS in the PCS User Gui
subnetIds:
type: array
items:
type: string
description: The list of subnet IDs where instances are provisioned by the compute node group. The subnets must
be in the same VPC as the cluster.
purchaseOption:
type: string
enum:
- ONDEMAND
- SPOT
- CAPACITY_BLOCK
- INTERRUPTIBLE_CAPACITY_RESERVATION
description: Specifies how EC2 instances are purchased on your behalf. PCS supports On-Demand Instances, Spot Instances,
Interruptible Capacity Reservations, On-Demand Capacity Reservations, and Amazon EC2 Capacity Blocks for ML. For
more information, see Amazon EC2 billing and purchasing options in the Amazon Elastic Compute Cloud User Guide.
For more information about PCS support for Capacity Blocks, see Using Amazon EC2 Capacity Blocks for ML with PCS
in the PCS User Guide. For more information about PCS support for interruptible capacity reservations, see Using
I-ODCRs with PCS in the PCS User Guide. C
launchTemplateMode:
type: string
enum:
- CUSTOM
- MANAGED
description: 'Indicates whether the compute node group uses a custom launch template or a launch template that PCS
manages. The default value is CUSTOM. Valid values: CUSTOM – The compute node group uses the launch template in
customLaunchTemplate. MANAGED – PCS creates and manages the launch template.'
customLaunchTemplate:
$ref: '#/components/schemas/CustomLaunchTemplate'
iamInstanceProfileArn:
type: string
description: The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching
EC2 instances. The role contained in your instance profile must have the pcs:RegisterComputeNodeGroupInstance
permission and the role name must start with AWSPCS or must have the path /aws-pcs/. For more information, see
IAM instance profiles for PCS in the PCS User Guide.
scalingConfiguration:
$ref: '#/components/schemas/ScalingConfiguration'
instanceConfigs:
type: array
items:
$ref: '#/components/schemas/InstanceConfig'
description: A list of EC2 instance configurations that PCS can provision in the compute node group.
spotOptions:
$ref: '#/components/schemas/SpotOptions'
slurmConfiguration:
$ref: '#/components/schemas/ComputeNodeGroupSlurmConfiguration'
nodeLifecycleActions:
$ref: '#/components/schemas/NodeLifecycleActions'
errorInfo:
type: array
items:
$ref: '#/components/schemas/ErrorInfo'
description: The list of errors that occurred during compute node group provisioning.
required:
- name
- id
- arn
- clusterId
- createdAt
- modifiedAt
- status
- subnetIds
- iamInstanceProfileArn
- scalingConfiguration
- instanceConfigs
ComputeNodeGroupSlurmConfiguration:
type: object
properties:
scaleDownIdleTimeInSeconds:
type: integer
description: The time (in seconds) before an idle node is scaled down. If not specified, the cluster-level setting
applies. This overrides the cluster-level scaleDownIdleTimeInSeconds setting. A value of -1 removes the override
and applies the cluster-level setting to this compute node group. Requires Slurm version 25.11 or later.
slurmCustomSettings:
type: array
items:
$ref: '#/components/schemas/SlurmCustomSetting'
description: Additional Slurm-specific configuration that directly maps to Slurm settings.
gresCustomSettings:
type: array
items:
type: object
additionalProperties:
type: string
description: The additional Slurm gres.conf records for the compute node group. Each item is a map of gres.conf
attribute names to values that describes one gres.conf record, such as a GPU topology, MIG, MPS, or custom GRES
entry. PCS adds the NodeName= prefix and merges these records with the GPU record it derives from the instance
type.
ConflictException:
type: object
properties:
message:
type: string
resourceId:
type: string
description: The unique identifier of the resource that caused the conflict exception.
resourceType:
type: string
description: The type or category of the resource that caused the conflict exception."
required:
- message
- resourceId
- resourceType
CustomLaunchTemplate:
type: object
properties:
id:
type: string
description: 'The ID of the EC2 launch template to use to provision instances. Specify this value together with
version. Example: lt-xxxx'
version:
type: string
description: The version of the EC2 launch template to use to provision instances. Specify this value together with
id.
required:
- id
- version
ErrorInfo:
type: object
properties:
code:
type: string
description: The short-form error code.
message:
type: string
description: The detailed error information.
GetComputeNodeGroupRequest:
type: object
properties:
clusterIdentifier:
type: string
description: The name or ID of the cluster.
computeNodeGroupIdentifier:
type: string
description: The name or ID of the compute node group.
required:
- clusterIdentifier
- computeNodeGroupIdentifier
GetComputeNodeGroupResponse:
type: object
properties:
computeNodeGroup:
$ref: '#/components/schemas/ComputeNodeGroup'
InstanceConfig:
type: object
properties:
instanceType:
type: string
description: 'The EC2 instance type that PCS can provision in the compute node group. Example: t2.xlarge'
InternalServerException:
type: object
properties:
message:
type: string
required:
- message
NodeLifecycleActions:
type: object
properties:
stages:
$ref: '#/components/schemas/NodeLifecycleStages'
scriptCachingPolicy:
type: string
enum:
- CACHE_ONCE
- REFRESH_ON_REBOOT
description: 'The caching policy for node lifecycle scripts. The default value is CACHE_ONCE. Valid values: CACHE_ONCE
– Downloads each script once and reuses it on subsequent boots. REFRESH_ON_REBOOT – Downloads each script on every
boot.'
required:
- stages
NodeLifecycleScript:
type: object
properties:
name:
type: string
description: A unique name for the script. The name can be up to 64 characters long. Valid characters are letters,
numbers, spaces, underscores (_), and hyphens (-). The first character must be a letter or a number.
scriptSource:
$ref: '#/components/schemas/ScriptSource'
arguments:
type: array
items:
type: string
description: The command-line arguments to pass to the script. You can specify up to 20 arguments, and each argument
can be up to 256 characters long.
onError:
type: string
enum:
- TERMINATE
- STOP_SEQUENCE
- CONTINUE
description: 'The behavior when the script fails. The default value is TERMINATE. Valid values: TERMINATE – Terminates
the compute node. STOP_SEQUENCE – Stops running subsequent scripts in the sequence but doesn''t terminate the
compute node. CONTINUE – Ignores the error and continues running the next script.'
executionPolicy:
type: string
enum:
- FIRST_BOOT_ONLY
- EVERY_BOOT
description: 'The policy that determines when the script runs. The default value is FIRST_BOOT_ONLY. Valid values:
FIRST_BOOT_ONLY – Runs the script only the first time the compute node boots. EVERY_BOOT – Runs the script every
time the compute node boots, including reboots.'
required:
- name
- scriptSource
NodeLifecycleStages:
type: object
properties:
nodeBootstrapped:
type: array
items:
$ref: '#/components/schemas/NodeLifecycleScript'
description: The scripts to run after PCS finishes setting up the compute node and before the Slurm daemon (slurmd)
starts. Use this stage for tasks that must complete before the node accepts jobs, such as mounting shared storage,
configuring networking, or installing software packages.
nodeReady:
type: array
items:
$ref: '#/components/schemas/NodeLifecycleScript'
description: The scripts to run after the Slurm daemon (slurmd) starts and the compute node registers with the Slurm
controller. Use this stage for tasks that require Slurm to be running, such as running Slurm commands.
ResourceNotFoundException:
type: object
properties:
message:
type: string
resourceId:
type: string
description: The unique identifier of the resource that was not found.
resourceType:
type: string
description: The type or category of the resource that was not found.
required:
- message
- resourceId
- resourceType
ScalingConfiguration:
type: object
properties:
minInstanceCount:
type: integer
description: The lower bound of the number of instances allowed in the compute fleet.
maxInstanceCount:
type: integer
description: The upper bound of the number of instances allowed in the compute fleet.
required:
- minInstanceCount
- maxInstanceCount
ScriptSource:
type: object
properties:
scriptLocation:
type: string
description: The location of the script. Specify either an Amazon S3 URI in the format s3://bucket-name/key or an
HTTPS URL.
s3VersionId:
type: string
description: The Amazon S3 version ID of the script. Use this value to pin the script to a specific version in a
versioned Amazon S3 bucket. This value is only valid when scriptLocation is an Amazon S3 URI.
checksum:
type: string
description: The SHA-256 checksum of the script content, as a 64-character hexadecimal string. This value is optional.
When specified, PCS uses this value to verify the integrity of the downloaded script.
required:
- scriptLocation
SlurmCustomSetting:
type: object
properties:
parameterName:
type: string
description: PCS supports custom Slurm settings for clusters, compute node groups, and queues. For more information,
see Configuring custom Slurm settings in PCS in the PCS User Guide.
parameterValue:
type: string
description: The values for the configured Slurm settings.
required:
- parameterName
- parameterValue
SpotOptions:
type: object
properties:
allocationStrategy:
type: string
enum:
- lowest-price
- capacity-optimized
- price-capacity-optimized
description: The Amazon EC2 allocation strategy PCS uses to provision EC2 instances. PCS supports lowest price,
capacity optimized, and price capacity optimized. For more information, see Use allocation strategies to determine
how EC2 Fleet or Spot Fleet fulfills Spot and On-Demand capacity in the Amazon Elastic Compute Cloud User Guide.
If you don't provide this option, it defaults to price capacity optimized.
ThrottlingException:
type: object
properties:
message:
type: string
retryAfterSeconds:
type: integer
description: The number of seconds to wait before retrying the request.
required:
- message
ValidationException:
type: object
properties:
message:
type: string
reason:
type: string
enum:
- unknownOperation
- cannotParse
- fieldValidationFailed
- other
description: The specific reason or cause of the validation error.
fieldList:
type: array
items:
$ref: '#/components/schemas/ValidationExceptionField'
description: A list of fields or properties that failed validation.
required:
- message
- reason
ValidationExceptionField:
type: object
properties:
name:
type: string
description: The name of the exception.
message:
type: string
description: The message body of the exception.
required:
- name
- message
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/pcs/service/2023-02-10/pcs-2023-02-10.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)