Set-HpcJobTemplateAcl

Sets the access control list (ACL) on the specified job template.

Syntax

Copy Code
Parameter Set: profile

Set-HpcJobTemplateAcl -Acl <HpcJobTemplateSecurityDescriptor> -Template <HpcJobTemplate> [-Scheduler <String> ] [ <CommonParameters>]
Parameter Set: name

Set-HpcJobTemplateAcl [-Name] <String> -Acl <HpcJobTemplateSecurityDescriptor> [-Scheduler <String> ] [ <CommonParameters>]


Detailed Description

Sets the ACL on the specified job template. You can get an ACL for another job template by using the Get-HpcJobTemplateAcl cmdlet and then set that ACL on another job template to copy permissions between job templates. You can also modify the ACL before you apply it to another job template by using .NET application programming interfaces (APIs).

Parameters

-Acl<HpcJobTemplateSecurityDescriptor>

Specifies an HpcJobTemplateSecurityDescriptor object for the ACL that you want to set on the template. Use the Get-HpcJobTemplateAcl cmdlet to get the HpcJobTemplateSecurityDescriptor object, and modify that object with .NET APIs if needed.


Aliases

none

Required?

true

Position?

named

Default Value

no default

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of the job template on which you want to set the ACL. The maximum length of the name is 50 characters. You cannot specify both the Name and Template parameters.


Aliases

none

Required?

true

Position?

1

Default Value

no default

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Scheduler<String>

Specifies the host name or IP address of the head node for the cluster that includes the job templates. The value must be a valid computer name or IP address. If you do not specify the Scheduler parameter, this cmdlet uses the scheduler on the head node that the CCP_SCHEDULER environment variable specifies. To set this environment variable, run the following cmdlet:

Set-Content Env:CCP_SCHEDULER <head_node_name>


Aliases

none

Required?

false

Position?

named

Default Value

%CCP_SCHEDULER%

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Template<HpcJobTemplate>

Specifies the HpcJobTemplate object for the job template on which you want to set the ACL. You cannot specify both the Name and Template parameters. Use the Get-HpbJobTemplate cmdlet to get an HpcJobTemplate object for the job template.


Aliases

none

Required?

true

Position?

named

Default Value

no default

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • An HpcJobTemplateSecurityDescriptor object.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • None.

Notes

  • Only users who have modify permissions on the job template can set permissions on the template.

  • You must be a cluster administrator to run this cmdlet successfully.

Examples

EXAMPLE 1

Copies the ACL from the default job template job template named Template 2.


  Copy Code
Get-HpcJobTemplateAcl -Name "Default" | Set-HpcJobTemplateAcl -Name "Template 2"

Related topics