Close-SimanAwsRdGateway⚓︎
SYNOPSIS⚓︎
Cierra acceso a RD Gateways de AWS.
Importante
Se necesita el rol de Cloud Admin para ejecutar este comando.
SYNTAX⚓︎
Object⚓︎
Close-SimanAwsRdGateway -InputObject <Server> [-Force] [<CommonParameters>]
Name⚓︎
Close-SimanAwsRdGateway [-Name] <String[]> [-Force] [<CommonParameters>]
DESCRIPTION⚓︎
Cierra el acceso en el servicio AWS Global Accelerator a los RD Gateways especificados.
Si alguno de los equipos esta marcado como [Sentry] no se bloqueara a menos que se especifique el parametro -Force.
EXAMPLES⚓︎
Example 1 - Cierra un gateway en específico⚓︎
PS> Close-SimanAwsRdGateway -Name SMNAWSGW03
Name Status State
---- ------ -----
SMNAWSGW03 Closed running
Example 2 - Cierra todos los gateways abiertos⚓︎
PS> Get-SimanAwsServer -Environment Production -Filter @{'tag:Role' = 'RDGW'; 'tag:Status' = 'Open'} |
Close-SimanAwsRdGateway
Name Status State
---- ------ -----
SMNAWSGW03 Closed running
Mediante el comando Get-SimanAwsServer se obtienen los equipos RDGW que esten abiertos en ese momento y se canaliza el resultado por medio del pipeline.
PARAMETERS⚓︎
-Force⚓︎
Es necesario para cerrar equipos Sentry en caso de emergencia.
Type: System.Management.Automation.SwitchParameter
DefaultValue: None
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-InputObject⚓︎
Colección de objetos de tipo Siman.Cloud.AWS.Server.
Generalmente serán proporcionados mediante el pipeline.
Type: System.Object
DefaultValue: None
SupportsWildcards: false
Aliases:
- Server
ParameterSets:
- Name: Object
Position: Named
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Name⚓︎
Uno o más nombres de servidor que pertenezcan al rol RDGW.
Type: System.String[]
DefaultValue: None
SupportsWildcards: false
Aliases:
- ServerName
- ComputerName
ParameterSets:
- Name: Name
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters⚓︎
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS⚓︎
Siman.Cloud.AWS.Server⚓︎
Acepta valores canalizados del comando Get-SimanAwsServer mediante el pipeline.
System.Object⚓︎
{{ Fill in the Description }}