Skip to content

Commit

Permalink
node candidate hardware/name documented
Browse files Browse the repository at this point in the history
  • Loading branch information
ankicabarisic committed Aug 9, 2024
1 parent af4aa7d commit 05d0cfb
Showing 1 changed file with 62 additions and 55 deletions.
117 changes: 62 additions & 55 deletions documentation/7-node-endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,63 +25,70 @@ For more details about these filters you can check the SAL code [NodeCandidateUt

```json
[
//asking for IASS node type
{
"type": "NodeTypeRequirement",
"nodeTypes": ["IAAS"]
},
//asking for nodes from specific cloud
{
"type": "AttributeRequirement",
"requirementClass": "cloud",
"requirementAttribute": "id",
"requirementOperator": "EQ",
"value": "{{cloud_name}}"
},
//asking for UBUNTU operating system
{
"type": "AttributeRequirement",
"requirementClass": "image",
"requirementAttribute": "operatingSystem.family",
"requirementOperator": "IN",
"value": "UBUNTU"
},
//asking for 22 version of OS
{
"type": "AttributeRequirement",
"requirementClass": "image",
"requirementAttribute": "name",
"requirementOperator": "INC",
"value": "22"
},
//asking for specific region
{
"type": "AttributeRequirement",
"requirementClass": "location",
"requirementAttribute": "name",
"requirementOperator": "EQ",
"value": "bgo"
},
//asking for 8GB RAM
{
"type": "AttributeRequirement",
"requirementClass": "hardware",
"requirementAttribute": "ram",
"requirementOperator": "EQ",
"value": "8192"
},
//asking for 4 cores
{
"type": "AttributeRequirement",
"requirementClass": "hardware",
"requirementAttribute": "cores",
"requirementOperator": "EQ",
"value": "4"
}

// asking for IASS node type
{
"type": "NodeTypeRequirement",
"nodeTypes": ["IAAS"]
},
// asking for nodes from specific cloud
{
"type": "AttributeRequirement",
"requirementClass": "cloud",
"requirementAttribute": "id",
"requirementOperator": "EQ",
"value": "{{cloud_name}}"
},
// asking for UBUNTU operating system
{
"type": "AttributeRequirement",
"requirementClass": "image",
"requirementAttribute": "operatingSystem.family",
"requirementOperator": "IN",
"value": "UBUNTU"
},
// asking for 22 version of OS
{
"type": "AttributeRequirement",
"requirementClass": "image",
"requirementAttribute": "name",
"requirementOperator": "INC",
"value": "22"
},
// asking for specific region
{
"type": "AttributeRequirement",
"requirementClass": "location",
"requirementAttribute": "name",
"requirementOperator": "EQ",
"value": "bgo"
},
// asking for 8GB RAM
{
"type": "AttributeRequirement",
"requirementClass": "hardware",
"requirementAttribute": "ram",
"requirementOperator": "EQ",
"value": "8192"
},
// asking for 4 cores
{
"type": "AttributeRequirement",
"requirementClass": "hardware",
"requirementAttribute": "cores",
"requirementOperator": "EQ",
"value": "4"
},
// asking specific hardware name
{
"type": "AttributeRequirement",
"requirementClass": "hardware",
"requirementAttribute": "name",
"requirementOperator": "EQ",
"value": "c5.xlarge"
}
]
```

"Note: This JSON requirement is provided as an example. Please construct your own set of requirements tailored to your specific use case."
**Returns**: A JSON list of Node Candidates.

#### 7.2- getLengthOfNodeCandidates endpoint:
Expand Down

0 comments on commit 05d0cfb

Please sign in to comment.