-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CSM Agents Read Endpoint (#2613)
Co-authored-by: ci.datadog-api-spec <[email protected]>
- Loading branch information
1 parent
c2732e8
commit bc4a2e8
Showing
19 changed files
with
2,264 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Get all CSM Agents returns "OK" response | ||
|
||
import com.datadog.api.client.ApiClient; | ||
import com.datadog.api.client.ApiException; | ||
import com.datadog.api.client.v2.api.CsmAgentsApi; | ||
import com.datadog.api.client.v2.model.CsmAgentsResponse; | ||
|
||
public class Example { | ||
public static void main(String[] args) { | ||
ApiClient defaultClient = ApiClient.getDefaultApiClient(); | ||
CsmAgentsApi apiInstance = new CsmAgentsApi(defaultClient); | ||
|
||
try { | ||
CsmAgentsResponse result = apiInstance.listAllCSMAgents(); | ||
System.out.println(result); | ||
} catch (ApiException e) { | ||
System.err.println("Exception when calling CsmAgentsApi#listAllCSMAgents"); | ||
System.err.println("Status code: " + e.getCode()); | ||
System.err.println("Reason: " + e.getResponseBody()); | ||
System.err.println("Response headers: " + e.getResponseHeaders()); | ||
e.printStackTrace(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Get all CSM Serverless Agents returns "OK" response | ||
|
||
import com.datadog.api.client.ApiClient; | ||
import com.datadog.api.client.ApiException; | ||
import com.datadog.api.client.v2.api.CsmAgentsApi; | ||
import com.datadog.api.client.v2.model.CsmAgentsResponse; | ||
|
||
public class Example { | ||
public static void main(String[] args) { | ||
ApiClient defaultClient = ApiClient.getDefaultApiClient(); | ||
CsmAgentsApi apiInstance = new CsmAgentsApi(defaultClient); | ||
|
||
try { | ||
CsmAgentsResponse result = apiInstance.listAllCSMServerlessAgents(); | ||
System.out.println(result); | ||
} catch (ApiException e) { | ||
System.err.println("Exception when calling CsmAgentsApi#listAllCSMServerlessAgents"); | ||
System.err.println("Status code: " + e.getCode()); | ||
System.err.println("Reason: " + e.getResponseBody()); | ||
System.err.println("Response headers: " + e.getResponseHeaders()); | ||
e.printStackTrace(); | ||
} | ||
} | ||
} |
Oops, something went wrong.