All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
SlurmV0039CancelJob | Delete /slurm/v0.0.39/job/{job_id} | cancel or signal job |
SlurmV0039DeleteNode | Delete /slurm/v0.0.39/node/{node_name} | delete node |
SlurmV0039Diag | Get /slurm/v0.0.39/diag | get diagnostics |
SlurmV0039GetJob | Get /slurm/v0.0.39/job/{job_id} | get job info |
SlurmV0039GetJobs | Get /slurm/v0.0.39/jobs | get list of jobs |
SlurmV0039GetNode | Get /slurm/v0.0.39/node/{node_name} | get node info |
SlurmV0039GetNodes | Get /slurm/v0.0.39/nodes | get all node info |
SlurmV0039GetPartition | Get /slurm/v0.0.39/partition/{partition_name} | get partition info |
SlurmV0039GetPartitions | Get /slurm/v0.0.39/partitions | get all partition info |
SlurmV0039GetReservation | Get /slurm/v0.0.39/reservation/{reservation_name} | get reservation info |
SlurmV0039GetReservations | Get /slurm/v0.0.39/reservations | get all reservation info |
SlurmV0039Ping | Get /slurm/v0.0.39/ping | ping test |
SlurmV0039SlurmctldGetLicenses | Get /slurm/v0.0.39/licenses | get all Slurm tracked license info |
SlurmV0039SubmitJob | Post /slurm/v0.0.39/job/submit | submit new job |
SlurmV0039UpdateJob | Post /slurm/v0.0.39/job/{job_id} | update job |
SlurmV0039UpdateNode | Post /slurm/v0.0.39/node/{node_name} | update node properties |
SlurmV0040DeleteJob | Delete /slurm/v0.0.40/job/{job_id} | cancel or signal job |
SlurmV0040DeleteJobs | Delete /slurm/v0.0.40/jobs/ | send signal to list of jobs |
SlurmV0040DeleteNode | Delete /slurm/v0.0.40/node/{node_name} | delete node |
SlurmV0040GetDiag | Get /slurm/v0.0.40/diag/ | get diagnostics |
SlurmV0040GetJob | Get /slurm/v0.0.40/job/{job_id} | get job info |
SlurmV0040GetJobs | Get /slurm/v0.0.40/jobs/ | get list of jobs |
SlurmV0040GetJobsState | Get /slurm/v0.0.40/jobs/state/ | get list of job states |
SlurmV0040GetLicenses | Get /slurm/v0.0.40/licenses/ | get all Slurm tracked license info |
SlurmV0040GetNode | Get /slurm/v0.0.40/node/{node_name} | get node info |
SlurmV0040GetNodes | Get /slurm/v0.0.40/nodes/ | get node(s) info |
SlurmV0040GetPartition | Get /slurm/v0.0.40/partition/{partition_name} | get partition info |
SlurmV0040GetPartitions | Get /slurm/v0.0.40/partitions/ | get all partition info |
SlurmV0040GetPing | Get /slurm/v0.0.40/ping/ | ping test |
SlurmV0040GetReconfigure | Get /slurm/v0.0.40/reconfigure/ | request slurmctld reconfigure |
SlurmV0040GetReservation | Get /slurm/v0.0.40/reservation/{reservation_name} | get reservation info |
SlurmV0040GetReservations | Get /slurm/v0.0.40/reservations/ | get all reservation info |
SlurmV0040GetShares | Get /slurm/v0.0.40/shares | get fairshare info |
SlurmV0040PostJob | Post /slurm/v0.0.40/job/{job_id} | update job |
SlurmV0040PostJobSubmit | Post /slurm/v0.0.40/job/submit | submit new job |
SlurmV0040PostNode | Post /slurm/v0.0.40/node/{node_name} | update node properties |
SlurmV0041DeleteJob | Delete /slurm/v0.0.41/job/{job_id} | cancel or signal job |
SlurmV0041DeleteJobs | Delete /slurm/v0.0.41/jobs/ | send signal to list of jobs |
SlurmV0041DeleteNode | Delete /slurm/v0.0.41/node/{node_name} | delete node |
SlurmV0041GetDiag | Get /slurm/v0.0.41/diag/ | get diagnostics |
SlurmV0041GetJob | Get /slurm/v0.0.41/job/{job_id} | get job info |
SlurmV0041GetJobs | Get /slurm/v0.0.41/jobs/ | get list of jobs |
SlurmV0041GetJobsState | Get /slurm/v0.0.41/jobs/state/ | get list of job states |
SlurmV0041GetLicenses | Get /slurm/v0.0.41/licenses/ | get all Slurm tracked license info |
SlurmV0041GetNode | Get /slurm/v0.0.41/node/{node_name} | get node info |
SlurmV0041GetNodes | Get /slurm/v0.0.41/nodes/ | get node(s) info |
SlurmV0041GetPartition | Get /slurm/v0.0.41/partition/{partition_name} | get partition info |
SlurmV0041GetPartitions | Get /slurm/v0.0.41/partitions/ | get all partition info |
SlurmV0041GetPing | Get /slurm/v0.0.41/ping/ | ping test |
SlurmV0041GetReconfigure | Get /slurm/v0.0.41/reconfigure/ | request slurmctld reconfigure |
SlurmV0041GetReservation | Get /slurm/v0.0.41/reservation/{reservation_name} | get reservation info |
SlurmV0041GetReservations | Get /slurm/v0.0.41/reservations/ | get all reservation info |
SlurmV0041GetShares | Get /slurm/v0.0.41/shares | get fairshare info |
SlurmV0041PostJob | Post /slurm/v0.0.41/job/{job_id} | update job |
SlurmV0041PostJobAllocate | Post /slurm/v0.0.41/job/allocate | submit new job allocation without any steps that must be signaled to stop |
SlurmV0041PostJobSubmit | Post /slurm/v0.0.41/job/submit | submit new job |
SlurmV0041PostNode | Post /slurm/v0.0.41/node/{node_name} | update node properties |
SlurmdbV0039AddClusters | Post /slurmdb/v0.0.39/clusters | Add clusters |
SlurmdbV0039AddWckeys | Post /slurmdb/v0.0.39/wckeys | Add wckeys |
SlurmdbV0039DeleteAccount | Delete /slurmdb/v0.0.39/account/{account_name} | Delete account |
SlurmdbV0039DeleteAssociation | Delete /slurmdb/v0.0.39/association | Delete association |
SlurmdbV0039DeleteAssociations | Delete /slurmdb/v0.0.39/associations | Delete associations |
SlurmdbV0039DeleteCluster | Delete /slurmdb/v0.0.39/cluster/{cluster_name} | Delete cluster |
SlurmdbV0039DeleteQos | Delete /slurmdb/v0.0.39/qos/{qos_name} | Delete QOS |
SlurmdbV0039DeleteUser | Delete /slurmdb/v0.0.39/user/{user_name} | Delete user |
SlurmdbV0039DeleteWckey | Delete /slurmdb/v0.0.39/wckey/{wckey} | Delete wckey |
SlurmdbV0039Diag | Get /slurmdb/v0.0.39/diag | Get slurmdb diagnostics |
SlurmdbV0039GetAccount | Get /slurmdb/v0.0.39/account/{account_name} | Get account info |
SlurmdbV0039GetAccounts | Get /slurmdb/v0.0.39/accounts | Get account list |
SlurmdbV0039GetAssociation | Get /slurmdb/v0.0.39/association | Get association info |
SlurmdbV0039GetAssociations | Get /slurmdb/v0.0.39/associations | Get association list |
SlurmdbV0039GetCluster | Get /slurmdb/v0.0.39/cluster/{cluster_name} | Get cluster info |
SlurmdbV0039GetClusters | Get /slurmdb/v0.0.39/clusters | Get cluster list |
SlurmdbV0039GetConfig | Get /slurmdb/v0.0.39/config | Dump all configuration information |
SlurmdbV0039GetJob | Get /slurmdb/v0.0.39/job/{job_id} | Get job info |
SlurmdbV0039GetJobs | Get /slurmdb/v0.0.39/jobs | Get job list |
SlurmdbV0039GetQos | Get /slurmdb/v0.0.39/qos | Get QOS list |
SlurmdbV0039GetSingleQos | Get /slurmdb/v0.0.39/qos/{qos_name} | Get QOS info |
SlurmdbV0039GetTres | Get /slurmdb/v0.0.39/tres | Get TRES info |
SlurmdbV0039GetUser | Get /slurmdb/v0.0.39/user/{user_name} | Get user info |
SlurmdbV0039GetUsers | Get /slurmdb/v0.0.39/users | Get user list |
SlurmdbV0039GetWckey | Get /slurmdb/v0.0.39/wckey/{wckey} | Get wckey info |
SlurmdbV0039GetWckeys | Get /slurmdb/v0.0.39/wckeys | Get wckey list |
SlurmdbV0039SetConfig | Post /slurmdb/v0.0.39/config | Load all configuration information |
SlurmdbV0039UpdateAccounts | Post /slurmdb/v0.0.39/accounts | Update accounts |
SlurmdbV0039UpdateAssociations | Post /slurmdb/v0.0.39/associations | Set associations info |
SlurmdbV0039UpdateQos | Post /slurmdb/v0.0.39/qos | Set QOS info |
SlurmdbV0039UpdateTres | Post /slurmdb/v0.0.39/tres | Set TRES info |
SlurmdbV0039UpdateUsers | Post /slurmdb/v0.0.39/users | Update user |
Status SlurmV0039CancelJob(ctx, jobId).Signal(signal).Execute()
cancel or signal job
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
jobId := "jobId_example" // string | Slurm Job ID
signal := "signal_example" // string | signal to send to job (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039CancelJob(context.Background(), jobId).Signal(signal).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039CancelJob``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039CancelJob`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039CancelJob`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | Slurm Job ID |
Other parameters are passed through a pointer to a apiSlurmV0039CancelJobRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
signal | string | signal to send to job |
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmV0039DeleteNode(ctx, nodeName).Execute()
delete node
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
nodeName := "nodeName_example" // string | Slurm Node Name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039DeleteNode(context.Background(), nodeName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039DeleteNode``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039DeleteNode`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039DeleteNode`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
nodeName | string | Slurm Node Name |
Other parameters are passed through a pointer to a apiSlurmV0039DeleteNodeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0039Diag SlurmV0039Diag(ctx).Execute()
get diagnostics
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039Diag(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039Diag``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039Diag`: V0039Diag
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039Diag`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmV0039DiagRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0039JobsResponse SlurmV0039GetJob(ctx, jobId).Execute()
get job info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
jobId := "jobId_example" // string | Slurm JobID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039GetJob(context.Background(), jobId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039GetJob``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039GetJob`: V0039JobsResponse
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039GetJob`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | Slurm JobID |
Other parameters are passed through a pointer to a apiSlurmV0039GetJobRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0039JobsResponse SlurmV0039GetJobs(ctx).UpdateTime(updateTime).Execute()
get list of jobs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
updateTime := int64(789) // int64 | Filter if changed since update_time. Use of this parameter can result in faster replies. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039GetJobs(context.Background()).UpdateTime(updateTime).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039GetJobs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039GetJobs`: V0039JobsResponse
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039GetJobs`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0039GetJobsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | int64 | Filter if changed since update_time. Use of this parameter can result in faster replies. |
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0039NodesResponse SlurmV0039GetNode(ctx, nodeName).Execute()
get node info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
nodeName := "nodeName_example" // string | Slurm Node Name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039GetNode(context.Background(), nodeName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039GetNode``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039GetNode`: V0039NodesResponse
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039GetNode`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
nodeName | string | Slurm Node Name |
Other parameters are passed through a pointer to a apiSlurmV0039GetNodeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0039NodesResponse SlurmV0039GetNodes(ctx).UpdateTime(updateTime).Execute()
get all node info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
updateTime := int64(789) // int64 | Filter if changed since update_time. Use of this parameter can result in faster replies. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039GetNodes(context.Background()).UpdateTime(updateTime).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039GetNodes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039GetNodes`: V0039NodesResponse
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039GetNodes`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0039GetNodesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | int64 | Filter if changed since update_time. Use of this parameter can result in faster replies. |
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0039PartitionsResponse SlurmV0039GetPartition(ctx, partitionName).UpdateTime(updateTime).Execute()
get partition info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
partitionName := "partitionName_example" // string | Slurm Partition Name
updateTime := int64(789) // int64 | Filter if there were no partition changes (not limited to partition in URL endpoint) since update_time. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039GetPartition(context.Background(), partitionName).UpdateTime(updateTime).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039GetPartition``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039GetPartition`: V0039PartitionsResponse
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039GetPartition`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
partitionName | string | Slurm Partition Name |
Other parameters are passed through a pointer to a apiSlurmV0039GetPartitionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateTime | int64 | Filter if there were no partition changes (not limited to partition in URL endpoint) since update_time. |
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0039PartitionsResponse SlurmV0039GetPartitions(ctx).UpdateTime(updateTime).Execute()
get all partition info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
updateTime := int64(789) // int64 | Filter if changed since update_time. Use of this parameter can result in faster replies. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039GetPartitions(context.Background()).UpdateTime(updateTime).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039GetPartitions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039GetPartitions`: V0039PartitionsResponse
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039GetPartitions`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0039GetPartitionsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | int64 | Filter if changed since update_time. Use of this parameter can result in faster replies. |
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0039ReservationsResponse SlurmV0039GetReservation(ctx, reservationName).UpdateTime(updateTime).Execute()
get reservation info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
reservationName := "reservationName_example" // string | Slurm Reservation Name
updateTime := int64(789) // int64 | Filter if no reservation (not limited to reservation in URL) changed since update_time. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039GetReservation(context.Background(), reservationName).UpdateTime(updateTime).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039GetReservation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039GetReservation`: V0039ReservationsResponse
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039GetReservation`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
reservationName | string | Slurm Reservation Name |
Other parameters are passed through a pointer to a apiSlurmV0039GetReservationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateTime | int64 | Filter if no reservation (not limited to reservation in URL) changed since update_time. |
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0039ReservationsResponse SlurmV0039GetReservations(ctx).UpdateTime(updateTime).Execute()
get all reservation info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
updateTime := int64(789) // int64 | Filter if changed since update_time. Use of this parameter can result in faster replies. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039GetReservations(context.Background()).UpdateTime(updateTime).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039GetReservations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039GetReservations`: V0039ReservationsResponse
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039GetReservations`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0039GetReservationsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | int64 | Filter if changed since update_time. Use of this parameter can result in faster replies. |
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0039Pings SlurmV0039Ping(ctx).Execute()
ping test
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039Ping(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039Ping``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039Ping`: V0039Pings
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039Ping`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmV0039PingRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0039LicensesInfo SlurmV0039SlurmctldGetLicenses(ctx).Execute()
get all Slurm tracked license info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039SlurmctldGetLicenses(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039SlurmctldGetLicenses``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039SlurmctldGetLicenses`: V0039LicensesInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039SlurmctldGetLicenses`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmV0039SlurmctldGetLicensesRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0039JobSubmissionResponse SlurmV0039SubmitJob(ctx).V0039JobSubmission(v0039JobSubmission).Execute()
submit new job
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0039JobSubmission := *openapiclient.NewV0039JobSubmission() // V0039JobSubmission | submit new job
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039SubmitJob(context.Background()).V0039JobSubmission(v0039JobSubmission).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039SubmitJob``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039SubmitJob`: V0039JobSubmissionResponse
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039SubmitJob`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0039SubmitJobRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0039JobSubmission | V0039JobSubmission | submit new job |
- Content-Type: application/json, application/x-yaml
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0039JobUpdateResponse SlurmV0039UpdateJob(ctx, jobId).V0039JobDescMsg(v0039JobDescMsg).Execute()
update job
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
jobId := "jobId_example" // string | Slurm Job ID
v0039JobDescMsg := *openapiclient.NewV0039JobDescMsg([]string{"Environment_example"}) // V0039JobDescMsg | update job
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039UpdateJob(context.Background(), jobId).V0039JobDescMsg(v0039JobDescMsg).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039UpdateJob``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039UpdateJob`: V0039JobUpdateResponse
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039UpdateJob`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | Slurm Job ID |
Other parameters are passed through a pointer to a apiSlurmV0039UpdateJobRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
v0039JobDescMsg | V0039JobDescMsg | update job |
- Content-Type: application/json, application/x-yaml
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmV0039UpdateNode(ctx, nodeName).V0039UpdateNodeMsg(v0039UpdateNodeMsg).Execute()
update node properties
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
nodeName := "nodeName_example" // string | Slurm Node Name
v0039UpdateNodeMsg := *openapiclient.NewV0039UpdateNodeMsg() // V0039UpdateNodeMsg | update node
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0039UpdateNode(context.Background(), nodeName).V0039UpdateNodeMsg(v0039UpdateNodeMsg).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0039UpdateNode``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0039UpdateNode`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0039UpdateNode`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
nodeName | string | Slurm Node Name |
Other parameters are passed through a pointer to a apiSlurmV0039UpdateNodeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
v0039UpdateNodeMsg | V0039UpdateNodeMsg | update node |
- Content-Type: application/json, application/x-yaml
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiResp SlurmV0040DeleteJob(ctx, jobId).Signal(signal).Flags(flags).Execute()
cancel or signal job
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
jobId := "jobId_example" // string | JobId
signal := "signal_example" // string | Signal to send to Job (optional)
flags := "flags_example" // string | Signalling flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040DeleteJob(context.Background(), jobId).Signal(signal).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040DeleteJob``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040DeleteJob`: V0040OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040DeleteJob`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | JobId |
Other parameters are passed through a pointer to a apiSlurmV0040DeleteJobRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
signal | string | Signal to send to Job | flags | string | Signalling flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiKillJobsResp SlurmV0040DeleteJobs(ctx).Account(account).Flags(flags).JobName(jobName).Jobs(jobs).Partition(partition).Qos(qos).Reservation(reservation).Signal(signal).JobState(jobState).UserId(userId).UserName(userName).Wckey(wckey).Nodes(nodes).Execute()
send signal to list of jobs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
account := "account_example" // string | Filter jobs to a specific account (optional)
flags := "flags_example" // string | Filter jobs according to flags (optional)
jobName := "jobName_example" // string | Filter jobs to a specific name (optional)
jobs := "jobs_example" // string | List of jobs to signal (optional)
partition := "partition_example" // string | Filter jobs to a specific partition (optional)
qos := "qos_example" // string | Filter jobs to a specific QOS (optional)
reservation := "reservation_example" // string | Filter jobs to a specific reservation (optional)
signal := "signal_example" // string | Signal to send to jobs (optional)
jobState := "jobState_example" // string | Filter jobs to a specific state (optional)
userId := "userId_example" // string | Filter jobs to a specific numeric user id (optional)
userName := "userName_example" // string | Filter jobs to a specific user name (optional)
wckey := "wckey_example" // string | Filter jobs to a specific wckey (optional)
nodes := "nodes_example" // string | Filter jobs to a set of nodes (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040DeleteJobs(context.Background()).Account(account).Flags(flags).JobName(jobName).Jobs(jobs).Partition(partition).Qos(qos).Reservation(reservation).Signal(signal).JobState(jobState).UserId(userId).UserName(userName).Wckey(wckey).Nodes(nodes).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040DeleteJobs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040DeleteJobs`: V0040OpenapiKillJobsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040DeleteJobs`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0040DeleteJobsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
account | string | Filter jobs to a specific account | |
flags | string | Filter jobs according to flags | |
jobName | string | Filter jobs to a specific name | |
jobs | string | List of jobs to signal | |
partition | string | Filter jobs to a specific partition | |
qos | string | Filter jobs to a specific QOS | |
reservation | string | Filter jobs to a specific reservation | |
signal | string | Signal to send to jobs | |
jobState | string | Filter jobs to a specific state | |
userId | string | Filter jobs to a specific numeric user id | |
userName | string | Filter jobs to a specific user name | |
wckey | string | Filter jobs to a specific wckey | |
nodes | string | Filter jobs to a set of nodes |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiResp SlurmV0040DeleteNode(ctx, nodeName).Execute()
delete node
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
nodeName := "nodeName_example" // string | Node name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040DeleteNode(context.Background(), nodeName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040DeleteNode``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040DeleteNode`: V0040OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040DeleteNode`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
nodeName | string | Node name |
Other parameters are passed through a pointer to a apiSlurmV0040DeleteNodeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiDiagResp SlurmV0040GetDiag(ctx).Execute()
get diagnostics
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040GetDiag(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040GetDiag``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040GetDiag`: V0040OpenapiDiagResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040GetDiag`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmV0040GetDiagRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiJobInfoResp SlurmV0040GetJob(ctx, jobId).UpdateTime(updateTime).Flags(flags).Execute()
get job info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
jobId := "jobId_example" // string | JobId
updateTime := "updateTime_example" // string | Filter jobs since update timestamp (optional)
flags := "flags_example" // string | Query flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040GetJob(context.Background(), jobId).UpdateTime(updateTime).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040GetJob``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040GetJob`: V0040OpenapiJobInfoResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040GetJob`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | JobId |
Other parameters are passed through a pointer to a apiSlurmV0040GetJobRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateTime | string | Filter jobs since update timestamp | flags | string | Query flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiJobInfoResp SlurmV0040GetJobs(ctx).UpdateTime(updateTime).Flags(flags).Execute()
get list of jobs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
updateTime := "updateTime_example" // string | Filter jobs since update timestamp (optional)
flags := "flags_example" // string | Query flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040GetJobs(context.Background()).UpdateTime(updateTime).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040GetJobs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040GetJobs`: V0040OpenapiJobInfoResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040GetJobs`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0040GetJobsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | string | Filter jobs since update timestamp | |
flags | string | Query flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiJobInfoResp SlurmV0040GetJobsState(ctx).UpdateTime(updateTime).Flags(flags).Execute()
get list of job states
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
updateTime := "updateTime_example" // string | Filter jobs since update timestamp (optional)
flags := "flags_example" // string | Query flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040GetJobsState(context.Background()).UpdateTime(updateTime).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040GetJobsState``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040GetJobsState`: V0040OpenapiJobInfoResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040GetJobsState`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0040GetJobsStateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | string | Filter jobs since update timestamp | |
flags | string | Query flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiLicensesResp SlurmV0040GetLicenses(ctx).Execute()
get all Slurm tracked license info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040GetLicenses(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040GetLicenses``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040GetLicenses`: V0040OpenapiLicensesResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040GetLicenses`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmV0040GetLicensesRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiNodesResp SlurmV0040GetNode(ctx, nodeName).UpdateTime(updateTime).Flags(flags).Execute()
get node info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
nodeName := "nodeName_example" // string | Node name
updateTime := "updateTime_example" // string | Filter jobs since update timestamp (optional)
flags := "flags_example" // string | Query flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040GetNode(context.Background(), nodeName).UpdateTime(updateTime).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040GetNode``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040GetNode`: V0040OpenapiNodesResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040GetNode`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
nodeName | string | Node name |
Other parameters are passed through a pointer to a apiSlurmV0040GetNodeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateTime | string | Filter jobs since update timestamp | flags | string | Query flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiNodesResp SlurmV0040GetNodes(ctx).UpdateTime(updateTime).Flags(flags).Execute()
get node(s) info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
updateTime := "updateTime_example" // string | Filter jobs since update timestamp (optional)
flags := "flags_example" // string | Query flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040GetNodes(context.Background()).UpdateTime(updateTime).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040GetNodes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040GetNodes`: V0040OpenapiNodesResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040GetNodes`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0040GetNodesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | string | Filter jobs since update timestamp | |
flags | string | Query flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiPartitionResp SlurmV0040GetPartition(ctx, partitionName).UpdateTime(updateTime).Flags(flags).Execute()
get partition info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
partitionName := "partitionName_example" // string | Partition name
updateTime := "updateTime_example" // string | Filter partitions since update timestamp (optional)
flags := "flags_example" // string | Query flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040GetPartition(context.Background(), partitionName).UpdateTime(updateTime).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040GetPartition``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040GetPartition`: V0040OpenapiPartitionResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040GetPartition`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
partitionName | string | Partition name |
Other parameters are passed through a pointer to a apiSlurmV0040GetPartitionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateTime | string | Filter partitions since update timestamp | flags | string | Query flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiPartitionResp SlurmV0040GetPartitions(ctx).UpdateTime(updateTime).Flags(flags).Execute()
get all partition info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
updateTime := "updateTime_example" // string | Filter partitions since update timestamp (optional)
flags := "flags_example" // string | Query flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040GetPartitions(context.Background()).UpdateTime(updateTime).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040GetPartitions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040GetPartitions`: V0040OpenapiPartitionResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040GetPartitions`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0040GetPartitionsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | string | Filter partitions since update timestamp | |
flags | string | Query flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiPingArrayResp SlurmV0040GetPing(ctx).Execute()
ping test
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040GetPing(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040GetPing``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040GetPing`: V0040OpenapiPingArrayResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040GetPing`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmV0040GetPingRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiResp SlurmV0040GetReconfigure(ctx).Execute()
request slurmctld reconfigure
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040GetReconfigure(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040GetReconfigure``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040GetReconfigure`: V0040OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040GetReconfigure`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmV0040GetReconfigureRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiReservationResp SlurmV0040GetReservation(ctx, reservationName).UpdateTime(updateTime).Execute()
get reservation info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
reservationName := "reservationName_example" // string | Reservation name
updateTime := "updateTime_example" // string | Filter reservations since update timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040GetReservation(context.Background(), reservationName).UpdateTime(updateTime).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040GetReservation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040GetReservation`: V0040OpenapiReservationResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040GetReservation`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
reservationName | string | Reservation name |
Other parameters are passed through a pointer to a apiSlurmV0040GetReservationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateTime | string | Filter reservations since update timestamp |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiReservationResp SlurmV0040GetReservations(ctx).UpdateTime(updateTime).Execute()
get all reservation info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
updateTime := "updateTime_example" // string | Filter reservations since update timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040GetReservations(context.Background()).UpdateTime(updateTime).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040GetReservations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040GetReservations`: V0040OpenapiReservationResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040GetReservations`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0040GetReservationsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | string | Filter reservations since update timestamp |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiSharesResp SlurmV0040GetShares(ctx).Accounts(accounts).Users(users).Execute()
get fairshare info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
accounts := "accounts_example" // string | Accounts to query (optional)
users := "users_example" // string | Users to query (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040GetShares(context.Background()).Accounts(accounts).Users(users).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040GetShares``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040GetShares`: V0040OpenapiSharesResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040GetShares`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0040GetSharesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
accounts | string | Accounts to query | |
users | string | Users to query |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiJobPostResponse SlurmV0040PostJob(ctx, jobId).V0040JobDescMsg(v0040JobDescMsg).Execute()
update job
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
jobId := "jobId_example" // string | JobId
v0040JobDescMsg := *openapiclient.NewV0040JobDescMsg() // V0040JobDescMsg | Job update description (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040PostJob(context.Background(), jobId).V0040JobDescMsg(v0040JobDescMsg).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040PostJob``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040PostJob`: V0040OpenapiJobPostResponse
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040PostJob`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | JobId |
Other parameters are passed through a pointer to a apiSlurmV0040PostJobRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
v0040JobDescMsg | V0040JobDescMsg | Job update description |
- Content-Type: application/x-yaml, application/json
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiJobSubmitResponse SlurmV0040PostJobSubmit(ctx).V0040JobSubmitReq(v0040JobSubmitReq).Execute()
submit new job
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0040JobSubmitReq := *openapiclient.NewV0040JobSubmitReq() // V0040JobSubmitReq | Job description (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040PostJobSubmit(context.Background()).V0040JobSubmitReq(v0040JobSubmitReq).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040PostJobSubmit``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040PostJobSubmit`: V0040OpenapiJobSubmitResponse
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040PostJobSubmit`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0040PostJobSubmitRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0040JobSubmitReq | V0040JobSubmitReq | Job description |
- Content-Type: application/x-yaml, application/json
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiResp SlurmV0040PostNode(ctx, nodeName).V0040UpdateNodeMsg(v0040UpdateNodeMsg).Execute()
update node properties
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
nodeName := "nodeName_example" // string | Node name
v0040UpdateNodeMsg := *openapiclient.NewV0040UpdateNodeMsg() // V0040UpdateNodeMsg | Node update description (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0040PostNode(context.Background(), nodeName).V0040UpdateNodeMsg(v0040UpdateNodeMsg).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0040PostNode``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0040PostNode`: V0040OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0040PostNode`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
nodeName | string | Node name |
Other parameters are passed through a pointer to a apiSlurmV0040PostNodeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
v0040UpdateNodeMsg | V0040UpdateNodeMsg | Node update description |
- Content-Type: application/x-yaml, application/json
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiResp SlurmV0041DeleteJob(ctx, jobId).Signal(signal).Flags(flags).Execute()
cancel or signal job
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
jobId := "jobId_example" // string | JobId
signal := "signal_example" // string | Signal to send to Job (optional)
flags := "flags_example" // string | Signalling flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041DeleteJob(context.Background(), jobId).Signal(signal).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041DeleteJob``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041DeleteJob`: V0041OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041DeleteJob`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | JobId |
Other parameters are passed through a pointer to a apiSlurmV0041DeleteJobRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
signal | string | Signal to send to Job | flags | string | Signalling flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiKillJobsResp SlurmV0041DeleteJobs(ctx).Account(account).Flags(flags).JobName(jobName).Jobs(jobs).Partition(partition).Qos(qos).Reservation(reservation).Signal(signal).JobState(jobState).UserId(userId).UserName(userName).Wckey(wckey).Nodes(nodes).Execute()
send signal to list of jobs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
account := "account_example" // string | Filter jobs to a specific account (optional)
flags := "flags_example" // string | Filter jobs according to flags (optional)
jobName := "jobName_example" // string | Filter jobs to a specific name (optional)
jobs := "jobs_example" // string | List of jobs to signal (optional)
partition := "partition_example" // string | Filter jobs to a specific partition (optional)
qos := "qos_example" // string | Filter jobs to a specific QOS (optional)
reservation := "reservation_example" // string | Filter jobs to a specific reservation (optional)
signal := "signal_example" // string | Signal to send to jobs (optional)
jobState := "jobState_example" // string | Filter jobs to a specific state (optional)
userId := "userId_example" // string | Filter jobs to a specific numeric user id (optional)
userName := "userName_example" // string | Filter jobs to a specific user name (optional)
wckey := "wckey_example" // string | Filter jobs to a specific wckey (optional)
nodes := "nodes_example" // string | Filter jobs to a set of nodes (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041DeleteJobs(context.Background()).Account(account).Flags(flags).JobName(jobName).Jobs(jobs).Partition(partition).Qos(qos).Reservation(reservation).Signal(signal).JobState(jobState).UserId(userId).UserName(userName).Wckey(wckey).Nodes(nodes).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041DeleteJobs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041DeleteJobs`: V0041OpenapiKillJobsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041DeleteJobs`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0041DeleteJobsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
account | string | Filter jobs to a specific account | |
flags | string | Filter jobs according to flags | |
jobName | string | Filter jobs to a specific name | |
jobs | string | List of jobs to signal | |
partition | string | Filter jobs to a specific partition | |
qos | string | Filter jobs to a specific QOS | |
reservation | string | Filter jobs to a specific reservation | |
signal | string | Signal to send to jobs | |
jobState | string | Filter jobs to a specific state | |
userId | string | Filter jobs to a specific numeric user id | |
userName | string | Filter jobs to a specific user name | |
wckey | string | Filter jobs to a specific wckey | |
nodes | string | Filter jobs to a set of nodes |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiResp SlurmV0041DeleteNode(ctx, nodeName).Execute()
delete node
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
nodeName := "nodeName_example" // string | Node name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041DeleteNode(context.Background(), nodeName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041DeleteNode``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041DeleteNode`: V0041OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041DeleteNode`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
nodeName | string | Node name |
Other parameters are passed through a pointer to a apiSlurmV0041DeleteNodeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiDiagResp SlurmV0041GetDiag(ctx).Execute()
get diagnostics
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041GetDiag(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041GetDiag``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041GetDiag`: V0041OpenapiDiagResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041GetDiag`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmV0041GetDiagRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiJobInfoResp SlurmV0041GetJob(ctx, jobId).UpdateTime(updateTime).Flags(flags).Execute()
get job info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
jobId := "jobId_example" // string | JobId
updateTime := "updateTime_example" // string | Filter jobs since update timestamp (optional)
flags := "flags_example" // string | Query flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041GetJob(context.Background(), jobId).UpdateTime(updateTime).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041GetJob``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041GetJob`: V0041OpenapiJobInfoResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041GetJob`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | JobId |
Other parameters are passed through a pointer to a apiSlurmV0041GetJobRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateTime | string | Filter jobs since update timestamp | flags | string | Query flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiJobInfoResp SlurmV0041GetJobs(ctx).UpdateTime(updateTime).Flags(flags).Execute()
get list of jobs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
updateTime := "updateTime_example" // string | Filter jobs since update timestamp (optional)
flags := "flags_example" // string | Query flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041GetJobs(context.Background()).UpdateTime(updateTime).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041GetJobs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041GetJobs`: V0041OpenapiJobInfoResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041GetJobs`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0041GetJobsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | string | Filter jobs since update timestamp | |
flags | string | Query flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiJobInfoResp SlurmV0041GetJobsState(ctx).UpdateTime(updateTime).Flags(flags).Execute()
get list of job states
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
updateTime := "updateTime_example" // string | Filter jobs since update timestamp (optional)
flags := "flags_example" // string | Query flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041GetJobsState(context.Background()).UpdateTime(updateTime).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041GetJobsState``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041GetJobsState`: V0041OpenapiJobInfoResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041GetJobsState`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0041GetJobsStateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | string | Filter jobs since update timestamp | |
flags | string | Query flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiLicensesResp SlurmV0041GetLicenses(ctx).Execute()
get all Slurm tracked license info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041GetLicenses(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041GetLicenses``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041GetLicenses`: V0041OpenapiLicensesResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041GetLicenses`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmV0041GetLicensesRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiNodesResp SlurmV0041GetNode(ctx, nodeName).UpdateTime(updateTime).Flags(flags).Execute()
get node info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
nodeName := "nodeName_example" // string | Node name
updateTime := "updateTime_example" // string | Filter jobs since update timestamp (optional)
flags := "flags_example" // string | Query flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041GetNode(context.Background(), nodeName).UpdateTime(updateTime).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041GetNode``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041GetNode`: V0041OpenapiNodesResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041GetNode`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
nodeName | string | Node name |
Other parameters are passed through a pointer to a apiSlurmV0041GetNodeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateTime | string | Filter jobs since update timestamp | flags | string | Query flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiNodesResp SlurmV0041GetNodes(ctx).UpdateTime(updateTime).Flags(flags).Execute()
get node(s) info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
updateTime := "updateTime_example" // string | Filter jobs since update timestamp (optional)
flags := "flags_example" // string | Query flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041GetNodes(context.Background()).UpdateTime(updateTime).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041GetNodes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041GetNodes`: V0041OpenapiNodesResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041GetNodes`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0041GetNodesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | string | Filter jobs since update timestamp | |
flags | string | Query flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiPartitionResp SlurmV0041GetPartition(ctx, partitionName).UpdateTime(updateTime).Flags(flags).Execute()
get partition info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
partitionName := "partitionName_example" // string | Partition name
updateTime := "updateTime_example" // string | Filter partitions since update timestamp (optional)
flags := "flags_example" // string | Query flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041GetPartition(context.Background(), partitionName).UpdateTime(updateTime).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041GetPartition``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041GetPartition`: V0041OpenapiPartitionResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041GetPartition`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
partitionName | string | Partition name |
Other parameters are passed through a pointer to a apiSlurmV0041GetPartitionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateTime | string | Filter partitions since update timestamp | flags | string | Query flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiPartitionResp SlurmV0041GetPartitions(ctx).UpdateTime(updateTime).Flags(flags).Execute()
get all partition info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
updateTime := "updateTime_example" // string | Filter partitions since update timestamp (optional)
flags := "flags_example" // string | Query flags (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041GetPartitions(context.Background()).UpdateTime(updateTime).Flags(flags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041GetPartitions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041GetPartitions`: V0041OpenapiPartitionResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041GetPartitions`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0041GetPartitionsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | string | Filter partitions since update timestamp | |
flags | string | Query flags |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiPingArrayResp SlurmV0041GetPing(ctx).Execute()
ping test
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041GetPing(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041GetPing``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041GetPing`: V0041OpenapiPingArrayResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041GetPing`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmV0041GetPingRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiResp SlurmV0041GetReconfigure(ctx).Execute()
request slurmctld reconfigure
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041GetReconfigure(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041GetReconfigure``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041GetReconfigure`: V0041OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041GetReconfigure`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmV0041GetReconfigureRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiReservationResp SlurmV0041GetReservation(ctx, reservationName).UpdateTime(updateTime).Execute()
get reservation info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
reservationName := "reservationName_example" // string | Reservation name
updateTime := "updateTime_example" // string | Filter reservations since update timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041GetReservation(context.Background(), reservationName).UpdateTime(updateTime).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041GetReservation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041GetReservation`: V0041OpenapiReservationResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041GetReservation`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
reservationName | string | Reservation name |
Other parameters are passed through a pointer to a apiSlurmV0041GetReservationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateTime | string | Filter reservations since update timestamp |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiReservationResp SlurmV0041GetReservations(ctx).UpdateTime(updateTime).Execute()
get all reservation info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
updateTime := "updateTime_example" // string | Filter reservations since update timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041GetReservations(context.Background()).UpdateTime(updateTime).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041GetReservations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041GetReservations`: V0041OpenapiReservationResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041GetReservations`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0041GetReservationsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | string | Filter reservations since update timestamp |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiSharesResp SlurmV0041GetShares(ctx).Accounts(accounts).Users(users).Execute()
get fairshare info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
accounts := "accounts_example" // string | Accounts to query (optional)
users := "users_example" // string | Users to query (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041GetShares(context.Background()).Accounts(accounts).Users(users).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041GetShares``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041GetShares`: V0041OpenapiSharesResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041GetShares`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0041GetSharesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
accounts | string | Accounts to query | |
users | string | Users to query |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiJobPostResponse SlurmV0041PostJob(ctx, jobId).V0041JobDescMsg(v0041JobDescMsg).Execute()
update job
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
jobId := "jobId_example" // string | JobId
v0041JobDescMsg := *openapiclient.NewV0041JobDescMsg() // V0041JobDescMsg | Job update description (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041PostJob(context.Background(), jobId).V0041JobDescMsg(v0041JobDescMsg).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041PostJob``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041PostJob`: V0041OpenapiJobPostResponse
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041PostJob`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | JobId |
Other parameters are passed through a pointer to a apiSlurmV0041PostJobRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
v0041JobDescMsg | V0041JobDescMsg | Job update description |
- Content-Type: application/x-yaml, application/json
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiJobAllocResp SlurmV0041PostJobAllocate(ctx).V0041JobAllocReq(v0041JobAllocReq).Execute()
submit new job allocation without any steps that must be signaled to stop
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0041JobAllocReq := *openapiclient.NewV0041JobAllocReq() // V0041JobAllocReq | Job allocation description (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041PostJobAllocate(context.Background()).V0041JobAllocReq(v0041JobAllocReq).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041PostJobAllocate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041PostJobAllocate`: V0041OpenapiJobAllocResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041PostJobAllocate`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0041PostJobAllocateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0041JobAllocReq | V0041JobAllocReq | Job allocation description |
- Content-Type: application/x-yaml, application/json
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiJobSubmitResponse SlurmV0041PostJobSubmit(ctx).V0041JobSubmitReq(v0041JobSubmitReq).Execute()
submit new job
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0041JobSubmitReq := *openapiclient.NewV0041JobSubmitReq() // V0041JobSubmitReq | Job description (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041PostJobSubmit(context.Background()).V0041JobSubmitReq(v0041JobSubmitReq).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041PostJobSubmit``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041PostJobSubmit`: V0041OpenapiJobSubmitResponse
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041PostJobSubmit`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmV0041PostJobSubmitRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0041JobSubmitReq | V0041JobSubmitReq | Job description |
- Content-Type: application/x-yaml, application/json
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiResp SlurmV0041PostNode(ctx, nodeName).V0041UpdateNodeMsg(v0041UpdateNodeMsg).Execute()
update node properties
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
nodeName := "nodeName_example" // string | Node name
v0041UpdateNodeMsg := *openapiclient.NewV0041UpdateNodeMsg() // V0041UpdateNodeMsg | Node update description (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmV0041PostNode(context.Background(), nodeName).V0041UpdateNodeMsg(v0041UpdateNodeMsg).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmV0041PostNode``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmV0041PostNode`: V0041OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmV0041PostNode`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
nodeName | string | Node name |
Other parameters are passed through a pointer to a apiSlurmV0041PostNodeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
v0041UpdateNodeMsg | V0041UpdateNodeMsg | Node update description |
- Content-Type: application/x-yaml, application/json
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmdbV0039AddClusters(ctx).Dbv0039ClustersInfo(dbv0039ClustersInfo).Execute()
Add clusters
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
dbv0039ClustersInfo := *openapiclient.NewDbv0039ClustersInfo() // Dbv0039ClustersInfo | Add or update clusters
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039AddClusters(context.Background()).Dbv0039ClustersInfo(dbv0039ClustersInfo).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039AddClusters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039AddClusters`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039AddClusters`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039AddClustersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
dbv0039ClustersInfo | Dbv0039ClustersInfo | Add or update clusters |
- Content-Type: application/json, application/x-yaml
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmdbV0039AddWckeys(ctx).Dbv0039WckeyInfo(dbv0039WckeyInfo).Execute()
Add wckeys
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
dbv0039WckeyInfo := *openapiclient.NewDbv0039WckeyInfo() // Dbv0039WckeyInfo | add wckeys (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039AddWckeys(context.Background()).Dbv0039WckeyInfo(dbv0039WckeyInfo).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039AddWckeys``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039AddWckeys`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039AddWckeys`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039AddWckeysRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
dbv0039WckeyInfo | Dbv0039WckeyInfo | add wckeys |
- Content-Type: application/json, application/x-yaml
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmdbV0039DeleteAccount(ctx, accountName).Execute()
Delete account
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
accountName := "accountName_example" // string | Slurm Account Name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039DeleteAccount(context.Background(), accountName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039DeleteAccount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039DeleteAccount`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039DeleteAccount`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountName | string | Slurm Account Name |
Other parameters are passed through a pointer to a apiSlurmdbV0039DeleteAccountRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039ResponseAssociationsDelete SlurmdbV0039DeleteAssociation(ctx).Cluster(cluster).Account(account).User(user).Partition(partition).Execute()
Delete association
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cluster := "cluster_example" // string | Cluster name (optional)
account := "account_example" // string | Account name (optional)
user := "user_example" // string | User name (optional)
partition := "partition_example" // string | Partition Name (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039DeleteAssociation(context.Background()).Cluster(cluster).Account(account).User(user).Partition(partition).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039DeleteAssociation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039DeleteAssociation`: Dbv0039ResponseAssociationsDelete
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039DeleteAssociation`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039DeleteAssociationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cluster | string | Cluster name | |
account | string | Account name | |
user | string | User name | |
partition | string | Partition Name |
Dbv0039ResponseAssociationsDelete
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039ResponseAssociationsDelete SlurmdbV0039DeleteAssociations(ctx).Cluster(cluster).Account(account).User(user).Partition(partition).Execute()
Delete associations
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cluster := "cluster_example" // string | Cluster name (optional)
account := "account_example" // string | Account name (optional)
user := "user_example" // string | User name (optional)
partition := "partition_example" // string | Partition Name (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039DeleteAssociations(context.Background()).Cluster(cluster).Account(account).User(user).Partition(partition).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039DeleteAssociations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039DeleteAssociations`: Dbv0039ResponseAssociationsDelete
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039DeleteAssociations`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039DeleteAssociationsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cluster | string | Cluster name | |
account | string | Account name | |
user | string | User name | |
partition | string | Partition Name |
Dbv0039ResponseAssociationsDelete
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmdbV0039DeleteCluster(ctx, clusterName).Execute()
Delete cluster
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
clusterName := "clusterName_example" // string | Slurm cluster name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039DeleteCluster(context.Background(), clusterName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039DeleteCluster``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039DeleteCluster`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039DeleteCluster`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
clusterName | string | Slurm cluster name |
Other parameters are passed through a pointer to a apiSlurmdbV0039DeleteClusterRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmdbV0039DeleteQos(ctx, qosName).Execute()
Delete QOS
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
qosName := "qosName_example" // string | Slurm QOS Name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039DeleteQos(context.Background(), qosName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039DeleteQos``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039DeleteQos`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039DeleteQos`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
qosName | string | Slurm QOS Name |
Other parameters are passed through a pointer to a apiSlurmdbV0039DeleteQosRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmdbV0039DeleteUser(ctx, userName).Execute()
Delete user
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
userName := "userName_example" // string | Slurm User Name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039DeleteUser(context.Background(), userName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039DeleteUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039DeleteUser`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039DeleteUser`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
userName | string | Slurm User Name |
Other parameters are passed through a pointer to a apiSlurmdbV0039DeleteUserRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmdbV0039DeleteWckey(ctx, wckey).Execute()
Delete wckey
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
wckey := "wckey_example" // string | Slurm wckey name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039DeleteWckey(context.Background(), wckey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039DeleteWckey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039DeleteWckey`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039DeleteWckey`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
wckey | string | Slurm wckey name |
Other parameters are passed through a pointer to a apiSlurmdbV0039DeleteWckeyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039Diag SlurmdbV0039Diag(ctx).Execute()
Get slurmdb diagnostics
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039Diag(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039Diag``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039Diag`: Dbv0039Diag
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039Diag`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmdbV0039DiagRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039AccountInfo SlurmdbV0039GetAccount(ctx, accountName).WithDeleted(withDeleted).Execute()
Get account info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
accountName := "accountName_example" // string | Slurm Account Name
withDeleted := "withDeleted_example" // string | Include deleted accounts. False by default. (optional) (default to "false")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetAccount(context.Background(), accountName).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetAccount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetAccount`: Dbv0039AccountInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetAccount`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountName | string | Slurm Account Name |
Other parameters are passed through a pointer to a apiSlurmdbV0039GetAccountRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
withDeleted | string | Include deleted accounts. False by default. | [default to "false"]
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039AccountInfo SlurmdbV0039GetAccounts(ctx).WithDeleted(withDeleted).Execute()
Get account list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
withDeleted := "withDeleted_example" // string | Include deleted accounts. False by default. (optional) (default to "false")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetAccounts(context.Background()).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetAccounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetAccounts`: Dbv0039AccountInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetAccounts`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039GetAccountsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
withDeleted | string | Include deleted accounts. False by default. | [default to "false"] |
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039AssociationsInfo SlurmdbV0039GetAssociation(ctx).Cluster(cluster).Account(account).User(user).Partition(partition).Execute()
Get association info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cluster := "cluster_example" // string | Cluster name (optional)
account := "account_example" // string | Account name (optional)
user := "user_example" // string | User name (optional)
partition := "partition_example" // string | Partition Name (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetAssociation(context.Background()).Cluster(cluster).Account(account).User(user).Partition(partition).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetAssociation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetAssociation`: Dbv0039AssociationsInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetAssociation`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039GetAssociationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cluster | string | Cluster name | |
account | string | Account name | |
user | string | User name | |
partition | string | Partition Name |
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039AssociationsInfo SlurmdbV0039GetAssociations(ctx).Cluster(cluster).Account(account).User(user).Partition(partition).Execute()
Get association list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cluster := "cluster_example" // string | Cluster name (optional)
account := "account_example" // string | Account name (optional)
user := "user_example" // string | User name (optional)
partition := "partition_example" // string | Partition Name (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetAssociations(context.Background()).Cluster(cluster).Account(account).User(user).Partition(partition).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetAssociations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetAssociations`: Dbv0039AssociationsInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetAssociations`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039GetAssociationsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cluster | string | Cluster name | |
account | string | Account name | |
user | string | User name | |
partition | string | Partition Name |
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039ClustersInfo SlurmdbV0039GetCluster(ctx, clusterName).Execute()
Get cluster info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
clusterName := "clusterName_example" // string | Slurm cluster name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetCluster(context.Background(), clusterName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetCluster``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetCluster`: Dbv0039ClustersInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetCluster`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
clusterName | string | Slurm cluster name |
Other parameters are passed through a pointer to a apiSlurmdbV0039GetClusterRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039ClustersInfo SlurmdbV0039GetClusters(ctx).Execute()
Get cluster list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetClusters(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetClusters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetClusters`: Dbv0039ClustersInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetClusters`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmdbV0039GetClustersRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039ConfigInfo SlurmdbV0039GetConfig(ctx).Execute()
Dump all configuration information
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetConfig(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetConfig`: Dbv0039ConfigInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetConfig`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmdbV0039GetConfigRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039JobInfo SlurmdbV0039GetJob(ctx, jobId).Execute()
Get job info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
jobId := "jobId_example" // string | Slurm JobID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetJob(context.Background(), jobId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetJob``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetJob`: Dbv0039JobInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetJob`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | Slurm JobID |
Other parameters are passed through a pointer to a apiSlurmdbV0039GetJobRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039JobInfo SlurmdbV0039GetJobs(ctx).Users(users).SubmitTime(submitTime).StartTime(startTime).EndTime(endTime).Account(account).Association(association).Cluster(cluster).Constraints(constraints).CpusMax(cpusMax).CpusMin(cpusMin).SkipSteps(skipSteps).DisableWaitForResult(disableWaitForResult).ExitCode(exitCode).Format(format).Group(group).JobName(jobName).NodesMax(nodesMax).NodesMin(nodesMin).Partition(partition).Qos(qos).Reason(reason).Reservation(reservation).State(state).Step(step).Node(node).Wckey(wckey).Execute()
Get job list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
users := "users_example" // string | Filter by comma delimited list of user names (optional)
submitTime := "submitTime_example" // string | Filter by submission time Accepted formats: HH:MM[:SS] [AM|PM] MMDD[YY] or MM/DD[/YY] or MM.DD[.YY] MM/DD[/YY]-HH:MM[:SS] YYYY-MM-DD[THH:MM[:SS]] (optional)
startTime := "startTime_example" // string | Filter by start time Accepted formats: HH:MM[:SS] [AM|PM] MMDD[YY] or MM/DD[/YY] or MM.DD[.YY] MM/DD[/YY]-HH:MM[:SS] YYYY-MM-DD[THH:MM[:SS]] (optional)
endTime := "endTime_example" // string | Filter by end time Accepted formats: HH:MM[:SS] [AM|PM] MMDD[YY] or MM/DD[/YY] or MM.DD[.YY] MM/DD[/YY]-HH:MM[:SS] YYYY-MM-DD[THH:MM[:SS]] (optional)
account := "account_example" // string | Comma delimited list of accounts to match (optional)
association := "association_example" // string | Comma delimited list of associations to match (optional)
cluster := "cluster_example" // string | Comma delimited list of cluster to match (optional)
constraints := "constraints_example" // string | Comma delimited list of constraints to match (optional)
cpusMax := "cpusMax_example" // string | Number of CPUs high range (optional)
cpusMin := "cpusMin_example" // string | Number of CPUs low range (optional)
skipSteps := "skipSteps_example" // string | Report job step information (optional) (default to "false")
disableWaitForResult := "disableWaitForResult_example" // string | Disable waiting for result from slurmdbd (optional) (default to "false")
exitCode := "exitCode_example" // string | Exit code of job (optional)
format := "format_example" // string | Comma delimited list of formats to match (optional)
group := "group_example" // string | Comma delimited list of groups to match (optional)
jobName := "jobName_example" // string | Comma delimited list of job names to match (optional)
nodesMax := "nodesMax_example" // string | Number of nodes high range (optional)
nodesMin := "nodesMin_example" // string | Number of nodes low range (optional)
partition := "partition_example" // string | Comma delimited list of partitions to match (optional)
qos := "qos_example" // string | Comma delimited list of QOS to match (optional)
reason := "reason_example" // string | Comma delimited list of job reasons to match (optional)
reservation := "reservation_example" // string | Comma delimited list of reservations to match (optional)
state := "state_example" // string | Comma delimited list of states to match (optional)
step := "step_example" // string | Comma delimited list of job steps to match (optional)
node := "node_example" // string | Comma delimited list of used nodes to match (optional)
wckey := "wckey_example" // string | Comma delimited list of wckeys to match (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetJobs(context.Background()).Users(users).SubmitTime(submitTime).StartTime(startTime).EndTime(endTime).Account(account).Association(association).Cluster(cluster).Constraints(constraints).CpusMax(cpusMax).CpusMin(cpusMin).SkipSteps(skipSteps).DisableWaitForResult(disableWaitForResult).ExitCode(exitCode).Format(format).Group(group).JobName(jobName).NodesMax(nodesMax).NodesMin(nodesMin).Partition(partition).Qos(qos).Reason(reason).Reservation(reservation).State(state).Step(step).Node(node).Wckey(wckey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetJobs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetJobs`: Dbv0039JobInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetJobs`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039GetJobsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
users | string | Filter by comma delimited list of user names | |
submitTime | string | Filter by submission time Accepted formats: HH:MM[:SS] [AM | PM] MMDD[YY] or MM/DD[/YY] or MM.DD[.YY] MM/DD[/YY]-HH:MM[:SS] YYYY-MM-DD[THH:MM[:SS]] |
startTime | string | Filter by start time Accepted formats: HH:MM[:SS] [AM | PM] MMDD[YY] or MM/DD[/YY] or MM.DD[.YY] MM/DD[/YY]-HH:MM[:SS] YYYY-MM-DD[THH:MM[:SS]] |
endTime | string | Filter by end time Accepted formats: HH:MM[:SS] [AM | PM] MMDD[YY] or MM/DD[/YY] or MM.DD[.YY] MM/DD[/YY]-HH:MM[:SS] YYYY-MM-DD[THH:MM[:SS]] |
account | string | Comma delimited list of accounts to match | |
association | string | Comma delimited list of associations to match | |
cluster | string | Comma delimited list of cluster to match | |
constraints | string | Comma delimited list of constraints to match | |
cpusMax | string | Number of CPUs high range | |
cpusMin | string | Number of CPUs low range | |
skipSteps | string | Report job step information | [default to "false"] |
disableWaitForResult | string | Disable waiting for result from slurmdbd | [default to "false"] |
exitCode | string | Exit code of job | |
format | string | Comma delimited list of formats to match | |
group | string | Comma delimited list of groups to match | |
jobName | string | Comma delimited list of job names to match | |
nodesMax | string | Number of nodes high range | |
nodesMin | string | Number of nodes low range | |
partition | string | Comma delimited list of partitions to match | |
qos | string | Comma delimited list of QOS to match | |
reason | string | Comma delimited list of job reasons to match | |
reservation | string | Comma delimited list of reservations to match | |
state | string | Comma delimited list of states to match | |
step | string | Comma delimited list of job steps to match | |
node | string | Comma delimited list of used nodes to match | |
wckey | string | Comma delimited list of wckeys to match |
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039QosInfo SlurmdbV0039GetQos(ctx).WithDeleted(withDeleted).Execute()
Get QOS list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
withDeleted := "withDeleted_example" // string | Include deleted QOSs. False by default. (optional) (default to "false")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetQos(context.Background()).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetQos``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetQos`: Dbv0039QosInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetQos`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039GetQosRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
withDeleted | string | Include deleted QOSs. False by default. | [default to "false"] |
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039QosInfo SlurmdbV0039GetSingleQos(ctx, qosName).WithDeleted(withDeleted).Execute()
Get QOS info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
qosName := "qosName_example" // string | Slurm QOS Name
withDeleted := "withDeleted_example" // string | Include deleted QOSs. False by default. (optional) (default to "false")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetSingleQos(context.Background(), qosName).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetSingleQos``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetSingleQos`: Dbv0039QosInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetSingleQos`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
qosName | string | Slurm QOS Name |
Other parameters are passed through a pointer to a apiSlurmdbV0039GetSingleQosRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
withDeleted | string | Include deleted QOSs. False by default. | [default to "false"]
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039TresInfo SlurmdbV0039GetTres(ctx).Execute()
Get TRES info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetTres(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetTres``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetTres`: Dbv0039TresInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetTres`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmdbV0039GetTresRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039UserInfo SlurmdbV0039GetUser(ctx, userName).WithDeleted(withDeleted).Execute()
Get user info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
userName := "userName_example" // string | Slurm User Name
withDeleted := "withDeleted_example" // string | Include deleted users. False by default. (optional) (default to "false")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetUser(context.Background(), userName).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetUser`: Dbv0039UserInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetUser`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
userName | string | Slurm User Name |
Other parameters are passed through a pointer to a apiSlurmdbV0039GetUserRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
withDeleted | string | Include deleted users. False by default. | [default to "false"]
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039UserInfo SlurmdbV0039GetUsers(ctx).WithDeleted(withDeleted).Execute()
Get user list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
withDeleted := "withDeleted_example" // string | Include deleted users. False by default. (optional) (default to "false")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetUsers(context.Background()).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetUsers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetUsers`: Dbv0039UserInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetUsers`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039GetUsersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
withDeleted | string | Include deleted users. False by default. | [default to "false"] |
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039WckeyInfo SlurmdbV0039GetWckey(ctx, wckey).Execute()
Get wckey info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
wckey := "wckey_example" // string | Slurm wckey name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetWckey(context.Background(), wckey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetWckey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetWckey`: Dbv0039WckeyInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetWckey`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
wckey | string | Slurm wckey name |
Other parameters are passed through a pointer to a apiSlurmdbV0039GetWckeyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dbv0039WckeyInfo SlurmdbV0039GetWckeys(ctx).Execute()
Get wckey list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039GetWckeys(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039GetWckeys``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039GetWckeys`: Dbv0039WckeyInfo
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039GetWckeys`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmdbV0039GetWckeysRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmdbV0039SetConfig(ctx).Dbv0039SetConfig(dbv0039SetConfig).Execute()
Load all configuration information
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
dbv0039SetConfig := *openapiclient.NewDbv0039SetConfig() // Dbv0039SetConfig | Add or update config (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039SetConfig(context.Background()).Dbv0039SetConfig(dbv0039SetConfig).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039SetConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039SetConfig`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039SetConfig`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039SetConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
dbv0039SetConfig | Dbv0039SetConfig | Add or update config |
- Content-Type: application/json, application/x-yaml
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmdbV0039UpdateAccounts(ctx).Dbv0039AccountInfo(dbv0039AccountInfo).Execute()
Update accounts
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
dbv0039AccountInfo := *openapiclient.NewDbv0039AccountInfo() // Dbv0039AccountInfo | update/create accounts
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039UpdateAccounts(context.Background()).Dbv0039AccountInfo(dbv0039AccountInfo).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039UpdateAccounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039UpdateAccounts`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039UpdateAccounts`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039UpdateAccountsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
dbv0039AccountInfo | Dbv0039AccountInfo | update/create accounts |
- Content-Type: application/json, application/x-yaml
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmdbV0039UpdateAssociations(ctx).Dbv0039AssociationsInfo(dbv0039AssociationsInfo).Execute()
Set associations info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
dbv0039AssociationsInfo := *openapiclient.NewDbv0039AssociationsInfo() // Dbv0039AssociationsInfo | Add or update associations
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039UpdateAssociations(context.Background()).Dbv0039AssociationsInfo(dbv0039AssociationsInfo).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039UpdateAssociations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039UpdateAssociations`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039UpdateAssociations`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039UpdateAssociationsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
dbv0039AssociationsInfo | Dbv0039AssociationsInfo | Add or update associations |
- Content-Type: application/json, application/x-yaml
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmdbV0039UpdateQos(ctx).Dbv0039UpdateQos(dbv0039UpdateQos).Execute()
Set QOS info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
dbv0039UpdateQos := *openapiclient.NewDbv0039UpdateQos() // Dbv0039UpdateQos | Add or update QOSs
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039UpdateQos(context.Background()).Dbv0039UpdateQos(dbv0039UpdateQos).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039UpdateQos``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039UpdateQos`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039UpdateQos`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039UpdateQosRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
dbv0039UpdateQos | Dbv0039UpdateQos | Add or update QOSs |
- Content-Type: application/json, application/x-yaml
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmdbV0039UpdateTres(ctx).Dbv0039TresUpdate(dbv0039TresUpdate).Execute()
Set TRES info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
dbv0039TresUpdate := *openapiclient.NewDbv0039TresUpdate() // Dbv0039TresUpdate | Add or Update TRES
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039UpdateTres(context.Background()).Dbv0039TresUpdate(dbv0039TresUpdate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039UpdateTres``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039UpdateTres`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039UpdateTres`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039UpdateTresRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
dbv0039TresUpdate | Dbv0039TresUpdate | Add or Update TRES |
- Content-Type: application/json, application/x-yaml
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status SlurmdbV0039UpdateUsers(ctx).Dbv0039UpdateUsers(dbv0039UpdateUsers).Execute()
Update user
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
dbv0039UpdateUsers := *openapiclient.NewDbv0039UpdateUsers() // Dbv0039UpdateUsers | add or update user
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmAPI.SlurmdbV0039UpdateUsers(context.Background()).Dbv0039UpdateUsers(dbv0039UpdateUsers).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmAPI.SlurmdbV0039UpdateUsers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0039UpdateUsers`: Status
fmt.Fprintf(os.Stdout, "Response from `SlurmAPI.SlurmdbV0039UpdateUsers`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0039UpdateUsersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
dbv0039UpdateUsers | Dbv0039UpdateUsers | add or update user |
- Content-Type: application/json, application/x-yaml
- Accept: application/json, application/x-yaml
[Back to top] [Back to API list] [Back to Model list] [Back to README]