Amazon.OpsWorksCM.AmazonOpsWorksCMClient.CreateServer C# (CSharp) Méthode

CreateServer() public méthode

Creates and immedately starts a new Server. The server can be used once it has reached the HEALTHY state.

This operation is asnychronous.

A LimitExceededException is thrown then the maximum number of server backup is reached. A ResourceAlreadyExistsException is raise when a server with the same name already exists in the account. A ResourceNotFoundException is thrown when a backupId is passed, but the backup does not exist. A ValidationException is thrown when parameters of the request are not valid.

By default 10 servers can be created. A LimitExceededException is raised when the limit is exceeded.

When no security groups are provided by using SecurityGroupIds, AWS OpsWorks creates a new security group. This security group opens the Chef server to the world on TCP port 443. If a KeyName is present, SSH access is enabled. SSH is also open to the world on TCP port 22.

By default, the Chef Server is accessible from any IP address. We recommend that you update your security group rules to allow access from known IP addresses and address ranges only. To edit security group rules, open Security Groups in the navigation pane of the EC2 management console.

/// The limit of servers or backups has been reached. /// /// The requested resource cannot be created because it already exists. /// /// The requested resource does not exist, or access was denied. /// /// One or more of the provided request parameters are not valid. ///
public CreateServer ( CreateServerRequest request ) : CreateServerResponse
request Amazon.OpsWorksCM.Model.CreateServerRequest Container for the necessary parameters to execute the CreateServer service method.
Résultat Amazon.OpsWorksCM.Model.CreateServerResponse
        public CreateServerResponse CreateServer(CreateServerRequest request)
        {
            var marshaller = new CreateServerRequestMarshaller();
            var unmarshaller = CreateServerResponseUnmarshaller.Instance;

            return Invoke<CreateServerRequest,CreateServerResponse>(request, marshaller, unmarshaller);
        }