VPC.VPC
Element Description
The VPC.VPC element is used to create a VPC network.
Element Properties
| 
        Property  | 
      
        Mandatory  | 
      
        Descripiton  | 
     
|---|---|---|
| 
        cidr  | 
      
        Yes  | 
      
        Range of available subnets in the VPC Type: string Value Description: Range: 10.0.0.0/8-10.255.255.0/24, 172.16.0.0/12-172.31.255.0/24, or 192.168.0.0/16-192.168.255.0/24. Default Value: 192.168.0.0/16 Value Constraint: The value must be in the CIDR format, for example, 192.168.0.0/16. Suggestion: Customize the value based on the IP address range as required.  | 
     
| 
        name  | 
      
        Yes  | 
      
        VPC name Type: string Value Description: Customize the value, for example, myvpc. Default: "" Value Constraint: The value contains a maximum of 64 characters. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed. When you specify a VPC name, ensure that it is unique within the account. Suggestion: Customize the value. If this parameter is left blank, the system automatically assigns a name.  | 
     
Relationships Between Elements
None.
Return Value
| 
        Property  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        refID  | 
      
        string  | 
      
        VPC ID  | 
     
| 
        refName  | 
      
        string  | 
      
        VPC name  | 
     
Blueprint Example
tosca_definitions_version: cloud_tosca_version_1_0
inputs:
  vpc-name:
    default: vpc
    type: string
  vpc-cidr:
    default: 192.168.0.0/16
    type: string
node_templates:
  my-vpc:
    type: Cloud.VPC.VPC
    properties:
      name:
        get_input: vpc-name
      cidr:
        get_input: vpc-cidr
 Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot