All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
SlurmdbV0040DeleteAccount | Delete /slurmdb/v0.0.40/account/{account_name} | Delete account |
SlurmdbV0040DeleteAssociation | Delete /slurmdb/v0.0.40/association/ | Delete association |
SlurmdbV0040DeleteAssociations | Delete /slurmdb/v0.0.40/associations/ | Delete associations |
SlurmdbV0040DeleteCluster | Delete /slurmdb/v0.0.40/cluster/{cluster_name} | Delete cluster |
SlurmdbV0040DeleteSingleQos | Delete /slurmdb/v0.0.40/qos/{qos} | Delete QOS |
SlurmdbV0040DeleteUser | Delete /slurmdb/v0.0.40/user/{name} | Delete user |
SlurmdbV0040DeleteWckey | Delete /slurmdb/v0.0.40/wckey/{id} | Delete wckey |
SlurmdbV0040GetAccount | Get /slurmdb/v0.0.40/account/{account_name} | Get account info |
SlurmdbV0040GetAccounts | Get /slurmdb/v0.0.40/accounts/ | Get account list |
SlurmdbV0040GetAssociation | Get /slurmdb/v0.0.40/association/ | Get association info |
SlurmdbV0040GetAssociations | Get /slurmdb/v0.0.40/associations/ | Get association list |
SlurmdbV0040GetCluster | Get /slurmdb/v0.0.40/cluster/{cluster_name} | Get cluster info |
SlurmdbV0040GetClusters | Get /slurmdb/v0.0.40/clusters/ | Get cluster list |
SlurmdbV0040GetConfig | Get /slurmdb/v0.0.40/config | Dump all configuration information |
SlurmdbV0040GetDiag | Get /slurmdb/v0.0.40/diag/ | Get slurmdb diagnostics |
SlurmdbV0040GetInstance | Get /slurmdb/v0.0.40/instance/ | Get instance info |
SlurmdbV0040GetInstances | Get /slurmdb/v0.0.40/instances/ | Get instance list |
SlurmdbV0040GetJob | Get /slurmdb/v0.0.40/job/{job_id} | Get job info |
SlurmdbV0040GetJobs | Get /slurmdb/v0.0.40/jobs/ | Get job list |
SlurmdbV0040GetQos | Get /slurmdb/v0.0.40/qos/ | Get QOS list |
SlurmdbV0040GetSingleQos | Get /slurmdb/v0.0.40/qos/{qos} | Get QOS info |
SlurmdbV0040GetTres | Get /slurmdb/v0.0.40/tres/ | Get TRES info |
SlurmdbV0040GetUser | Get /slurmdb/v0.0.40/user/{name} | Get user info |
SlurmdbV0040GetUsers | Get /slurmdb/v0.0.40/users/ | Get user list |
SlurmdbV0040GetWckey | Get /slurmdb/v0.0.40/wckey/{id} | Get wckey info |
SlurmdbV0040GetWckeys | Get /slurmdb/v0.0.40/wckeys/ | Get wckey list |
SlurmdbV0040PostAccounts | Post /slurmdb/v0.0.40/accounts/ | Add/update list of accounts |
SlurmdbV0040PostAccountsAssociation | Post /slurmdb/v0.0.40/accounts_association/ | Add accounts with conditional association |
SlurmdbV0040PostAssociations | Post /slurmdb/v0.0.40/associations/ | Set associations info |
SlurmdbV0040PostClusters | Post /slurmdb/v0.0.40/clusters/ | Get cluster list |
SlurmdbV0040PostConfig | Post /slurmdb/v0.0.40/config | Load all configuration information |
SlurmdbV0040PostQos | Post /slurmdb/v0.0.40/qos/ | Add or update QOSs |
SlurmdbV0040PostTres | Post /slurmdb/v0.0.40/tres/ | Add TRES |
SlurmdbV0040PostUsers | Post /slurmdb/v0.0.40/users/ | Update users |
SlurmdbV0040PostUsersAssociation | Post /slurmdb/v0.0.40/users_association/ | Add users with conditional association |
SlurmdbV0040PostWckeys | Post /slurmdb/v0.0.40/wckeys/ | Add or update wckeys |
SlurmdbV0041DeleteAccount | Delete /slurmdb/v0.0.41/account/{account_name} | Delete account |
SlurmdbV0041DeleteAssociation | Delete /slurmdb/v0.0.41/association/ | Delete association |
SlurmdbV0041DeleteAssociations | Delete /slurmdb/v0.0.41/associations/ | Delete associations |
SlurmdbV0041DeleteCluster | Delete /slurmdb/v0.0.41/cluster/{cluster_name} | Delete cluster |
SlurmdbV0041DeleteSingleQos | Delete /slurmdb/v0.0.41/qos/{qos} | Delete QOS |
SlurmdbV0041DeleteUser | Delete /slurmdb/v0.0.41/user/{name} | Delete user |
SlurmdbV0041DeleteWckey | Delete /slurmdb/v0.0.41/wckey/{id} | Delete wckey |
SlurmdbV0041GetAccount | Get /slurmdb/v0.0.41/account/{account_name} | Get account info |
SlurmdbV0041GetAccounts | Get /slurmdb/v0.0.41/accounts/ | Get account list |
SlurmdbV0041GetAssociation | Get /slurmdb/v0.0.41/association/ | Get association info |
SlurmdbV0041GetAssociations | Get /slurmdb/v0.0.41/associations/ | Get association list |
SlurmdbV0041GetCluster | Get /slurmdb/v0.0.41/cluster/{cluster_name} | Get cluster info |
SlurmdbV0041GetClusters | Get /slurmdb/v0.0.41/clusters/ | Get cluster list |
SlurmdbV0041GetConfig | Get /slurmdb/v0.0.41/config | Dump all configuration information |
SlurmdbV0041GetDiag | Get /slurmdb/v0.0.41/diag/ | Get slurmdb diagnostics |
SlurmdbV0041GetInstance | Get /slurmdb/v0.0.41/instance/ | Get instance info |
SlurmdbV0041GetInstances | Get /slurmdb/v0.0.41/instances/ | Get instance list |
SlurmdbV0041GetJob | Get /slurmdb/v0.0.41/job/{job_id} | Get job info |
SlurmdbV0041GetJobs | Get /slurmdb/v0.0.41/jobs/ | Get job list |
SlurmdbV0041GetQos | Get /slurmdb/v0.0.41/qos/ | Get QOS list |
SlurmdbV0041GetSingleQos | Get /slurmdb/v0.0.41/qos/{qos} | Get QOS info |
SlurmdbV0041GetTres | Get /slurmdb/v0.0.41/tres/ | Get TRES info |
SlurmdbV0041GetUser | Get /slurmdb/v0.0.41/user/{name} | Get user info |
SlurmdbV0041GetUsers | Get /slurmdb/v0.0.41/users/ | Get user list |
SlurmdbV0041GetWckey | Get /slurmdb/v0.0.41/wckey/{id} | Get wckey info |
SlurmdbV0041GetWckeys | Get /slurmdb/v0.0.41/wckeys/ | Get wckey list |
SlurmdbV0041PostAccounts | Post /slurmdb/v0.0.41/accounts/ | Add/update list of accounts |
SlurmdbV0041PostAccountsAssociation | Post /slurmdb/v0.0.41/accounts_association/ | Add accounts with conditional association |
SlurmdbV0041PostAssociations | Post /slurmdb/v0.0.41/associations/ | Set associations info |
SlurmdbV0041PostClusters | Post /slurmdb/v0.0.41/clusters/ | Get cluster list |
SlurmdbV0041PostConfig | Post /slurmdb/v0.0.41/config | Load all configuration information |
SlurmdbV0041PostQos | Post /slurmdb/v0.0.41/qos/ | Add or update QOSs |
SlurmdbV0041PostTres | Post /slurmdb/v0.0.41/tres/ | Add TRES |
SlurmdbV0041PostUsers | Post /slurmdb/v0.0.41/users/ | Update users |
SlurmdbV0041PostUsersAssociation | Post /slurmdb/v0.0.41/users_association/ | Add users with conditional association |
SlurmdbV0041PostWckeys | Post /slurmdb/v0.0.41/wckeys/ | Add or update wckeys |
V0040OpenapiAccountsRemovedResp SlurmdbV0040DeleteAccount(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 | Account name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040DeleteAccount(context.Background(), accountName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040DeleteAccount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040DeleteAccount`: V0040OpenapiAccountsRemovedResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040DeleteAccount`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountName | string | Account name |
Other parameters are passed through a pointer to a apiSlurmdbV0040DeleteAccountRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
V0040OpenapiAccountsRemovedResp
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiAssocsRemovedResp SlurmdbV0040DeleteAssociation(ctx).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
Delete association
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
account := "account_example" // string | CSV accounts list (optional)
cluster := "cluster_example" // string | CSV clusters list (optional)
defaultQos := "defaultQos_example" // string | CSV QOS list (optional)
format := "format_example" // string | CSV format list (optional)
id := "id_example" // string | CSV id list (optional)
onlyDefaults := "onlyDefaults_example" // string | filter to only defaults (optional)
parentAccount := "parentAccount_example" // string | CSV names of parent account (optional)
partition := "partition_example" // string | CSV partition name list (optional)
qos := "qos_example" // string | CSV QOS list (optional)
usageEnd := "usageEnd_example" // string | usage end UNIX timestamp (optional)
usageStart := "usageStart_example" // string | usage start UNIX timestamp (optional)
user := "user_example" // string | CSV user list (optional)
withUsage := "withUsage_example" // string | fill in usage (optional)
withDeleted := "withDeleted_example" // string | return deleted associations (optional)
withRawQos := "withRawQos_example" // string | return a raw qos or delta_qos (optional)
withSubAccts := "withSubAccts_example" // string | return sub acct information also (optional)
withoutParentInfo := "withoutParentInfo_example" // string | don't give me parent id/name (optional)
withoutParentLimits := "withoutParentLimits_example" // string | don't give me limits from parents (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040DeleteAssociation(context.Background()).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040DeleteAssociation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040DeleteAssociation`: V0040OpenapiAssocsRemovedResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040DeleteAssociation`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040DeleteAssociationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
account | string | CSV accounts list | |
cluster | string | CSV clusters list | |
defaultQos | string | CSV QOS list | |
format | string | CSV format list | |
id | string | CSV id list | |
onlyDefaults | string | filter to only defaults | |
parentAccount | string | CSV names of parent account | |
partition | string | CSV partition name list | |
qos | string | CSV QOS list | |
usageEnd | string | usage end UNIX timestamp | |
usageStart | string | usage start UNIX timestamp | |
user | string | CSV user list | |
withUsage | string | fill in usage | |
withDeleted | string | return deleted associations | |
withRawQos | string | return a raw qos or delta_qos | |
withSubAccts | string | return sub acct information also | |
withoutParentInfo | string | don't give me parent id/name | |
withoutParentLimits | string | don't give me limits from parents |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiAssocsRemovedResp SlurmdbV0040DeleteAssociations(ctx).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
Delete associations
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
account := "account_example" // string | CSV accounts list (optional)
cluster := "cluster_example" // string | CSV clusters list (optional)
defaultQos := "defaultQos_example" // string | CSV QOS list (optional)
format := "format_example" // string | CSV format list (optional)
id := "id_example" // string | CSV id list (optional)
onlyDefaults := "onlyDefaults_example" // string | filter to only defaults (optional)
parentAccount := "parentAccount_example" // string | CSV names of parent account (optional)
partition := "partition_example" // string | CSV partition name list (optional)
qos := "qos_example" // string | CSV QOS list (optional)
usageEnd := "usageEnd_example" // string | usage end UNIX timestamp (optional)
usageStart := "usageStart_example" // string | usage start UNIX timestamp (optional)
user := "user_example" // string | CSV user list (optional)
withUsage := "withUsage_example" // string | fill in usage (optional)
withDeleted := "withDeleted_example" // string | return deleted associations (optional)
withRawQos := "withRawQos_example" // string | return a raw qos or delta_qos (optional)
withSubAccts := "withSubAccts_example" // string | return sub acct information also (optional)
withoutParentInfo := "withoutParentInfo_example" // string | don't give me parent id/name (optional)
withoutParentLimits := "withoutParentLimits_example" // string | don't give me limits from parents (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040DeleteAssociations(context.Background()).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040DeleteAssociations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040DeleteAssociations`: V0040OpenapiAssocsRemovedResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040DeleteAssociations`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040DeleteAssociationsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
account | string | CSV accounts list | |
cluster | string | CSV clusters list | |
defaultQos | string | CSV QOS list | |
format | string | CSV format list | |
id | string | CSV id list | |
onlyDefaults | string | filter to only defaults | |
parentAccount | string | CSV names of parent account | |
partition | string | CSV partition name list | |
qos | string | CSV QOS list | |
usageEnd | string | usage end UNIX timestamp | |
usageStart | string | usage start UNIX timestamp | |
user | string | CSV user list | |
withUsage | string | fill in usage | |
withDeleted | string | return deleted associations | |
withRawQos | string | return a raw qos or delta_qos | |
withSubAccts | string | return sub acct information also | |
withoutParentInfo | string | don't give me parent id/name | |
withoutParentLimits | string | don't give me limits from parents |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiClustersRemovedResp SlurmdbV0040DeleteCluster(ctx, clusterName).Classification(classification).Cluster(cluster).Federation(federation).Flags(flags).Format(format).RpcVersion(rpcVersion).UsageEnd(usageEnd).UsageStart(usageStart).WithDeleted(withDeleted).WithUsage(withUsage).Execute()
Delete cluster
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
clusterName := "clusterName_example" // string | Cluster name
classification := "classification_example" // string | (optional)
cluster := "cluster_example" // string | CSV cluster list (optional)
federation := "federation_example" // string | CSV federation list (optional)
flags := "flags_example" // string | (optional)
format := "format_example" // string | CSV format list (optional)
rpcVersion := "rpcVersion_example" // string | CSV RPC version list (optional)
usageEnd := "usageEnd_example" // string | Usage end UNIX timestamp (seconds) (optional)
usageStart := "usageStart_example" // string | Usage start UNIX timestamp (seconds) (optional)
withDeleted := "withDeleted_example" // string | include deleted clusters (optional)
withUsage := "withUsage_example" // string | query usage (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040DeleteCluster(context.Background(), clusterName).Classification(classification).Cluster(cluster).Federation(federation).Flags(flags).Format(format).RpcVersion(rpcVersion).UsageEnd(usageEnd).UsageStart(usageStart).WithDeleted(withDeleted).WithUsage(withUsage).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040DeleteCluster``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040DeleteCluster`: V0040OpenapiClustersRemovedResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040DeleteCluster`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
clusterName | string | Cluster name |
Other parameters are passed through a pointer to a apiSlurmdbV0040DeleteClusterRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
classification | string | | cluster | string | CSV cluster list | federation | string | CSV federation list | flags | string | | format | string | CSV format list | rpcVersion | string | CSV RPC version list | usageEnd | string | Usage end UNIX timestamp (seconds) | usageStart | string | Usage start UNIX timestamp (seconds) | withDeleted | string | include deleted clusters | withUsage | string | query usage |
V0040OpenapiClustersRemovedResp
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiSlurmdbdQosRemovedResp SlurmdbV0040DeleteSingleQos(ctx, qos).Execute()
Delete QOS
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
qos := "qos_example" // string | QOS name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040DeleteSingleQos(context.Background(), qos).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040DeleteSingleQos``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040DeleteSingleQos`: V0040OpenapiSlurmdbdQosRemovedResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040DeleteSingleQos`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
qos | string | QOS name |
Other parameters are passed through a pointer to a apiSlurmdbV0040DeleteSingleQosRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
V0040OpenapiSlurmdbdQosRemovedResp
- 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 SlurmdbV0040DeleteUser(ctx, name).Execute()
Delete user
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
name := "name_example" // string | User name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040DeleteUser(context.Background(), name).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040DeleteUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040DeleteUser`: V0040OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040DeleteUser`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | User name |
Other parameters are passed through a pointer to a apiSlurmdbV0040DeleteUserRequest 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]
V0040OpenapiWckeyRemovedResp SlurmdbV0040DeleteWckey(ctx, id).Execute()
Delete wckey
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
id := "id_example" // string | wckey id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040DeleteWckey(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040DeleteWckey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040DeleteWckey`: V0040OpenapiWckeyRemovedResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040DeleteWckey`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | wckey id |
Other parameters are passed through a pointer to a apiSlurmdbV0040DeleteWckeyRequest 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]
V0040OpenapiAccountsResp SlurmdbV0040GetAccount(ctx, accountName).WithAssocs(withAssocs).WithCoords(withCoords).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 | Account name
withAssocs := "withAssocs_example" // string | include associations (optional)
withCoords := "withCoords_example" // string | include coordinators (optional)
withDeleted := "withDeleted_example" // string | include deleted (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetAccount(context.Background(), accountName).WithAssocs(withAssocs).WithCoords(withCoords).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetAccount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetAccount`: V0040OpenapiAccountsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetAccount`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountName | string | Account name |
Other parameters are passed through a pointer to a apiSlurmdbV0040GetAccountRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
withAssocs | string | include associations | withCoords | string | include coordinators | withDeleted | string | include deleted |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiAccountsResp SlurmdbV0040GetAccounts(ctx).Description(description).WithAssocs(withAssocs).WithCoords(withCoords).WithDeleted(withDeleted).Execute()
Get account list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
description := "description_example" // string | CSV description list (optional)
withAssocs := "withAssocs_example" // string | include associations (optional)
withCoords := "withCoords_example" // string | include coordinators (optional)
withDeleted := "withDeleted_example" // string | include deleted accounts (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetAccounts(context.Background()).Description(description).WithAssocs(withAssocs).WithCoords(withCoords).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetAccounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetAccounts`: V0040OpenapiAccountsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetAccounts`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040GetAccountsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
description | string | CSV description list | |
withAssocs | string | include associations | |
withCoords | string | include coordinators | |
withDeleted | string | include deleted accounts |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiAssocsResp SlurmdbV0040GetAssociation(ctx).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
Get association info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
account := "account_example" // string | CSV accounts list (optional)
cluster := "cluster_example" // string | CSV clusters list (optional)
defaultQos := "defaultQos_example" // string | CSV QOS list (optional)
format := "format_example" // string | CSV format list (optional)
id := "id_example" // string | CSV id list (optional)
onlyDefaults := "onlyDefaults_example" // string | filter to only defaults (optional)
parentAccount := "parentAccount_example" // string | CSV names of parent account (optional)
partition := "partition_example" // string | CSV partition name list (optional)
qos := "qos_example" // string | CSV QOS list (optional)
usageEnd := "usageEnd_example" // string | usage end UNIX timestamp (optional)
usageStart := "usageStart_example" // string | usage start UNIX timestamp (optional)
user := "user_example" // string | CSV user list (optional)
withUsage := "withUsage_example" // string | fill in usage (optional)
withDeleted := "withDeleted_example" // string | return deleted associations (optional)
withRawQos := "withRawQos_example" // string | return a raw qos or delta_qos (optional)
withSubAccts := "withSubAccts_example" // string | return sub acct information also (optional)
withoutParentInfo := "withoutParentInfo_example" // string | don't give me parent id/name (optional)
withoutParentLimits := "withoutParentLimits_example" // string | don't give me limits from parents (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetAssociation(context.Background()).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetAssociation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetAssociation`: V0040OpenapiAssocsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetAssociation`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040GetAssociationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
account | string | CSV accounts list | |
cluster | string | CSV clusters list | |
defaultQos | string | CSV QOS list | |
format | string | CSV format list | |
id | string | CSV id list | |
onlyDefaults | string | filter to only defaults | |
parentAccount | string | CSV names of parent account | |
partition | string | CSV partition name list | |
qos | string | CSV QOS list | |
usageEnd | string | usage end UNIX timestamp | |
usageStart | string | usage start UNIX timestamp | |
user | string | CSV user list | |
withUsage | string | fill in usage | |
withDeleted | string | return deleted associations | |
withRawQos | string | return a raw qos or delta_qos | |
withSubAccts | string | return sub acct information also | |
withoutParentInfo | string | don't give me parent id/name | |
withoutParentLimits | string | don't give me limits from parents |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiAssocsResp SlurmdbV0040GetAssociations(ctx).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
Get association list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
account := "account_example" // string | CSV accounts list (optional)
cluster := "cluster_example" // string | CSV clusters list (optional)
defaultQos := "defaultQos_example" // string | CSV QOS list (optional)
format := "format_example" // string | CSV format list (optional)
id := "id_example" // string | CSV id list (optional)
onlyDefaults := "onlyDefaults_example" // string | filter to only defaults (optional)
parentAccount := "parentAccount_example" // string | CSV names of parent account (optional)
partition := "partition_example" // string | CSV partition name list (optional)
qos := "qos_example" // string | CSV QOS list (optional)
usageEnd := "usageEnd_example" // string | usage end UNIX timestamp (optional)
usageStart := "usageStart_example" // string | usage start UNIX timestamp (optional)
user := "user_example" // string | CSV user list (optional)
withUsage := "withUsage_example" // string | fill in usage (optional)
withDeleted := "withDeleted_example" // string | return deleted associations (optional)
withRawQos := "withRawQos_example" // string | return a raw qos or delta_qos (optional)
withSubAccts := "withSubAccts_example" // string | return sub acct information also (optional)
withoutParentInfo := "withoutParentInfo_example" // string | don't give me parent id/name (optional)
withoutParentLimits := "withoutParentLimits_example" // string | don't give me limits from parents (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetAssociations(context.Background()).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetAssociations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetAssociations`: V0040OpenapiAssocsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetAssociations`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040GetAssociationsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
account | string | CSV accounts list | |
cluster | string | CSV clusters list | |
defaultQos | string | CSV QOS list | |
format | string | CSV format list | |
id | string | CSV id list | |
onlyDefaults | string | filter to only defaults | |
parentAccount | string | CSV names of parent account | |
partition | string | CSV partition name list | |
qos | string | CSV QOS list | |
usageEnd | string | usage end UNIX timestamp | |
usageStart | string | usage start UNIX timestamp | |
user | string | CSV user list | |
withUsage | string | fill in usage | |
withDeleted | string | return deleted associations | |
withRawQos | string | return a raw qos or delta_qos | |
withSubAccts | string | return sub acct information also | |
withoutParentInfo | string | don't give me parent id/name | |
withoutParentLimits | string | don't give me limits from parents |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiClustersResp SlurmdbV0040GetCluster(ctx, clusterName).Classification(classification).Cluster(cluster).Federation(federation).Flags(flags).Format(format).RpcVersion(rpcVersion).UsageEnd(usageEnd).UsageStart(usageStart).WithDeleted(withDeleted).WithUsage(withUsage).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 | Cluster name
classification := "classification_example" // string | (optional)
cluster := "cluster_example" // string | CSV cluster list (optional)
federation := "federation_example" // string | CSV federation list (optional)
flags := "flags_example" // string | (optional)
format := "format_example" // string | CSV format list (optional)
rpcVersion := "rpcVersion_example" // string | CSV RPC version list (optional)
usageEnd := "usageEnd_example" // string | Usage end UNIX timestamp (seconds) (optional)
usageStart := "usageStart_example" // string | Usage start UNIX timestamp (seconds) (optional)
withDeleted := "withDeleted_example" // string | include deleted clusters (optional)
withUsage := "withUsage_example" // string | query usage (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetCluster(context.Background(), clusterName).Classification(classification).Cluster(cluster).Federation(federation).Flags(flags).Format(format).RpcVersion(rpcVersion).UsageEnd(usageEnd).UsageStart(usageStart).WithDeleted(withDeleted).WithUsage(withUsage).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetCluster``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetCluster`: V0040OpenapiClustersResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetCluster`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
clusterName | string | Cluster name |
Other parameters are passed through a pointer to a apiSlurmdbV0040GetClusterRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
classification | string | | cluster | string | CSV cluster list | federation | string | CSV federation list | flags | string | | format | string | CSV format list | rpcVersion | string | CSV RPC version list | usageEnd | string | Usage end UNIX timestamp (seconds) | usageStart | string | Usage start UNIX timestamp (seconds) | withDeleted | string | include deleted clusters | withUsage | string | query usage |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiClustersResp SlurmdbV0040GetClusters(ctx).UpdateTime(updateTime).Execute()
Get cluster list
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.SlurmdbAPI.SlurmdbV0040GetClusters(context.Background()).UpdateTime(updateTime).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetClusters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetClusters`: V0040OpenapiClustersResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetClusters`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040GetClustersRequest 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]
V0040OpenapiSlurmdbdConfigResp SlurmdbV0040GetConfig(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.SlurmdbAPI.SlurmdbV0040GetConfig(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetConfig`: V0040OpenapiSlurmdbdConfigResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetConfig`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmdbV0040GetConfigRequest struct via the builder pattern
V0040OpenapiSlurmdbdConfigResp
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiSlurmdbdStatsResp SlurmdbV0040GetDiag(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.SlurmdbAPI.SlurmdbV0040GetDiag(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetDiag``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetDiag`: V0040OpenapiSlurmdbdStatsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetDiag`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmdbV0040GetDiagRequest 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]
V0040OpenapiInstancesResp SlurmdbV0040GetInstance(ctx).Cluster(cluster).Extra(extra).Format(format).InstanceId(instanceId).InstanceType(instanceType).NodeList(nodeList).TimeEnd(timeEnd).TimeStart(timeStart).Execute()
Get instance info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cluster := "cluster_example" // string | CSV clusters list (optional)
extra := "extra_example" // string | CSV extra list (optional)
format := "format_example" // string | CSV format list (optional)
instanceId := "instanceId_example" // string | CSV instance_id list (optional)
instanceType := "instanceType_example" // string | CSV instance_type list (optional)
nodeList := "nodeList_example" // string | ranged node string (optional)
timeEnd := "timeEnd_example" // string | time end UNIX timestamp (optional)
timeStart := "timeStart_example" // string | time start UNIX timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetInstance(context.Background()).Cluster(cluster).Extra(extra).Format(format).InstanceId(instanceId).InstanceType(instanceType).NodeList(nodeList).TimeEnd(timeEnd).TimeStart(timeStart).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetInstance``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetInstance`: V0040OpenapiInstancesResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetInstance`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040GetInstanceRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cluster | string | CSV clusters list | |
extra | string | CSV extra list | |
format | string | CSV format list | |
instanceId | string | CSV instance_id list | |
instanceType | string | CSV instance_type list | |
nodeList | string | ranged node string | |
timeEnd | string | time end UNIX timestamp | |
timeStart | string | time start UNIX 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]
V0040OpenapiInstancesResp SlurmdbV0040GetInstances(ctx).Cluster(cluster).Extra(extra).Format(format).InstanceId(instanceId).InstanceType(instanceType).NodeList(nodeList).TimeEnd(timeEnd).TimeStart(timeStart).Execute()
Get instance list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cluster := "cluster_example" // string | CSV clusters list (optional)
extra := "extra_example" // string | CSV extra list (optional)
format := "format_example" // string | CSV format list (optional)
instanceId := "instanceId_example" // string | CSV instance_id list (optional)
instanceType := "instanceType_example" // string | CSV instance_type list (optional)
nodeList := "nodeList_example" // string | ranged node string (optional)
timeEnd := "timeEnd_example" // string | time end UNIX timestamp (optional)
timeStart := "timeStart_example" // string | time start UNIX timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetInstances(context.Background()).Cluster(cluster).Extra(extra).Format(format).InstanceId(instanceId).InstanceType(instanceType).NodeList(nodeList).TimeEnd(timeEnd).TimeStart(timeStart).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetInstances``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetInstances`: V0040OpenapiInstancesResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetInstances`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040GetInstancesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cluster | string | CSV clusters list | |
extra | string | CSV extra list | |
format | string | CSV format list | |
instanceId | string | CSV instance_id list | |
instanceType | string | CSV instance_type list | |
nodeList | string | ranged node string | |
timeEnd | string | time end UNIX timestamp | |
timeStart | string | time start UNIX 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]
V0040OpenapiSlurmdbdJobsResp SlurmdbV0040GetJob(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 | Job id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetJob(context.Background(), jobId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetJob``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetJob`: V0040OpenapiSlurmdbdJobsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetJob`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | Job id |
Other parameters are passed through a pointer to a apiSlurmdbV0040GetJobRequest 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]
V0040OpenapiSlurmdbdJobsResp SlurmdbV0040GetJobs(ctx).Account(account).Association(association).Cluster(cluster).Constraints(constraints).CpusMax(cpusMax).CpusMin(cpusMin).SchedulerUnset(schedulerUnset).ScheduledOnSubmit(scheduledOnSubmit).ScheduledByMain(scheduledByMain).ScheduledByBackfill(scheduledByBackfill).JobStarted(jobStarted).ExitCode(exitCode).ShowDuplicates(showDuplicates).SkipSteps(skipSteps).DisableTruncateUsageTime(disableTruncateUsageTime).WholeHetjob(wholeHetjob).DisableWholeHetjob(disableWholeHetjob).DisableWaitForResult(disableWaitForResult).UsageTimeAsSubmitTime(usageTimeAsSubmitTime).ShowBatchScript(showBatchScript).ShowJobEnvironment(showJobEnvironment).Format(format).Groups(groups).JobName(jobName).NodesMax(nodesMax).NodesMin(nodesMin).Partition(partition).Qos(qos).Reason(reason).Reservation(reservation).ReservationId(reservationId).State(state).Step(step).TimelimitMax(timelimitMax).TimelimitMin(timelimitMin).EndTime(endTime).StartTime(startTime).SubmitTime(submitTime).Node(node).Users(users).Wckey(wckey).Execute()
Get job list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
account := "account_example" // string | CSV account list (optional)
association := "association_example" // string | CSV association list (optional)
cluster := "cluster_example" // string | CSV cluster list (optional)
constraints := "constraints_example" // string | CSV constraint list (optional)
cpusMax := "cpusMax_example" // string | number of cpus high range (optional)
cpusMin := "cpusMin_example" // string | number of cpus low range (optional)
schedulerUnset := "schedulerUnset_example" // string | (optional)
scheduledOnSubmit := "scheduledOnSubmit_example" // string | (optional)
scheduledByMain := "scheduledByMain_example" // string | (optional)
scheduledByBackfill := "scheduledByBackfill_example" // string | (optional)
jobStarted := "jobStarted_example" // string | (optional)
exitCode := "exitCode_example" // string | job exit code (numeric) (optional)
showDuplicates := "showDuplicates_example" // string | (optional)
skipSteps := "skipSteps_example" // string | (optional)
disableTruncateUsageTime := "disableTruncateUsageTime_example" // string | (optional)
wholeHetjob := "wholeHetjob_example" // string | (optional)
disableWholeHetjob := "disableWholeHetjob_example" // string | (optional)
disableWaitForResult := "disableWaitForResult_example" // string | (optional)
usageTimeAsSubmitTime := "usageTimeAsSubmitTime_example" // string | (optional)
showBatchScript := "showBatchScript_example" // string | (optional)
showJobEnvironment := "showJobEnvironment_example" // string | (optional)
format := "format_example" // string | CSV format list (optional)
groups := "groups_example" // string | CSV group list (optional)
jobName := "jobName_example" // string | CSV job name list (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 | CSV partition name list (optional)
qos := "qos_example" // string | CSV QOS name list (optional)
reason := "reason_example" // string | CSV reason list (optional)
reservation := "reservation_example" // string | CSV reservation name list (optional)
reservationId := "reservationId_example" // string | CSV reservation ID list (optional)
state := "state_example" // string | CSV state list (optional)
step := "step_example" // string | CSV step id list (optional)
timelimitMax := "timelimitMax_example" // string | maximum timelimit (seconds) (optional)
timelimitMin := "timelimitMin_example" // string | minimum timelimit (seconds) (optional)
endTime := "endTime_example" // string | usage end timestamp (optional)
startTime := "startTime_example" // string | usage start timestamp (optional)
submitTime := "submitTime_example" // string | submit time timestamp (optional)
node := "node_example" // string | ranged node string where jobs ran (optional)
users := "users_example" // string | CSV user name list (optional)
wckey := "wckey_example" // string | CSV wckey list (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetJobs(context.Background()).Account(account).Association(association).Cluster(cluster).Constraints(constraints).CpusMax(cpusMax).CpusMin(cpusMin).SchedulerUnset(schedulerUnset).ScheduledOnSubmit(scheduledOnSubmit).ScheduledByMain(scheduledByMain).ScheduledByBackfill(scheduledByBackfill).JobStarted(jobStarted).ExitCode(exitCode).ShowDuplicates(showDuplicates).SkipSteps(skipSteps).DisableTruncateUsageTime(disableTruncateUsageTime).WholeHetjob(wholeHetjob).DisableWholeHetjob(disableWholeHetjob).DisableWaitForResult(disableWaitForResult).UsageTimeAsSubmitTime(usageTimeAsSubmitTime).ShowBatchScript(showBatchScript).ShowJobEnvironment(showJobEnvironment).Format(format).Groups(groups).JobName(jobName).NodesMax(nodesMax).NodesMin(nodesMin).Partition(partition).Qos(qos).Reason(reason).Reservation(reservation).ReservationId(reservationId).State(state).Step(step).TimelimitMax(timelimitMax).TimelimitMin(timelimitMin).EndTime(endTime).StartTime(startTime).SubmitTime(submitTime).Node(node).Users(users).Wckey(wckey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetJobs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetJobs`: V0040OpenapiSlurmdbdJobsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetJobs`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040GetJobsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
account | string | CSV account list | |
association | string | CSV association list | |
cluster | string | CSV cluster list | |
constraints | string | CSV constraint list | |
cpusMax | string | number of cpus high range | |
cpusMin | string | number of cpus low range | |
schedulerUnset | string | ||
scheduledOnSubmit | string | ||
scheduledByMain | string | ||
scheduledByBackfill | string | ||
jobStarted | string | ||
exitCode | string | job exit code (numeric) | |
showDuplicates | string | ||
skipSteps | string | ||
disableTruncateUsageTime | string | ||
wholeHetjob | string | ||
disableWholeHetjob | string | ||
disableWaitForResult | string | ||
usageTimeAsSubmitTime | string | ||
showBatchScript | string | ||
showJobEnvironment | string | ||
format | string | CSV format list | |
groups | string | CSV group list | |
jobName | string | CSV job name list | |
nodesMax | string | number of nodes high range | |
nodesMin | string | number of nodes low range | |
partition | string | CSV partition name list | |
qos | string | CSV QOS name list | |
reason | string | CSV reason list | |
reservation | string | CSV reservation name list | |
reservationId | string | CSV reservation ID list | |
state | string | CSV state list | |
step | string | CSV step id list | |
timelimitMax | string | maximum timelimit (seconds) | |
timelimitMin | string | minimum timelimit (seconds) | |
endTime | string | usage end timestamp | |
startTime | string | usage start timestamp | |
submitTime | string | submit time timestamp | |
node | string | ranged node string where jobs ran | |
users | string | CSV user name list | |
wckey | string | CSV wckey list |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiSlurmdbdQosResp SlurmdbV0040GetQos(ctx).Description(description).Id(id).Format(format).Name(name).PreemptMode(preemptMode).WithDeleted(withDeleted).Execute()
Get QOS list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
description := "description_example" // string | CSV description list (optional)
id := "id_example" // string | CSV QOS id list (optional)
format := "format_example" // string | CSV format list (optional)
name := "name_example" // string | CSV QOS name list (optional)
preemptMode := "preemptMode_example" // string | (optional)
withDeleted := "withDeleted_example" // string | Include deleted QOS (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetQos(context.Background()).Description(description).Id(id).Format(format).Name(name).PreemptMode(preemptMode).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetQos``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetQos`: V0040OpenapiSlurmdbdQosResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetQos`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040GetQosRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
description | string | CSV description list | |
id | string | CSV QOS id list | |
format | string | CSV format list | |
name | string | CSV QOS name list | |
preemptMode | string | ||
withDeleted | string | Include deleted QOS |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiSlurmdbdQosResp SlurmdbV0040GetSingleQos(ctx, qos).WithDeleted(withDeleted).Execute()
Get QOS info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
qos := "qos_example" // string | QOS name
withDeleted := "withDeleted_example" // string | Query includes deleted QOS (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetSingleQos(context.Background(), qos).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetSingleQos``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetSingleQos`: V0040OpenapiSlurmdbdQosResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetSingleQos`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
qos | string | QOS name |
Other parameters are passed through a pointer to a apiSlurmdbV0040GetSingleQosRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
withDeleted | string | Query includes deleted QOS |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiTresResp SlurmdbV0040GetTres(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.SlurmdbAPI.SlurmdbV0040GetTres(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetTres``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetTres`: V0040OpenapiTresResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetTres`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmdbV0040GetTresRequest 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]
V0040OpenapiUsersResp SlurmdbV0040GetUser(ctx, name).WithDeleted(withDeleted).WithAssocs(withAssocs).WithCoords(withCoords).WithWckeys(withWckeys).Execute()
Get user info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
name := "name_example" // string | User name
withDeleted := "withDeleted_example" // string | Include deleted users (optional)
withAssocs := "withAssocs_example" // string | Include assocations (optional)
withCoords := "withCoords_example" // string | Include coordinators (optional)
withWckeys := "withWckeys_example" // string | Include wckeys (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetUser(context.Background(), name).WithDeleted(withDeleted).WithAssocs(withAssocs).WithCoords(withCoords).WithWckeys(withWckeys).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetUser`: V0040OpenapiUsersResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetUser`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | User name |
Other parameters are passed through a pointer to a apiSlurmdbV0040GetUserRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
withDeleted | string | Include deleted users | withAssocs | string | Include assocations | withCoords | string | Include coordinators | withWckeys | string | Include wckeys |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiUsersResp SlurmdbV0040GetUsers(ctx).AdminLevel(adminLevel).DefaultAccount(defaultAccount).DefaultWckey(defaultWckey).WithAssocs(withAssocs).WithCoords(withCoords).WithDeleted(withDeleted).WithWckeys(withWckeys).WithoutDefaults(withoutDefaults).Execute()
Get user list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
adminLevel := "adminLevel_example" // string | Administrator level (optional)
defaultAccount := "defaultAccount_example" // string | CSV default account list (optional)
defaultWckey := "defaultWckey_example" // string | CSV default wckey list (optional)
withAssocs := "withAssocs_example" // string | With associations (optional)
withCoords := "withCoords_example" // string | With coordinators (optional)
withDeleted := "withDeleted_example" // string | With deleted (optional)
withWckeys := "withWckeys_example" // string | With wckeys (optional)
withoutDefaults := "withoutDefaults_example" // string | Exclude defaults (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetUsers(context.Background()).AdminLevel(adminLevel).DefaultAccount(defaultAccount).DefaultWckey(defaultWckey).WithAssocs(withAssocs).WithCoords(withCoords).WithDeleted(withDeleted).WithWckeys(withWckeys).WithoutDefaults(withoutDefaults).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetUsers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetUsers`: V0040OpenapiUsersResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetUsers`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040GetUsersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
adminLevel | string | Administrator level | |
defaultAccount | string | CSV default account list | |
defaultWckey | string | CSV default wckey list | |
withAssocs | string | With associations | |
withCoords | string | With coordinators | |
withDeleted | string | With deleted | |
withWckeys | string | With wckeys | |
withoutDefaults | string | Exclude defaults |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0040OpenapiWckeyResp SlurmdbV0040GetWckey(ctx, id).Execute()
Get wckey info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
id := "id_example" // string | wckey id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetWckey(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetWckey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetWckey`: V0040OpenapiWckeyResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetWckey`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | wckey id |
Other parameters are passed through a pointer to a apiSlurmdbV0040GetWckeyRequest 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]
V0040OpenapiWckeyResp SlurmdbV0040GetWckeys(ctx).Cluster(cluster).Format(format).Id(id).Name(name).OnlyDefaults(onlyDefaults).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).Execute()
Get wckey list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cluster := "cluster_example" // string | CSV cluster name list (optional)
format := "format_example" // string | CSV format name list (optional)
id := "id_example" // string | CSV id list (optional)
name := "name_example" // string | CSV name list (optional)
onlyDefaults := "onlyDefaults_example" // string | only query defaults (optional)
usageEnd := "usageEnd_example" // string | usage end UNIX timestamp (seconds) (optional)
usageStart := "usageStart_example" // string | usage start UNIX timestamp (seconds) (optional)
user := "user_example" // string | CSV user list (optional)
withUsage := "withUsage_example" // string | include usage with query (optional)
withDeleted := "withDeleted_example" // string | include deleted wckeys with query (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040GetWckeys(context.Background()).Cluster(cluster).Format(format).Id(id).Name(name).OnlyDefaults(onlyDefaults).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040GetWckeys``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040GetWckeys`: V0040OpenapiWckeyResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040GetWckeys`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040GetWckeysRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cluster | string | CSV cluster name list | |
format | string | CSV format name list | |
id | string | CSV id list | |
name | string | CSV name list | |
onlyDefaults | string | only query defaults | |
usageEnd | string | usage end UNIX timestamp (seconds) | |
usageStart | string | usage start UNIX timestamp (seconds) | |
user | string | CSV user list | |
withUsage | string | include usage with query | |
withDeleted | string | include deleted wckeys with 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]
V0040OpenapiResp SlurmdbV0040PostAccounts(ctx).V0040OpenapiAccountsResp(v0040OpenapiAccountsResp).Execute()
Add/update list of accounts
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0040OpenapiAccountsResp := *openapiclient.NewV0040OpenapiAccountsResp([]openapiclient.V0040Account{*openapiclient.NewV0040Account("Description_example", "Name_example", "Organization_example")}) // V0040OpenapiAccountsResp | Description of accounts to update/create (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040PostAccounts(context.Background()).V0040OpenapiAccountsResp(v0040OpenapiAccountsResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040PostAccounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040PostAccounts`: V0040OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040PostAccounts`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040PostAccountsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0040OpenapiAccountsResp | V0040OpenapiAccountsResp | Description of accounts to update/create |
- 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]
V0040OpenapiAccountsAddCondRespStr SlurmdbV0040PostAccountsAssociation(ctx).V0040OpenapiAccountsAddCondResp(v0040OpenapiAccountsAddCondResp).Execute()
Add accounts with conditional association
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0040OpenapiAccountsAddCondResp := *openapiclient.NewV0040OpenapiAccountsAddCondResp() // V0040OpenapiAccountsAddCondResp | Add list of accounts with conditional association (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040PostAccountsAssociation(context.Background()).V0040OpenapiAccountsAddCondResp(v0040OpenapiAccountsAddCondResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040PostAccountsAssociation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040PostAccountsAssociation`: V0040OpenapiAccountsAddCondRespStr
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040PostAccountsAssociation`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040PostAccountsAssociationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0040OpenapiAccountsAddCondResp | V0040OpenapiAccountsAddCondResp | Add list of accounts with conditional association |
V0040OpenapiAccountsAddCondRespStr
- 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 SlurmdbV0040PostAssociations(ctx).V0040OpenapiAssocsResp(v0040OpenapiAssocsResp).Execute()
Set associations info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0040OpenapiAssocsResp := *openapiclient.NewV0040OpenapiAssocsResp([]openapiclient.V0040Assoc{*openapiclient.NewV0040Assoc("User_example")}) // V0040OpenapiAssocsResp | Job description (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040PostAssociations(context.Background()).V0040OpenapiAssocsResp(v0040OpenapiAssocsResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040PostAssociations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040PostAssociations`: V0040OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040PostAssociations`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040PostAssociationsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0040OpenapiAssocsResp | V0040OpenapiAssocsResp | 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 SlurmdbV0040PostClusters(ctx).UpdateTime(updateTime).V0040OpenapiClustersResp(v0040OpenapiClustersResp).Execute()
Get cluster list
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)
v0040OpenapiClustersResp := *openapiclient.NewV0040OpenapiClustersResp([]openapiclient.V0040ClusterRec{*openapiclient.NewV0040ClusterRec()}) // V0040OpenapiClustersResp | Cluster add or update descriptions (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040PostClusters(context.Background()).UpdateTime(updateTime).V0040OpenapiClustersResp(v0040OpenapiClustersResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040PostClusters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040PostClusters`: V0040OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040PostClusters`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040PostClustersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | string | Filter reservations since update timestamp | |
v0040OpenapiClustersResp | V0040OpenapiClustersResp | Cluster add or update descriptions |
- 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 SlurmdbV0040PostConfig(ctx).V0040OpenapiSlurmdbdConfigResp(v0040OpenapiSlurmdbdConfigResp).Execute()
Load all configuration information
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0040OpenapiSlurmdbdConfigResp := *openapiclient.NewV0040OpenapiSlurmdbdConfigResp() // V0040OpenapiSlurmdbdConfigResp | Add or update config (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040PostConfig(context.Background()).V0040OpenapiSlurmdbdConfigResp(v0040OpenapiSlurmdbdConfigResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040PostConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040PostConfig`: V0040OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040PostConfig`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040PostConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0040OpenapiSlurmdbdConfigResp | V0040OpenapiSlurmdbdConfigResp | Add or update config |
- 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 SlurmdbV0040PostQos(ctx).Description(description).Id(id).Format(format).Name(name).PreemptMode(preemptMode).WithDeleted(withDeleted).V0040OpenapiSlurmdbdQosResp(v0040OpenapiSlurmdbdQosResp).Execute()
Add or update QOSs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
description := "description_example" // string | CSV description list (optional)
id := "id_example" // string | CSV QOS id list (optional)
format := "format_example" // string | CSV format list (optional)
name := "name_example" // string | CSV QOS name list (optional)
preemptMode := "preemptMode_example" // string | (optional)
withDeleted := "withDeleted_example" // string | Include deleted QOS (optional)
v0040OpenapiSlurmdbdQosResp := *openapiclient.NewV0040OpenapiSlurmdbdQosResp([]openapiclient.V0040Qos{*openapiclient.NewV0040Qos()}) // V0040OpenapiSlurmdbdQosResp | Description of QOS to add or update (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040PostQos(context.Background()).Description(description).Id(id).Format(format).Name(name).PreemptMode(preemptMode).WithDeleted(withDeleted).V0040OpenapiSlurmdbdQosResp(v0040OpenapiSlurmdbdQosResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040PostQos``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040PostQos`: V0040OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040PostQos`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040PostQosRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
description | string | CSV description list | |
id | string | CSV QOS id list | |
format | string | CSV format list | |
name | string | CSV QOS name list | |
preemptMode | string | ||
withDeleted | string | Include deleted QOS | |
v0040OpenapiSlurmdbdQosResp | V0040OpenapiSlurmdbdQosResp | Description of QOS to add or update |
- 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 SlurmdbV0040PostTres(ctx).V0040OpenapiTresResp(v0040OpenapiTresResp).Execute()
Add TRES
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0040OpenapiTresResp := *openapiclient.NewV0040OpenapiTresResp([]openapiclient.V0040Tres{*openapiclient.NewV0040Tres("Type_example")}) // V0040OpenapiTresResp | TRES descriptions. Only works in developer mode. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040PostTres(context.Background()).V0040OpenapiTresResp(v0040OpenapiTresResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040PostTres``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040PostTres`: V0040OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040PostTres`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040PostTresRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0040OpenapiTresResp | V0040OpenapiTresResp | TRES descriptions. Only works in developer mode. |
- 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 SlurmdbV0040PostUsers(ctx).V0040OpenapiUsersResp(v0040OpenapiUsersResp).Execute()
Update users
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0040OpenapiUsersResp := *openapiclient.NewV0040OpenapiUsersResp([]openapiclient.V0040User{*openapiclient.NewV0040User("Name_example")}) // V0040OpenapiUsersResp | add or update user (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040PostUsers(context.Background()).V0040OpenapiUsersResp(v0040OpenapiUsersResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040PostUsers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040PostUsers`: V0040OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040PostUsers`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040PostUsersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0040OpenapiUsersResp | V0040OpenapiUsersResp | add or update user |
- 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]
V0040OpenapiUsersAddCondRespStr SlurmdbV0040PostUsersAssociation(ctx).UpdateTime(updateTime).Flags(flags).V0040OpenapiUsersAddCondResp(v0040OpenapiUsersAddCondResp).Execute()
Add users with conditional association
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)
v0040OpenapiUsersAddCondResp := *openapiclient.NewV0040OpenapiUsersAddCondResp(*openapiclient.NewV0040UsersAddCond([]string{"Users_example"}), *openapiclient.NewV0040UserShort()) // V0040OpenapiUsersAddCondResp | Create users with conditional association (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040PostUsersAssociation(context.Background()).UpdateTime(updateTime).Flags(flags).V0040OpenapiUsersAddCondResp(v0040OpenapiUsersAddCondResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040PostUsersAssociation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040PostUsersAssociation`: V0040OpenapiUsersAddCondRespStr
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040PostUsersAssociation`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040PostUsersAssociationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | string | Filter partitions since update timestamp | |
flags | string | Query flags | |
v0040OpenapiUsersAddCondResp | V0040OpenapiUsersAddCondResp | Create users with conditional association |
V0040OpenapiUsersAddCondRespStr
- 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 SlurmdbV0040PostWckeys(ctx).Cluster(cluster).Format(format).Id(id).Name(name).OnlyDefaults(onlyDefaults).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).V0040OpenapiWckeyResp(v0040OpenapiWckeyResp).Execute()
Add or update wckeys
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cluster := "cluster_example" // string | CSV cluster name list (optional)
format := "format_example" // string | CSV format name list (optional)
id := "id_example" // string | CSV id list (optional)
name := "name_example" // string | CSV name list (optional)
onlyDefaults := "onlyDefaults_example" // string | only query defaults (optional)
usageEnd := "usageEnd_example" // string | usage end UNIX timestamp (seconds) (optional)
usageStart := "usageStart_example" // string | usage start UNIX timestamp (seconds) (optional)
user := "user_example" // string | CSV user list (optional)
withUsage := "withUsage_example" // string | include usage with query (optional)
withDeleted := "withDeleted_example" // string | include deleted wckeys with query (optional)
v0040OpenapiWckeyResp := *openapiclient.NewV0040OpenapiWckeyResp([]openapiclient.V0040Wckey{*openapiclient.NewV0040Wckey("Cluster_example", "Name_example", "User_example")}) // V0040OpenapiWckeyResp | wckeys description (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0040PostWckeys(context.Background()).Cluster(cluster).Format(format).Id(id).Name(name).OnlyDefaults(onlyDefaults).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).V0040OpenapiWckeyResp(v0040OpenapiWckeyResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0040PostWckeys``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0040PostWckeys`: V0040OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0040PostWckeys`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0040PostWckeysRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cluster | string | CSV cluster name list | |
format | string | CSV format name list | |
id | string | CSV id list | |
name | string | CSV name list | |
onlyDefaults | string | only query defaults | |
usageEnd | string | usage end UNIX timestamp (seconds) | |
usageStart | string | usage start UNIX timestamp (seconds) | |
user | string | CSV user list | |
withUsage | string | include usage with query | |
withDeleted | string | include deleted wckeys with query | |
v0040OpenapiWckeyResp | V0040OpenapiWckeyResp | wckeys 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]
V0041OpenapiAccountsRemovedResp SlurmdbV0041DeleteAccount(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 | Account name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041DeleteAccount(context.Background(), accountName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041DeleteAccount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041DeleteAccount`: V0041OpenapiAccountsRemovedResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041DeleteAccount`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountName | string | Account name |
Other parameters are passed through a pointer to a apiSlurmdbV0041DeleteAccountRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
V0041OpenapiAccountsRemovedResp
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiAssocsRemovedResp SlurmdbV0041DeleteAssociation(ctx).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
Delete association
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
account := "account_example" // string | CSV accounts list (optional)
cluster := "cluster_example" // string | CSV clusters list (optional)
defaultQos := "defaultQos_example" // string | CSV QOS list (optional)
format := "format_example" // string | CSV format list (optional)
id := "id_example" // string | CSV id list (optional)
onlyDefaults := "onlyDefaults_example" // string | filter to only defaults (optional)
parentAccount := "parentAccount_example" // string | CSV names of parent account (optional)
partition := "partition_example" // string | CSV partition name list (optional)
qos := "qos_example" // string | CSV QOS list (optional)
usageEnd := "usageEnd_example" // string | usage end UNIX timestamp (optional)
usageStart := "usageStart_example" // string | usage start UNIX timestamp (optional)
user := "user_example" // string | CSV user list (optional)
withUsage := "withUsage_example" // string | fill in usage (optional)
withDeleted := "withDeleted_example" // string | return deleted associations (optional)
withRawQos := "withRawQos_example" // string | return a raw qos or delta_qos (optional)
withSubAccts := "withSubAccts_example" // string | return sub acct information also (optional)
withoutParentInfo := "withoutParentInfo_example" // string | don't give me parent id/name (optional)
withoutParentLimits := "withoutParentLimits_example" // string | don't give me limits from parents (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041DeleteAssociation(context.Background()).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041DeleteAssociation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041DeleteAssociation`: V0041OpenapiAssocsRemovedResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041DeleteAssociation`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041DeleteAssociationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
account | string | CSV accounts list | |
cluster | string | CSV clusters list | |
defaultQos | string | CSV QOS list | |
format | string | CSV format list | |
id | string | CSV id list | |
onlyDefaults | string | filter to only defaults | |
parentAccount | string | CSV names of parent account | |
partition | string | CSV partition name list | |
qos | string | CSV QOS list | |
usageEnd | string | usage end UNIX timestamp | |
usageStart | string | usage start UNIX timestamp | |
user | string | CSV user list | |
withUsage | string | fill in usage | |
withDeleted | string | return deleted associations | |
withRawQos | string | return a raw qos or delta_qos | |
withSubAccts | string | return sub acct information also | |
withoutParentInfo | string | don't give me parent id/name | |
withoutParentLimits | string | don't give me limits from parents |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiAssocsRemovedResp SlurmdbV0041DeleteAssociations(ctx).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
Delete associations
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
account := "account_example" // string | CSV accounts list (optional)
cluster := "cluster_example" // string | CSV clusters list (optional)
defaultQos := "defaultQos_example" // string | CSV QOS list (optional)
format := "format_example" // string | CSV format list (optional)
id := "id_example" // string | CSV id list (optional)
onlyDefaults := "onlyDefaults_example" // string | filter to only defaults (optional)
parentAccount := "parentAccount_example" // string | CSV names of parent account (optional)
partition := "partition_example" // string | CSV partition name list (optional)
qos := "qos_example" // string | CSV QOS list (optional)
usageEnd := "usageEnd_example" // string | usage end UNIX timestamp (optional)
usageStart := "usageStart_example" // string | usage start UNIX timestamp (optional)
user := "user_example" // string | CSV user list (optional)
withUsage := "withUsage_example" // string | fill in usage (optional)
withDeleted := "withDeleted_example" // string | return deleted associations (optional)
withRawQos := "withRawQos_example" // string | return a raw qos or delta_qos (optional)
withSubAccts := "withSubAccts_example" // string | return sub acct information also (optional)
withoutParentInfo := "withoutParentInfo_example" // string | don't give me parent id/name (optional)
withoutParentLimits := "withoutParentLimits_example" // string | don't give me limits from parents (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041DeleteAssociations(context.Background()).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041DeleteAssociations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041DeleteAssociations`: V0041OpenapiAssocsRemovedResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041DeleteAssociations`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041DeleteAssociationsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
account | string | CSV accounts list | |
cluster | string | CSV clusters list | |
defaultQos | string | CSV QOS list | |
format | string | CSV format list | |
id | string | CSV id list | |
onlyDefaults | string | filter to only defaults | |
parentAccount | string | CSV names of parent account | |
partition | string | CSV partition name list | |
qos | string | CSV QOS list | |
usageEnd | string | usage end UNIX timestamp | |
usageStart | string | usage start UNIX timestamp | |
user | string | CSV user list | |
withUsage | string | fill in usage | |
withDeleted | string | return deleted associations | |
withRawQos | string | return a raw qos or delta_qos | |
withSubAccts | string | return sub acct information also | |
withoutParentInfo | string | don't give me parent id/name | |
withoutParentLimits | string | don't give me limits from parents |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiClustersRemovedResp SlurmdbV0041DeleteCluster(ctx, clusterName).Classification(classification).Cluster(cluster).Federation(federation).Flags(flags).Format(format).RpcVersion(rpcVersion).UsageEnd(usageEnd).UsageStart(usageStart).WithDeleted(withDeleted).WithUsage(withUsage).Execute()
Delete cluster
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
clusterName := "clusterName_example" // string | Cluster name
classification := "classification_example" // string | (optional)
cluster := "cluster_example" // string | CSV cluster list (optional)
federation := "federation_example" // string | CSV federation list (optional)
flags := "flags_example" // string | (optional)
format := "format_example" // string | CSV format list (optional)
rpcVersion := "rpcVersion_example" // string | CSV RPC version list (optional)
usageEnd := "usageEnd_example" // string | Usage end UNIX timestamp (seconds) (optional)
usageStart := "usageStart_example" // string | Usage start UNIX timestamp (seconds) (optional)
withDeleted := "withDeleted_example" // string | include deleted clusters (optional)
withUsage := "withUsage_example" // string | query usage (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041DeleteCluster(context.Background(), clusterName).Classification(classification).Cluster(cluster).Federation(federation).Flags(flags).Format(format).RpcVersion(rpcVersion).UsageEnd(usageEnd).UsageStart(usageStart).WithDeleted(withDeleted).WithUsage(withUsage).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041DeleteCluster``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041DeleteCluster`: V0041OpenapiClustersRemovedResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041DeleteCluster`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
clusterName | string | Cluster name |
Other parameters are passed through a pointer to a apiSlurmdbV0041DeleteClusterRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
classification | string | | cluster | string | CSV cluster list | federation | string | CSV federation list | flags | string | | format | string | CSV format list | rpcVersion | string | CSV RPC version list | usageEnd | string | Usage end UNIX timestamp (seconds) | usageStart | string | Usage start UNIX timestamp (seconds) | withDeleted | string | include deleted clusters | withUsage | string | query usage |
V0041OpenapiClustersRemovedResp
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiSlurmdbdQosRemovedResp SlurmdbV0041DeleteSingleQos(ctx, qos).Execute()
Delete QOS
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
qos := "qos_example" // string | QOS name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041DeleteSingleQos(context.Background(), qos).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041DeleteSingleQos``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041DeleteSingleQos`: V0041OpenapiSlurmdbdQosRemovedResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041DeleteSingleQos`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
qos | string | QOS name |
Other parameters are passed through a pointer to a apiSlurmdbV0041DeleteSingleQosRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
V0041OpenapiSlurmdbdQosRemovedResp
- 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 SlurmdbV0041DeleteUser(ctx, name).Execute()
Delete user
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
name := "name_example" // string | User name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041DeleteUser(context.Background(), name).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041DeleteUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041DeleteUser`: V0041OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041DeleteUser`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | User name |
Other parameters are passed through a pointer to a apiSlurmdbV0041DeleteUserRequest 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]
V0041OpenapiWckeyRemovedResp SlurmdbV0041DeleteWckey(ctx, id).Execute()
Delete wckey
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
id := "id_example" // string | wckey id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041DeleteWckey(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041DeleteWckey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041DeleteWckey`: V0041OpenapiWckeyRemovedResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041DeleteWckey`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | wckey id |
Other parameters are passed through a pointer to a apiSlurmdbV0041DeleteWckeyRequest 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]
V0041OpenapiAccountsResp SlurmdbV0041GetAccount(ctx, accountName).WithAssocs(withAssocs).WithCoords(withCoords).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 | Account name
withAssocs := "withAssocs_example" // string | include associations (optional)
withCoords := "withCoords_example" // string | include coordinators (optional)
withDeleted := "withDeleted_example" // string | include deleted (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetAccount(context.Background(), accountName).WithAssocs(withAssocs).WithCoords(withCoords).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetAccount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetAccount`: V0041OpenapiAccountsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetAccount`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
accountName | string | Account name |
Other parameters are passed through a pointer to a apiSlurmdbV0041GetAccountRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
withAssocs | string | include associations | withCoords | string | include coordinators | withDeleted | string | include deleted |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiAccountsResp SlurmdbV0041GetAccounts(ctx).Description(description).DELETED(dELETED).WithAssociations(withAssociations).WithCoordinators(withCoordinators).NoUsersAreCoords(noUsersAreCoords).UsersAreCoords(usersAreCoords).Execute()
Get account list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
description := "description_example" // string | CSV description list (optional)
dELETED := "dELETED_example" // string | include deleted assocations (optional)
withAssociations := "withAssociations_example" // string | query includes associations (optional)
withCoordinators := "withCoordinators_example" // string | query includes coordinators (optional)
noUsersAreCoords := "noUsersAreCoords_example" // string | remove users as coordinators (optional)
usersAreCoords := "usersAreCoords_example" // string | users are coordinators (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetAccounts(context.Background()).Description(description).DELETED(dELETED).WithAssociations(withAssociations).WithCoordinators(withCoordinators).NoUsersAreCoords(noUsersAreCoords).UsersAreCoords(usersAreCoords).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetAccounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetAccounts`: V0041OpenapiAccountsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetAccounts`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041GetAccountsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
description | string | CSV description list | |
dELETED | string | include deleted assocations | |
withAssociations | string | query includes associations | |
withCoordinators | string | query includes coordinators | |
noUsersAreCoords | string | remove users as coordinators | |
usersAreCoords | string | users are coordinators |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiAssocsResp SlurmdbV0041GetAssociation(ctx).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
Get association info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
account := "account_example" // string | CSV accounts list (optional)
cluster := "cluster_example" // string | CSV clusters list (optional)
defaultQos := "defaultQos_example" // string | CSV QOS list (optional)
format := "format_example" // string | CSV format list (optional)
id := "id_example" // string | CSV id list (optional)
onlyDefaults := "onlyDefaults_example" // string | filter to only defaults (optional)
parentAccount := "parentAccount_example" // string | CSV names of parent account (optional)
partition := "partition_example" // string | CSV partition name list (optional)
qos := "qos_example" // string | CSV QOS list (optional)
usageEnd := "usageEnd_example" // string | usage end UNIX timestamp (optional)
usageStart := "usageStart_example" // string | usage start UNIX timestamp (optional)
user := "user_example" // string | CSV user list (optional)
withUsage := "withUsage_example" // string | fill in usage (optional)
withDeleted := "withDeleted_example" // string | return deleted associations (optional)
withRawQos := "withRawQos_example" // string | return a raw qos or delta_qos (optional)
withSubAccts := "withSubAccts_example" // string | return sub acct information also (optional)
withoutParentInfo := "withoutParentInfo_example" // string | don't give me parent id/name (optional)
withoutParentLimits := "withoutParentLimits_example" // string | don't give me limits from parents (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetAssociation(context.Background()).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetAssociation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetAssociation`: V0041OpenapiAssocsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetAssociation`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041GetAssociationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
account | string | CSV accounts list | |
cluster | string | CSV clusters list | |
defaultQos | string | CSV QOS list | |
format | string | CSV format list | |
id | string | CSV id list | |
onlyDefaults | string | filter to only defaults | |
parentAccount | string | CSV names of parent account | |
partition | string | CSV partition name list | |
qos | string | CSV QOS list | |
usageEnd | string | usage end UNIX timestamp | |
usageStart | string | usage start UNIX timestamp | |
user | string | CSV user list | |
withUsage | string | fill in usage | |
withDeleted | string | return deleted associations | |
withRawQos | string | return a raw qos or delta_qos | |
withSubAccts | string | return sub acct information also | |
withoutParentInfo | string | don't give me parent id/name | |
withoutParentLimits | string | don't give me limits from parents |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiAssocsResp SlurmdbV0041GetAssociations(ctx).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
Get association list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
account := "account_example" // string | CSV accounts list (optional)
cluster := "cluster_example" // string | CSV clusters list (optional)
defaultQos := "defaultQos_example" // string | CSV QOS list (optional)
format := "format_example" // string | CSV format list (optional)
id := "id_example" // string | CSV id list (optional)
onlyDefaults := "onlyDefaults_example" // string | filter to only defaults (optional)
parentAccount := "parentAccount_example" // string | CSV names of parent account (optional)
partition := "partition_example" // string | CSV partition name list (optional)
qos := "qos_example" // string | CSV QOS list (optional)
usageEnd := "usageEnd_example" // string | usage end UNIX timestamp (optional)
usageStart := "usageStart_example" // string | usage start UNIX timestamp (optional)
user := "user_example" // string | CSV user list (optional)
withUsage := "withUsage_example" // string | fill in usage (optional)
withDeleted := "withDeleted_example" // string | return deleted associations (optional)
withRawQos := "withRawQos_example" // string | return a raw qos or delta_qos (optional)
withSubAccts := "withSubAccts_example" // string | return sub acct information also (optional)
withoutParentInfo := "withoutParentInfo_example" // string | don't give me parent id/name (optional)
withoutParentLimits := "withoutParentLimits_example" // string | don't give me limits from parents (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetAssociations(context.Background()).Account(account).Cluster(cluster).DefaultQos(defaultQos).Format(format).Id(id).OnlyDefaults(onlyDefaults).ParentAccount(parentAccount).Partition(partition).Qos(qos).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).WithRawQos(withRawQos).WithSubAccts(withSubAccts).WithoutParentInfo(withoutParentInfo).WithoutParentLimits(withoutParentLimits).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetAssociations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetAssociations`: V0041OpenapiAssocsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetAssociations`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041GetAssociationsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
account | string | CSV accounts list | |
cluster | string | CSV clusters list | |
defaultQos | string | CSV QOS list | |
format | string | CSV format list | |
id | string | CSV id list | |
onlyDefaults | string | filter to only defaults | |
parentAccount | string | CSV names of parent account | |
partition | string | CSV partition name list | |
qos | string | CSV QOS list | |
usageEnd | string | usage end UNIX timestamp | |
usageStart | string | usage start UNIX timestamp | |
user | string | CSV user list | |
withUsage | string | fill in usage | |
withDeleted | string | return deleted associations | |
withRawQos | string | return a raw qos or delta_qos | |
withSubAccts | string | return sub acct information also | |
withoutParentInfo | string | don't give me parent id/name | |
withoutParentLimits | string | don't give me limits from parents |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiClustersResp SlurmdbV0041GetCluster(ctx, clusterName).Classification(classification).Cluster(cluster).Federation(federation).Flags(flags).Format(format).RpcVersion(rpcVersion).UsageEnd(usageEnd).UsageStart(usageStart).WithDeleted(withDeleted).WithUsage(withUsage).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 | Cluster name
classification := "classification_example" // string | (optional)
cluster := "cluster_example" // string | CSV cluster list (optional)
federation := "federation_example" // string | CSV federation list (optional)
flags := "flags_example" // string | (optional)
format := "format_example" // string | CSV format list (optional)
rpcVersion := "rpcVersion_example" // string | CSV RPC version list (optional)
usageEnd := "usageEnd_example" // string | Usage end UNIX timestamp (seconds) (optional)
usageStart := "usageStart_example" // string | Usage start UNIX timestamp (seconds) (optional)
withDeleted := "withDeleted_example" // string | include deleted clusters (optional)
withUsage := "withUsage_example" // string | query usage (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetCluster(context.Background(), clusterName).Classification(classification).Cluster(cluster).Federation(federation).Flags(flags).Format(format).RpcVersion(rpcVersion).UsageEnd(usageEnd).UsageStart(usageStart).WithDeleted(withDeleted).WithUsage(withUsage).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetCluster``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetCluster`: V0041OpenapiClustersResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetCluster`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
clusterName | string | Cluster name |
Other parameters are passed through a pointer to a apiSlurmdbV0041GetClusterRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
classification | string | | cluster | string | CSV cluster list | federation | string | CSV federation list | flags | string | | format | string | CSV format list | rpcVersion | string | CSV RPC version list | usageEnd | string | Usage end UNIX timestamp (seconds) | usageStart | string | Usage start UNIX timestamp (seconds) | withDeleted | string | include deleted clusters | withUsage | string | query usage |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiClustersResp SlurmdbV0041GetClusters(ctx).UpdateTime(updateTime).Execute()
Get cluster list
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.SlurmdbAPI.SlurmdbV0041GetClusters(context.Background()).UpdateTime(updateTime).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetClusters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetClusters`: V0041OpenapiClustersResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetClusters`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041GetClustersRequest 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]
V0041OpenapiSlurmdbdConfigResp SlurmdbV0041GetConfig(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.SlurmdbAPI.SlurmdbV0041GetConfig(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetConfig`: V0041OpenapiSlurmdbdConfigResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetConfig`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmdbV0041GetConfigRequest struct via the builder pattern
V0041OpenapiSlurmdbdConfigResp
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiSlurmdbdStatsResp SlurmdbV0041GetDiag(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.SlurmdbAPI.SlurmdbV0041GetDiag(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetDiag``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetDiag`: V0041OpenapiSlurmdbdStatsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetDiag`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmdbV0041GetDiagRequest 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]
V0041OpenapiInstancesResp SlurmdbV0041GetInstance(ctx).Cluster(cluster).Extra(extra).Format(format).InstanceId(instanceId).InstanceType(instanceType).NodeList(nodeList).TimeEnd(timeEnd).TimeStart(timeStart).Execute()
Get instance info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cluster := "cluster_example" // string | CSV clusters list (optional)
extra := "extra_example" // string | CSV extra list (optional)
format := "format_example" // string | CSV format list (optional)
instanceId := "instanceId_example" // string | CSV instance_id list (optional)
instanceType := "instanceType_example" // string | CSV instance_type list (optional)
nodeList := "nodeList_example" // string | ranged node string (optional)
timeEnd := "timeEnd_example" // string | time end UNIX timestamp (optional)
timeStart := "timeStart_example" // string | time start UNIX timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetInstance(context.Background()).Cluster(cluster).Extra(extra).Format(format).InstanceId(instanceId).InstanceType(instanceType).NodeList(nodeList).TimeEnd(timeEnd).TimeStart(timeStart).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetInstance``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetInstance`: V0041OpenapiInstancesResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetInstance`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041GetInstanceRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cluster | string | CSV clusters list | |
extra | string | CSV extra list | |
format | string | CSV format list | |
instanceId | string | CSV instance_id list | |
instanceType | string | CSV instance_type list | |
nodeList | string | ranged node string | |
timeEnd | string | time end UNIX timestamp | |
timeStart | string | time start UNIX 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]
V0041OpenapiInstancesResp SlurmdbV0041GetInstances(ctx).Cluster(cluster).Extra(extra).Format(format).InstanceId(instanceId).InstanceType(instanceType).NodeList(nodeList).TimeEnd(timeEnd).TimeStart(timeStart).Execute()
Get instance list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cluster := "cluster_example" // string | CSV clusters list (optional)
extra := "extra_example" // string | CSV extra list (optional)
format := "format_example" // string | CSV format list (optional)
instanceId := "instanceId_example" // string | CSV instance_id list (optional)
instanceType := "instanceType_example" // string | CSV instance_type list (optional)
nodeList := "nodeList_example" // string | ranged node string (optional)
timeEnd := "timeEnd_example" // string | time end UNIX timestamp (optional)
timeStart := "timeStart_example" // string | time start UNIX timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetInstances(context.Background()).Cluster(cluster).Extra(extra).Format(format).InstanceId(instanceId).InstanceType(instanceType).NodeList(nodeList).TimeEnd(timeEnd).TimeStart(timeStart).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetInstances``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetInstances`: V0041OpenapiInstancesResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetInstances`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041GetInstancesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cluster | string | CSV clusters list | |
extra | string | CSV extra list | |
format | string | CSV format list | |
instanceId | string | CSV instance_id list | |
instanceType | string | CSV instance_type list | |
nodeList | string | ranged node string | |
timeEnd | string | time end UNIX timestamp | |
timeStart | string | time start UNIX 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]
V0041OpenapiSlurmdbdJobsResp SlurmdbV0041GetJob(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 | Job id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetJob(context.Background(), jobId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetJob``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetJob`: V0041OpenapiSlurmdbdJobsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetJob`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
jobId | string | Job id |
Other parameters are passed through a pointer to a apiSlurmdbV0041GetJobRequest 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]
V0041OpenapiSlurmdbdJobsResp SlurmdbV0041GetJobs(ctx).Account(account).Association(association).Cluster(cluster).Constraints(constraints).SchedulerUnset(schedulerUnset).ScheduledOnSubmit(scheduledOnSubmit).ScheduledByMain(scheduledByMain).ScheduledByBackfill(scheduledByBackfill).JobStarted(jobStarted).ExitCode(exitCode).ShowDuplicates(showDuplicates).SkipSteps(skipSteps).DisableTruncateUsageTime(disableTruncateUsageTime).WholeHetjob(wholeHetjob).DisableWholeHetjob(disableWholeHetjob).DisableWaitForResult(disableWaitForResult).UsageTimeAsSubmitTime(usageTimeAsSubmitTime).ShowBatchScript(showBatchScript).ShowJobEnvironment(showJobEnvironment).Format(format).Groups(groups).JobName(jobName).Partition(partition).Qos(qos).Reason(reason).Reservation(reservation).ReservationId(reservationId).State(state).Step(step).EndTime(endTime).StartTime(startTime).Node(node).Users(users).Wckey(wckey).Execute()
Get job list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
account := "account_example" // string | CSV account list (optional)
association := "association_example" // string | CSV association list (optional)
cluster := "cluster_example" // string | CSV cluster list (optional)
constraints := "constraints_example" // string | CSV constraint list (optional)
schedulerUnset := "schedulerUnset_example" // string | (optional)
scheduledOnSubmit := "scheduledOnSubmit_example" // string | (optional)
scheduledByMain := "scheduledByMain_example" // string | (optional)
scheduledByBackfill := "scheduledByBackfill_example" // string | (optional)
jobStarted := "jobStarted_example" // string | (optional)
exitCode := "exitCode_example" // string | job exit code (numeric) (optional)
showDuplicates := "showDuplicates_example" // string | (optional)
skipSteps := "skipSteps_example" // string | (optional)
disableTruncateUsageTime := "disableTruncateUsageTime_example" // string | (optional)
wholeHetjob := "wholeHetjob_example" // string | (optional)
disableWholeHetjob := "disableWholeHetjob_example" // string | (optional)
disableWaitForResult := "disableWaitForResult_example" // string | (optional)
usageTimeAsSubmitTime := "usageTimeAsSubmitTime_example" // string | (optional)
showBatchScript := "showBatchScript_example" // string | (optional)
showJobEnvironment := "showJobEnvironment_example" // string | (optional)
format := "format_example" // string | CSV format list (optional)
groups := "groups_example" // string | CSV group list (optional)
jobName := "jobName_example" // string | CSV job name list (optional)
partition := "partition_example" // string | CSV partition name list (optional)
qos := "qos_example" // string | CSV QOS name list (optional)
reason := "reason_example" // string | CSV reason list (optional)
reservation := "reservation_example" // string | CSV reservation name list (optional)
reservationId := "reservationId_example" // string | CSV reservation ID list (optional)
state := "state_example" // string | CSV state list (optional)
step := "step_example" // string | CSV step id list (optional)
endTime := "endTime_example" // string | usage end timestamp (optional)
startTime := "startTime_example" // string | usage start timestamp (optional)
node := "node_example" // string | ranged node string where jobs ran (optional)
users := "users_example" // string | CSV user name list (optional)
wckey := "wckey_example" // string | CSV wckey list (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetJobs(context.Background()).Account(account).Association(association).Cluster(cluster).Constraints(constraints).SchedulerUnset(schedulerUnset).ScheduledOnSubmit(scheduledOnSubmit).ScheduledByMain(scheduledByMain).ScheduledByBackfill(scheduledByBackfill).JobStarted(jobStarted).ExitCode(exitCode).ShowDuplicates(showDuplicates).SkipSteps(skipSteps).DisableTruncateUsageTime(disableTruncateUsageTime).WholeHetjob(wholeHetjob).DisableWholeHetjob(disableWholeHetjob).DisableWaitForResult(disableWaitForResult).UsageTimeAsSubmitTime(usageTimeAsSubmitTime).ShowBatchScript(showBatchScript).ShowJobEnvironment(showJobEnvironment).Format(format).Groups(groups).JobName(jobName).Partition(partition).Qos(qos).Reason(reason).Reservation(reservation).ReservationId(reservationId).State(state).Step(step).EndTime(endTime).StartTime(startTime).Node(node).Users(users).Wckey(wckey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetJobs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetJobs`: V0041OpenapiSlurmdbdJobsResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetJobs`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041GetJobsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
account | string | CSV account list | |
association | string | CSV association list | |
cluster | string | CSV cluster list | |
constraints | string | CSV constraint list | |
schedulerUnset | string | ||
scheduledOnSubmit | string | ||
scheduledByMain | string | ||
scheduledByBackfill | string | ||
jobStarted | string | ||
exitCode | string | job exit code (numeric) | |
showDuplicates | string | ||
skipSteps | string | ||
disableTruncateUsageTime | string | ||
wholeHetjob | string | ||
disableWholeHetjob | string | ||
disableWaitForResult | string | ||
usageTimeAsSubmitTime | string | ||
showBatchScript | string | ||
showJobEnvironment | string | ||
format | string | CSV format list | |
groups | string | CSV group list | |
jobName | string | CSV job name list | |
partition | string | CSV partition name list | |
qos | string | CSV QOS name list | |
reason | string | CSV reason list | |
reservation | string | CSV reservation name list | |
reservationId | string | CSV reservation ID list | |
state | string | CSV state list | |
step | string | CSV step id list | |
endTime | string | usage end timestamp | |
startTime | string | usage start timestamp | |
node | string | ranged node string where jobs ran | |
users | string | CSV user name list | |
wckey | string | CSV wckey list |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiSlurmdbdQosResp SlurmdbV0041GetQos(ctx).Description(description).Id(id).Format(format).Name(name).PreemptMode(preemptMode).WithDeleted(withDeleted).Execute()
Get QOS list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
description := "description_example" // string | CSV description list (optional)
id := "id_example" // string | CSV QOS id list (optional)
format := "format_example" // string | CSV format list (optional)
name := "name_example" // string | CSV QOS name list (optional)
preemptMode := "preemptMode_example" // string | (optional)
withDeleted := "withDeleted_example" // string | Include deleted QOS (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetQos(context.Background()).Description(description).Id(id).Format(format).Name(name).PreemptMode(preemptMode).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetQos``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetQos`: V0041OpenapiSlurmdbdQosResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetQos`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041GetQosRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
description | string | CSV description list | |
id | string | CSV QOS id list | |
format | string | CSV format list | |
name | string | CSV QOS name list | |
preemptMode | string | ||
withDeleted | string | Include deleted QOS |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiSlurmdbdQosResp SlurmdbV0041GetSingleQos(ctx, qos).WithDeleted(withDeleted).Execute()
Get QOS info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
qos := "qos_example" // string | QOS name
withDeleted := "withDeleted_example" // string | Query includes deleted QOS (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetSingleQos(context.Background(), qos).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetSingleQos``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetSingleQos`: V0041OpenapiSlurmdbdQosResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetSingleQos`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
qos | string | QOS name |
Other parameters are passed through a pointer to a apiSlurmdbV0041GetSingleQosRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
withDeleted | string | Query includes deleted QOS |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiTresResp SlurmdbV0041GetTres(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.SlurmdbAPI.SlurmdbV0041GetTres(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetTres``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetTres`: V0041OpenapiTresResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetTres`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiSlurmdbV0041GetTresRequest 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]
V0041OpenapiUsersResp SlurmdbV0041GetUser(ctx, name).WithDeleted(withDeleted).WithAssocs(withAssocs).WithCoords(withCoords).WithWckeys(withWckeys).Execute()
Get user info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
name := "name_example" // string | User name
withDeleted := "withDeleted_example" // string | Include deleted users (optional)
withAssocs := "withAssocs_example" // string | Include assocations (optional)
withCoords := "withCoords_example" // string | Include coordinators (optional)
withWckeys := "withWckeys_example" // string | Include wckeys (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetUser(context.Background(), name).WithDeleted(withDeleted).WithAssocs(withAssocs).WithCoords(withCoords).WithWckeys(withWckeys).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetUser`: V0041OpenapiUsersResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetUser`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | User name |
Other parameters are passed through a pointer to a apiSlurmdbV0041GetUserRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
withDeleted | string | Include deleted users | withAssocs | string | Include assocations | withCoords | string | Include coordinators | withWckeys | string | Include wckeys |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiUsersResp SlurmdbV0041GetUsers(ctx).AdminLevel(adminLevel).DefaultAccount(defaultAccount).DefaultWckey(defaultWckey).WithAssocs(withAssocs).WithCoords(withCoords).WithDeleted(withDeleted).WithWckeys(withWckeys).WithoutDefaults(withoutDefaults).Execute()
Get user list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
adminLevel := "adminLevel_example" // string | Administrator level (optional)
defaultAccount := "defaultAccount_example" // string | CSV default account list (optional)
defaultWckey := "defaultWckey_example" // string | CSV default wckey list (optional)
withAssocs := "withAssocs_example" // string | With associations (optional)
withCoords := "withCoords_example" // string | With coordinators (optional)
withDeleted := "withDeleted_example" // string | With deleted (optional)
withWckeys := "withWckeys_example" // string | With wckeys (optional)
withoutDefaults := "withoutDefaults_example" // string | Exclude defaults (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetUsers(context.Background()).AdminLevel(adminLevel).DefaultAccount(defaultAccount).DefaultWckey(defaultWckey).WithAssocs(withAssocs).WithCoords(withCoords).WithDeleted(withDeleted).WithWckeys(withWckeys).WithoutDefaults(withoutDefaults).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetUsers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetUsers`: V0041OpenapiUsersResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetUsers`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041GetUsersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
adminLevel | string | Administrator level | |
defaultAccount | string | CSV default account list | |
defaultWckey | string | CSV default wckey list | |
withAssocs | string | With associations | |
withCoords | string | With coordinators | |
withDeleted | string | With deleted | |
withWckeys | string | With wckeys | |
withoutDefaults | string | Exclude defaults |
- Content-Type: Not defined
- Accept: application/x-yaml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V0041OpenapiWckeyResp SlurmdbV0041GetWckey(ctx, id).Execute()
Get wckey info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
id := "id_example" // string | wckey id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetWckey(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetWckey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetWckey`: V0041OpenapiWckeyResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetWckey`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | wckey id |
Other parameters are passed through a pointer to a apiSlurmdbV0041GetWckeyRequest 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]
V0041OpenapiWckeyResp SlurmdbV0041GetWckeys(ctx).Cluster(cluster).Format(format).Id(id).Name(name).OnlyDefaults(onlyDefaults).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).Execute()
Get wckey list
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cluster := "cluster_example" // string | CSV cluster name list (optional)
format := "format_example" // string | CSV format name list (optional)
id := "id_example" // string | CSV id list (optional)
name := "name_example" // string | CSV name list (optional)
onlyDefaults := "onlyDefaults_example" // string | only query defaults (optional)
usageEnd := "usageEnd_example" // string | usage end UNIX timestamp (seconds) (optional)
usageStart := "usageStart_example" // string | usage start UNIX timestamp (seconds) (optional)
user := "user_example" // string | CSV user list (optional)
withUsage := "withUsage_example" // string | include usage with query (optional)
withDeleted := "withDeleted_example" // string | include deleted wckeys with query (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041GetWckeys(context.Background()).Cluster(cluster).Format(format).Id(id).Name(name).OnlyDefaults(onlyDefaults).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041GetWckeys``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041GetWckeys`: V0041OpenapiWckeyResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041GetWckeys`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041GetWckeysRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cluster | string | CSV cluster name list | |
format | string | CSV format name list | |
id | string | CSV id list | |
name | string | CSV name list | |
onlyDefaults | string | only query defaults | |
usageEnd | string | usage end UNIX timestamp (seconds) | |
usageStart | string | usage start UNIX timestamp (seconds) | |
user | string | CSV user list | |
withUsage | string | include usage with query | |
withDeleted | string | include deleted wckeys with 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]
V0041OpenapiResp SlurmdbV0041PostAccounts(ctx).V0041OpenapiAccountsResp(v0041OpenapiAccountsResp).Execute()
Add/update list of accounts
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0041OpenapiAccountsResp := *openapiclient.NewV0041OpenapiAccountsResp([]openapiclient.V0041OpenapiSlurmdbdConfigRespAccountsInner{*openapiclient.NewV0041OpenapiSlurmdbdConfigRespAccountsInner("Description_example", "Name_example", "Organization_example")}) // V0041OpenapiAccountsResp | Description of accounts to update/create (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041PostAccounts(context.Background()).V0041OpenapiAccountsResp(v0041OpenapiAccountsResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041PostAccounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041PostAccounts`: V0041OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041PostAccounts`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041PostAccountsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0041OpenapiAccountsResp | V0041OpenapiAccountsResp | Description of accounts to update/create |
- 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]
V0041OpenapiAccountsAddCondRespStr SlurmdbV0041PostAccountsAssociation(ctx).V0041OpenapiAccountsAddCondResp(v0041OpenapiAccountsAddCondResp).Execute()
Add accounts with conditional association
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0041OpenapiAccountsAddCondResp := *openapiclient.NewV0041OpenapiAccountsAddCondResp() // V0041OpenapiAccountsAddCondResp | Add list of accounts with conditional association (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041PostAccountsAssociation(context.Background()).V0041OpenapiAccountsAddCondResp(v0041OpenapiAccountsAddCondResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041PostAccountsAssociation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041PostAccountsAssociation`: V0041OpenapiAccountsAddCondRespStr
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041PostAccountsAssociation`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041PostAccountsAssociationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0041OpenapiAccountsAddCondResp | V0041OpenapiAccountsAddCondResp | Add list of accounts with conditional association |
V0041OpenapiAccountsAddCondRespStr
- 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 SlurmdbV0041PostAssociations(ctx).V0041OpenapiAssocsResp(v0041OpenapiAssocsResp).Execute()
Set associations info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0041OpenapiAssocsResp := *openapiclient.NewV0041OpenapiAssocsResp([]openapiclient.V0041OpenapiSlurmdbdConfigRespAssociationsInner{*openapiclient.NewV0041OpenapiSlurmdbdConfigRespAssociationsInner("User_example")}) // V0041OpenapiAssocsResp | Job description (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041PostAssociations(context.Background()).V0041OpenapiAssocsResp(v0041OpenapiAssocsResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041PostAssociations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041PostAssociations`: V0041OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041PostAssociations`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041PostAssociationsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0041OpenapiAssocsResp | V0041OpenapiAssocsResp | 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 SlurmdbV0041PostClusters(ctx).UpdateTime(updateTime).V0041OpenapiClustersResp(v0041OpenapiClustersResp).Execute()
Get cluster list
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)
v0041OpenapiClustersResp := *openapiclient.NewV0041OpenapiClustersResp([]openapiclient.V0041OpenapiSlurmdbdConfigRespClustersInner{*openapiclient.NewV0041OpenapiSlurmdbdConfigRespClustersInner()}) // V0041OpenapiClustersResp | Cluster add or update descriptions (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041PostClusters(context.Background()).UpdateTime(updateTime).V0041OpenapiClustersResp(v0041OpenapiClustersResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041PostClusters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041PostClusters`: V0041OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041PostClusters`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041PostClustersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | string | Filter reservations since update timestamp | |
v0041OpenapiClustersResp | V0041OpenapiClustersResp | Cluster add or update descriptions |
- 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 SlurmdbV0041PostConfig(ctx).V0041OpenapiSlurmdbdConfigResp(v0041OpenapiSlurmdbdConfigResp).Execute()
Load all configuration information
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0041OpenapiSlurmdbdConfigResp := *openapiclient.NewV0041OpenapiSlurmdbdConfigResp() // V0041OpenapiSlurmdbdConfigResp | Add or update config (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041PostConfig(context.Background()).V0041OpenapiSlurmdbdConfigResp(v0041OpenapiSlurmdbdConfigResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041PostConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041PostConfig`: V0041OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041PostConfig`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041PostConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0041OpenapiSlurmdbdConfigResp | V0041OpenapiSlurmdbdConfigResp | Add or update config |
- 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 SlurmdbV0041PostQos(ctx).Description(description).Id(id).Format(format).Name(name).PreemptMode(preemptMode).WithDeleted(withDeleted).V0041OpenapiSlurmdbdQosResp(v0041OpenapiSlurmdbdQosResp).Execute()
Add or update QOSs
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
description := "description_example" // string | CSV description list (optional)
id := "id_example" // string | CSV QOS id list (optional)
format := "format_example" // string | CSV format list (optional)
name := "name_example" // string | CSV QOS name list (optional)
preemptMode := "preemptMode_example" // string | (optional)
withDeleted := "withDeleted_example" // string | Include deleted QOS (optional)
v0041OpenapiSlurmdbdQosResp := *openapiclient.NewV0041OpenapiSlurmdbdQosResp([]openapiclient.V0041OpenapiSlurmdbdConfigRespQosInner{*openapiclient.NewV0041OpenapiSlurmdbdConfigRespQosInner()}) // V0041OpenapiSlurmdbdQosResp | Description of QOS to add or update (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041PostQos(context.Background()).Description(description).Id(id).Format(format).Name(name).PreemptMode(preemptMode).WithDeleted(withDeleted).V0041OpenapiSlurmdbdQosResp(v0041OpenapiSlurmdbdQosResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041PostQos``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041PostQos`: V0041OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041PostQos`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041PostQosRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
description | string | CSV description list | |
id | string | CSV QOS id list | |
format | string | CSV format list | |
name | string | CSV QOS name list | |
preemptMode | string | ||
withDeleted | string | Include deleted QOS | |
v0041OpenapiSlurmdbdQosResp | V0041OpenapiSlurmdbdQosResp | Description of QOS to add or update |
- 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 SlurmdbV0041PostTres(ctx).V0041OpenapiTresResp(v0041OpenapiTresResp).Execute()
Add TRES
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0041OpenapiTresResp := *openapiclient.NewV0041OpenapiTresResp([]openapiclient.V0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner{*openapiclient.NewV0041OpenapiSlurmdbdJobsRespJobsInnerStepsInnerTresRequestedMaxInner("Type_example")}) // V0041OpenapiTresResp | TRES descriptions. Only works in developer mode. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041PostTres(context.Background()).V0041OpenapiTresResp(v0041OpenapiTresResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041PostTres``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041PostTres`: V0041OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041PostTres`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041PostTresRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0041OpenapiTresResp | V0041OpenapiTresResp | TRES descriptions. Only works in developer mode. |
- 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 SlurmdbV0041PostUsers(ctx).V0041OpenapiUsersResp(v0041OpenapiUsersResp).Execute()
Update users
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
v0041OpenapiUsersResp := *openapiclient.NewV0041OpenapiUsersResp([]openapiclient.V0041OpenapiSlurmdbdConfigRespUsersInner{*openapiclient.NewV0041OpenapiSlurmdbdConfigRespUsersInner("Name_example")}) // V0041OpenapiUsersResp | add or update user (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041PostUsers(context.Background()).V0041OpenapiUsersResp(v0041OpenapiUsersResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041PostUsers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041PostUsers`: V0041OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041PostUsers`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041PostUsersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
v0041OpenapiUsersResp | V0041OpenapiUsersResp | add or update user |
- 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]
V0041OpenapiUsersAddCondRespStr SlurmdbV0041PostUsersAssociation(ctx).UpdateTime(updateTime).Flags(flags).V0041OpenapiUsersAddCondResp(v0041OpenapiUsersAddCondResp).Execute()
Add users with conditional association
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)
v0041OpenapiUsersAddCondResp := *openapiclient.NewV0041OpenapiUsersAddCondResp(*openapiclient.NewV0041OpenapiUsersAddCondRespAssociationCondition([]string{"Users_example"}), *openapiclient.NewV0041OpenapiUsersAddCondRespUser()) // V0041OpenapiUsersAddCondResp | Create users with conditional association (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041PostUsersAssociation(context.Background()).UpdateTime(updateTime).Flags(flags).V0041OpenapiUsersAddCondResp(v0041OpenapiUsersAddCondResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041PostUsersAssociation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041PostUsersAssociation`: V0041OpenapiUsersAddCondRespStr
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041PostUsersAssociation`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041PostUsersAssociationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
updateTime | string | Filter partitions since update timestamp | |
flags | string | Query flags | |
v0041OpenapiUsersAddCondResp | V0041OpenapiUsersAddCondResp | Create users with conditional association |
V0041OpenapiUsersAddCondRespStr
- 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 SlurmdbV0041PostWckeys(ctx).Cluster(cluster).Format(format).Id(id).Name(name).OnlyDefaults(onlyDefaults).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).V0041OpenapiWckeyResp(v0041OpenapiWckeyResp).Execute()
Add or update wckeys
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cluster := "cluster_example" // string | CSV cluster name list (optional)
format := "format_example" // string | CSV format name list (optional)
id := "id_example" // string | CSV id list (optional)
name := "name_example" // string | CSV name list (optional)
onlyDefaults := "onlyDefaults_example" // string | only query defaults (optional)
usageEnd := "usageEnd_example" // string | usage end UNIX timestamp (seconds) (optional)
usageStart := "usageStart_example" // string | usage start UNIX timestamp (seconds) (optional)
user := "user_example" // string | CSV user list (optional)
withUsage := "withUsage_example" // string | include usage with query (optional)
withDeleted := "withDeleted_example" // string | include deleted wckeys with query (optional)
v0041OpenapiWckeyResp := *openapiclient.NewV0041OpenapiWckeyResp([]openapiclient.V0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner{*openapiclient.NewV0041OpenapiSlurmdbdConfigRespUsersInnerWckeysInner("Cluster_example", "Name_example", "User_example")}) // V0041OpenapiWckeyResp | wckeys description (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SlurmdbAPI.SlurmdbV0041PostWckeys(context.Background()).Cluster(cluster).Format(format).Id(id).Name(name).OnlyDefaults(onlyDefaults).UsageEnd(usageEnd).UsageStart(usageStart).User(user).WithUsage(withUsage).WithDeleted(withDeleted).V0041OpenapiWckeyResp(v0041OpenapiWckeyResp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SlurmdbAPI.SlurmdbV0041PostWckeys``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SlurmdbV0041PostWckeys`: V0041OpenapiResp
fmt.Fprintf(os.Stdout, "Response from `SlurmdbAPI.SlurmdbV0041PostWckeys`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSlurmdbV0041PostWckeysRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
cluster | string | CSV cluster name list | |
format | string | CSV format name list | |
id | string | CSV id list | |
name | string | CSV name list | |
onlyDefaults | string | only query defaults | |
usageEnd | string | usage end UNIX timestamp (seconds) | |
usageStart | string | usage start UNIX timestamp (seconds) | |
user | string | CSV user list | |
withUsage | string | include usage with query | |
withDeleted | string | include deleted wckeys with query | |
v0041OpenapiWckeyResp | V0041OpenapiWckeyResp | wckeys 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]