File tree Expand file tree Collapse file tree 2 files changed +2
-63
lines changed Expand file tree Collapse file tree 2 files changed +2
-63
lines changed Original file line number Diff line number Diff line change @@ -76,38 +76,7 @@ Then manually install the following JARs:
76
76
77
77
## Getting Started
78
78
79
- Please follow the [ installation] ( #installation ) instruction and execute the following Java code:
80
-
81
- ``` java
82
-
83
- import cloud.stackit.sdk.iaas.* ;
84
- import cloud.stackit.sdk.iaas.auth.* ;
85
- import cloud.stackit.sdk.iaas.model.* ;
86
- import cloud.stackit.sdk.iaas.api.DefaultApi ;
87
-
88
- public class DefaultApiExample {
89
-
90
- public static void main (String [] args ) {
91
- ApiClient defaultClient = Configuration . getDefaultApiClient();
92
- defaultClient. setBasePath(" https://iaas.api.eu01.stackit.cloud" );
93
-
94
- DefaultApi apiInstance = new DefaultApi (defaultClient);
95
- UUID projectId = UUID . randomUUID(); // UUID | The identifier (ID) of a STACKIT Project.
96
- UUID serverId = UUID . randomUUID(); // UUID | The identifier (ID) of a STACKIT Server.
97
- UUID networkId = UUID . randomUUID(); // UUID | The identifier (ID) of a STACKIT Network.
98
- try {
99
- apiInstance. addNetworkToServer(projectId, serverId, networkId);
100
- } catch (ApiException e) {
101
- System . err. println(" Exception when calling DefaultApi#addNetworkToServer" );
102
- System . err. println(" Status code: " + e. getCode());
103
- System . err. println(" Reason: " + e. getResponseBody());
104
- System . err. println(" Response headers: " + e. getResponseHeaders());
105
- e. printStackTrace();
106
- }
107
- }
108
- }
109
-
110
- ```
79
+ See the [ ../../examples/stackit-sdk-iaas/src/main/java/cloud/stackit/sdk/stackit-sdk-iaas/examples] (stackit-sdk-iaas examples).
111
80
112
81
## Recommendation
113
82
Original file line number Diff line number Diff line change @@ -96,37 +96,7 @@ Then manually install the following JARs:
96
96
97
97
## Getting Started
98
98
99
- Please follow the [ installation] ( #installation ) instruction and execute the following Java code:
100
-
101
- ``` java
102
-
103
- import cloud.stackit.sdk.resourcemanager.* ;
104
- import cloud.stackit.sdk.resourcemanager.auth.* ;
105
- import cloud.stackit.sdk.resourcemanager.model.* ;
106
- import cloud.stackit.sdk.resourcemanager.api.DefaultApi ;
107
-
108
- public class DefaultApiExample {
109
-
110
- public static void main (String [] args ) {
111
- ApiClient defaultClient = Configuration . getDefaultApiClient();
112
- defaultClient. setBasePath(" https://resource-manager.api.stackit.cloud" );
113
-
114
- DefaultApi apiInstance = new DefaultApi (defaultClient);
115
- CreateFolderPayload createFolderPayload = new CreateFolderPayload (); // CreateFolderPayload |
116
- try {
117
- FolderResponse result = apiInstance. createFolder(createFolderPayload);
118
- System . out. println(result);
119
- } catch (ApiException e) {
120
- System . err. println(" Exception when calling DefaultApi#createFolder" );
121
- System . err. println(" Status code: " + e. getCode());
122
- System . err. println(" Reason: " + e. getResponseBody());
123
- System . err. println(" Response headers: " + e. getResponseHeaders());
124
- e. printStackTrace();
125
- }
126
- }
127
- }
128
-
129
- ```
99
+ See the [ ../../examples/stackit-sdk-resourcemanager/src/main/java/cloud/stackit/sdk/stackit-sdk-resourcemanager/examples] (stackit-sdk-resourcemanager examples).
130
100
131
101
## Recommendation
132
102
You can’t perform that action at this time.
0 commit comments